/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   ACCESSIBILITY STYLES
   ======================================== */

/* Skip to main content link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #111;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #86c9f7;
  outline-offset: 2px;
}

/* Focus indicators for keyboard navigation */
*:focus-visible {
  outline: 3px solid #86c9f7;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure buttons and links are keyboard accessible */
button:focus-visible,
a:focus-visible {
  outline: 3px solid #86c9f7;
  outline-offset: 3px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disable parallax and floating animations */
  .floating-shape,
  .floating-orb,
  .navbar-orb {
    animation: none !important;
  }
}

/* ========================================
   END ACCESSIBILITY STYLES
   ======================================== */


:root {
  --purple: #b08df0;
  --blue: #86c9f7;
  --pink: #f8b6d2;
  --yellow: #f7e48d;
  --black: #111;
  --white: #fafafa;
  --gradient-primary: linear-gradient(135deg, var(--purple), var(--blue));
  --gradient-secondary: linear-gradient(135deg, var(--pink), var(--yellow));
  --gradient-tertiary: linear-gradient(
    135deg,
    var(--blue),
    var(--purple),
    var(--pink)
  );
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Spline Loading Screen Overlay */
.spline-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 1s ease-out;
  overflow: hidden;
  /* Performance optimizations */
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.spline-loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spline-loader-overlay .loading-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 9999;
}

/* Loading Progress Bar - Overlaid on Spline Model */
.loading-progress {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 20px rgba(176, 141, 240, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10001;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--pink));
  border-radius: 20px;
  animation: loadingProgress 15s linear forwards;
  box-shadow: 0 0 20px rgba(176, 141, 240, 0.8),
    0 0 40px rgba(134, 201, 247, 0.6),
    0 0 60px rgba(248, 182, 210, 0.4);
  position: relative;
}

.loading-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive Loading Bar */
@media (max-width: 768px) {
  .loading-progress {
    width: 80%;
    max-width: 300px;
  }
}

/* Spline Watermark Cover */
.spline-watermark-cover {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10005;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 24px; /* Larger padding to cover more area */
  border-radius: 40px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Pre-Loader Specific Styles */
.pre-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10010;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.pre-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* New Animated Text Loader */
.loader-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  width: auto;
  margin: 2rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.6em;
  font-weight: 600;
  user-select: none;
  color: #fff;
  transform: scale(2); /* Use transform instead of scale for better compatibility */
}

.loader-effect {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  background-color: transparent;
  mask: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 6px,
    black 7px,
    black 8px
  );
  -webkit-mask: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 6px,
    black 7px,
    black 8px
  );
}

.loader-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, #ff0 0%, transparent 50%),
    radial-gradient(circle at 45% 45%, #f00 0%, transparent 45%),
    radial-gradient(circle at 55% 55%, #0ff 0%, transparent 45%),
    radial-gradient(circle at 45% 55%, #0f0 0%, transparent 45%),
    radial-gradient(circle at 55% 45%, #00f 0%, transparent 45%);
  mask: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    transparent 10%,
    black 25%
  );
  -webkit-mask: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    transparent 10%,
    black 25%
  );
  animation:
    transform-animation 2s infinite alternate,
    opacity-animation 4s infinite;
  animation-timing-function: cubic-bezier(0.6, 0.8, 0.5, 1);
}

@keyframes transform-animation {
  0% { transform: translate(-55%); }
  100% { transform: translate(55%); }
}

@keyframes opacity-animation {
  0%, 100% { opacity: 0; }
  15% { opacity: 1; }
  65% { opacity: 0; }
}

.loader-letter {
  display: inline-block;
  opacity: 0;
  animation: loader-letter-anim 4s infinite linear;
  z-index: 2;
}

.loader-letter:nth-child(1) { animation-delay: 0.1s; }
.loader-letter:nth-child(2) { animation-delay: 0.205s; }
.loader-letter:nth-child(3) { animation-delay: 0.31s; }
.loader-letter:nth-child(4) { animation-delay: 0.415s; }
.loader-letter:nth-child(5) { animation-delay: 0.521s; }
.loader-letter:nth-child(6) { animation-delay: 0.626s; }
.loader-letter:nth-child(7) { animation-delay: 0.731s; }
.loader-letter:nth-child(8) { animation-delay: 0.837s; }
.loader-letter:nth-child(9) { animation-delay: 0.942s; }
.loader-letter:nth-child(10) { animation-delay: 1.047s; }
.loader-letter:nth-child(11) { animation-delay: 1.152s; }
.loader-letter:nth-child(12) { animation-delay: 1.257s; }

@keyframes loader-letter-anim {
  0% { opacity: 0; }
  5% {
    opacity: 1;
    text-shadow: 0 0 4px #fff;
    transform: scale(1.1) translateY(-2px);
  }
  20% { opacity: 0.2; }
  100% { opacity: 0; }
}

/* Ultra-Premium Floating Glass Panel Navbar */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 1450px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 30px;
  z-index: 1000;
  padding: 1.2rem 0;
  box-shadow: 0 20px 60px rgba(176, 141, 240, 0.15),
    0 8px 32px rgba(134, 201, 247, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 40px rgba(248, 182, 210, 0.08);
  position: relative;
  overflow: hidden;
  animation: navbarFloat 6s ease-in-out infinite;
  /* Performance optimizations */
  will-change: transform, box-shadow;
  contain: layout style;
}

/* Dreamy 3D Lighting Effects */
.navbar::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(176, 141, 240, 0.4),
    rgba(134, 201, 247, 0.4),
    rgba(248, 182, 210, 0.4),
    rgba(247, 228, 141, 0.3),
    rgba(176, 141, 240, 0.4)
  );
  border-radius: 32px;
  z-index: -1;
  animation: borderGlow 4s ease-in-out infinite;
}

/* Enhanced Shimmer Effect */
.navbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    rgba(176, 141, 240, 0.2),
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: premiumShimmer 5s infinite;
  border-radius: 30px;
}

/* Floating Animation */
@keyframes navbarFloat {
  0%,
  100% {
    transform: translate3d(-50%, 0px, 0) rotateX(0deg);
    filter: brightness(1);
  }
  33% {
    transform: translate3d(-50%, -3px, 0) rotateX(1deg);
    filter: brightness(1.05);
  }
  66% {
    transform: translate3d(-50%, 2px, 0) rotateX(-0.5deg);
    filter: brightness(1.02);
  }
}

/* Border Glow Animation */
@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.6;
    filter: blur(1px);
  }
  50% {
    opacity: 1;
    filter: blur(2px);
  }
}

/* Premium Shimmer */
@keyframes premiumShimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Right Vertical Nav */
.right-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.right-nav.visible {
  opacity: 1;
  visibility: visible;
}

.right-nav-link {
  color: var(--white);
  font-size: 1.1rem;
  text-decoration: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.right-nav-link:hover,
.right-nav-link.active {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--purple);
}

.right-nav-link::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 120%;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.right-nav-link:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Floating Pastel Orbs for Visual Depth */
.navbar-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 30px;
}

.navbar-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: orbFloat 8s ease-in-out infinite;
}

.navbar-orb:nth-child(1) {
  width: 12px;
  height: 12px;
  background: radial-gradient(
    circle,
    rgba(176, 141, 240, 0.8),
    transparent 70%
  );
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.navbar-orb:nth-child(2) {
  width: 8px;
  height: 8px;
  background: radial-gradient(
    circle,
    rgba(134, 201, 247, 0.7),
    transparent 70%
  );
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.navbar-orb:nth-child(3) {
  width: 10px;
  height: 10px;
  background: radial-gradient(
    circle,
    rgba(248, 182, 210, 0.6),
    transparent 70%
  );
  bottom: 25%;
  left: 70%;
  animation-delay: 4s;
}

.navbar-orb:nth-child(4) {
  width: 6px;
  height: 6px;
  background: radial-gradient(
    circle,
    rgba(247, 228, 141, 0.8),
    transparent 70%
  );
  top: 40%;
  left: 40%;
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate3d(4px, -8px, 0) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(-6px, -4px, 0) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate3d(8px, 6px, 0) scale(1.05);
    opacity: 0.7;
  }
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #1a1a1a, #555, #1a1a1a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoGlow 4s linear infinite;
}

@keyframes logoGlow {
  to { background-position: 200% center; }
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 0 10px rgba(176, 141, 240, 0.5);
}

.logo-text:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: #2a2a2a;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Hover-Reactive Neon Underlines */
.nav-link::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(176, 141, 240, 0.8),
    rgba(134, 201, 247, 0.9),
    rgba(248, 182, 210, 0.8)
  );
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(176, 141, 240, 0.5);
  filter: blur(0.5px);
}

.nav-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(176, 141, 240, 0.15),
    rgba(134, 201, 247, 0.1),
    transparent 70%
  );
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  z-index: -1;
}

.nav-link:hover {
  color: #1a1a1a;
  text-shadow: 0 0 15px rgba(176, 141, 240, 0.6),
    0 0 30px rgba(134, 201, 247, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.nav-link:hover::before {
  width: 110%;
  height: 4px;
  box-shadow: 0 0 20px rgba(176, 141, 240, 0.8),
    0 0 40px rgba(134, 201, 247, 0.4), 0 4px 8px rgba(176, 141, 240, 0.3);
  filter: blur(0px);
  animation: neonPulse 1.5s ease-in-out infinite;
}

.nav-link:hover::after {
  width: 150%;
  height: 150%;
}

/* Neon Pulse Animation */
@keyframes neonPulse {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) scaleX(1.05);
  }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Space between icons */
  margin-right: 1rem; /* Space between icons and button */
}

.nav-icon {
  color: #2a2a2a;
  font-size: 1.2rem; /* Icon size */
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-icon:hover {
  color: var(--purple);
  transform: translateY(-2px);
}

.nav-logo-right {
  height: 48px;
  width: 48px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px;
  object-fit: contain;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.nav-logo-right:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px var(--blue));
  background-color: rgba(255, 255, 255, 0.4);
}

/* Premium CTA Button with Gradient Glow and Pulse */
.join-btn {
  background: linear-gradient(
    135deg,
    rgba(176, 141, 240, 0.9),
    rgba(134, 201, 247, 0.9),
    rgba(248, 182, 210, 0.8)
  );
  color: white;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(176, 141, 240, 0.4),
    0 4px 15px rgba(134, 201, 247, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.3);
  animation: ctaPulse 3s ease-in-out infinite;
  text-decoration: none;
  display: inline-block;
}

/* CTA Pulse Animation */
@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 8px 30px rgba(176, 141, 240, 0.4),
      0 4px 15px rgba(134, 201, 247, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 12px 40px rgba(176, 141, 240, 0.6),
      0 6px 20px rgba(134, 201, 247, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 30px rgba(248, 182, 210, 0.3);
  }
}

.join-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    rgba(176, 141, 240, 0.2),
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.join-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3),
    rgba(176, 141, 240, 0.1),
    transparent 70%
  );
  transition: all 0.4s ease;
  border-radius: 50%;
  z-index: 1;
}

.join-btn:hover {
  transform: translateY(-4px) scale(1.08);
  background: linear-gradient(
    135deg,
    rgba(196, 171, 250, 1),
    rgba(154, 221, 247, 1),
    rgba(255, 202, 230, 0.9)
  );
  box-shadow: 0 15px 50px rgba(176, 141, 240, 0.6),
    0 8px 25px rgba(134, 201, 247, 0.4), 0 0 40px rgba(248, 182, 210, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 0 0 2px rgba(255, 255, 255, 0.3);
  animation: ctaHoverPulse 0.8s ease-in-out infinite;
}

@keyframes ctaHoverPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
}

.join-btn:hover::before {
  left: 100%;
}

.join-btn:hover::after {
  width: 250%;
  height: 250%;
}

.join-btn:active {
  transform: translateY(-2px) scale(1.05);
}

/* CSS Read Only */
/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 6rem 2rem 4rem;
  position: relative;
  background: linear-gradient(135deg, #fafafa 0%, #f0f4ff 50%, #fff0f8 100%);
  overflow: hidden;
}

/* Background Orbs for Glassmorphism Enhancement */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(176, 141, 240, 0.1),
    transparent 70%
  );
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -15%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(134, 201, 247, 0.08),
    transparent 70%
  );
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  z-index: 1;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -2px;
  line-height: 0.9;
  margin-bottom: 1rem;
  position: relative;
  display: block;
  overflow: hidden;
  animation: heroTitleReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Kept the entrance animation but removed the extreme styling */
@keyframes heroTitleReveal {
  from {
    transform: translateY(100%) skewY(5deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) skewY(0deg);
    opacity: 1;
  }
}

.hero-tagline {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--purple);
  margin-bottom: 2rem;
  letter-spacing: 4px;
}

.hero-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(176, 141, 240, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--purple);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--purple);
  color: white;
  transform: translateY(-3px);
}

/* 3D Model Container - Free Floating */
.hero-3d-model {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transform: translateX(-60px);
}

/* Glow Background for Phoenix */
.hero-3d-model::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle at center,
    rgba(176, 141, 240, 0.15) 0%,
    rgba(248, 182, 210, 0.12) 30%,
    rgba(134, 201, 247, 0.08) 60%,
    transparent 80%
  );
  border-radius: 50%;
  z-index: -1;
  animation: phoenixGlow 8s ease-in-out infinite;
}

@keyframes phoenixGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.phoenix-model {
  width: 100%;
  height: 100%;
  max-width: 504px;
  max-height: 504px;
  background: transparent !important;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  animation: phoenixFloat 12s ease-in-out infinite;
  --poster-color: transparent;
  --progress-bar-color: transparent;
  --progress-mask: transparent;
}

/* Remove any default model-viewer styling that causes black bars */
model-viewer {
  background-color: transparent !important;
  --poster-color: transparent !important;
  --progress-bar-color: transparent !important;
  --progress-mask: transparent !important;
}

model-viewer::part(default-progress-mask) {
  display: none;
}

model-viewer::part(default-progress-bar) {
  display: none;
}

.phoenix-model:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 30px rgba(255, 100, 50, 0.6))
    drop-shadow(0 0 60px rgba(255, 150, 100, 0.4));
}

@keyframes phoenixFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotateZ(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotateZ(2deg);
  }
  50% {
    transform: translateY(-10px) translateX(-5px) rotateZ(-1deg);
  }
  75% {
    transform: translateY(-25px) translateX(15px) rotateZ(3deg);
  }
}

/* Floating Shapes */
.hero-visual {
  position: relative;
  height: 500px;
  min-height: 500px; /* Forced for WebGL */
  min-width: 300px;
  will-change: transform;
  contain: layout style;
}

.visual-model-section {
    position: relative;
    height: 100vh;
    width: 100%;
    min-height: 400px; /* Forced for WebGL stability */
    overflow: hidden;
    /* Removed restrictive contain/will-change for sticky support */
    background: #fdfdfd;
}

/* --- PREMIUM SCROLL REVEAL SECTION --- */
/* Scroll container provides the track distance */
.scroll-track {
  height: 300vh; /* Balanced height for speed and clear transitions */
  position: relative;
  z-index: 10;
}

#visual-model.sticky-container {
  height: 100vh;
  position: sticky;
  position: -webkit-sticky; /* Safari support */
  top: 0;
  overflow: hidden;
  background: black;
  background: url('../assets/elements/aura.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

/* Overlay for text */
.scrolling-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.text-frame {
  position: absolute; /* Stacked on top of each other */
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 850;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  opacity: 0;
  transform: scale(0.7) translateY(100px) rotateX(45deg);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  /* Premium effects */
  mix-blend-mode: color-dodge;
  text-shadow: 
    0 0 20px rgba(255,255,255,0.4),
    0 0 40px rgba(176,141,240,0.2);
  will-change: opacity, transform, filter;
  filter: blur(20px);
  z-index: 100; /* Ensure text stays above the sliding overlap until it's gone */
}

/* Active State Design */
.text-frame.active {
  opacity: 1;
  transform: scale(1) translateY(0) rotateX(0deg);
  filter: blur(0);
}

.text-frame.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  animation: glintOnce 1s ease-out forwards;
}

@keyframes glintOnce {
  from { left: -100%; }
  to { left: 200%; }
}

/* Hidden state for exit */
.text-frame.exit {
  opacity: 0;
  transform: scale(1.2) translateY(-100px) rotateX(-45deg);
  filter: blur(40px);
}

.floating-shape {
  position: absolute;
  border-radius: 50% 30% 70% 40%;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: var(--gradient-primary);
  top: 10%;
  right: 20%;
  animation-delay: 0s;
  opacity: 0.8;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: var(--gradient-secondary);
  top: 60%;
  right: 10%;
  animation-delay: 2s;
  opacity: 0.7;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: var(--gradient-tertiary);
  top: 30%;
  right: 60%;
  animation-delay: 4s;
  opacity: 0.6;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    var(--blue)
  );
  animation: orbit 8s linear infinite;
  will-change: transform;
}

.orb-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 40%;
}

.orb-2 {
  width: 60px;
  height: 60px;
  top: 70%;
  right: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -20px, 0) rotate(5deg);
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(50px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

/* Feature Cards */
.feature-cards {
  display: flex !important;
  justify-content: center;
  gap: 2rem;
  margin-top: 5rem;
  padding: 10rem 2rem;
  position: relative;
  z-index: 10;
  will-change: transform, opacity;
}

.feature-card-link {
  text-decoration: none;
  flex: 1;
  max-width: 400px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 30px;
  text-align: left;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(176, 141, 240, 0.2);
}

.feature-card.highlight {
  background: var(--gradient-primary);
  color: white;
}

.card-icon {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--purple); /* Default purple for white cards */
}

.feature-card.highlight .card-icon {
  color: white; /* Contrast for the gradient card */
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.card-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

/* INDUSTRY PREMIUM: Masked SVG Button */
.masked-btn {
  border: none;
  position: relative;
  width: 200px;
  height: 73px;
  padding: 0;
  z-index: 2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='868' width='2500' viewBox='0 0 726 252.17'%3E%3Cpath d='M483.92 0S481.38 24.71 466 40.11c-11.74 11.74-24.09 12.66-40.26 15.07-9.42 1.41-29.7 3.77-34.81-.79-2.37-2.11-3-21-3.22-27.62-.21-6.92-1.36-16.52-2.82-18-.75 3.06-2.49 11.53-3.09 13.61S378.49 34.3 378 36a85.13 85.13 0 0 0-30.09 0c-.46-1.67-3.17-11.48-3.77-13.56s-2.34-10.55-3.09-13.61c-1.45 1.45-2.61 11.05-2.82 18-.21 6.67-.84 25.51-3.22 27.62-5.11 4.56-25.38 2.2-34.8.79-16.16-2.47-28.51-3.39-40.21-15.13C244.57 24.71 242 0 242 0H0s69.52 22.74 97.52 68.59c16.56 27.11 14.14 58.49 9.92 74.73C170 140 221.46 140 273 158.57c69.23 24.93 83.2 76.19 90 93.6 6.77-17.41 20.75-68.67 90-93.6 51.54-18.56 103-18.59 165.56-15.25-4.21-16.24-6.63-47.62 9.93-74.73C656.43 22.74 726 0 726 0z'/%3E%3C/svg%3E") no-repeat 50% 50%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='868' width='2500' viewBox='0 0 726 252.17'%3E%3Cpath d='M483.92 0S481.38 24.71 466 40.11c-11.74 11.74-24.09 12.66-40.26 15.07-9.42 1.41-29.7 3.77-34.81-.79-2.37-2.11-3-21-3.22-27.62-.21-6.92-1.36-16.52-2.82-18-.75 3.06-2.49 11.53-3.09 13.61S378.49 34.3 378 36a85.13 85.13 0 0 0-30.09 0c-.46-1.67-3.17-11.48-3.77-13.56s-2.34-10.55-3.09-13.61c-1.45 1.45-2.61 11.05-2.82 18-.21 6.67-.84 25.51-3.22 27.62-5.11 4.56-25.38 2.2-34.8.79-16.16-2.47-28.51-3.39-40.21-15.13C244.57 24.71 242 0 242 0H0s69.52 22.74 97.52 68.59c16.56 27.11 14.14 58.49 9.92 74.73C170 140 221.46 140 273 158.57c69.23 24.93 83.2 76.19 90 93.6 6.77-17.41 20.75-68.67 90-93.6 51.54-18.56 103-18.59 165.56-15.25-4.21-16.24-6.63-47.62 9.93-74.73C656.43 22.74 726 0 726 0z'/%3E%3C/svg%3E") no-repeat 50% 50%;
  -webkit-mask-size: 100%;
  mask-size: 100%;
  cursor: pointer;
  background-color: transparent;
  transform: translate(-15px, 8px);
  margin-top: auto;
  align-self: flex-start;
  transition: all 0.4s ease;
}

.masked-btn:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0px 0 0 0 white;
  transition: all 2s ease;
}

.masked-btn:hover:after {
  box-shadow: 0px -13px 56px 12px #ffffffa6;
}

.masked-btn span {
  position: absolute;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  left: 50%;
  top: 39%;
  letter-spacing: 3px;
  text-align: center;
  transform: translate(-50%,-50%);
  color: #1a1a1a;
  transition: all 1s ease;
  z-index: 5;
}

.masked-btn:hover span {
  color: white;
}

.masked-btn:before {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  background-color: #1a1a1a;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 1s ease;
  z-index: 1;
}

.masked-btn:hover:before {
  width: 100%;
}

.card-btn-link {
  text-decoration: none !important;
  display: contents; /* Ensure the link doesn't affect the flex layout of the card */
}

.feature-card:hover .card-btn {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(176, 141, 240, 0.4);
}

/* INDUSTRY PREMIUM: Mario-Style Animated Button */
.mario-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  height: 45px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  text-transform: uppercase;
  cursor: pointer;
  border: solid 2px black;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 15px;
  background-color: hsl(49, 98%, 60%);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none !important;
}

.mario-btn:active {
  transform: scale(0.9);
  transition: all 100ms ease;
}

.mario-btn svg {
  transition: all 0.5s ease;
  z-index: 2;
  width: 28px;
  height: 28px;
}

.mario-btn .play {
  transition: all 0.5s ease;
  transition-delay: 300ms;
}

.mario-btn:hover svg {
  transform: scale(2.8) translate(40%);
}

.mario-btn .now {
  position: absolute;
  left: 0;
  transform: translateX(-100%);
  transition: all 0.5s ease;
  z-index: 2;
}

.mario-btn:hover .now {
  transform: translateX(12px);
  transition-delay: 300ms;
}

.mario-btn:hover .play {
  transform: translateX(200%);
  transition-delay: 300ms;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #2a2a2a 0%,
    rgb(176, 141, 240) 25%,
    rgb(134, 201, 247) 50%,
    rgb(248, 182, 210) 75%,
    #2a2a2a 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 3;
  text-shadow: 0 4px 8px rgba(176, 141, 240, 0.2);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%,
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.1);
  }
}

.section-subtitle {
  font-size: 1.4rem;
  color: #4a4a4a;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Elite Startup Style - "The Collective" Theme */
.about {
  padding: 8rem 0 6rem;
  background: linear-gradient(180deg, #fcfcfd 0%, #f3f4f7 100%);
  position: relative;
  z-index: 10; /* Slide over the sticky section */
  overflow: hidden;
}

/* Force disable all white fog overlays */
.about::before,
.about::after,
.features::before,
.features::after,
.achievements::before,
.achievements::after,
.community::before,
.community::after {
  display: none !important;
  background: transparent !important;
  border: none !important;
}

/* Subtle Lavender/Blue Mesh Background */
.about::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 80% 20%,
      rgba(99, 102, 241, 0.03) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(139, 92, 246, 0.03) 0%,
      transparent 40%
    );
  z-index: 1;
  pointer-events: none;
}

/* --- NEW PREMIUM ELITE CARDS (Running Dot Style) --- */

.about-elite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  position: relative;
  z-index: 3;
}

.elite-card-outer {
  width: 100%;
  min-height: 280px;
  border-radius: 20px;
  padding: 1px;
  background: radial-gradient(circle 230px at 0% 0%, rgba(255,255,255,0.2), #0c0d0d);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* About Section OVERLAP FIX */
.about {
  padding: 6rem 0;
  position: relative;
  /* Overlap the sticky section */
  margin-top: -100vh;
  z-index: 30;
  background: white; /* Ensure opacity */
  /* Add shadow for depth */
  box-shadow: 0 -50px 100px rgba(0,0,0,0.1);
}

/* Ensure subsequent sections also cover the sticky background */
.features, .community, .resources, .footer, #visual-model-2 {
    position: relative;
    z-index: 30 !important;
    background: white; /* Ensure no transparency bleed */
}

.elite-card-outer:hover {
  transform: translateY(-8px);
}

.elite-card-dot {
  width: 6px;
  aspect-ratio: 1;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 0 15px #ffffff;
  border-radius: 100px;
  z-index: 2;
  right: 10%;
  top: 10%;
  animation: moveDot 6s linear infinite;
}

@keyframes moveDot {
  0%, 100% { top: 10%; right: 10%; }
  25% { top: 10%; right: calc(100% - 35px); }
  50% { top: calc(100% - 30px); right: calc(100% - 35px); }
  75% { top: calc(100% - 30px); right: 10%; }
}

.elite-card-inner {
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 19px;
  background: radial-gradient(circle 280px at 0% 0%, #1e2020, #0c0d0d);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  flex-direction: column;
  padding: 2.5rem;
  color: #fff;
  border: solid 1px rgba(255,255,255,0.05);
}

.elite-card-ray {
  width: 220px;
  height: 45px;
  border-radius: 100px;
  position: absolute;
  background-color: #fff;
  opacity: 0.1;
  box-shadow: 0 0 50px #fff;
  filter: blur(20px);
  transform-origin: 10%;
  top: 0%;
  left: 0;
  transform: rotate(40deg);
  pointer-events: none;
}

.elite-card-line {
  width: 100%;
  height: 1px;
  position: absolute;
  background-color: rgba(255,255,255,0.05);
  pointer-events: none;
}
.topl { top: 10%; background: linear-gradient(90deg, rgba(255,255,255,0.1) 30%, transparent 70%); }
.bottoml { bottom: 10%; background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.1) 70%); }
.leftl { 
  left: 10%; width: 1px; height: 100%; 
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 30%, transparent 70%); 
}
.rightl { 
  right: 10%; width: 1px; height: 100%; 
  background: linear-gradient(180deg, transparent 30%, rgba(255,255,255,0.1) 70%); 
}

.elite-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.elite-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.elite-card-inner h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  font-family: 'Space Grotesk', sans-serif;
}

.elite-card-inner p {
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
  font-weight: 400;
}

/* Adjust Section Header for Elite Look */
.about .section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.about .section-title {
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: #0f172a;
  text-shadow: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.about .section-subtitle {
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 1rem;
  text-transform: uppercase;
  background: none; 
  opacity: 1;
}

@media (max-width: 768px) {
  .about-elite-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-unified-card {
    padding: 2.5rem 2rem;
  }
  
  .about-point {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .point-icon {
    margin-bottom: 0.5rem;
  }
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--purple);
}

.founders-grid h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

/* Premium Leaders Section with Advanced Glassmorphism */
.leaders-grid {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 800px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(176, 141, 240, 0.05) 50%,
    rgba(134, 201, 247, 0.03) 100%
  );
  border-radius: 40px;
  margin: 4rem 0;
}

.leaders-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(176, 141, 240, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(134, 201, 247, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(248, 182, 210, 0.04) 0%,
      transparent 50%
    );
  animation: leadersBgShift 25s ease-in-out infinite;
  z-index: 1;
}

@keyframes leadersBgShift {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: rotate(1deg) scale(1.02);
    opacity: 0.8;
  }
  66% {
    transform: rotate(-0.5deg) scale(0.98);
    opacity: 0.7;
  }
}

.leaders-grid h3 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(
    135deg,
    rgb(176, 141, 240) 0%,
    rgb(134, 201, 247) 50%,
    rgb(248, 182, 210) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 3;
  letter-spacing: -1px;
  text-shadow: 0 4px 12px rgba(176, 141, 240, 0.3);
}

.founder-background-model {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1400px;
  height: 1100px;
  z-index: 1;
  opacity: 0.35;
  pointer-events: none;
  filter: blur(0.5px) brightness(1.4) contrast(1.1);
  animation: modelFloat 15s ease-in-out infinite;
  mix-blend-mode: multiply;
}

@keyframes modelFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotateY(0deg) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(-50%, -50%) rotateY(5deg) scale(1.05);
    opacity: 0.45;
  }
}

.leaders-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  padding: 2rem;
}

.leader-card {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(176, 141, 240, 0.12),
    0 8px 32px rgba(134, 201, 247, 0.08), inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  animation: cardFloat 10s ease-in-out infinite;
  animation-delay: calc(var(--card-index, 0) * 0.5s);
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0px) rotateX(0deg);
    box-shadow: 0 20px 60px rgba(176, 141, 240, 0.08),
      0 8px 32px rgba(134, 201, 247, 0.06),
      inset 0 2px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 30px 80px rgba(176, 141, 240, 0.12),
      0 12px 40px rgba(134, 201, 247, 0.08),
      inset 0 2px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  }
}

.leader-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(176, 141, 240, 0.4),
    rgba(134, 201, 247, 0.4),
    rgba(248, 182, 210, 0.4),
    rgba(247, 228, 141, 0.3),
    rgba(176, 141, 240, 0.4)
  );
  border-radius: 27px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(1px);
}

.leader-card:hover {
  transform: translateY(-15px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 40px 100px rgba(176, 141, 240, 0.15),
    0 16px 50px rgba(134, 201, 247, 0.1), 0 0 40px rgba(248, 182, 210, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}

.leader-card:hover::before {
  opacity: 1;
  animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
  0%,
  100% {
    opacity: 0.6;
    filter: blur(1px);
  }
  50% {
    opacity: 1;
    filter: blur(2px);
  }
}

/* Premium Leader Avatar Styling */
.leader-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(176, 141, 240, 0.2),
    rgba(134, 201, 247, 0.2),
    rgba(248, 182, 210, 0.2)
  );
  padding: 4px;
  transition: all 0.4s ease;
}

.leader-avatar::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(
    45deg,
    rgba(176, 141, 240, 0.6),
    rgba(134, 201, 247, 0.6),
    rgba(248, 182, 210, 0.6),
    rgba(247, 228, 141, 0.4),
    rgba(176, 141, 240, 0.6)
  );
  border-radius: 50%;
  z-index: -1;
  animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
    filter: blur(2px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(3px);
  }
}

.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.leader-card:hover .leader-avatar {
  transform: scale(1.1);
}

.leader-card:hover .leader-avatar::before {
  animation-duration: 1.5s;
  opacity: 1;
  transform: scale(1.1);
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle,
    rgba(176, 141, 240, 0.3) 0%,
    rgba(134, 201, 247, 0.2) 30%,
    rgba(248, 182, 210, 0.1) 60%,
    transparent 80%
  );
  border-radius: 50%;
  z-index: 1;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Premium Leader Info Styling */
.leader-info {
  position: relative;
  z-index: 3;
}

.leader-info h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2a2a2a;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leader-role {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #4a4a4a;
  font-weight: 500;
  line-height: 1.4;
}

.leader-description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Enhanced Highlight tag for Co-Founder & Lead */
.highlight-tag {
  background: linear-gradient(
    135deg,
    rgb(176, 141, 240) 0%,
    rgb(134, 201, 247) 50%,
    rgb(248, 182, 210) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(176, 141, 240, 0.5);
  position: relative;
  animation: highlightShimmer 3s ease-in-out infinite;
}

@keyframes highlightShimmer {
  0%,
  100% {
    filter: brightness(1);
    text-shadow: 0 0 12px rgba(176, 141, 240, 0.5);
  }
  50% {
    filter: brightness(1.2);
    text-shadow: 0 0 20px rgba(176, 141, 240, 0.8);
  }
}

/* Premium Social Links */
.leader-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.leader-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #4a4a4a;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.leader-social a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(176, 141, 240, 0.3) 0%,
    rgba(134, 201, 247, 0.2) 50%,
    transparent 70%
  );
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: -1;
}

.leader-social a:hover {
  transform: translateY(-3px) scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  color: rgb(176, 141, 240);
  box-shadow: 0 8px 25px rgba(176, 141, 240, 0.2),
    0 4px 12px rgba(134, 201, 247, 0.1);
}

.leader-social a:hover::before {
  width: 100%;
  height: 100%;
}

/* Achievements Section (Formerly Features) */
.achievements, .features {
  padding: 2rem 0 6rem;
  background: transparent;
  position: relative;
  z-index: 10;
  overflow: visible;
}

/* Redundant edge fade removal */
.achievements::before, .features::before {
  display: none !important;
}

/* ... existing styles ... */

/* Force clean background for card section */
.community {
  padding: 6rem 0;
  background: transparent;
  position: relative;
  z-index: 10;
}

/* Removed fog overlay */
.community::before {
  display: none;
}

/* ... existing styles ... */

/* Resources Section */
.resources {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff0f8 100%);
  position: relative;
  z-index: 10;
}

/* ... existing styles ... */

/* Footer */
.footer {
  background: var(--black);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 20; /* Ensure footer is always on top */
}

.achievement-grid {
  display: flex !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 4rem;
}

/* 3D Glass Card System */
.glass-parent {
  width: 290px;
  height: 300px;
  perspective: 1000px;
  position: relative;
}

.glass-card {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
  transition: all 0.5s ease-in-out;
  transform-style: preserve-3d;
  box-shadow:
    rgba(37, 5, 71, 0) 40px 50px 25px -40px,
    rgba(34, 5, 71, 0.2) 0px 25px 25px -5px;
  position: relative;
  z-index: 1;
}

.glass-card.highlight-variant-1 {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.glass-card.highlight-variant-2 {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

.glass-layer {
  transform-style: preserve-3d;
  position: absolute;
  inset: 8px;
  border-radius: 55px;
  border-top-right-radius: 100%;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translate3d(0px, 0px, 25px);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.5s ease-in-out;
}

.glass-content {
  padding: 100px 40px 0px 30px;
  transform: translate3d(0, 0, 26px);
  position: relative;
  z-index: 10;
  text-align: left; /* Reset from center */
}

.glass-content .glass-title {
  display: block;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
}

.glass-content .glass-text {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-top: 15px;
  line-height: 1.4;
}

.glass-bottom {
  padding: 10px 12px;
  transform-style: preserve-3d;
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translate3d(0, 0, 26px);
  z-index: 10;
}

.glass-social-container {
  display: flex;
  gap: 10px;
  transform-style: preserve-3d;
}

.glass-social-button {
  width: 32px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-content: center;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.glass-social-button:hover {
  background: white;
  color: var(--black);
  transform: scale(1.1) translate3d(0, 0, 20px);
}

.glass-logo {
  position: absolute;
  right: 0;
  top: 0;
  transform-style: preserve-3d;
  z-index: 5;
}

.glass-circle {
  display: block;
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 0;
  right: 0;
  box-shadow: rgba(100, 100, 111, 0.1) -10px 10px 20px 0px;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.5s ease-in-out;
}

.circle1 { width: 170px; transform: translate3d(0, 0, 20px); top: 8px; right: 8px; }
.circle2 { width: 140px; transform: translate3d(0, 0, 40px); top: 10px; right: 10px; transition-delay: 0.1s; }
.circle3 { width: 110px; transform: translate3d(0, 0, 60px); top: 17px; right: 17px; transition-delay: 0.2s; }
.circle4 { width: 80px; transform: translate3d(0, 0, 80px); top: 23px; right: 23px; transition-delay: 0.3s; }
.circle5 {
  width: 50px;
  transform: translate3d(0, 0, 100px);
  top: 30px;
  right: 30px;
  display: grid;
  place-content: center;
  transition-delay: 0.4s;
  background: white;
  color: #3f5efb;
  font-size: 1.2rem;
}

.glass-parent:hover .glass-card {
  transform: rotate3d(1, 1, 0, 15deg);
  box-shadow:
    rgba(28, 5, 71, 0.3) 30px 50px 25px -40px,
    rgba(28, 5, 71, 0.3) 0px 25px 30px 0px;
}

.glass-parent:hover .circle2 { transform: translate3d(0, 0, 60px); background: rgba(255, 255, 255, 0.2); }
.glass-parent:hover .circle3 { transform: translate3d(0, 0, 80px); background: rgba(255, 255, 255, 0.3); }
.glass-parent:hover .circle4 { transform: translate3d(0, 0, 100px); background: rgba(255, 255, 255, 0.4); }
.glass-parent:hover .circle5 { transform: translate3d(0, 0, 120px); }

/* Background Shapes */
.floating-shapes-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bg-shape {
  position: absolute;
  border-radius: 50% 30% 70% 40%;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.shape-bg-1 {
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-bg-2 {
  width: 200px;
  height: 200px;
  background: var(--gradient-secondary);
  top: 60%;
  right: 10%;
  animation-delay: 3s;
}

.shape-bg-3 {
  width: 150px;
  height: 150px;
  background: var(--gradient-tertiary);
  bottom: 20%;
  left: 50%;
  animation-delay: 6s;
}

/* Community Section */
.community {
  padding: 6rem 0;
  background: white;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}

.member-card {
  display: flex;
  align-items: center;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--purple);
}

.member-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(176, 141, 240, 0.2);
  border-left-color: var(--blue);
}

.rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
  margin-right: 1.5rem;
  min-width: 50px;
}

.member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin-right: 1.5rem;
}

.member-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.member-info p {
  color: #666;
  font-size: 0.9rem;
}

.member-stats {
  color: var(--purple);
  font-weight: 600;
  margin-top: 0.5rem;
}

.join-community {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Adjusted for side-by-side cards */
  gap: 4rem;
  align-items: center;
  background: var(--gradient-tertiary);
  padding: 4rem;
  border-radius: 40px;
  color: #000; /* Black text */
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(176, 141, 240, 0.2);
}

.join-content {
    text-align: left;
}

.join-content h3 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: #000; /* Ensure black */
}

.join-content p {
    color: #000; /* Black tagline */
    font-weight: 500;
}

.join-content .btn-primary {
    color: #000 !important; /* Black button text */
    font-weight: 700;
}

/* Layered Social Card Design */
.social-card-right {
  display: flex;
  justify-content: flex-end;
  perspective: 1000px;
}

.layered-card {
  position: relative;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2em;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1em 3em 0px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.layered-card .card-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 100% 107%,
    #ff89cc 0%,
    #9cb8ec 30%,
    #00ffee 60%,
    #62c2fe 100%
  );
  opacity: 0.8;
}

.layered-card .card-logo {
  position: absolute;
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 5;
}

.layered-card .card-logo i {
  color: #fff;
  font-size: 3.5rem;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.layered-box {
  position: absolute;
  padding: 1em;
  text-align: right;
  background: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10% 13% 42% 0%/10% 12% 75% 0%;
  box-shadow: rgba(0, 0, 0, 0.2) -0.8em 0.8em 2em 0px;
  transform-origin: bottom left;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(5px);
  z-index: 2;
}

.layered-box .social-icon {
    font-size: 1.5rem;
    color: white;
    transition: all 0.5s ease;
}

/* Handles visible on common card state */
.card-handles-front {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 4;
  transition: all 0.4s ease;
  opacity: 1;
}

.card-handles-front span {
  color: #000; /* Black text */
  font-size: 0.8rem;
  font-weight: 600; /* Slightly bolder for black text legibility */
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.4); /* Lighter background for black text */
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
  backdrop-filter: blur(5px);
}

.layered-card:hover .card-handles-front {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Upper Social Info */
.card-handles-top {
  position: absolute;
  left: 2rem;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 4;
  transition: all 0.4s ease;
  opacity: 1;
}

.card-handles-top span {
  color: #000; /* Black text */
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.3); /* Lighter background */
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  backdrop-filter: blur(5px);
  border-left: 2px solid #000; /* Black border accent */
}

.layered-card:hover .card-handles-top {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.layered-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: all 0.5s ease;
}

.layered-box1 { width: 75%; height: 75%; bottom: -75%; left: -75%; }
.layered-box1::before {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%,#ff53d4 60%,#62c2fe 90%);
}

.layered-box2 { width: 55%; height: 55%; bottom: -55%; left: -55%; transition-delay: 0.1s; }
.layered-box2::before {
  background: radial-gradient(circle at 30% 107%, #91e9ff 0%, #00acee 90%);
}

.layered-box3 { width: 35%; height: 35%; bottom: -35%; left: -35%; transition-delay: 0.2s; }
.layered-box3::before {
  background: radial-gradient(circle at 30% 107%, #969fff 0%, #b349ff 90%);
}

.layered-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 20px 40px 0px;
}

.layered-card:hover .layered-box {
  bottom: -1px;
  left: -1px;
}

.layered-box:hover::before { opacity: 1; }
.layered-box:hover .social-icon { transform: scale(1.2); filter: drop-shadow(0 0 10px white); }

.layered-card:hover .card-logo {
  transform: translate(0, 0);
  bottom: 1.5rem;
  right: 1.5rem;
  scale: 0.7;
}

@media (max-width: 968px) {
  .join-community {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 2rem;
  }
  .join-content { text-align: center; }
  .social-card-right { justify-content: center; margin-top: 2rem; }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
  }
}

.join-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

/* Resources Section */
.resources {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff0f8 100%);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(176, 141, 240, 0.2);
}

.resource-tag {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.resource-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Footer */
.footer {
  background: var(--black);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.footer-brand p {
  color: var(--purple);
  font-size: 1.2rem;
  letter-spacing: 3px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--purple);
}

.footer-column a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--purple);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #666;
}

/* Premium Responsive Design */
@media (max-width: 1200px) {
  .about-description {
    padding: 2.5rem 3rem;
    font-size: 1.2rem;
  }

  .leaders-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
  }

  .leader-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-3d-model {
    height: 400px;
    order: -1;
  }

  .phoenix-model {
    max-width: 350px;
    max-height: 350px;
  }

  .about {
    padding: 6rem 0;
  }

  .about-description {
    margin: 2rem auto 3rem;
    padding: 2rem 2.5rem;
    font-size: 1.1rem;
    max-width: 95%;
  }

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

  .leaders-grid {
    padding: 4rem 1rem;
    margin: 2rem 0;
    border-radius: 25px;
  }

  .leaders-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .leader-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .leader-avatar {
    width: 100px;
    height: 100px;
  }

  .leader-info h4 {
    font-size: 1.2rem;
  }

  .leader-social a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .founder-background-model {
    width: 1000px;
    height: 800px;
    opacity: 0.25;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .join-community {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .about-description {
    padding: 1.5rem 2rem;
    font-size: 1rem;
    line-height: 1.8;
  }

  .leaders-grid {
    padding: 3rem 0.5rem;
  }

  .leaders-grid h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .leader-card {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }

  .leader-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }

  .leader-info h4 {
    font-size: 1.1rem;
  }

  .leader-role {
    font-size: 0.9rem;
  }

  .leader-description {
    font-size: 0.85rem;
  }

  .leader-social {
    gap: 0.8rem;
  }

  .leader-social a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}

/* About Section */
.about {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8faff 0%, #fff8fb 100%);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
}

.about-content {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.about-text {
  max-width: 800px;
  text-align: center;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Enhanced Leaders Section */
.leaders-grid {
  padding: 3rem 0;
}

.leaders-grid h3 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.leaders-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

/* All 5 profiles in one row */
.leaders-container .leader-card {
  flex: 0 0 calc(20% - 1.2rem);
  max-width: 240px;
  min-width: 200px;
}

.leader-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.leader-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(176, 141, 240, 0.3),
    rgba(134, 201, 247, 0.3),
    rgba(248, 182, 210, 0.3),
    rgba(247, 228, 141, 0.2),
    rgba(176, 141, 240, 0.3)
  );
  border-radius: 27px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.leader-card:hover::before {
  opacity: 1;
}

.leader-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(176, 141, 240, 0.15),
    0 15px 30px rgba(134, 201, 247, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.leader-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-primary);
  padding: 3px;
  transition: all 0.4s ease;
}

.leader-avatar::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(
    45deg,
    var(--purple),
    var(--blue),
    var(--pink),
    var(--yellow)
  );
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  animation: avatarRotate 3s linear infinite;
  transition: opacity 0.4s ease;
}

.leader-card:hover .leader-avatar::before {
  opacity: 1;
}

@keyframes avatarRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.leader-card:hover .leader-avatar img {
  transform: scale(1.1);
}

.avatar-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(
    circle,
    rgba(176, 141, 240, 0.3),
    rgba(134, 201, 247, 0.2),
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: glowPulse 2s ease-in-out infinite;
}

.leader-card:hover .avatar-glow {
  opacity: 1;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.leader-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--black);
  letter-spacing: 0.5px;
}

.leader-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leader-description {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 1rem;

}

.leader-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.leader-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem; /* Increased font size */
  position: relative; /* Required for z-index */
  z-index: 1;
}

.leader-social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(176, 141, 240, 0.4);
}

.leader-social a:nth-child(2) {
  background: var(--gradient-secondary);
}

.leader-social a:nth-child(3) {
  background: var(--gradient-tertiary);
}

/* Responsive Design for Leaders Section */
@media (max-width: 1200px) {
  .leaders-container {
    gap: 1rem;
  }

  .leaders-container .leader-card {
    max-width: 200px;
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .leaders-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .leaders-container .leader-card {
    flex: none;
    width: 100%;
    max-width: 300px;
    min-width: auto;
  }

  .leader-card {
    padding: 1.5rem;
  }

  .leader-avatar {
    width: 70px;
    height: 70px;
  }

  .leaders-grid h3 {
    font-size: 2rem;
  }

  .leader-info h4 {
    font-size: 1rem;
  }

  .leader-role {
    font-size: 0.75rem;
  }

  .leader-description {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .leader-card {
    padding: 1.5rem;
  }

  .leader-avatar {
    width: 80px;
    height: 80px;
  }

  .leader-info h4 {
    font-size: 1.2rem;
  }

  .leader-role {
    font-size: 0.9rem;
  }

  .leader-description {
    font-size: 0.8rem;
  }
}

/* Reveal Animation */
.reveal-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* Premium Website Entry Animations */
body.website-revealed .navbar {
  animation: navEntry 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

body.website-revealed .hero-text h1 {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
  opacity: 0;
  transform: translateY(30px);
}

body.website-revealed .hero-text .hero-tagline {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
  opacity: 0;
  transform: translateY(30px);
}

body.website-revealed .hero-text .hero-description {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s forwards;
  opacity: 0;
  transform: translateY(30px);
}

body.website-revealed .hero-buttons {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s forwards;
  opacity: 0;
  transform: translateY(30px);
}

body.website-revealed .hero-visual {
  animation: scaleIn 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
  opacity: 0;
  transform: scale(0.9);
}

body.website-revealed .hero-3d-model {
  animation: modelEntry 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
  opacity: 0;
  transform: translateX(-60px) translateY(30px);
}

body.website-revealed .feature-cards {
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s forwards;
  opacity: 0;
  transform: translateY(50px);
}

/* Initial States (Hidden before reveal) */
html:not(.no-js) .navbar,
html:not(.no-js) .hero-text h1,
html:not(.no-js) .hero-text .hero-tagline,
html:not(.no-js) .hero-text .hero-description,
html:not(.no-js) .hero-buttons,
html:not(.no-js) .hero-visual,
html:not(.no-js) .hero-3d-model,
html:not(.no-js) .feature-cards {
  opacity: 0; /* Hidden initially, waiting for .website-revealed class */
  will-change: opacity, transform; /* Optimize for entrance animation */
}

@keyframes navEntry {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modelEntry {
  from {
    opacity: 0;
    transform: translateX(-60px) translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateX(-60px) translateY(0);
  }
}

/* Visual Model Section (Unicorn Studio) */
.visual-model-section {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000; /* Fallback background */
  z-index: 1; /* Lower than the following section */
}

/* --- PREMIUM POLISH ENHANCEMENTS --- */

/* 1. Cinematic Noise Overlay - Optimized Static PNG */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999999;
  pointer-events: none;
  opacity: 0.04;
  /* Tiny, lightning-fast transparent repeating noise PNG */
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAApb3N1AAAABlBMVEUAAAD///+l2Z/dAAAAAnRSTlMA/1uGu38AAAAJcEhZcwAADsQAAA7EAZUrDhsAAAA8SURBVDjLY2AYBaNgFIyCUTAqGEZBsIFhFGRnZGRkZGSkv9mRkZGRkZGR/mZHRkZGRkZGRvqbHRkZGRkZGRnpbwEIAAG9AicvAAAAAElFTkSuQmCC');
}

/* Performance Hints */
.cursor-dot, .cursor-outline, .reveal {
  will-change: transform, opacity;
}


/* 4. Functional Footer System */
.footer {
  background: #050505;
  color: #fff;
  padding: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 141, 240, 0.4),
    transparent
  );
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  font-size: 0.8rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: var(--purple);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: #fff;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(176, 141, 240, 0.5);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* 5. Global Scroll Reveal System */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered intervals for cards */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }



/* New Animated Button - Explore Domains */
.special-button-wrapper {
  display: inline-block;
}

.special-button {
  --primary: var(--purple); /* Match Spartans theme */
  --neutral-1: #1a1a2e; /* Dark purple tinted background */
  --neutral-2: #0f0f1a; /* Darker purple tinted background */
  --radius: 14px;

  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  box-shadow:
    0 0.5px 0.5px 1px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  min-width: 180px;
  padding: 15px;
  height: 60px;
  font-family: inherit;
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: var(--neutral-1);
  z-index: 1;
}

.special-button:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.04);
}

.special-button:active {
  transform: scale(1);
  box-shadow:
    0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.2);
}

.special-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2.5px solid transparent;
  background:
    linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.45))
      border-box;
  z-index: 0;
  transition: all 0.4s ease;
}

.special-button:hover::after {
  transform: scale(1.05, 1.1);
  box-shadow: inset 0 -1px 3px 0 rgba(50, 50, 50, 1);
}

.special-button::before {
  content: "";
  inset: 7px 6px 6px 6px;
  position: absolute;
  background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
  border-radius: 30px;
  filter: blur(0.5px);
  z-index: 2;
}

.special-button .state {
  padding-left: 29px;
  z-index: 2;
  display: flex;
  position: relative;
}

.special-button .state p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.special-button .state .icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1.25);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.special-button .state .icon svg {
  overflow: visible;
}

.special-button .outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}

.special-button .outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 180deg,
    transparent 60%,
    var(--primary) 80%,
    transparent 100%
  );
  animation: special-spin 2s linear infinite;
  animation-play-state: paused;
}

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

.special-button:hover .outline {
  opacity: 1;
}

.special-button:hover .outline::before {
  animation-play-state: running;
}

.special-button .state p span {
  display: block;
  opacity: 0;
  animation: special-slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}

.special-button:hover p span {
  opacity: 1;
  animation: special-wave 0.5s ease forwards calc(var(--i) * 0.02s);
}

.special-button:focus p span {
  opacity: 1;
  animation: special-disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}

@keyframes special-wave {
  30% { opacity: 1; transform: translateY(4px) translateX(0) rotate(0); }
  50% { opacity: 1; transform: translateY(-3px) translateX(0) rotate(0); color: var(--primary); }
  100% { opacity: 1; transform: translateY(0) translateX(0) rotate(0); }
}

@keyframes special-slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(5px) rotate(-90deg);
    color: var(--primary);
    filter: blur(5px);
  }
  30% { opacity: 1; transform: translateY(4px) translateX(0) rotate(0); filter: blur(0); }
  50% { opacity: 1; transform: translateY(-3px) translateX(0) rotate(0); }
  100% { opacity: 1; transform: translateY(0) translateX(0) rotate(0); }
}

@keyframes special-disapear {
  from { opacity: 1; }
  to {
    opacity: 0;
    transform: translateX(5px) translateY(20px);
    color: var(--primary);
    filter: blur(5px);
  }
}

.special-button .state--default .icon svg {
  animation: special-land 0.6s ease forwards;
}

.special-button:hover .state--default .icon {
  transform: rotate(90deg) scale(1.25);
}

.special-button:focus .state--default svg {
  animation: special-takeOff 0.8s linear forwards;
}

.special-button:focus .state--default .icon {
  transform: rotate(0deg) scale(1.25);
}

@keyframes special-takeOff {
  0% { opacity: 1; }
  60% { opacity: 1; transform: translateX(70px) rotate(90deg) scale(2); }
  100% { opacity: 0; transform: translateX(160px) rotate(90deg) scale(0); }
}

@keyframes special-land {
  0% {
    transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
    opacity: 0;
    filter: blur(3px);
  }
  100% { transform: translateX(0) translateY(0) rotate(0); opacity: 1; filter: blur(0); }
}

.special-button .state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5));
}

.special-button:focus .state--default .icon:before {
  animation: special-contrail 0.8s linear forwards;
}

@keyframes special-contrail {
  0% { width: 0; opacity: 1; }
  8% { width: 15px; }
  60% { opacity: 0.7; width: 80px; }
  100% { opacity: 0; width: 160px; }
}

.special-button .state--sent {
  display: none;
}

.special-button .state--sent svg {
  transform: scale(1.25);
  margin-right: 8px;
}

.special-button:focus .state--default {
  position: absolute;
}

.special-button:focus .state--sent {
  display: flex;
}

.special-button:focus .state--sent span {
  opacity: 0;
  animation: special-slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}

.special-button:focus .state--sent .icon svg {
  opacity: 0;
  animation: special-appear 1.2s ease forwards 0.8s;
}

@keyframes special-appear {
  0% {
    opacity: 0;
    transform: scale(4) rotate(-40deg);
    color: var(--primary);
    filter: blur(4px);
  }
  30% { opacity: 1; transform: scale(0.6); filter: blur(1px); }
  50% { opacity: 1; transform: scale(1.2); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* =========================================
   MOBILE RESPONSIVENESS & HAMBURGER MENU
   ========================================= */

/* Hamburger Button (Hidden on Desktop) */
.hamburger {
    display: none;
    position: relative; /* Fix for z-index */
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1002;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--black);
    border-radius: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease-in-out;
    gap: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 2px;
    transition: 0.3s;
}

.mobile-nav-link:hover {
    color: var(--blue);
    transform: translateX(10px);
}

.mobile-cta-btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: var(--black);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =========================================
   MEDIA QUERIES
   ========================================= */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Tablet & Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links, .nav-cta .join-btn {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-logo-right {
        width: 36px;
        height: 36px;
    }

    /* Hero Section */
    .hero {
        padding-top: 6rem;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 1; /* Text first */
    }

    .hero-visual {
        order: 2; /* Visual second */
        height: 300px;
    }
    
    .hero-title {
        font-size: 3.5rem; /* Fluid typography check */
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Feature Cards */
    .feature-cards {
        overflow-x: auto;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
    }
    
    .feature-cards::-webkit-scrollbar {
        display: none; 
    }

    /* Feature Cards, About & Achievement Grids - Horizontal Scroll */
    .feature-cards,
    .about-elite-grid, 
    .achievement-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding: 2rem 7.5vw; /* Center the 85vw cards */
        gap: 1.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: none !important;
    }
    
    .feature-cards::-webkit-scrollbar,
    .about-elite-grid::-webkit-scrollbar,
    .achievement-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card,
    .elite-card-outer, 
    .glass-parent {
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: center;
        flex: 0 0 auto;
    }
    
    .about-elite-grid::-webkit-scrollbar,
    .achievement-grid::-webkit-scrollbar {
        display: none;
    }

    .elite-card-outer, 
    .glass-parent {
        min-width: 85vw; /* Show mostly one card with peak at next */
        scroll-snap-align: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .footer-links {
        justify-content: center;
        flex-direction: column;
        gap: 2rem;
    }

    /* Right Nav (Hide on mobile) */
    .right-nav {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* 2nd Visual Model Responsive */
    #visual-model-2 {
        height: auto;
        min-height: 300px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #visual-model-2 > div,
    #visual-model-2 canvas,
    #visual-model-2 img {
       max-width: 100%;
       max-height: 400px;
       object-fit: contain !important;
    }

    .spline-watermark-cover {
        bottom: 5px;
        right: 5px;
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}
