/* =====================================
   3D VISUAL EFFECTS — ENHANCED & VISIBLE
   ===================================== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero Section — 3D Perspective */
.hero {
  perspective: 800px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  transform-style: preserve-3d;
  transition: transform 0.08s ease-out;
  will-change: transform;
  filter: drop-shadow(0 15px 35px rgba(180, 130, 220, 0.25));
}

/* Art Info Section — 3D List Items */
.art-info {
  position: relative;
  z-index: 1;
}

.anim-stagger-container li {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.anim-stagger-container li:hover {
  transform: translateX(10px);
  color: #7c5cbf;
  font-weight: 500;
}

/* Art Cards Section — Enhanced 3D */
.art-cards {
  gap: 20px;
}

.art-cards a {
  perspective: 1200px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  position: relative;
}

.art-cards a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

.art-cards a:hover::before {
  opacity: 1;
}

.art-cards a:hover {
  transform: rotateY(22deg) rotateX(-16deg) translateZ(60px) scale(1.12);
  box-shadow: 0 40px 80px rgba(180, 130, 220, 0.5), 
              0 0 50px rgba(201, 168, 240, 0.4),
              inset 0 0 30px rgba(255, 255, 255, 0.35);
}

/* Floating Background Elements — Enhanced Visibility */
.floating-orb {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
  filter: blur(0.5px);
}

.floating-orb-1 {
  width: 200px;
  height: 200px;
  top: 5%;
  left: 5%;
  background: radial-gradient(200px at 35% 35%, rgba(201, 168, 240, 0.7), rgba(201, 168, 240, 0.2), transparent);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
  opacity: 0.65;
  box-shadow: 0 0 80px rgba(201, 168, 240, 0.5);
}

.floating-orb-2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  right: 8%;
  background: radial-gradient(180px at 35% 35%, rgba(249, 184, 214, 0.65), rgba(249, 184, 214, 0.15), transparent);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
  opacity: 0.6;
  box-shadow: 0 0 70px rgba(249, 184, 214, 0.45);
}

.floating-orb-3 {
  width: 150px;
  height: 150px;
  top: 45%;
  right: 3%;
  background: radial-gradient(150px at 35% 35%, rgba(157, 216, 245, 0.65), rgba(157, 216, 245, 0.15), transparent);
  border-radius: 50%;
  animation: float 18s ease-in-out infinite;
  opacity: 0.6;
  box-shadow: 0 0 60px rgba(157, 216, 245, 0.4);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  50% { transform: translateY(-50px) translateX(30px) rotate(180deg); }
}

/* Journey Section — 3D Paragraph Effect */
.journey {
  position: relative;
  z-index: 1;
  perspective: 1000px;
}

.journey p {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.journey p:hover {
  transform: translateX(8px);
}

/* 3D Depth on Nav Links */
.nav-center a,
.nav-right a {
  transition: all 0.25s ease;
  transform-style: preserve-3d;
  position: relative;
}

.nav-center a:hover,
.nav-right a:hover {
  transform: translateZ(15px) translateY(-2px);
  text-shadow: 0 8px 16px rgba(180, 130, 220, 0.3);
}

/* Responsive: Adjust 3D on tablet */
@media (max-width: 1024px) {
  .art-cards a:hover {
    transform: rotateY(16deg) rotateX(-12deg) translateZ(45px) scale(1.10);
  }
  
  .floating-orb-1 { width: 150px; height: 150px; }
  .floating-orb-2 { width: 130px; height: 130px; }
  .floating-orb-3 { width: 110px; height: 110px; }
}

/* Responsive: Disable 3D on mobile */
@media (max-width: 768px) {
  .art-cards a:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(180, 130, 220, 0.3);
  }
  
  .anim-stagger-container li:hover {
    transform: translateX(8px);
  }
  
  .journey p:hover {
    transform: translateX(6px);
  }
  
  .floating-orb-1,
  .floating-orb-2,
  .floating-orb-3 {
    display: none;
  }
  
  .hero-content {
    transform: none !important;
  }
  
  .nav-center a:hover,
  .nav-right a:hover {
    transform: translateY(-3px);
    text-shadow: none;
  }
}

/* Performance optimization */
.hero-content,
.art-cards a,
.anim-stagger-container li,
.journey p,
.nav-center a,
.nav-right a {
  backface-visibility: hidden;
}
