/**
 * Theme 2 - Main Theme Stylesheet
 * Modern React-inspired theme with premium styling
 */

/* Smooth scrolling and performance */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile title word breaking */
@media (max-width: 767px) {
  h1 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
  
  /* Ensure action buttons are touch-friendly */
  .btn, button, a[role="button"] {
    min-height: 44px;
    touch-action: manipulation;
  }
}

/* Mobile Profile Dropdown Styles */
.mobile-profile-dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-in-out;
  will-change: max-height, opacity;
}

.mobile-profile-dropdown:not(.hidden) {
  max-height: 500px;
  opacity: 1;
}

.mobile-profile-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.mobile-profile-trigger {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-profile-trigger:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.mobile-profile-dropdown .group\/item {
  transition: all 0.2s ease;
  min-height: 44px;
  touch-action: manipulation;
}

.mobile-profile-dropdown .group\/item:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.mobile-profile-dropdown .group\/item:hover {
  background-color: hsl(var(--secondary) / 0.5);
}

/* Ensure proper spacing and alignment */
.mobile-profile-dropdown > div {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

/* Tablet and Desktop: Hide mobile dropdown (desktop has its own dropdown) */
@media (min-width: 768px) {
  .mobile-profile-dropdown {
    display: none !important;
  }
  
  .mobile-profile-trigger {
    display: none;
  }
}

/* Questions page: filter dropdowns - solid card background (fixes dark grey option list) */
.questions-filter-select {
  background-color: hsl(var(--card)) !important;
  color: hsl(var(--card-foreground));
}
.questions-filter-select option {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
}
.questions-filter-select option:hover,
.questions-filter-select option:focus,
.questions-filter-select option:checked {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Optimize questions page scrolling on mobile */
@media (max-width: 767px) {
  /* Use GPU acceleration for smooth scrolling */
  main {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
  }
  
  /* Optimize question cards for mobile scrolling */
  .glass-premium {
    contain: layout style paint;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  /* Reduce repaints during scroll */
  .grid {
    contain: layout;
  }
}

/* Below-fold sections: browser can skip painting until near viewport (smoother scroll, faster LCP) */
.homepage-section-below-fold {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

/* Founders section: position, size, and view */
.homepage-section-founders .founders-grid {
  align-items: stretch;
}
.homepage-section-founders .founder-card {
  display: flex;
  justify-content: center;
}
.homepage-section-founders .founder-card-inner {
  width: 100%;
  max-width: 320px;
}
@media (min-width: 1024px) {
  .homepage-section-founders .founders-grid {
    gap: 2rem;
  }
  .homepage-section-founders .founder-card-inner {
    max-width: 100%;
  }
}
.homepage-section-founders .founder-avatar-wrapper img {
  object-position: center top;
}

/* Panel Members page: desktop position, alignment, spacing */
.page-panel-members .panel-team-grid {
  align-items: stretch;
}
.page-panel-members .panel-team-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.page-panel-members .panel-team-card-avatar {
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .page-panel-members .panel-team-grid {
    gap: 2rem;
  }
  .page-panel-members .panel-team-grid:not(.panel-team-grid--panel) {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
  }
  .page-panel-members .panel-team-grid--panel {
    max-width: 100%;
  }
  .page-panel-members .panel-team-grid--single {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
}
.page-panel-members #founders-section,
.page-panel-members #panel-members-section {
  scroll-margin-top: 6rem;
}

/* Panel member cards: visible background and border so card stands out from page */
.page-panel-members #panel-members-section .panel-member-card {
  background: linear-gradient(135deg, hsl(222 47% 12%) 0%, hsl(222 47% 9%) 100%) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 1rem;
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.35), 0 0 0 1px hsl(var(--border) / 0.5);
  align-self: start;
  min-height: 0;
}
.page-panel-members #panel-members-section .panel-member-card:hover {
  border-color: hsl(var(--accent) / 0.4) !important;
  box-shadow: 0 20px 60px -10px hsl(var(--accent) / 0.2), 0 0 0 1px hsl(var(--accent) / 0.2);
}
/* Panel section only: social icons stay in one horizontal row (match founders) */
.page-panel-members #panel-members-section .panel-member-social {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.page-panel-members #panel-members-section .panel-member-social a {
  flex-shrink: 0;
}

/* Premium text effects */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: var(--gradient-primary);
}

.gradient-text-gold {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: var(--gradient-gold);
}

.gradient-text-animated {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, hsl(217 91% 60%), hsl(38 95% 55%), hsl(217 91% 60%));
  background-size: 200% auto;
  animation: gradient-flow 3s linear infinite;
}

.text-glow {
  text-shadow: 0 0 20px hsl(217 91% 60% / 0.5), 0 0 40px hsl(217 91% 60% / 0.3);
}

.text-glow-gold {
  text-shadow: 0 0 20px hsl(38 95% 55% / 0.5), 0 0 40px hsl(38 95% 55% / 0.3);
}

/* Premium glass effects */
.glass {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--primary) / 0.1);
  background: var(--gradient-glass);
}

.glass-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsl(var(--border) / 0.3);
  background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--card) / 0.8) 100%);
}

.glass-premium {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.2);
}

.glass-education {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(135deg, hsl(217 91% 60% / 0.08) 0%, hsl(38 95% 55% / 0.04) 100%);
  border: 1px solid hsl(217 91% 60% / 0.15);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.2);
}

/* Mobile-optimized glass education */
.glass-education-mobile {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(135deg, hsl(217 91% 60% / 0.12) 0%, hsl(38 95% 55% / 0.08) 100%);
  border: 1px solid hsl(217 91% 60% / 0.2);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), 0 4px 16px rgba(0,0,0,0.3);
}

/* Glow effects */
.glow {
  box-shadow: var(--shadow-glow);
}

.glow-gold {
  box-shadow: var(--shadow-glow-gold);
}

.neon-border {
  position: relative;
}

.neon-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Education-themed decorative elements */
.education-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234B7CF3' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.book-lines {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    hsl(217 91% 60% / 0.03) 39px,
    hsl(217 91% 60% / 0.03) 40px
  );
}

/* Animated backgrounds */
.mesh-gradient {
  background-image: var(--gradient-mesh);
}

.animated-mesh {
  background: 
    radial-gradient(at 40% 20%, hsl(270 95% 65% / 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsl(190 95% 55% / 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsl(270 95% 65% / 0.1) 0px, transparent 50%);
  animation: mesh-move 20s ease-in-out infinite;
}

/* Floating animations */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
  animation: float 6s ease-in-out 2s infinite;
}

.float-animation-slow {
  animation: float 8s ease-in-out 1s infinite;
}

.float-reverse {
  animation: float-reverse 7s ease-in-out infinite;
}

/* Pulse effects */
.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.pulse-scale {
  animation: pulse-scale 2s ease-in-out infinite;
}

/* Shimmer effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, hsl(var(--primary) / 0.1) 50%, transparent 100%);
  animation: shimmer 2.5s linear infinite;
}

/* Border glow animation */
.border-glow {
  animation: border-glow 3s ease-in-out infinite;
}

/* Morph animation */
.morph {
  animation: morph 8s ease-in-out infinite;
}

/* Rotate subtle */
.rotate-subtle {
  animation: rotate-subtle 20s linear infinite;
}

/* Particle animation */
.particle {
  animation: particle 10s ease-in-out infinite;
}

/* Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

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

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px -5px hsl(217 91% 60% / 0.4);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 50px -5px hsl(217 91% 60% / 0.6);
    filter: brightness(1.1);
  }
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

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

@keyframes gradient-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes border-glow {
  0%, 100% { 
    border-color: hsl(217 91% 60% / 0.3);
    box-shadow: 0 0 20px hsl(217 91% 60% / 0.1);
  }
  50% { 
    border-color: hsl(38 95% 55% / 0.3);
    box-shadow: 0 0 30px hsl(38 95% 55% / 0.15);
  }
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 70% 70% 50%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

@keyframes page-flip {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(15deg); }
}

@keyframes pencil-write {
  0%, 100% { transform: translateX(0) rotate(-45deg); }
  50% { transform: translateX(10px) rotate(-45deg); }
}

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

@keyframes mesh-move {
  0%, 100% { background-position: 0% 0%, 100% 0%, 0% 100%; }
  50% { background-position: 100% 100%, 0% 100%, 100% 0%; }
}

@keyframes particle {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  25% { transform: translateY(-30px) translateX(20px) scale(1.1); opacity: 0.8; }
  50% { transform: translateY(-10px) translateX(-10px) scale(0.9); opacity: 0.5; }
  75% { transform: translateY(-40px) translateX(30px) scale(1.05); opacity: 0.7; }
}

@keyframes text-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

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

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes magnetic-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-15px) translateX(8px); }
  50% { transform: translateY(-8px) translateX(-5px); }
  75% { transform: translateY(-20px) translateX(12px); }
}

@keyframes glow-breathe {
  0%, 100% { 
    box-shadow: 0 0 20px hsl(217 91% 60% / 0.3), 0 0 40px hsl(217 91% 60% / 0.1);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 40px hsl(217 91% 60% / 0.5), 0 0 80px hsl(217 91% 60% / 0.2), 0 0 120px hsl(217 91% 60% / 0.1);
    filter: brightness(1.1);
  }
}

@keyframes text-reveal {
  0% { 
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    opacity: 0;
  }
  100% { 
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
}

@keyframes slide-up-fade {
  0% { 
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(4px);
  }
  100% { 
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes wiggle-rotate {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
}

@keyframes scale-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes aurora {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Next-level animation utilities */
.animate-spotlight {
  animation: spotlight 3s ease-out forwards;
}

.animate-ripple {
  animation: ripple 1s ease-out infinite;
}

.animate-magnetic-float {
  animation: magnetic-float 8s ease-in-out infinite;
}

.animate-glow-breathe {
  animation: glow-breathe 4s ease-in-out infinite;
}

.animate-text-reveal {
  animation: text-reveal 0.8s ease-out forwards;
}

.animate-slide-up-fade {
  animation: slide-up-fade 0.6s ease-out forwards;
}

.animate-shine {
  position: relative;
  overflow: hidden;
}

.animate-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shine 3s infinite;
}

.animate-bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}

.animate-wiggle-rotate {
  animation: wiggle-rotate 1s ease-in-out infinite;
}

.animate-scale-pulse {
  animation: scale-pulse 2s ease-in-out infinite;
}

.animate-aurora {
  background: linear-gradient(-45deg, hsl(217 91% 60% / 0.2), hsl(38 95% 55% / 0.15), hsl(152 69% 45% / 0.15), hsl(217 91% 60% / 0.2));
  background-size: 400% 400%;
  animation: aurora 15s ease infinite;
}

/* Hover effect utilities */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px hsl(217 91% 60% / 0.3);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px hsl(217 91% 60% / 0.4), 0 0 60px hsl(217 91% 60% / 0.2);
}

/* Button Variants - Matching React Design */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--primary-foreground));
  border: none;
  padding: 0.875rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px -10px hsl(var(--primary) / 0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px -10px hsl(var(--primary) / 0.4);
  filter: brightness(1.05);
}

.btn-hero-primary:active {
  transform: scale(0.98);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: hsl(var(--foreground));
  padding: 0.875rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-2px);
}

/* Hero CTA Buttons - Consistent size and touch targets */
.btn-hero-cta {
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.25);
}

.btn-hero-cta:active {
  transform: scale(0.98);
  transition: all 0.1s ease;
}

.btn-hero-cta-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: #fff;
  box-shadow: 0 8px 24px -8px hsl(var(--primary) / 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px hsl(var(--primary) / 0.5),
              0 0 24px rgba(75, 124, 243, 0.35);
  filter: brightness(1.08);
}

.btn-hero-cta-secondary {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: hsl(var(--foreground));
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.3);
}

.btn-hero-cta-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: hsl(var(--accent) / 0.35);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35),
              0 0 20px rgba(245, 158, 11, 0.15);
}

@media (min-width: 640px) {
  .btn-hero-cta {
    min-height: 3.25rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 1rem;
  }
}

/* Legacy enhanced classes - keep for other pages that use them */
.btn-hero-primary-enhanced {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px hsl(var(--primary) / 0.3);
  text-decoration: none;
}

.btn-hero-primary-enhanced:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px -10px hsl(var(--primary) / 0.5);
  filter: brightness(1.1);
}

.btn-hero-primary-enhanced:active {
  transform: scale(1.02);
  transition: all 0.1s ease;
}

.btn-glass-enhanced {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: hsl(var(--foreground));
  padding: 0.75rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.btn-glass-enhanced:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.12);
  border-color: hsl(var(--accent) / 0.4);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.btn-glass-enhanced:active {
  transform: scale(1.02);
  transition: all 0.1s ease;
}

/* Card Styles */
.card-theme2 {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.card-theme2:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.3);
}

/* Container - use standard container class */
.container-theme2 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-theme2 {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container-theme2 {
    padding: 0 3rem;
  }
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px hsl(var(--primary) / 0.4), 0 0 60px hsl(var(--primary) / 0.2);
}

.social-link {
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
}

/* Animation utilities */
.animate-bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}

@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Text color utilities */
.text-red-500 {
  color: rgb(239 68 68);
}

.fill-red-500 {
  fill: rgb(239 68 68);
}

/* Space utilities */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

/* Additional responsive */
@media (min-width: 640px) {
  .sm\:w-10 {
    width: 2.5rem;
  }
  
  .sm\:h-10 {
    height: 2.5rem;
  }
  
  .sm\:w-4 {
    width: 1rem;
  }
  
  .sm\:h-4 {
    height: 1rem;
  }
}

/* Responsive utilities */
/* Hide desktop nav on all screens smaller than xl (1280px) */
@media (max-width: 1279px) {
  .navbar-desktop-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }
}

/* Hide tablet nav on all screens smaller than md (1024px) */
@media (max-width: 1023px) {
  .navbar-tablet-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }
}

@media (max-width: 768px) {
  .glass-education {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem;
    border-width: 1px;
  }
  
  /* Ensure desktop and tablet navs are completely hidden on mobile */
  .navbar-desktop-nav,
  .navbar-tablet-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
  
  /* Mobile-specific glass education for bottom nav */
  .glass-education-mobile {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(135deg, hsl(217 91% 60% / 0.12) 0%, hsl(38 95% 55% / 0.08) 100%);
    border: 1px solid hsl(217 91% 60% / 0.2);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), 0 4px 16px rgba(0,0,0,0.3);
  }
  
  /* Reduce padding on mobile for cards - only if not already set with responsive classes */
  .glass-education.rounded-2xl:not([class*="p-"]),
  .glass-education.rounded-3xl:not([class*="p-"]) {
    padding: 1rem;
  }
  
  /* Stats cards mobile - respect responsive padding classes */
  .stats-card-animated.glass-education {
    min-height: auto;
  }
  
  /* Questions cards mobile - respect responsive padding classes */
  .questions-card-animated.glass-education {
    min-height: auto;
  }
  
  /* Hero stat pills mobile - respect responsive padding classes */
  .hero-stat-pill.glass-education {
    font-size: 0.75rem;
  }
  
  /* Badge elements mobile */
  .glass-education.rounded-full {
    font-size: 0.75rem;
  }
  
  .btn-hero-primary,
  .btn-glass {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  /* Bottom nav safe area */
  .pb-safe {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
  
  /* Add padding to body/main content for bottom nav on mobile */
  body {
    padding-bottom: 80px;
  }
  
  main {
    padding-bottom: 80px;
    /* iOS safe area support */
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  
  /* Bottom nav animation - matches React framer-motion */
  .navbar-bottom-nav {
    animation: navbarBottomNavSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
    /* iOS safe area support */
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  }
  
  @keyframes navbarBottomNavSlideIn {
    from {
      transform: translateY(100px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  /* Ensure the flex container inside is visible */
  .navbar-bottom-nav .flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .glass-education {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-width: 1px;
  }
  
  .glass-education-mobile {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  
  /* Ensure proper border radius on small screens */
  .glass-education.rounded-xl {
    border-radius: 0.75rem;
  }
  
  .glass-education.rounded-2xl {
    border-radius: 1rem;
  }
  
  .glass-education.rounded-3xl {
    border-radius: 1.25rem;
  }
  
  /* Stats cards extra small */
  .stats-card-animated.glass-education {
    min-height: auto;
  }
  
  /* Bottom nav text improvements for very small screens */
  .navbar-bottom-link-text {
    font-size: 8px !important;
    line-height: 1.2 !important;
  }
  
  /* Improve touch targets */
  .navbar-bottom-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Questions cards extra small */
  .questions-card-animated.glass-education {
    min-height: auto;
  }
  
  /* Hero stat pills extra small */
  .hero-stat-pill.glass-education {
    font-size: 0.7rem;
  }
  
  /* Badge elements extra small */
  .glass-education.rounded-full {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Grid Pattern */
.grid-pattern {
  background-image: linear-gradient(rgba(75,124,243,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(75,124,243,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
}

/* Radial Gradient */
.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Shadow Education */
.shadow-education {
  box-shadow: 0 8px 32px -8px hsl(217 91% 60% / 0.25), 0 4px 16px -4px hsl(0 0% 0% / 0.3);
}

/* Fade-in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
  animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
  animation-delay: 0.6s;
}

.fade-in-up[data-delay] {
  animation-delay: calc(var(--delay, 0) * 1s);
}

/* Floating orbs */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 15s ease-in-out infinite;
}

.orb-1 {
  width: 800px;
  height: 800px;
  background: linear-gradient(135deg, hsl(217 91% 60% / 0.3), transparent);
  top: -240px;
  left: -240px;
  animation-delay: 0s;
}

.orb-2 {
  width: 700px;
  height: 700px;
  background: linear-gradient(135deg, hsl(38 95% 55% / 0.2), transparent);
  top: 33%;
  right: -240px;
  animation-delay: 4s;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, hsl(142 76% 36% / 0.15), transparent);
  bottom: 80px;
  left: 25%;
  animation-delay: 7s;
}

.orb-stats-1 {
  width: 384px;
  height: 384px;
  background: hsl(217 91% 60% / 0.15);
  top: 40px;
  right: 40px;
}

.orb-stats-2 {
  width: 320px;
  height: 320px;
  background: hsl(38 95% 55% / 0.15);
  bottom: 40px;
  left: 40px;
}

.orb-stats-3 {
  width: 600px;
  height: 600px;
  background: hsl(142 76% 36% / 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orb-contrib-1 {
  width: 320px;
  height: 320px;
  background: hsl(217 91% 60% / 0.1);
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(-50%);
}

.orb-contrib-2 {
  width: 320px;
  height: 320px;
  background: hsl(38 95% 55% / 0.1);
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(50%);
}

.orb-blogs-1 {
  width: 256px;
  height: 256px;
  background: hsl(217 91% 60% / 0.1);
  top: 0;
  right: 0;
}

.orb-blogs-2 {
  width: 192px;
  height: 192px;
  background: hsl(38 95% 55% / 0.1);
  bottom: 0;
  left: 0;
}

.orb-cta-1 {
  width: 192px;
  height: 192px;
  background: hsl(217 91% 60% / 0.3);
  top: 0;
  left: 25%;
}

.orb-cta-2 {
  width: 160px;
  height: 160px;
  background: hsl(38 95% 55% / 0.3);
  bottom: 0;
  right: 25%;
}

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

/* Shine effects */
.bg-shine {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.animate-shine {
  animation: shine 2s infinite;
}

.animate-shine-delayed {
  animation: shine 3s infinite 1s;
}

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

/* Counter animation */
.counter {
  display: inline-block;
}

/* Question Card Styles */
.question-card {
  transition: all 0.3s ease;
}

.question-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.border-gradient {
  background: var(--gradient-border);
  border-radius: inherit;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.bg-shine {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.animate-shine {
  animation: shine 2s linear infinite;
}

.animate-shine-delayed {
  animation: shine 2s linear infinite 1s;
}

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

/* Contributor Card Styles */
.contributor-card {
  transition: all 0.3s ease;
}

.contributor-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.3);
}

/* Blog Card Styles */
.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.3);
}

/* Missing utility classes */
.text-red-400 {
  color: rgb(248 113 113);
}

.hover\:text-red-400:hover {
  color: rgb(248 113 113);
}

.hover\:text-primary:hover {
  color: hsl(var(--primary));
}

.hover\:scale-110:hover {
  transform: scale(1.1);
}

.duration-600 {
  transition-duration: 600ms;
}

.group-hover\:translate-x-1:hover {
  transform: translateX(0.25rem);
}

.group-hover\:opacity-100:hover {
  opacity: 1;
}

.group-hover\:opacity-0:hover {
  opacity: 0;
}

.group-hover\:text-primary:hover {
  color: hsl(var(--primary));
}

.group-hover\:scale-110:hover {
  transform: scale(1.1);
}

.object-cover {
  object-fit: cover;
}

.min-w-0 {
  min-width: 0;
}

.flex-1 {
  flex: 1 1 0%;
}

.space-y-1\.5 > * + * {
  margin-top: 0.375rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

.pt-4 {
  padding-top: 1rem;
}

.border-t {
  border-top-width: 1px;
}

.text-\[10px\] {
  font-size: 10px;
}

.text-\[8px\] {
  font-size: 8px;
}

.text-\[12px\] {
  font-size: 12px;
}

.w-9 {
  width: 2.25rem;
}

.h-9 {
  height: 2.25rem;
}

.w-7 {
  width: 1.75rem;
}

.h-7 {
  height: 1.75rem;
}

.w-14 {
  width: 3.5rem;
}

.h-14 {
  height: 3.5rem;
}

.w-11 {
  width: 2.75rem;
}

.h-11 {
  height: 2.75rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-32 {
  width: 8rem;
}

.h-32 {
  height: 8rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-3\.5 {
  width: 0.875rem;
}

.h-3\.5 {
  height: 0.875rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.w-1 {
  width: 0.25rem;
}

.h-1 {
  height: 0.25rem;
}

.w-1\.5 {
  width: 0.375rem;
}

.h-1\.5 {
  height: 0.375rem;
}

.w-2 {
  width: 0.5rem;
}

.h-2 {
  height: 0.5rem;
}

.w-3 {
  width: 0.75rem;
}

.h-3 {
  height: 0.75rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.w-13 {
  width: 3.25rem;
}

.h-13 {
  height: 3.25rem;
}

.w-15 {
  width: 3.75rem;
}

.h-15 {
  height: 3.75rem;
}

.w-20 {
  width: 5rem;
}

.h-20 {
  height: 5rem;
}

.w-24 {
  width: 6rem;
}

.h-24 {
  height: 6rem;
}

.w-28 {
  width: 7rem;
}

.h-28 {
  height: 7rem;
}

.w-36 {
  width: 9rem;
}

.h-36 {
  height: 9rem;
}

.w-40 {
  width: 10rem;
}

.h-40 {
  height: 10rem;
}

.w-44 {
  width: 11rem;
}

.h-44 {
  height: 11rem;
}

.w-48 {
  width: 12rem;
}

.h-48 {
  height: 12rem;
}

.w-52 {
  width: 13rem;
}

.h-52 {
  height: 13rem;
}

.w-56 {
  width: 14rem;
}

.h-56 {
  height: 14rem;
}

.w-60 {
  width: 15rem;
}

.h-60 {
  height: 15rem;
}

.w-64 {
  width: 16rem;
}

.h-64 {
  height: 16rem;
}

.w-72 {
  width: 18rem;
}

.h-72 {
  height: 18rem;
}

.w-80 {
  width: 20rem;
}

.h-80 {
  height: 20rem;
}

.w-96 {
  width: 24rem;
}

.h-96 {
  height: 24rem;
}

/* Text colors */
.text-white {
  color: white;
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.text-accent-foreground {
  color: hsl(var(--accent-foreground));
}

.text-success-foreground {
  color: hsl(var(--success-foreground));
}

.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}

.text-card-foreground {
  color: hsl(var(--card-foreground));
}

.text-foreground\/80 {
  color: hsl(var(--foreground) / 0.8);
}

.text-primary\/60 {
  color: hsl(var(--primary) / 0.6);
}

.text-primary\/25 {
  color: hsl(var(--primary) / 0.25);
}

.text-primary\/50 {
  color: hsl(var(--primary) / 0.5);
}

.text-primary\/70 {
  color: hsl(var(--primary) / 0.7);
}

.text-accent\/60 {
  color: hsl(var(--accent) / 0.6);
}

.text-accent\/80 {
  color: hsl(var(--accent) / 0.8);
}

.text-amber-400 {
  color: rgb(251 191 36);
}

.text-amber-600 {
  color: rgb(217 119 6);
}

.text-slate-300 {
  color: rgb(203 213 225);
}

.text-orange-500 {
  color: rgb(249 115 22);
}

/* Background colors */
.bg-amber-500\/15 {
  background-color: rgb(251 191 36 / 0.15);
}

.bg-yellow-500\/15 {
  background-color: rgb(234 179 8 / 0.15);
}

.bg-slate-300\/10 {
  background-color: rgb(203 213 225 / 0.1);
}

.bg-slate-400\/10 {
  background-color: rgb(148 163 184 / 0.1);
}

.bg-amber-600\/10 {
  background-color: rgb(217 119 6 / 0.1);
}

.bg-orange-500\/10 {
  background-color: rgb(249 115 22 / 0.1);
}

.bg-card\/50 {
  background-color: hsl(var(--card) / 0.5);
}

.bg-background\/60 {
  background-color: hsl(var(--background) / 0.6);
}

.bg-background\/80 {
  background-color: hsl(var(--background) / 0.8);
}

.bg-primary\/90 {
  background-color: hsl(var(--primary) / 0.9);
}

.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}

.bg-primary\/20 {
  background-color: hsl(var(--primary) / 0.2);
}

.bg-primary\/5 {
  background-color: hsl(var(--primary) / 0.05);
}

.bg-accent\/20 {
  background-color: hsl(var(--accent) / 0.2);
}

.bg-secondary\/50 {
  background-color: hsl(var(--secondary) / 0.5);
}

/* Border colors */
.border-amber-500\/30 {
  border-color: rgb(251 191 36 / 0.3);
}

.border-slate-400\/25 {
  border-color: rgb(148 163 184 / 0.25);
}

.border-amber-600\/25 {
  border-color: rgb(217 119 6 / 0.25);
}

.border-border\/40 {
  border-color: hsl(var(--border) / 0.4);
}

.border-border\/50 {
  border-color: hsl(var(--border) / 0.5);
}

.border-primary\/20 {
  border-color: hsl(var(--primary) / 0.2);
}

.border-primary\/30 {
  border-color: hsl(var(--primary) / 0.3);
}

.border-primary\/50 {
  border-color: hsl(var(--primary) / 0.5);
}

/* Shadow utilities */
.shadow-\[0_0_40px_-10px_rgba\(245\,158\,11\,0\.4\)\] {
  box-shadow: 0 0 40px -10px rgba(245, 158, 11, 0.4);
}

.shadow-\[0_0_30px_-10px_rgba\(148\,163\,184\,0\.3\)\] {
  box-shadow: 0 0 30px -10px rgba(148, 163, 184, 0.3);
}

.shadow-\[0_0_25px_-10px_rgba\(217\,119\,6\,0\.3\)\] {
  box-shadow: 0 0 25px -10px rgba(217, 119, 6, 0.3);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-primary\/30 {
  box-shadow: 0 10px 30px -10px hsl(var(--primary) / 0.3);
}

.shadow-primary\/40 {
  box-shadow: 0 10px 30px -10px hsl(var(--primary) / 0.4);
}

/* Additional utilities */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pointer-events-none {
  pointer-events: none;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.duration-1000 {
  transition-duration: 1000ms;
}

/* Transform utilities */
.translate-x-\[-100\%\] {
  transform: translateX(-100%);
}

.translate-x-\[100\%\] {
  transform: translateX(100%);
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

.translate-x-1\/2 {
  transform: translateX(50%);
}

.translate-y-1\/2 {
  transform: translateY(50%);
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

/* Position utilities */
.-top-2 {
  top: -0.5rem;
}

.-right-2 {
  right: -0.5rem;
}

.-bottom-8 {
  bottom: -2rem;
}

.-right-8 {
  right: -2rem;
}

.top-1\/2 {
  top: 50%;
}

.left-1\/2 {
  left: 50%;
}

.bottom-3 {
  bottom: 0.75rem;
}

.left-3 {
  left: 0.75rem;
}

/* Opacity utilities */
.opacity-0 {
  opacity: 0;
}

.opacity-10 {
  opacity: 0.1;
}

.opacity-20 {
  opacity: 0.2;
}

.opacity-30 {
  opacity: 0.3;
}

.opacity-40 {
  opacity: 0.4;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

.opacity-100 {
  opacity: 1;
}

.group-hover\:opacity-100:hover {
  opacity: 1;
}

.group-hover\:opacity-0:hover {
  opacity: 0;
}

/* Z-index utilities */
.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* Additional spacing */
.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Font sizes */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}

.text-8xl {
  font-size: 6rem;
  line-height: 1;
}

/* Font weights */
.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-light {
  font-weight: 300;
}

/* Text utilities */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rounded utilities */
.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: var(--radius);
}

.rounded-xl {
  border-radius: calc(var(--radius) + 4px);
}

.rounded-2xl {
  border-radius: calc(var(--radius) + 8px);
}

.rounded-3xl {
  border-radius: calc(var(--radius) + 16px);
}

.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}

.rounded {
  border-radius: 0.25rem;
}

/* Border utilities */
.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

/* Flexbox utilities */
.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.flex-wrap {
  flex-wrap: wrap;
}

.shrink-0 {
  flex-shrink: 0;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.col-span-4 {
  grid-column: span 4 / span 4;
}

/* Overflow utilities */
.overflow-hidden {
  overflow: hidden;
}

.overflow-visible {
  overflow: visible;
}

/* Display utilities */
.inline-flex {
  display: inline-flex;
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.hidden {
  display: none;
}

/* Additional responsive utilities */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .sm\:h-44 {
    height: 11rem;
  }
  
  .sm\:p-5 {
    padding: 1.25rem;
  }
  
  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  .sm\:gap-6 {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Homepage section CTA links: mobile-friendly touch targets */
.homepage-section-cta {
  min-height: 44px;
  -webkit-tap-highlight-color: hsl(var(--primary) / 0.2);
  tap-highlight-color: hsl(var(--primary) / 0.2);
}
@media (max-width: 639px) {
  .homepage-section-cta {
    width: 100%;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* Button variants */
.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid hsl(var(--primary) / 0.5);
  background: transparent;
  color: hsl(var(--primary));
  border-radius: calc(var(--radius) + 4px);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-primary:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary-foreground));
}

.btn-outline-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid hsl(var(--primary) / 0.5);
  background: transparent;
  color: hsl(var(--primary));
  border-radius: calc(var(--radius) + 4px);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-glow:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
  border-radius: calc(var(--radius) + 4px);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
  transform: translateY(-2px);
}

/* Radial glow */
.radial-glow {
  background: radial-gradient(circle, hsl(217 91% 60% / 0.1), transparent);
  border-radius: 50%;
  filter: blur(48px);
  animation: pulse-glow 8s ease-in-out infinite;
}

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

/* Pulse glow */
.pulse-glow {
  animation: pulse-glow-inner 3s ease-in-out infinite;
}

@keyframes pulse-glow-inner {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* Border shimmer */
.border-shimmer {
  background: linear-gradient(90deg, transparent, hsl(217 91% 60% / 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

/* Animate gradient */
.animate-gradient {
  background-size: 200% auto;
  animation: gradient-flow 4s linear infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Utility classes */
.bg-grid-pattern {
  background-image: linear-gradient(rgba(75,124,243,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(75,124,243,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Container utility */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Text utilities */
.text-foreground {
  color: hsl(var(--foreground));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-primary {
  color: hsl(var(--primary));
}

.text-accent {
  color: hsl(var(--accent));
}

/* Background utilities */
.bg-background {
  background-color: hsl(var(--background));
}

.bg-card {
  background-color: hsl(var(--card));
}

.bg-secondary {
  background-color: hsl(var(--secondary));
}

.bg-primary\/20 {
  background-color: hsl(var(--primary) / 0.2);
}

.bg-accent\/20 {
  background-color: hsl(var(--accent) / 0.2);
}

.bg-success\/20 {
  background-color: hsl(var(--success) / 0.2);
}

.bg-primary\/5 {
  background-color: hsl(var(--primary) / 0.05);
}

.bg-accent\/5 {
  background-color: hsl(var(--accent) / 0.05);
}

.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}

.bg-accent\/10 {
  background-color: hsl(var(--accent) / 0.1);
}

.bg-secondary\/20 {
  background-color: hsl(var(--secondary) / 0.2);
}

.bg-secondary\/40 {
  background-color: hsl(var(--secondary) / 0.4);
}

.bg-secondary\/50 {
  background-color: hsl(var(--secondary) / 0.5);
}

/* Border utilities */
.border-border {
  border-color: hsl(var(--border));
}

.border-border\/30 {
  border-color: hsl(var(--border) / 0.3);
}

.border-border\/40 {
  border-color: hsl(var(--border) / 0.4);
}

.border-border\/50 {
  border-color: hsl(var(--border) / 0.5);
}

.border-primary\/20 {
  border-color: hsl(var(--primary) / 0.2);
}

/* Shadow utilities */
.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-card-hover {
  box-shadow: var(--shadow-card-hover);
}

.shadow-education {
  box-shadow: var(--shadow-education);
}

/* Opacity utilities */
.opacity-10 {
  opacity: 0.1;
}

.opacity-20 {
  opacity: 0.2;
}

.opacity-30 {
  opacity: 0.3;
}

.opacity-40 {
  opacity: 0.4;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-70 {
  opacity: 0.7;
}

/* Additional Tailwind-like utilities */
.max-w-5xl {
  max-width: 64rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: var(--radius);
}

.rounded-xl {
  border-radius: calc(var(--radius) + 4px);
}

.rounded-2xl {
  border-radius: calc(var(--radius) + 8px);
}

.rounded-3xl {
  border-radius: calc(var(--radius) + 16px);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.font-light {
  font-weight: 300;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.uppercase {
  text-transform: uppercase;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hidden {
  display: none;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-32 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.py-36 {
  padding-top: 9rem;
  padding-bottom: 9rem;
}

.pt-24 {
  padding-top: 6rem;
}

.pb-16 {
  padding-bottom: 4rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:items-center { align-items: center; }
  .sm\:w-auto { width: auto; }
  .sm\:mb-8 { margin-bottom: 2rem; }
  .sm\:mb-12 { margin-bottom: 3rem; }
  .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:h-44 { height: 11rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:mx-4 { margin-left: 1rem; margin-right: 1rem; }
  .sm\:mt-4 { margin-top: 1rem; }
  .sm\:rounded-2xl { border-radius: calc(var(--radius) + 8px); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:mb-3 { margin-bottom: 0.75rem; }
  .sm\:mb-4 { margin-bottom: 1rem; }
  .sm\:mb-10 { margin-bottom: 2.5rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:ml-4 { margin-left: 1rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:pb-0 { padding-bottom: 0; }
  .md\:right-8 { right: 2rem; }
  .md\:right-16 { right: 4rem; }
  .md\:w-40 { width: 10rem; }
  .md\:h-52 { height: 13rem; }
  .md\:w-52 { width: 13rem; }
  .md\:h-64 { height: 16rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-base { font-size: 1rem; }
  .md\:text-sm { font-size: 0.875rem; }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:w-280px { width: 280px; }
  .md\:h-280px { height: 280px; }
  .md\:w-220px { width: 220px; }
  .md\:h-220px { height: 220px; }
  .md\:w-250px { width: 250px; }
  .md\:h-250px { height: 250px; }
  .md\:w-190px { width: 190px; }
  .md\:h-190px { height: 190px; }
  .md\:w-240px { width: 240px; }
  .md\:h-240px { height: 240px; }
}

@media (min-width: 1024px) {
  .lg\:text-7xl { font-size: 4.5rem; }
  .lg\:text-4xl { font-size: 2.25rem; }
  .lg\:text-3xl { font-size: 1.875rem; }
  .lg\:text-2xl { font-size: 1.5rem; }
  .lg\:text-xl { font-size: 1.25rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:gap-10 { gap: 2.5rem; }
  .lg\:mb-0 { margin-bottom: 0; }
  .lg\:flex { display: flex; }
  .lg\:right-16 { right: 4rem; }
  .lg\:w-52 { width: 13rem; }
  .lg\:h-64 { height: 16rem; }
  .lg\:w-350px { width: 350px; }
  .lg\:h-350px { height: 350px; }
  .lg\:w-320px { width: 320px; }
  .lg\:h-320px { height: 320px; }
  .lg\:w-240px { width: 240px; }
  .lg\:h-240px { height: 240px; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-4xl { font-size: 2.25rem; }
  .lg\:text-3xl { font-size: 1.875rem; }
  .lg\:text-2xl { font-size: 1.5rem; }
  .lg\:text-xl { font-size: 1.25rem; }
  .lg\:text-lg { font-size: 1.125rem; }
  .lg\:text-base { font-size: 1rem; }
  .lg\:text-sm { font-size: 0.875rem; }
}

@media (min-width: 1280px) {
  .xl\:text-8xl { font-size: 6rem; }
  .xl\:text-7xl { font-size: 4.5rem; }
  .xl\:text-6xl { font-size: 3.75rem; }
  .xl\:text-5xl { font-size: 3rem; }
  .xl\:text-4xl { font-size: 2.25rem; }
  .xl\:text-3xl { font-size: 1.875rem; }
  .xl\:text-2xl { font-size: 1.5rem; }
  .xl\:text-xl { font-size: 1.25rem; }
  .xl\:text-lg { font-size: 1.125rem; }
  .xl\:text-base { font-size: 1rem; }
  .xl\:text-sm { font-size: 0.875rem; }
  .xl\:flex { display: flex; }
  .xl\:hidden { display: none; }
  .xl\:inline { display: inline; }
  .xl\:block { display: block; }
  .xl\:right-24 { right: 6rem; }
  .xl\:w-8xl { width: 80rem; }
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

/* Transform utilities */
.translate-x-1\/2 {
  transform: translateX(50%);
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.translate-y-1\/2 {
  transform: translateY(50%);
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

.translate-x-\[-50\%\] {
  transform: translateX(-50%);
}

.translate-y-\[-50\%\] {
  transform: translateY(-50%);
}

.translate-x-\[50\%\] {
  transform: translateX(50%);
}

.translate-y-\[50\%\] {
  transform: translateY(50%);
}

/* Width/Height utilities */
.w-1 {
  width: 0.25rem;
}

.w-2 {
  width: 0.5rem;
}

.w-3 {
  width: 0.75rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-7 {
  width: 1.75rem;
}

.w-8 {
  width: 2rem;
}

.w-9 {
  width: 2.25rem;
}

.w-10 {
  width: 2.5rem;
}

.w-11 {
  width: 2.75rem;
}

.w-12 {
  width: 3rem;
}

.w-14 {
  width: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.w-28 {
  width: 7rem;
}

.w-32 {
  width: 8rem;
}

.w-40 {
  width: 10rem;
}

.w-48 {
  width: 12rem;
}

.w-52 {
  width: 13rem;
}

.w-64 {
  width: 16rem;
}

.w-72 {
  width: 18rem;
}

.w-80 {
  width: 20rem;
}

.w-96 {
  width: 24rem;
}

.w-\[1000px\] {
  width: 1000px;
}

.w-\[800px\] {
  width: 800px;
}

.w-\[700px\] {
  width: 700px;
}

.w-\[600px\] {
  width: 600px;
}

.w-\[384px\] {
  width: 384px;
}

.w-\[320px\] {
  width: 320px;
}

.w-\[256px\] {
  width: 256px;
}

.w-\[192px\] {
  width: 192px;
}

.w-\[160px\] {
  width: 160px;
}

.h-1 {
  height: 0.25rem;
}

.h-2 {
  height: 0.5rem;
}

.h-3 {
  height: 0.75rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-7 {
  height: 1.75rem;
}

.h-8 {
  height: 2rem;
}

.h-9 {
  height: 2.25rem;
}

.h-10 {
  height: 2.5rem;
}

.h-11 {
  height: 2.75rem;
}

.h-12 {
  height: 3rem;
}

.h-14 {
  height: 3.5rem;
}

.h-16 {
  height: 4rem;
}

.h-28 {
  height: 7rem;
}

.h-32 {
  height: 8rem;
}

.h-36 {
  height: 9rem;
}

.h-40 {
  height: 10rem;
}

.h-44 {
  height: 11rem;
}

.h-48 {
  height: 12rem;
}

.h-52 {
  height: 13rem;
}

.h-64 {
  height: 16rem;
}

.h-72 {
  height: 18rem;
}

.h-80 {
  height: 20rem;
}

.h-96 {
  height: 24rem;
}

.h-\[1000px\] {
  height: 1000px;
}

.h-\[800px\] {
  height: 800px;
}

.h-\[700px\] {
  height: 700px;
}

.h-\[600px\] {
  height: 600px;
}

.h-\[384px\] {
  height: 384px;
}

.h-\[320px\] {
  height: 320px;
}

.h-\[256px\] {
  height: 256px;
}

.h-\[192px\] {
  height: 192px;
}

.h-\[160px\] {
  height: 160px;
}

/* Top/Right/Bottom/Left utilities */
.top-0 {
  top: 0;
}

.top-1\/2 {
  top: 50%;
}

.top-1\/3 {
  top: 33.333333%;
}

.top-\[12\%\] {
  top: 12%;
}

.top-\[20\%\] {
  top: 20%;
}

.top-\[35\%\] {
  top: 35%;
}

.top-\[50\%\] {
  top: 50%;
}

.right-0 {
  right: 0;
}

.right-4 {
  right: 1rem;
}

.right-8 {
  right: 2rem;
}

.right-12 {
  right: 3rem;
}

.right-16 {
  right: 4rem;
}

.right-24 {
  right: 6rem;
}

.right-\[12\%\] {
  right: 12%;
}

.right-\[15\%\] {
  right: 15%;
}

.right-\[5\%\] {
  right: 5%;
}

.right-\[8\%\] {
  right: 8%;
}

.bottom-0 {
  bottom: 0;
}

.bottom-8 {
  bottom: 2rem;
}

.bottom-20 {
  bottom: 5rem;
}

.bottom-\[25\%\] {
  bottom: 25%;
}

.bottom-\[35\%\] {
  bottom: 35%;
}

.bottom-\[40\%\] {
  bottom: 40%;
}

.left-0 {
  left: 0;
}

.left-1\/2 {
  left: 50%;
}

.left-1\/4 {
  left: 25%;
}

.left-\[6\%\] {
  left: 6%;
}

.left-\[8\%\] {
  left: 8%;
}

.left-\[12\%\] {
  left: 12%;
}

.-top-60 {
  top: -15rem;
}

.-left-60 {
  left: -15rem;
}

.-right-60 {
  right: -15rem;
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

.translate-x-1\/2 {
  transform: translateX(50%);
}

.translate-y-1\/2 {
  transform: translateY(50%);
}

/* Blur utilities */
.blur-\[150px\] {
  filter: blur(150px);
}

.blur-\[120px\] {
  filter: blur(120px);
}

.blur-\[100px\] {
  filter: blur(100px);
}

.blur-\[80px\] {
  filter: blur(80px);
}

.blur-\[180px\] {
  filter: blur(180px);
}

.blur-3xl {
  filter: blur(64px);
}

.blur-2xl {
  filter: blur(40px);
}

.blur-xl {
  filter: blur(24px);
}

.blur-lg {
  filter: blur(16px);
}

/* Gradient utilities */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary {
  --tw-gradient-from: hsl(var(--primary));
  --tw-gradient-to: hsl(var(--primary) / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-blue-400 {
  --tw-gradient-to: rgb(96 165 250);
}

.to-amber-400 {
  --tw-gradient-to: rgb(251 191 36);
}

.to-emerald-400 {
  --tw-gradient-to: rgb(52 211 153);
}

.to-purple-400 {
  --tw-gradient-to: rgb(192 132 252);
}

.from-accent {
  --tw-gradient-from: hsl(var(--accent));
  --tw-gradient-to: hsl(var(--accent) / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-success {
  --tw-gradient-from: hsl(var(--success));
  --tw-gradient-to: hsl(var(--success) / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-violet-500 {
  --tw-gradient-from: rgb(139 92 246);
  --tw-gradient-to: rgb(139 92 246 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* Text size utilities */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}

.text-8xl {
  font-size: 6rem;
  line-height: 1;
}

/* Additional keyframe animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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


/* Contributor animations */
.contributor-sparkle {
  animation: contributorSparkle 2.5s ease-in-out infinite;
}

@keyframes contributorSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(15deg); }
}

.contributor-rank1-bar {
  background-size: 200% 100%;
  animation: rank1BarFlow 3s ease-in-out infinite;
}

@keyframes rank1BarFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.contributor-rank1-star {
  animation: rank1StarRotate 4s linear infinite;
}

@keyframes rank1StarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero Section Animations - Exact match to React */
.floating-orb-hero {
  animation: floatingOrbHero 15s ease-in-out infinite;
}

.floating-orb-hero[data-delay='0'] { animation-delay: 0s; }
.floating-orb-hero[data-delay='4'] { animation-delay: 4s; }
.floating-orb-hero[data-delay='7'] { animation-delay: 7s; }

@keyframes floatingOrbHero {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(30px, -50px) scale(1.3) rotate(15deg); }
}

.floating-icon-hero {
  animation: floatingIconHero 7s ease-in-out infinite;
  opacity: 0.3;
}

@keyframes floatingIconHero {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.3; }
  50% { transform: translateY(-25px) rotate(15deg) scale(1.1); opacity: 0.7; }
}

.floating-particle-hero {
  animation: floatingParticleHero 6s ease-in-out infinite;
  opacity: 0;
}

@keyframes floatingParticleHero {
  0%, 100% { transform: translateY(0) scale(0); opacity: 0; }
  50% { transform: translateY(-100px) scale(1.5); opacity: 1; }
}

.radial-glow-pulse-hero {
  animation: radialGlowPulseHero 8s ease-in-out infinite;
}

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

.magical-book-container {
  opacity: 0;
  transform: translateX(150px) rotateY(-45deg);
}

.magical-book-wrapper {
  animation: magicalBookWrapper 6s ease-in-out infinite;
}

@keyframes magicalBookWrapper {
  0%, 100% { transform: translateY(0) rotateZ(-2deg); }
  50% { transform: translateY(-20px) rotateZ(2deg); }
}

.magical-aura-outer {
  background: radial-gradient(circle, rgba(75,124,243,0.3) 0%, rgba(245,158,11,0.2) 40%, transparent 70%);
  animation: magicalAuraOuter 4s ease-in-out infinite;
}

@keyframes magicalAuraOuter {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

.magical-inner-glow-pulse {
  background: radial-gradient(circle, rgba(245,158,11,0.5) 0%, rgba(75,124,243,0.3) 50%, transparent 80%);
  animation: magicalInnerGlowPulse 10s linear infinite;
}

@keyframes magicalInnerGlowPulse {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

.magical-rune-circle-rotate {
  animation: magicalRuneCircleRotate 20s linear infinite;
}

@keyframes magicalRuneCircleRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.magical-rune-pulse {
  animation: magicalRunePulse 2.5s ease-in-out infinite;
}

.magical-rune-pulse[data-index='0'] { animation-delay: 0s; }
.magical-rune-pulse[data-index='1'] { animation-delay: 0.3s; }
.magical-rune-pulse[data-index='2'] { animation-delay: 0.6s; }
.magical-rune-pulse[data-index='3'] { animation-delay: 0.9s; }
.magical-rune-pulse[data-index='4'] { animation-delay: 1.2s; }
.magical-rune-pulse[data-index='5'] { animation-delay: 1.5s; }
.magical-rune-pulse[data-index='6'] { animation-delay: 1.8s; }
.magical-rune-pulse[data-index='7'] { animation-delay: 2.1s; }

@keyframes magicalRunePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; text-shadow: 0 0 10px rgba(245,158,11,0.5); }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; text-shadow: 0 0 25px rgba(245,158,11,1); }
}

.magical-symbol-circle-rotate {
  animation: magicalSymbolCircleRotate 15s linear infinite reverse;
}

@keyframes magicalSymbolCircleRotate {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.magical-symbol-pulse {
  animation: magicalSymbolPulse 3s ease-in-out infinite;
}

.magical-symbol-pulse[data-index='0'] { animation-delay: 0s; }
.magical-symbol-pulse[data-index='1'] { animation-delay: 0.4s; }
.magical-symbol-pulse[data-index='2'] { animation-delay: 0.8s; }
.magical-symbol-pulse[data-index='3'] { animation-delay: 1.2s; }
.magical-symbol-pulse[data-index='4'] { animation-delay: 1.6s; }
.magical-symbol-pulse[data-index='5'] { animation-delay: 2s; }

@keyframes magicalSymbolPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.4) rotate(180deg); opacity: 0.9; }
}

.magical-arcane-float {
  animation: magicalArcaneFloat 4s ease-in-out infinite;
}

@keyframes magicalArcaneFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; scale: 0.9; }
  25% { transform: translate(10px, -15px) rotate(20deg); opacity: 0.9; scale: 1.2; }
  50% { transform: translate(0, -15px) rotate(0deg); opacity: 0.4; scale: 0.9; }
  75% { transform: translate(-10px, 15px) rotate(-20deg); opacity: 0.9; scale: 1.2; }
}

.magical-rune-float {
  animation: magicalRuneFloat 5s ease-in-out infinite;
  opacity: 0;
}

@keyframes magicalRuneFloat {
  0% { transform: translate(0, 0) scale(0.5) rotate(-10deg); opacity: 0; }
  50% { transform: translate(0, -30px) scale(1.3) rotate(10deg); opacity: 0.8; }
  100% { transform: translate(0, 0) scale(0.5) rotate(-10deg); opacity: 0; }
}

.magical-sparkle-float {
  animation: magicalSparkleFloat 3s ease-out infinite;
  opacity: 0;
}

@keyframes magicalSparkleFloat {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  50% { transform: translate(var(--sparkle-x, 0px), -120px) scale(1.5); opacity: 1; }
  100% { transform: translate(var(--sparkle-x, 0px), -200px) scale(0); opacity: 0; }
}

.magical-orbit-star {
  animation: magicalOrbitStar 8s linear infinite;
}

.magical-orbit-star[data-direction='reverse'] {
  animation-direction: reverse;
}

.magical-orbit-star[data-duration='8'] { animation-duration: 8s; }
.magical-orbit-star[data-duration='12'] { animation-duration: 12s; }
.magical-orbit-star[data-duration='16'] { animation-duration: 16s; }
.magical-orbit-star[data-duration='20'] { animation-duration: 20s; }

@keyframes magicalOrbitStar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.magical-orbit-star-pulse {
  animation: magicalOrbitStarPulse 2s ease-in-out infinite;
}

@keyframes magicalOrbitStarPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
}

.magical-book-3d-hover:hover {
  transform: scale(1.1) rotateY(15deg) rotateX(-5deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.book-page-float {
  animation: bookPageFloat 4s ease-in-out infinite;
}

.book-page-float[data-index='0'] { animation-delay: 0s; }
.book-page-float[data-index='1'] { animation-delay: 0.1s; }
.book-page-float[data-index='2'] { animation-delay: 0.2s; }
.book-page-float[data-index='3'] { animation-delay: 0.3s; }
.book-page-float[data-index='4'] { animation-delay: 0.4s; }

@keyframes bookPageFloat {
  0%, 100% { transform: translateX(3px); }
  50% { transform: translateX(5px); }
}

.book-cover-glow {
  animation: bookCoverGlow 4s ease-in-out infinite;
}

@keyframes bookCoverGlow {
  0%, 100% { box-shadow: 0 25px 80px -15px rgba(75, 124, 243, 0.6), 0 0 40px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 35px 100px -15px rgba(245, 158, 11, 0.7), 0 0 60px rgba(75, 124, 243, 0.4); }
}

.book-ornament-top-pulse {
  animation: bookOrnamentPulse 2s ease-in-out infinite;
}

.book-ornament-bottom-pulse {
  animation: bookOrnamentPulse 2s ease-in-out infinite 1s;
}

@keyframes bookOrnamentPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.book-emblem-glow-pulse {
  background: radial-gradient(circle, rgba(245,158,11,0.6) 0%, transparent 70%);
  animation: bookEmblemGlowPulse 2s ease-in-out infinite;
}

@keyframes bookEmblemGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.book-emblem-rotate {
  animation: bookEmblemRotate 20s linear infinite, bookEmblemGlow 2s ease-in-out infinite;
}

@keyframes bookEmblemRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bookEmblemGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(245,158,11,0.6), inset 0 2px 10px rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 50px rgba(245,158,11,1), inset 0 2px 15px rgba(255,255,255,0.5); }
}

.book-emblem-icon-pulse {
  animation: bookEmblemIconPulse 2.5s ease-in-out infinite;
}

@keyframes bookEmblemIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.book-corner-pulse {
  animation: bookCornerPulse 3s ease-in-out infinite;
}

.book-corner-pulse[data-index='0'] { animation-delay: 0s; }
.book-corner-pulse[data-index='1'] { animation-delay: 0.4s; }
.book-corner-pulse[data-index='2'] { animation-delay: 0.8s; }
.book-corner-pulse[data-index='3'] { animation-delay: 1.2s; }

@keyframes bookCornerPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.book-shimmer-sweep {
  animation: bookShimmerSweep 3s ease-in-out infinite 2s;
  transform: translateX(-200%);
}

@keyframes bookShimmerSweep {
  0% { transform: translateX(-200%) skewX(12deg); }
  100% { transform: translateX(200%) skewX(12deg); }
}

.magical-sparkle-above-float {
  animation: magicalSparkleAboveFloat 2s ease-in-out infinite;
}

.magical-sparkle-above-float[data-index='0'] { animation-delay: 0s; animation-duration: 2s; }
.magical-sparkle-above-float[data-index='1'] { animation-delay: 0.3s; animation-duration: 2.3s; }
.magical-sparkle-above-float[data-index='2'] { animation-delay: 0.6s; animation-duration: 2.6s; }
.magical-sparkle-above-float[data-index='3'] { animation-delay: 0.9s; animation-duration: 2.9s; }
.magical-sparkle-above-float[data-index='4'] { animation-delay: 1.2s; animation-duration: 3.2s; }

@keyframes magicalSparkleAboveFloat {
  0%, 100% { transform: translateY(0) rotate(-10deg) scale(0.6); opacity: 0.3; }
  50% { transform: translateY(-25px) rotate(10deg) scale(1.2); opacity: 1; }
}

/* Hero section - layout containment for smooth scrolling */
#hero-section {
  contain: layout style;
}

.hero-title-animated {
  opacity: 1 !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #hero-section .hero-title-animated,
  #hero-section .hero-subtitle-animated,
  #hero-section .hero-buttons-animated,
  #hero-section .hero-stats-animated,
  #hero-section .hero-scroll-indicator {
    animation: none;
    opacity: 1;
    transform: none;
  }
  #hero-section .floating-orb-hero,
  #hero-section .floating-icon-hero,
  #hero-section .floating-particle-hero {
    animation: none;
  }
}

/* Mobile: hide heavy hero decorations for fast load and smooth scroll */
@media (max-width: 767px) {
  #hero-section {
    contain: layout style paint;
  }
  #hero-section .floating-orb-hero,
  #hero-section .floating-icon-hero,
  #hero-section .floating-particle-hero {
    display: none !important;
  }
  #hero-section .animate-aurora {
    animation: none;
    opacity: 0.25;
  }
  #hero-section .mesh-gradient {
    opacity: 0.35;
  }
  #hero-section .education-pattern {
    opacity: 0.4;
  }
  #hero-section .radial-glow-pulse-hero {
    animation: none;
    opacity: 0.4;
  }
  #hero-section .hero-content-parallax {
    will-change: auto;
  }
  #hero-section .hero-title-animated,
  #hero-section .hero-subtitle-animated,
  #hero-section .hero-buttons-animated {
    will-change: auto;
  }
  #hero-section .hero-title-text.animate-gradient {
    animation: none;
  }
}

@keyframes heroTitleFadeIn {
  to { opacity: 1; }
}

.hero-together-span {
  opacity: 0;
  transform: scale(0);
  animation: heroTogetherSpanIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

@keyframes heroTogetherSpanIn {
  to { opacity: 1; transform: scale(1); }
}

.hero-together-text {
  animation: heroTogetherTextColor 4s ease-in-out infinite;
}

@keyframes heroTogetherTextColor {
  0%, 100% { color: hsl(var(--primary)); }
  50% { color: hsl(var(--accent)); }
}

.hero-excel-together {
  opacity: 0;
  transform: scale(0.8);
  animation: heroExcelTogetherIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}

@keyframes heroExcelTogetherIn {
  to { opacity: 1; transform: scale(1); }
}

.hero-sparkle-icon {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  animation: heroSparkleIconIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s forwards;
}

@keyframes heroSparkleIconIn {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero-sparkle-icon-inner {
  animation: heroSparkleIconRotate 3s ease-in-out infinite 1s;
}

@keyframes heroSparkleIconRotate {
  0%, 100% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 20px rgba(245,158,11,0.4)); }
  50% { transform: rotate(20deg) scale(1.3); filter: drop-shadow(0 0 40px rgba(245,158,11,0.8)); }
}

.hero-subtitle-animated {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
}

@keyframes heroSubtitleFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle-part1 {
  opacity: 0;
  animation: heroSubtitlePartFadeIn 0.5s ease-out 1.5s forwards;
}

.hero-subtitle-highlight {
  opacity: 0;
  transform: translateY(10px);
  animation: heroSubtitleHighlightIn 0.5s ease-out 1.7s forwards;
}

.hero-underline-grow {
  width: 0%;
  animation: heroUnderlineGrow 1s ease-out 2s forwards;
}

@keyframes heroUnderlineGrow {
  to { width: 100%; }
}

.hero-subtitle-part2 {
  opacity: 0;
  animation: heroSubtitlePartFadeIn 0.5s ease-out 1.9s forwards;
}

@keyframes heroSubtitlePartFadeIn {
  to { opacity: 1; }
}

@keyframes heroSubtitleHighlightIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-buttons-animated {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
}

@keyframes heroButtonsFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-shine-sweep {
  animation: heroShineSweep 2s ease-in-out infinite 3s;
  transform: translateX(-100%);
}

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

.hero-icon-rotate {
  animation: heroIconRotate 2s ease-in-out infinite 2s;
}

@keyframes heroIconRotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
}

.hero-arrow-move {
  animation: heroArrowMove 1.5s ease-in-out infinite;
}

@keyframes heroArrowMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.hero-glass-sweep {
  animation: heroGlassSweep 3s linear infinite;
  transform: translateX(-100%);
}

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

.hero-upload-icon-rotate {
  animation: heroUploadIconRotate 2s ease-in-out infinite 1s;
}

@keyframes heroUploadIconRotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-15deg); }
}

.hero-border-glow {
  animation: heroBorderGlow 3s ease-in-out infinite;
}

@keyframes heroBorderGlow {
  0%, 100% { border-color: hsl(var(--primary) / 0); box-shadow: 0 0 0px hsl(var(--primary) / 0); }
  50% { border-color: hsl(var(--accent) / 0.5); box-shadow: 0 0 25px hsl(var(--accent) / 0.3); }
}

.hero-sparkle-1, .hero-sparkle-2, .hero-sparkle-3 {
  animation: heroSparkleFloat 2s ease-in-out infinite 1s;
}

.hero-sparkle-2 { animation-delay: 1.3s; }
.hero-sparkle-3 { animation-delay: 1.5s; }

@keyframes heroSparkleFloat {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  50% { transform: translateY(-10px) scale(1); opacity: 1; }
  100% { transform: translateY(-20px) scale(0); opacity: 0; }
}

/* Stats: visible immediately, no animation delay */
.hero-stats-animated {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
}

.hero-stat-pill {
  opacity: 1 !important;
  transform: scale(1) translateY(0) rotateY(0) !important;
  animation: none !important;
}

.hero-stat-value {
  opacity: 1 !important;
  transform: scale(1) !important;
  animation: none !important;
}

.hero-stat-label {
  opacity: 1 !important;
  animation: none !important;
}

.hero-stat-shimmer {
  animation: heroStatShimmer 3s ease-in-out infinite;
  transform: translateX(-200%);
}

.hero-stat-shimmer[data-index='0'] { animation-delay: 0s; }
.hero-stat-shimmer[data-index='1'] { animation-delay: 0.5s; }
.hero-stat-shimmer[data-index='2'] { animation-delay: 1s; }

@keyframes heroStatShimmer {
  0%, 100% { transform: translateX(-200%); }
  50% { transform: translateX(200%); }
}

.hero-stat-icon {
  animation: heroStatIconFloat 4s ease-in-out infinite;
}

.hero-stat-icon[data-index='0'] { animation-delay: 0s; }
.hero-stat-icon[data-index='1'] { animation-delay: 0.5s; }
.hero-stat-icon[data-index='2'] { animation-delay: 1s; }

@keyframes heroStatIconFloat {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.1); }
}

.hero-stat-icon-inner {
  animation: heroStatIconInnerPulse 2s ease-in-out infinite;
}

.hero-stat-icon-inner[data-index='0'] { animation-delay: 0s; }
.hero-stat-icon-inner[data-index='1'] { animation-delay: 0.3s; }
.hero-stat-icon-inner[data-index='2'] { animation-delay: 0.6s; }

@keyframes heroStatIconInnerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.hero-stat-value {
  opacity: 1;
  transform: scale(1);
}

.hero-stat-label {
  opacity: 1;
}

.hero-scroll-indicator {
  opacity: 1;
}

@keyframes heroScrollIndicatorFadeIn {
  to { opacity: 1; }
}

.hero-scroll-wrapper {
  animation: heroScrollWrapperFloat 2s ease-in-out infinite;
}

@keyframes heroScrollWrapperFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.hero-scroll-dot {
  animation: heroScrollDotPulse 2s ease-in-out infinite;
  opacity: 0.3;
}

@keyframes heroScrollDotPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* Questions card hover effect - matches React whileHover */
.questions-card-hover {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.questions-card-hover:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Gradient color shift animation for Together text */
@keyframes gradient-color-shift {
  0%, 100% { color: hsl(var(--primary)); }
  50% { color: hsl(var(--accent)); }
}

.animate-gradient {
  animation: gradient-color-shift 4s infinite;
}
