/* ============================================
   TUNING VARIABLES - ENHANCED FOR MAX INTERACTIVITY
   ============================================ */
:root {
  /* Colors */
  --color-bg: #0a0a0f;
  --color-text: #e8e8f0;
  --color-text-dim: #9999aa;
  --color-accent: #6366f1;
  --color-accent-bright: #818cf8;
  --color-island-1: #ec4899;
  --color-island-2: #8b5cf6;
  --color-island-3: #06b6d4;
  --color-island-4: #f59e0b;

  /* Holographic effect variables */
  --holo-tilt-x: 0deg;
  --holo-tilt-y: 0deg;
  --holo-content-tilt-x: 0deg;
  --holo-content-tilt-y: 0deg;
  --holo-chromatic-offset: 0px;
  --holo-glow-intensity: 0;
  --holo-rainbow-pos: 50%;
  --holo-particle-density: 8;

  /* Magnetic effect - MAXED OUT FOR PLAYFUL INTERACTIVITY */
  --magnetic-radius: 380px;        /* HUGE increase from 180px */
  --magnetic-strength: 0.75;       /* Strong pull from 0.4 */
  --magnetic-smooth: 0.2;          /* Slower for fluid momentum feel */
  --return-smooth: 0.06;           /* Very slow return for long momentum trail */

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --hero-title-size: clamp(3rem, 8vw, 6rem);
  --hero-subtitle-size: clamp(1.2rem, 3vw, 1.8rem);

  /* Spacing */
  --spacing-unit: 1rem;
  --island-gap: 3rem;

  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   THREE.JS BACKGROUND CANVAS
   Positioned behind islands section
   ============================================ */
.threejs-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Show canvas when islands section is in view */
body.islands-visible .threejs-background {
  opacity: 1;
}

/* Ensure all content layers above the 3D background */
.hero,
.islands-section,
.footer,
.scroll-to-top,
.contact-modal,
.gallery-modal {
  position: relative;
  z-index: 1;
}

/* Cursor stays on top of everything */
.cursor-dot {
  z-index: 999999 !important;
}

/* ============================================
   CUSTOM CURSOR - CAT FACE DESIGN
   ============================================ */
.cursor-dot {
  position: fixed;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.15s ease,
              opacity 0.2s ease;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

/* Hide default cursor globally */
body {
  cursor: none !important;
}

body * {
  cursor: none !important;
}

/* Cat face emoji in the center */
.cursor-dot::after {
  content: '🐱';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: grayscale(1) contrast(2);
  mix-blend-mode: difference;
}

/* Outline ring that follows with delay */
.cursor-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 2px solid white;
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: width 0.3s ease, height 0.3s ease;
}

/* Enhanced cursor on magnetic interaction */
.cursor-dot.magnetic {
  transform: translate(-50%, -50%) scale(1.2);
}

.cursor-dot.magnetic::before {
  width: 40px;
  height: 40px;
}

/* Cursor during drag */
.cursor-dot.dragging {
  transform: translate(-50%, -50%) scale(1.4);
}

.cursor-dot.dragging::before {
  width: 48px;
  height: 48px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg) 0%, #151520 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   LIGHT BALL (AV Initials) - GREEN GLOWING ORB
   ============================================ */
.light-ball {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightBallFloat 5s ease-in-out infinite;
}

.light-ball-text {
  position: relative;
  z-index: 3;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 30px rgba(255, 107, 157, 0.7),
    0 0 50px rgba(192, 132, 252, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.4));
  transition: text-shadow 0.8s ease;
  animation: textGlowShift 30s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.light-ball-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 40% 40%,
    #ff6b9d 0%,           /* Pink center */
    #c084fc 40%,          /* Purple */
    #06b6d4 100%          /* Cyan edge */
  );
  border-radius: 50%;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 157, 0.3);
  box-shadow:
    0 0 40px rgba(255, 107, 157, 0.6),
    0 0 80px rgba(192, 132, 252, 0.4),
    0 0 120px rgba(6, 182, 212, 0.3),
    inset 0 0 40px rgba(255, 107, 157, 0.25);
  transition: all 0.8s ease;
  animation:
    pulse 2s ease-in-out infinite,
    orbColorShift 8s ease-in-out infinite;
}

/* Hover state - intensify the current color phase */
.light-ball:hover .light-ball-glow {
  animation:
    pulse 2s ease-in-out infinite,
    orbColorShift 8s ease-in-out infinite;
  filter: brightness(1.2) saturate(1.3);
}

.light-ball:hover .light-ball-text {
  animation: textGlowShift 30s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  filter: drop-shadow(0 0 30px currentColor) brightness(1.15);
}

.light-ball-glow::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.6;
  transition: opacity 0.8s ease;
}

.light-ball:hover .light-ball-glow::before {
  animation: greenGlowPulse 3s ease-in-out infinite 0.3s;
  opacity: 0.8;
}

.light-ball-glow::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 40%;
  height: 40%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.15) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(10px);
  transition: opacity 0.8s ease;
}

.light-ball:hover .light-ball-glow::after {
  animation: shimmerFloat 3s ease-in-out infinite;
}

@keyframes lightBallFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes greenGlowPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
    filter: brightness(1.15);
  }
}

@keyframes shimmerFloat {
  0%, 100% {
    opacity: 0.6;
    transform: translate(0, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate(5px, 5px);
  }
}

/* ============================================
   PULSE ANIMATION - ENHANCED HEARTBEAT-LIKE PULSE
   Stronger scale and brightness with sharper transitions
   KEPT AT 2s FOR RHYTHMIC EFFECT
   ============================================ */
@keyframes pulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.08);
    filter: brightness(1.25);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

/* ============================================
   ORB COLOR-SHIFTING ANIMATIONS - SYNCHRONIZED WITH BACKGROUND
   Uses hue-rotate() for fluid gradient transitions
   8s duration synchronized with background orbs
   ============================================ */
@keyframes orbColorShift {
  0%, 100% {
    background: radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.9) 0%, rgba(192, 132, 252, 0.7) 40%, rgba(139, 92, 246, 0.5) 100%);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.6), 0 0 80px rgba(192, 132, 252, 0.4), 0 0 120px rgba(139, 92, 246, 0.3), inset 0 0 40px rgba(236, 72, 153, 0.25);
    border-color: rgba(236, 72, 153, 0.3);
    filter: hue-rotate(0deg) saturate(1.2);
  }
  33% {
    background: radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.9) 0%, rgba(192, 132, 252, 0.7) 40%, rgba(139, 92, 246, 0.5) 100%);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.4), 0 0 120px rgba(6, 182, 212, 0.3), inset 0 0 40px rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.3);
    filter: hue-rotate(60deg) saturate(1.2);
  }
  66% {
    background: radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.9) 0%, rgba(192, 132, 252, 0.7) 40%, rgba(139, 92, 246, 0.5) 100%);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.6), 0 0 80px rgba(14, 165, 233, 0.4), 0 0 120px rgba(34, 197, 94, 0.3), inset 0 0 40px rgba(6, 182, 212, 0.25);
    border-color: rgba(6, 182, 212, 0.3);
    filter: hue-rotate(120deg) saturate(1.2);
  }
}

@keyframes textGlowShift {
  0% { text-shadow: 0 0 30px rgba(255, 107, 157, 0.7), 0 0 50px rgba(192, 132, 252, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.4)); }
  5% { text-shadow: 0 0 30px rgba(245, 89, 155, 0.7), 0 0 50px rgba(205, 105, 215, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(245, 89, 155, 0.4)); }
  10% { text-shadow: 0 0 30px rgba(236, 72, 153, 0.7), 0 0 50px rgba(219, 39, 119, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.4)); }
  15% { text-shadow: 0 0 30px rgba(202, 78, 200, 0.7), 0 0 50px rgba(183, 45, 176, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(202, 78, 200, 0.4)); }
  20% { text-shadow: 0 0 30px rgba(168, 85, 247, 0.7), 0 0 50px rgba(147, 51, 234, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4)); }
  25% { text-shadow: 0 0 30px rgba(113, 107, 246, 0.7), 0 0 50px rgba(92, 75, 234, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(113, 107, 246, 0.4)); }
  30% { text-shadow: 0 0 30px rgba(59, 130, 246, 0.7), 0 0 50px rgba(37, 99, 235, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)); }
  35% { text-shadow: 0 0 30px rgba(32, 156, 229, 0.7), 0 0 50px rgba(25, 132, 224, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(32, 156, 229, 0.4)); }
  40% { text-shadow: 0 0 30px rgba(6, 182, 212, 0.7), 0 0 50px rgba(14, 165, 233, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4)); }
  45% { text-shadow: 0 0 30px rgba(20, 189, 153, 0.7), 0 0 50px rgba(18, 174, 113, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(20, 189, 153, 0.4)); }
  50% { text-shadow: 0 0 30px rgba(34, 197, 94, 0.7), 0 0 50px rgba(22, 163, 74, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.4)); }
  55% { text-shadow: 0 0 30px rgba(98, 213, 73, 0.7), 0 0 50px rgba(77, 183, 48, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(98, 213, 73, 0.4)); }
  60% { text-shadow: 0 0 30px rgba(163, 230, 53, 0.7), 0 0 50px rgba(132, 204, 22, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(163, 230, 53, 0.4)); }
  65% { text-shadow: 0 0 30px rgba(207, 210, 44, 0.7), 0 0 50px rgba(188, 197, 16, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(207, 210, 44, 0.4)); }
  70% { text-shadow: 0 0 30px rgba(251, 191, 36, 0.7), 0 0 50px rgba(245, 158, 11, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4)); }
  75% { text-shadow: 0 0 30px rgba(251, 168, 48, 0.7), 0 0 50px rgba(247, 136, 16, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(251, 168, 48, 0.4)); }
  80% { text-shadow: 0 0 30px rgba(251, 146, 60, 0.7), 0 0 50px rgba(249, 115, 22, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(251, 146, 60, 0.4)); }
  85% { text-shadow: 0 0 30px rgba(245, 107, 64, 0.7), 0 0 50px rgba(234, 76, 30, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(245, 107, 64, 0.4)); }
  90% { text-shadow: 0 0 30px rgba(239, 68, 68, 0.7), 0 0 50px rgba(220, 38, 38, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4)); }
  95% { text-shadow: 0 0 30px rgba(247, 87, 112, 0.7), 0 0 50px rgba(230, 64, 85, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(247, 87, 112, 0.4)); }
  100% { text-shadow: 0 0 30px rgba(255, 107, 157, 0.7), 0 0 50px rgba(192, 132, 252, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.4)); }
}

.hero-title {
  font-size: var(--hero-title-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--hero-subtitle-size);
  font-weight: 400;
  color: var(--color-text-dim);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero-description {
  font-size: 1rem;
  color: var(--color-text-dim);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* ============================================
   EXPLORE BUTTON - DISCREET VERSION
   ============================================ */
.explore-button {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(232, 232, 240, 0.85);
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  letter-spacing: 0.08em;
  display: block;
  text-align: center;
  opacity: 1;
  margin-left: auto;
  margin-right: auto;
}

/* Contact button styling - same as explore button but with spacing */
.contact-button {
  margin-bottom: 1rem;
}

/* Hide arrow on contact button */
.contact-button i {
  display: none !important;
}

.explore-button span {
  position: relative;
  z-index: 2;
}

.explore-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.08);
  transform: translate(-50%, -50%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.explore-button:hover::before {
  width: 200px;
  height: 60px;
}

.explore-button:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.explore-button:hover span {
  color: rgba(232, 232, 240, 1);
}

/* ============================================
   SIMPLE ARROW - COLOR-SHIFTING SYNCHRONIZED WITH ORB
   ============================================ */
.explore-button i {
  position: absolute;
  top: calc(100% + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0;  /* Hide FontAwesome */
  width: 3px;
  height: 50px;
  display: block;
  animation: arrowBounce 2s ease-in-out infinite;
}

/* Arrow line - vertical shaft with color-shifting */
.explore-button i::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  border-radius: 2px;
  animation: arrowColorShift 8s ease-in-out infinite;
  transition: box-shadow 0.6s ease;
}

/* Arrow head - simple chevron pointing down */
.explore-button i::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-radius: 1px;
  animation: arrowColorShift 8s ease-in-out infinite;
  transition: box-shadow 0.6s ease;
}

.explore-button:hover i::before,
.explore-button:hover i::after {
  filter: brightness(1.2) saturate(1.1);
}

/* Simple bounce animation for arrow */
@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) translateY(6px);
    opacity: 1;
  }
}

/* Color-shifting animation synchronized with orb
   Uses hue-rotate() for fluid gradient transitions */
@keyframes arrowColorShift {
  0%, 100% {
    background: linear-gradient(to bottom, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 1) 15%, rgba(192, 132, 252, 1) 85%, rgba(192, 132, 252, 0.2) 100%);
    border-color: rgba(236, 72, 153, 1);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.6), 0 0 20px rgba(192, 132, 252, 0.4);
    filter: hue-rotate(0deg) saturate(1.2);
  }
  33% {
    background: linear-gradient(to bottom, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 1) 15%, rgba(192, 132, 252, 1) 85%, rgba(192, 132, 252, 0.2) 100%);
    border-color: rgba(139, 92, 246, 1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
    filter: hue-rotate(60deg) saturate(1.2);
  }
  66% {
    background: linear-gradient(to bottom, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 1) 15%, rgba(192, 132, 252, 1) 85%, rgba(192, 132, 252, 0.2) 100%);
    border-color: rgba(6, 182, 212, 1);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6), 0 0 20px rgba(14, 165, 233, 0.4);
    filter: hue-rotate(120deg) saturate(1.2);
  }
}

/* ============================================
   BACKGROUND ORBS
   ============================================ */
.bg-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite, orbColorPulse 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--color-island-1);
  top: 10%;
  left: 10%;
  animation: float 20s ease-in-out infinite, orbColorPulse1 8s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--color-island-2);
  top: 60%;
  right: 15%;
  animation: float 20s ease-in-out infinite 5s, orbColorPulse2 9s ease-in-out infinite 2s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--color-island-3);
  bottom: 10%;
  left: 50%;
  animation: float 20s ease-in-out infinite 10s, orbColorPulse3 10s ease-in-out infinite 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes orbColorPulse1 {
  0%, 100% {
    background: #ec4899;
    filter: blur(80px) hue-rotate(0deg);
  }
  33% {
    background: #8b5cf6;
    filter: blur(80px) hue-rotate(40deg);
  }
  66% {
    background: #06b6d4;
    filter: blur(80px) hue-rotate(-40deg);
  }
}

@keyframes orbColorPulse2 {
  0%, 100% {
    background: #8b5cf6;
    filter: blur(80px) hue-rotate(0deg);
  }
  33% {
    background: #06b6d4;
    filter: blur(80px) hue-rotate(50deg);
  }
  66% {
    background: #f59e0b;
    filter: blur(80px) hue-rotate(-50deg);
  }
}

@keyframes orbColorPulse3 {
  0%, 100% {
    background: #06b6d4;
    filter: blur(80px) hue-rotate(0deg);
  }
  33% {
    background: #f59e0b;
    filter: blur(80px) hue-rotate(60deg);
  }
  66% {
    background: #ec4899;
    filter: blur(80px) hue-rotate(-60deg);
  }
}

/* ============================================
   ISLANDS SECTION - ORGANIC SCATTERED LAYOUT
   ============================================ */
.islands-section {
  min-height: 100vh;
  padding: 8rem 2rem;
  background: transparent;
  position: relative;
  scroll-margin-top: 6rem;
  z-index: 1;
}

.islands-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 1300px;
  padding: 3rem 0 6rem;
}

/* ============================================
   ISLAND CARDS - ORGANIC SCATTERED POSITIONING
   Each island positioned asymmetrically with rotation
   ENHANCED WITH HOLOGRAPHIC DEPTH EFFECTS
   ============================================ */
.island {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  transition: box-shadow var(--transition-medium),
              border-color var(--transition-medium),
              filter 0.15s ease;
  backdrop-filter: blur(10px);
  will-change: transform;
  width: 280px;
  min-height: 210px;
  max-width: 92vw;
  pointer-events: all;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Holographic depth effect container */
  overflow: visible;
  isolation: isolate;
}

/* FROZEN STATE - Disable all rendering optimizations and animations to prevent jitter */
body.system-frozen .island {
  will-change: auto !important;
  transition: none !important;
  animation: none !important;
}

body.system-frozen .orb {
  animation: none !important;
  opacity: 0.3 !important;
}

/* Organic scattered positions - WIDELY SPACED to prevent overlap */
.island[data-island="design-tecnico"] {
  top: 6%;
  left: 8%;
  transform: rotate(-3deg);
}

.island[data-island="design"] {
  top: 6%;
  right: 8%;
  transform: rotate(3deg);
}

.island[data-island="video"] {
  top: 40%;
  left: 8%;
  transform: rotate(-2deg);
}

.island[data-island="playground"] {
  top: 40%;
  right: 8%;
  transform: rotate(4deg);
}

.island[data-island="fabricacao-digital"] {
  top: 70%;
  left: 20%;
  transform: rotate(-1deg);
}

.island[data-island="musica"] {
  top: 70%;
  right: 20%;
  transform: rotate(2deg);
}

/* Holographic rainbow gradient overlay - DISABLED */
.island::before {
  content: '';
  display: none;
}

@keyframes holoRainbowShift {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  100% { background-position: 100% 50%; filter: hue-rotate(360deg); }
}

/* Holographic glow border - DISABLED */
.island::after {
  content: '';
  display: none;
}

@keyframes holoGlowPulse {
  0%, 100% {
    filter: blur(8px) brightness(1);
    transform: scale(1);
  }
  50% {
    filter: blur(12px) brightness(1.3);
    transform: scale(1.05);
  }
}

/* Visual feedback when island is grabbed and clickable */
.island.is-grabbed {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(129, 140, 248, 0.3);
}

.island.is-grabbed::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.3), rgba(255, 255, 255, 0.1));
}

/* Visual feedback when island is being dragged */
.island.is-dragging {
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.6),
              0 0 0 2px rgba(129, 140, 248, 0.5),
              0 0 48px rgba(129, 140, 248, 0.3);
  cursor: grabbing !important;
}

.island.is-dragging::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.4), rgba(255, 255, 255, 0.15));
}

/* Cursor changes during drag */
.island.is-dragging * {
  cursor: grabbing !important;
}

.island:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.island-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: none;
  transition: none;
}

/* Chromatic aberration overlay on content - DISABLED */
.island-content::before {
  content: '';
  display: none;
}

/* Holographic particles container - DISABLED */
.island-content::after {
  content: '';
  display: none;
}

/* ============================================
   ISLAND ICONS
   ============================================ */
.island-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  position: relative;
  transition: transform var(--transition-medium);
}

.island-icon i {
  font-size: 2rem;
  transition: transform var(--transition-fast);
}

.island:hover .island-icon {
  transform: scale(1.1) rotate(-5deg);
}

.island:hover .island-icon i {
  transform: scale(1.1);
}

/* Island-specific icon colors */
.island[data-island="design-tecnico"] .island-icon {
  background: linear-gradient(135deg, var(--color-island-1), rgba(236, 72, 153, 0.3));
  color: var(--color-island-1);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.island[data-island="design"] .island-icon {
  background: linear-gradient(135deg, var(--color-island-2), rgba(139, 92, 246, 0.3));
  color: var(--color-island-2);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.island[data-island="video"] .island-icon {
  background: linear-gradient(135deg, var(--color-island-3), rgba(6, 182, 212, 0.3));
  color: var(--color-island-3);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.island[data-island="playground"] .island-icon {
  background: linear-gradient(135deg, var(--color-island-4), rgba(245, 158, 11, 0.3));
  color: var(--color-island-4);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.island[data-island="fabricacao-digital"] .island-icon {
  background: linear-gradient(135deg, #10b981, rgba(16, 185, 129, 0.3));
  color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.island[data-island="musica"] .island-icon {
  background: linear-gradient(135deg, #ec4899, rgba(236, 72, 153, 0.3));
  color: #ec4899;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

/* ============================================
   ISLAND TEXT
   ============================================ */
.island-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  position: relative;
  transition: text-shadow 0.3s ease;
}

/* Chromatic aberration on title text - DISABLED */
.island:hover .island-title {
  text-shadow: none;
}

.island-description {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ============================================
   ISLAND TAGS
   ============================================ */
.island-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  transition: all var(--transition-fast);
}

.island:hover .tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

@media (max-width: 1200px) {
  .islands-container {
    min-height: 920px;
  }

  .island {
    width: 280px;
    min-height: 240px;
  }

  .island[data-island="design-tecnico"] {
    top: 8%;
    left: 8%;
  }

  .island[data-island="design"] {
    top: 8%;
    right: 8%;
  }

  .island[data-island="video"] {
    top: 48%;
    left: 8%;
  }

  .island[data-island="playground"] {
    top: 48%;
    right: 8%;
  }

  .island[data-island="fabricacao-digital"] {
    top: 82%;
  }
}

/* ============================================
   RESPONSIVE - STACK ON MOBILE
   ============================================ */
@media (max-width: 768px) {
  .islands-container {
    min-height: auto;
  }

  .island {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  .island[data-island="design-tecnico"],
  .island[data-island="design"],
  .island[data-island="video"],
  .island[data-island="playground"],
  .island[data-island="fabricacao-digital"],
  .island[data-island="musica"] {
    transform: rotate(0deg) !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .islands-section {
    padding: 4rem 1.5rem;
  }

  .island {
    padding: 2.5rem 1.5rem;
  }
}

/* ============================================
   LIGHTNING EFFECT - ELECTRICAL RAYS NEAR ISLANDS
   ============================================ */
.lightning-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 1;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-dot {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body {
    cursor: auto !important;
  }

  .explore-button,
  .island {
    cursor: pointer;
  }

  /* Disable holographic effects */
  .island::before,
  .island::after,
  .island-content::after {
    opacity: 0 !important;
    animation: none !important;
  }

  .island-content {
    transform: translateZ(0) !important;
    --holo-content-tilt-x: 0deg !important;
    --holo-content-tilt-y: 0deg !important;
  }

  .island-title {
    text-shadow: none !important;
  }

  .island {
    --holo-chromatic-offset: 0 !important;
    --holo-glow-intensity: 0 !important;
  }
}

/* ============================================
   GALLERY MODAL SYSTEM
   ============================================ */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

.gallery-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  max-height: 85vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: 3rem;
  overflow-y: auto;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
}

.gallery-modal:not(.active) .gallery-content {
  transform: translate(-50%, -45%);
}

.gallery-modal.active .gallery-content {
  animation: gallerySlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes gallerySlideIn {
  from {
    transform: translate(-50%, -45%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.gallery-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-dim);
  z-index: 10;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
  transform: rotate(90deg);
}

.gallery-header {
  margin-bottom: 3rem;
  text-align: center;
}

.gallery-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-dim);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* When gallery-grid contains categories, use flex layout */
.gallery-grid:has(.gallery-category) {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gallery-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.gallery-item-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-icon {
  transform: scale(1.1) rotate(-5deg);
}

.gallery-item-icon i {
  font-size: 1.8rem;
  color: var(--color-accent-bright);
}

.gallery-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.gallery-item-tech {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-item-description {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  line-height: 1.6;
}

/* Gallery Image and Video Items - Bubble Style */
.gallery-image-item,
.gallery-video-item {
  padding: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(99, 102, 241, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.gallery-image-item::before,
.gallery-video-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 2;
  border-radius: 32px;
}

.gallery-image-item::after,
.gallery-video-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-image-item:hover,
.gallery-video-item:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow:
    0 30px 60px rgba(129, 140, 248, 0.5),
    0 0 50px rgba(129, 140, 248, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg,
    rgba(129, 140, 248, 0.2) 0%,
    rgba(99, 102, 241, 0.1) 50%,
    rgba(129, 140, 248, 0.15) 100%);
}

.gallery-image-item:hover::before,
.gallery-video-item:hover::before {
  transform: translateX(100%);
}

.gallery-image-item:hover::after,
.gallery-video-item:hover::after {
  opacity: 1;
}

.gallery-img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gallery-image-item:hover .gallery-img {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gallery-video {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  display: block;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gallery-video::-webkit-media-controls-panel {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.gallery-video::-webkit-media-controls-play-button,
.gallery-video::-webkit-media-controls-timeline,
.gallery-video::-webkit-media-controls-volume-slider {
  filter: brightness(1.2);
}

/* Gallery PDF Items - Similar to image/video bubble style */
.gallery-pdf-item {
  padding: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(239, 68, 68, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 400px;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.gallery-pdf-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 2;
  border-radius: 32px;
}

.gallery-pdf-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-pdf-item:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow:
    0 30px 60px rgba(239, 68, 68, 0.5),
    0 0 50px rgba(239, 68, 68, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(220, 38, 38, 0.1) 50%,
    rgba(239, 68, 68, 0.15) 100%);
}

.gallery-pdf-item:hover::before {
  transform: translateX(100%);
}

.gallery-pdf-item:hover::after {
  opacity: 1;
}

.pdf-preview-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 20px;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 3;
}

.pdf-preview-header i {
  font-size: 1.5rem;
  color: #ef4444;
  flex-shrink: 0;
}

.pdf-preview-header span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.gallery-pdf {
  width: 100%;
  flex: 1;
  min-height: 350px;
  border: none;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 3;
}

/* Music Gallery Styles */
.gallery-music-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-music-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.gallery-music-item:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.music-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.music-item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.music-item-info {
  flex: 1;
}

.music-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.25rem 0;
}

.music-item-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.music-player {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  outline: none;
}

.music-player::-webkit-media-controls-panel {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  border-radius: 12px;
}

.music-player::-webkit-media-controls-play-button,
.music-player::-webkit-media-controls-timeline,
.music-player::-webkit-media-controls-volume-slider,
.music-player::-webkit-media-controls-current-time-display,
.music-player::-webkit-media-controls-time-remaining-display {
  filter: brightness(1.3);
  color: black;
}

/* Gallery Categories */
.gallery-category {
  margin-bottom: 3rem;
}

.gallery-category:last-child {
  margin-bottom: 0;
}

.gallery-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(129, 140, 248, 0.3);
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-category-grid {
  column-count: 3;
  column-gap: 1.5rem;
  align-items: start;
}

/* Allow natural grid flow - items adapt to content */

/* Gallery scrollbar */
.gallery-content::-webkit-scrollbar {
  width: 8px;
}

.gallery-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.gallery-content::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.3);
  border-radius: 4px;
}

.gallery-content::-webkit-scrollbar-thumb:hover {
  background: rgba(129, 140, 248, 0.5);
}

/* Gallery responsive */
@media (max-width: 768px) {
  .gallery-content {
    width: 95%;
    padding: 2rem 1.5rem;
    max-height: 90vh;
  }

  .gallery-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-category {
    margin-bottom: 2rem;
  }

  .gallery-category-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .gallery-category-grid {
    column-count: 2;
    column-gap: 1rem;
  }

  .gallery-image-item,
  .gallery-video-item {
    border-radius: 24px;
    padding: 0.4rem;
    margin-bottom: 1rem;
  }

  .gallery-img,
  .gallery-video {
    border-radius: 20px;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .gallery-pdf-item {
    margin-bottom: 1rem;
  }

  .gallery-image-item::before,
  .gallery-video-item::before {
    border-radius: 24px;
  }

  .gallery-image-item::after,
  .gallery-video-item::after {
    border-radius: 24px;
  }

  .gallery-header {
    margin-bottom: 2rem;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON - ARROW DESIGN
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.5rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.scroll-to-top:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Arrow design - matching discover button style */
.scroll-to-top i {
  position: relative;
  width: 3px;
  height: 20px;
  display: block;
}

/* Arrow stem - vertical line pointing up */
.scroll-to-top i::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  animation:
    bounceUp 2s ease-in-out infinite,
    arrowColorShift 8s ease-in-out infinite;
  transition: box-shadow 0.6s ease;
}

/* Arrow head - chevron pointing up */
.scroll-to-top i::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(-135deg);
  width: 8px;
  height: 8px;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-radius: 1px;
  animation: arrowColorShift 8s ease-in-out infinite;
  transition: box-shadow 0.6s ease;
}

.scroll-to-top:hover i::before,
.scroll-to-top:hover i::after {
  filter: brightness(1.2) saturate(1.1);
}

@keyframes bounceUp {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Responsive scroll button */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}

/* ============================================
   CONTACT MODAL STYLING
   ============================================ */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-modal.active {
  opacity: 1;
  pointer-events: all;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.contact-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.contact-modal:not(.active) .contact-content {
  transform: translate(-50%, -45%);
}

.contact-modal.active .contact-content {
  animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalSlideIn {
  from {
    transform: translate(-50%, -45%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.contact-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.contact-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
  color: var(--color-accent-bright);
}

.contact-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent-bright), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  font-weight: 400;
}

/* Contact content scrollbar */
.contact-content::-webkit-scrollbar {
  width: 8px;
}

.contact-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.contact-content::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.3);
  border-radius: 4px;
}

.contact-content::-webkit-scrollbar-thumb:hover {
  background: rgba(129, 140, 248, 0.5);
}

/* Contact modal responsive */
@media (max-width: 768px) {
  .contact-content {
    width: 95%;
    padding: 2rem 1.5rem;
    max-height: 90vh;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ============================================
   CONTACT OPTIONS STYLING
   ============================================ */
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.contact-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-option:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-option:hover::before {
  opacity: 1;
}

.contact-option-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-option:hover .contact-option-icon {
  transform: scale(1.1) rotate(-5deg);
}

.contact-option:first-child .contact-option-icon {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(37, 211, 102, 0.1));
  color: #25d366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.contact-option:nth-child(2) .contact-option-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.1));
  color: var(--color-accent-bright);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.contact-option:last-child .contact-option-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
  color: #ef4444;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.contact-option-icon i {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.contact-option:hover .contact-option-icon i {
  transform: scale(1.1);
}

.contact-option-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.contact-option-description {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  text-align: center;
}

/* Contact options responsive */
@media (max-width: 768px) {
  .contact-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  width: 100%;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-text {
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

.footer-text p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-link {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-bright);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--color-text);
}

.footer-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: row;
    gap: 1rem;
    font-size: 0.8rem;
  }

  .footer-text {
    font-size: 0.75rem;
  }
}

/* ============================================
   SYNTHWAVE PINBALL BUTTON
   ============================================ */
.synthwave-button-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0 60px 0;
  z-index: 10;
}

.synthwave-pinball-btn {
  position: relative;
  width: 180px;
  height: 180px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 50%),
    radial-gradient(circle at center, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
  border: 6px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  overflow: visible;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow:
    0 8px 0 0 rgba(131, 56, 236, 0.8),
    0 12px 20px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 0, 110, 0.6),
    0 0 60px rgba(131, 56, 236, 0.4),
    inset 0 -5px 10px rgba(0, 0, 0, 0.3),
    inset 0 5px 10px rgba(255, 255, 255, 0.3);
  animation: synthwave-float 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.synthwave-pinball-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 10px 0 0 rgba(131, 56, 236, 0.9),
    0 15px 30px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(255, 0, 110, 0.9),
    0 0 100px rgba(131, 56, 236, 0.7),
    0 0 150px rgba(58, 134, 255, 0.5),
    inset 0 -5px 10px rgba(0, 0, 0, 0.3),
    inset 0 5px 15px rgba(255, 255, 255, 0.5);
  animation: synthwave-float 3s ease-in-out infinite, synthwave-glow-pulse 1s ease-in-out infinite;
}

.synthwave-pinball-btn:active {
  transform: translateY(8px) scale(0.98);
  box-shadow:
    0 2px 0 0 rgba(131, 56, 236, 0.8),
    0 4px 10px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 0, 110, 1),
    0 0 50px rgba(131, 56, 236, 0.8),
    inset 0 5px 15px rgba(0, 0, 0, 0.5),
    inset 0 -3px 10px rgba(255, 255, 255, 0.2);
  transition: all 0.1s ease;
}

.synthwave-text {
  position: relative;
  z-index: 3;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 0, 110, 0.6),
    0 0 30px rgba(131, 56, 236, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.5);
  animation: synthwave-text-glow 2s ease-in-out infinite alternate;
  text-align: center;
  line-height: 1.2;
}

.synthwave-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 0, 110, 0.2) 30%,
    transparent 70%);
  animation: synthwave-glow-rotate 4s linear infinite;
  pointer-events: none;
}

.synthwave-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: synthwave-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

/* Synthwave Animations */
@keyframes synthwave-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes synthwave-bounce {
  0%, 100% {
    transform: scale(1.1) translateY(-5px);
  }
  50% {
    transform: scale(1.15) translateY(-10px);
  }
}

@keyframes synthwave-text-glow {
  0% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 0, 110, 0.6),
      0 0 30px rgba(131, 56, 236, 0.4);
  }
  100% {
    text-shadow:
      0 0 20px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 0, 110, 0.8),
      0 0 40px rgba(131, 56, 236, 0.6),
      0 0 50px rgba(58, 134, 255, 0.4);
  }
}

@keyframes synthwave-glow-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes synthwave-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes synthwave-glow-pulse {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 20px rgba(255, 0, 110, 0.6));
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 40px rgba(255, 0, 110, 1));
  }
}

/* Hide on mobile */
@media (max-width: 768px) {
  .synthwave-button-container {
    display: none;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.explore-button:focus-visible,
.island:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Skip to content for keyboard users */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: 1rem;
  z-index: 100;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}
