/* =============== */
/* Modern Professional Theme Variables */
/* =============== */
:root {
  --primary-black: #000000;
  --secondary-black: #000000;
  --primary-white: #ffffff;
  --secondary-white: #ffffff;
  --accent-gray: #6c757d;
  
  /* AMOLED Dark Gradients (True Black) */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #0891b2 0%, #0369a1 100%);
  --gradient-accent: linear-gradient(135deg, #059669 0%, #047857 100%);
  --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  
  /* Neutral Accents */
  --tech-blue: #2d2d2d;
  --tech-purple: #3a3a3a;
  --tech-cyan: #555555;
  --success-green: #5a5a5a;
  --warning-orange: #6a6a6a;
  
  /* Backgrounds - True Black */
  --header-bg: rgba(0, 0, 0, 0.95);
  --hero-bg: #000000;
  --triangle-color: #000000;
  --card-bg: rgba(0, 0, 0, 0.9);
  --spotlight-1: rgba(255, 255, 255, 0.05);
  --spotlight-2: rgba(255, 255, 255, 0.03);
  
  /* Modern Shadows */
  --shadow-color: rgba(255, 255, 255, 0.1);
  --shadow-hover: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
  
  /* Glassmorphism */
  --glass-bg: rgba(0, 0, 0, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-backdrop: blur(20px) saturate(180%);
  
  /* Form Elements */
  --input-border: #333333;
  --input-bg: rgba(0, 0, 0, 0.9);
  --input-text-color: #ffffff;
  
  /* Animation Timings */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;
}

/* Light Theme Overrides */
body.light-theme {
  --primary-black: #ffffff;
  --secondary-black: #f8f9fa;
  --primary-white: #212529;
  --secondary-white: #343a40;
  --accent-gray: #6c757d;
  
  --header-bg: rgba(255, 255, 255, 0.95);
  --hero-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --triangle-color: #dee2e6;
  --card-bg: rgba(255, 255, 255, 0.9);
  --spotlight-1: rgba(0, 0, 0, 0.06);
  --spotlight-2: rgba(0, 0, 0, 0.04);
  
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.3);
  
  --input-border: #ced4da;
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-text-color: #212529;
}

/* SVG Icon Filters */
body:not(.light-theme) .social-links a img,
body:not(.light-theme) .footer-social a img {
  filter: invert(1) brightness(1.2);
  transition: var(--transition-fast);
}

body.light-theme .social-links a img,
body.light-theme .footer-social a img {
  filter: invert(0) brightness(0.8);
  transition: var(--transition-fast);
}

/* Section Background Overrides */
body.light-theme .projects {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Global Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

*::selection {
  background: var(--gradient-accent);
  color: white;
}

body {
  background: var(--hero-bg);
  color: var(--primary-white);
  font-weight: var(--font-weight-light);
  line-height: 1.7;
  transition: all var(--transition-normal);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--shadow-color) transparent;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: var(--shadow-color);
  border-radius: 10px;
  transition: var(--transition-fast);
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  width: 100%;
}

/* Container responsive improvements */
@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
    padding: 0 1.5rem;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
    padding: 0 1.25rem;
  }
}

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

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* Header - Shadcn/UI Next.js Style */
header {
  padding: 0.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: all var(--transition-normal);
  transform: translateY(0);
}

body:not(.light-theme) header {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled {
  padding: 0.375rem 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

body:not(.light-theme) header.scrolled {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

header.hide {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

.logo {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.025em;
  position: relative;
}

#main-link {
  text-decoration: none;
  color: var(--primary-white);
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  transition: var(--transition-fast);
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.light-theme) #main-link {
  color: #ffffff;
}

#main-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

#main-link:hover::after {
  width: 100%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav ul li a {
  color: var(--primary-white);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  position: relative;
  transition: var(--transition-fast);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

nav ul li a:hover {
  color: var(--secondary-white);
  background: rgba(0, 0, 0, 0.05);
}

body:not(.light-theme) nav ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.theme-toggle-btn,
.language-toggle-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary-white);
  padding: 0.375rem 0.875rem;
  border-radius: 0.375rem;
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.light-theme) .theme-toggle-btn,
body:not(.light-theme) .language-toggle-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Mobile menu toggle button */
.menu-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary-white);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all var(--transition-fast);
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-medium);
  position: relative;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.light-theme) .menu-toggle-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.menu-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
  z-index: -1;
}

body:not(.light-theme) .menu-toggle-btn::before {
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle-btn:hover,
.language-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

body:not(.light-theme) .theme-toggle-btn:hover,
body:not(.light-theme) .language-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-toggle-btn:hover::before {
  left: 0;
}

body:not(.light-theme) .menu-toggle-btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* Support for new viewport units */
  display: flex;
  align-items: center;
  padding-top: calc(80px + env(safe-area-inset-top));
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Hero responsive improvements */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(70px + env(safe-area-inset-top));
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(60px + env(safe-area-inset-top));
    padding-bottom: 1.5rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, var(--spotlight-1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--spotlight-2) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, var(--spotlight-2) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated Background Particles */
.triangles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.triangles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: var(--triangle-color);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: triangleFloat 25s linear infinite;
  bottom: -150px;
  opacity: 0.7;
  filter: blur(0.5px);
}

.triangles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.triangles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.triangles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.triangles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.triangles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.triangles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.triangles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.triangles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.triangles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.triangles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }
.triangles li:nth-child(11) { left: 5%; width: 50px; height: 50px; animation-delay: 1s; }
.triangles li:nth-child(12) { left: 90%; width: 30px; height: 30px; animation-delay: 3s; }
.triangles li:nth-child(13) { left: 60%; width: 70px; height: 70px; animation-delay: 5s; }
.triangles li:nth-child(14) { left: 15%; width: 40px; height: 40px; animation-delay: 4s; }
.triangles li:nth-child(15) { left: 80%; width: 60px; height: 60px; animation-delay: 6s; }

@keyframes triangleFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-1200px) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  transform: translateZ(0);
  will-change: auto;
}

/* Remove parallax on scroll for hero to fix jumping */
.no-parallax .hero-content {
  transform: none !important;
}

.vertex-link {
  color: var(--gradient-accent) !important;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: var(--transition-fast);
}

.vertex-link:hover {
  color: var(--primary-white) !important;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Default theme fix - ensure dark theme is default */
body:not(.light-theme) {
  --primary-black: #000000;
  --secondary-black: #000000;
  --primary-white: #ffffff;
  --secondary-white: #ffffff;
  
  /* AMOLED Dark Theme - True Black */
  --gradient-primary: linear-gradient(135deg, #000000 0%, #000000 100%);
  --gradient-secondary: linear-gradient(135deg, #000000 0%, #000000 100%);
  --gradient-accent: linear-gradient(135deg, #000000 0%, #000000 100%);
  --gradient-dark: linear-gradient(135deg, #000000 0%, #000000 100%);
  
  /* Backgrounds - True Black */
  --header-bg: rgba(0, 0, 0, 0.95);
  --hero-bg: #000000;
  --triangle-color: #000000;
  --card-bg: rgba(0, 0, 0, 0.9);
  --spotlight-1: rgba(255, 255, 255, 0.05);
  --spotlight-2: rgba(255, 255, 255, 0.03);
  
  /* Glassmorphism - True Black */
  --glass-bg: rgba(0, 0, 0, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Form Elements - True Black */
  --input-border: #333333;
  --input-bg: rgba(0, 0, 0, 0.9);
  --input-text-color: #ffffff;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: var(--font-weight-black);
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--primary-white) 0%, rgba(255,255,255,0.9) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  animation: heroTitleSlide 1s ease-out;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  animation: titleUnderline 1.5s ease-out 1s forwards;
  border-radius: 2px;
}

@keyframes titleUnderline {
  0% { width: 0; }
  100% { width: 80%; }
}

@keyframes heroTitleSlide {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--secondary-white);
  opacity: 0.9;
  animation: heroDescSlide 1s ease-out 0.3s both;
  font-weight: var(--font-weight-normal);
}

@keyframes heroDescSlide {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 0.9; transform: translateY(0); }
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: heroButtonsSlide 1s ease-out 0.6s both;
}

@keyframes heroButtonsSlide {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  transition: var(--transition-normal);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.btn:hover::before {
  left: 0;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--primary-white);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
}

.btn-outline::before {
  background: var(--gradient-accent);
}

.btn-outline:hover {
  color: white;
  border-color: transparent;
}

/* Advanced Animation Utilities */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

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

@keyframes rotateIn {
  0% { opacity: 0; transform: rotate(-180deg) scale(0.3); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

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

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

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.rotate-in {
  animation: rotateIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

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

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

/* Stagger animations for grid items */
.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }
.team-card:nth-child(6) { animation-delay: 0.6s; }
.team-card:nth-child(7) { animation-delay: 0.7s; }
.team-card:nth-child(8) { animation-delay: 0.8s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Section Styles */
.section {
  padding: 8rem 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  color: var(--primary-white);
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--accent-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: var(--font-weight-normal);
}

/* About Section */
.about-grid {
  display: grid;
  gap: 2.5rem;
  justify-items: center;
}

@media (min-width: 1200px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: all var(--transition-normal);
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255,255,255,0.3);
}

.about-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-white);
}

.about-card p {
  color: var(--accent-gray);
  line-height: 1.7;
  font-weight: var(--font-weight-normal);
}

/* Projects Section */
.projects {
  background: var(--secondary-black);
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, var(--spotlight-2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, var(--spotlight-2) 0%, transparent 50%);
  pointer-events: none;
}

.feature-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  position: relative;
}

.tab-btn {
  padding: 0.8rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  color: var(--accent-gray);
  cursor: pointer;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  border-radius: 50px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: var(--transition-normal);
  z-index: -1;
}

.tab-btn.active,
.tab-btn:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tab-btn.active::before,
.tab-btn:hover::before {
  left: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Enhanced responsive grid for features */
@media (max-width: 1400px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 650px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  opacity: 1;
  padding: 2rem;
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255,255,255,0.3);
}

.feature-card:hover::before {
  opacity: 0.1;
}

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

.feature-card:hover .feature-content h3 {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all var(--transition-normal);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: 50%;
  position: relative;
}

.feature-icon img {
  width: 40px;
  height: 40px;
  filter: invert(1);
}

.icon-placeholder {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 50%;
  transition: var(--transition-normal);
}

.feature-card:hover .icon-placeholder {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.1) 100%);
}

.feature-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-white);
  font-weight: var(--font-weight-bold);
}

.feature-content p {
  color: var(--accent-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.7;
  font-weight: var(--font-weight-normal);
}

.feature-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: auto;
  justify-content: center;
}

.feature-tags .tag {
  background: var(--gradient-secondary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
}

.feature-tags .tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Vision Section */
.vision-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.vision-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--primary-white);
}

.vision-content p {
  margin-bottom: 2rem;
  color: var(--accent-gray);
  line-height: 1.8;
  font-size: 1.1rem;
  font-weight: var(--font-weight-normal);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: var(--font-weight-black);
  margin-bottom: 0.5rem;
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--accent-gray);
  margin-bottom: 0;
  font-weight: var(--font-weight-medium);
}

.vision-image {
  height: 500px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vision-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: 1;
}

.vision-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: var(--transition-slow);
}

.vision-image:hover img {
  transform: scale(1.05);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Enhanced team grid responsiveness */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.team-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: -1;
}

.team-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255,255,255,0.3);
}

.team-card:hover::before {
  opacity: 0.1;
}

.team-card:hover .team-content h3 {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all var(--transition-normal);
}

.team-card:hover .social-links a {
  transform: translateY(-2px) scale(1.1);
}

.team-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-content {
  padding: 2rem;
  text-align: center;
}

.team-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-white);
}

.team-content p {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  color: var(--accent-gray);
  min-height: 24px;
  font-weight: var(--font-weight-medium);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transition: var(--transition-normal);
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--gradient-accent);
  border-color: transparent;
}

.social-links a img {
  height: 20px;
  transition: var(--transition-fast);
}

/* Footer - Modern & Compact */
footer {
  background: var(--primary-black);
  padding: 3rem 0 1.5rem;
  position: relative;
  border-top: 1px solid var(--glass-border);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, var(--spotlight-2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--spotlight-2) 0%, transparent 50%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-white);
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
}

.footer-col p {
  color: var(--accent-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: var(--font-weight-normal);
  font-size: 0.95rem;
}

.footer-download-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  color: var(--primary-white);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: var(--transition-fast);
  z-index: -1;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.download-btn:hover::before {
  left: 0;
}

.download-icon {
  font-size: 1.1rem;
}

.github-btn {
  background: rgba(0, 0, 0, 0.3);
}

.vertex-credit {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--accent-gray);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  font-weight: var(--font-weight-normal);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-accent);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-white);
  transform: translateX(3px);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.copyright {
  color: var(--accent-gray);
  font-size: 0.85rem;
  font-weight: var(--font-weight-normal);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: var(--transition-fast);
  z-index: -1;
}

.social-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.social-link:hover::before {
  left: 0;
}

.social-link img {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
  filter: brightness(1.2);
}

/* Enhanced Responsive Design */
/* Large Desktop */
@media (max-width: 1440px) {
  .hero h1 {
    font-size: clamp(3.5rem, 7vw, 4.5rem);
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .section {
    padding: 6rem 0;
  }
  
  .section-header {
    margin-bottom: 4rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .vision-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-download-links {
    justify-content: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .section {
    padding: 5rem 0;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  header {
    padding: 0.375rem 0;
  }

  .header-container {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  nav ul {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .desktop-nav {
    display: none;
  }
  
  .menu-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  /* Tablet spacing refinements */
  .about-card {
    padding: 2rem 1.5rem;
  }
  
  .feature-card {
    padding: 1.75rem 1.5rem;
  }
  
  .team-content {
    padding: 1.75rem;
  }
  
  .stats {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }
  
  .vision-container {
    gap: 3rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .stat-item h3 {
    font-size: 2.75rem;
  }

  .vision-image {
    height: 350px;
  }
  
  /* Enhanced button spacing for touch */
  .btn {
    min-height: 44px; /* Accessibility requirement */
    padding: 1rem 2rem;
  }
  
  .feature-tabs {
    gap: 0.75rem;
  }
  
  .tab-btn {
    padding: 0.75rem 1.5rem;
    min-height: 44px;
  }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1500;
}

.mobile-nav.active { display: block; }

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.mobile-nav-content {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(85vw, 420px);
  background: var(--secondary-black);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-nav.active .mobile-nav-content { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-logo { font-weight: var(--font-weight-bold); }

.mobile-close-btn {
  background: transparent;
  border: none;
  color: var(--primary-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.9rem 0.75rem;
  border-radius: 10px;
  color: var(--primary-white);
  text-decoration: none;
}

.mobile-nav-links a:hover {
  background: var(--glass-bg);
}

.mobile-actions {
  margin-top: auto;
  padding: 1rem 0.75rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  nav ul li a {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
  }

  .header-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .theme-toggle-btn,
  .language-toggle-btn {
    width: 100%;
    max-width: 200px;
  }

  .about-grid {
    gap: 2rem;
  }

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

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

/* Mobile Landscape & Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
  }

  .hero p {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 2rem;
  }

  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    min-height: 48px; /* Better touch target */
    border-radius: 12px;
  }

  .section {
    padding: 3rem 0;
  }
  
  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 1.875rem);
    margin-bottom: 1rem;
  }
  
  .section-header p {
    font-size: 0.95rem;
  }

  /* Mobile-specific improvements */
  .about-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .team-card {
    border-radius: 16px;
  }
  
  .team-content {
    padding: 1.25rem;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .stat-item h3 {
    font-size: 2.25rem;
  }
  
  .vision-image {
    height: 280px;
    border-radius: 16px;
  }
  
  /* Better mobile typography */
  .feature-content h3 {
    font-size: 1.25rem;
  }
  
  .feature-content p {
    font-size: 0.9rem;
  }
  
  .team-content h3 {
    font-size: 1.25rem;
  }
  
  /* Mobile footer improvements */
  .footer-grid {
    gap: 2rem;
  }
  
  .footer-col p {
    font-size: 0.9rem;
  }
  
  .download-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .social-link img {
    width: 20px;
    height: 20px;
  }
}

/* Parallax Container */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-element {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Modern hover effects */
.feature-card,
.team-card,
.about-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after,
.team-card::after,
.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::after,
.team-card:hover::after,
.about-card:hover::after {
  left: 100%;
}

/* Enhanced button effects */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Loading animation for images */
.team-img,
.vision-image img {
  transition: all var(--transition-slow);
}

.team-img:hover,
.vision-image img:hover {
  filter: brightness(1.1) contrast(1.1);
}

/* Enhanced social links */
.social-links a {
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: left 0.3s ease;
  z-index: -1;
}

.social-links a:hover::before {
  left: 0;
}

/* Professional styles - Quiz styles removed for professional appearance */