@layer utilities {
    /* Keep all original text gradient styles */
    .text-gradient {
        @apply bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-purple-600;
    }
    .text-gradient-gold {
        background-image: linear-gradient(84deg, #ffd000, #ff9200);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .text-gradient-teal {
        @apply bg-clip-text text-transparent bg-gradient-to-r from-teal-400 to-blue-500;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
    .text-gradient-pink {
        @apply bg-clip-text text-transparent bg-gradient-to-r from-pink-400 to-purple-600;
    }
    .text-gradient-primary {
        @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-deep-purple;
    }
    .feature-card {
        @apply bg-white p-8 rounded-2xl shadow-lg transition transform hover:scale-105 flex flex-col;
    }
    .feature-icon {
        @apply w-12 h-12 mb-4 text-deep-purple opacity-80;
    }
    .hero-section {
        @apply bg-gradient-to-br from-hero-start to-hero-end text-white py-16 md:py-24;
    }
    .section {
        @apply py-16 md:py-24;
    }
    .quote-panel {
        @apply py-12 bg-gradient-to-br from-quote-start to-quote-end text-white;
    }
    .feature-image {
        height: 16rem;
        width: 100%;
        border-radius: 0.5rem;
        margin-top: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: block;
    }
}

/* Additional styles from <style> block */
@layer base, components, utilities;

@layer components {
    .animatable {
        transition: all 1s ease-out;
    }
    .btn-primary {
        background: linear-gradient(135deg, var(--deep-blue) 0%, var(--deep-purple) 100%) !important;
        color: white !important;
        font-weight: bold !important;
        padding: 0.5rem 1rem !important;
        border-radius: 9999px !important; /* rounded-full */
        font-size: 0.875rem !important; /* text-lg */
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s ease !important;
        min-width: 90px !important;
        text-align: center !important;
    }
    .btn-primary:hover {
        transform: scale(1.05) !important;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
    }
    .btn-secondary {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        font-weight: bold !important;
        padding: 1rem 2rem !important;
        border-radius: 9999px !important; /* rounded-full */
        font-size: 1rem !important; /* text-lg */
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(4px) !important;
        transition: all 0.3s ease !important;
    }
    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: scale(1.05) !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Fixed parallax effect */
.parallax-bg {
    background-position: center 15%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    transform: translateZ(0);
    will-change: transform;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
}

/* Improved mobile-specific styles */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
        background-position: center 10%;
    }
    .mobile-text-enhance {
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        font-weight: 600;
    }
    #transformation .float-right {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }
    #mobile-menu { display: none; }
    #mobile-menu.active { display: block; }
}

/* Color variables */
:root {
    --deep-blue: #1a202c;
    --deep-purple: #4c51bf;
    --hero-start: #2c5282;
    --hero-end: #2b6cb0;
    --features-start: #2d3748;
    --features-end: #4a5568;
    --pricing-start: #553c9a;
    --pricing-end: #805ad5;
    --expert-start: #2c7a7b;
    --expert-end: #38b2ac;
    --how-start: #702459;
    --how-end: #b83280;
    --faq-start: #744210;
    --faq-end: #d69e2e;
    --neuro-start: #2C3E50;
    --neuro-end: #4CA1AF;
    --neuroscience-start: #2C3E50;
    --neuroscience-end: #4CA1AF;
    --story-start: #2C3E50;
    --story-end: #4CA1AF;
    --telegram-start: #1c92d2;
    --telegram-end: #3a7bd5;
    --testimonials-start: #614385;
    --testimonials-end: #516395;
    --quote-start: #2d3748;
    --quote-end: #4c51bf;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

/* Base styles */
body {
    font-family: 'Chivo', sans-serif;
    font-weight: 400;
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Chivo', sans-serif;
    font-weight: 700;
}

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* Gradient classes */
.from-story-start { --tw-gradient-from: var(--story-start); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(44, 62, 80, 0)); }
.to-story-end { --tw-gradient-to: var(--story-end); }
.from-telegram-start { --tw-gradient-from: var(--telegram-start); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(28, 146, 210, 0)); }
.to-telegram-end { --tw-gradient-to: var(--telegram-end); }
.from-testimonials-start { --tw-gradient-from: var(--testimonials-start); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(97, 67, 133, 0)); }
.to-testimonials-end { --tw-gradient-to: var(--testimonials-end); }
.from-quote-start { --tw-gradient-from: var(--quote-start); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(45, 55, 72, 0)); }
.to-quote-end { --tw-gradient-to: var(--quote-end); }

/* Text overlay style */
.text-overlay {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Section content spacing */
.section-content {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--deep-purple);
    outline-offset: 2px;
}

/* Hero section background */
#hero, .hero {
    background: radial-gradient(circle at top right, #4A2B82 0%, #1E2A4A 70%, #121212 100%);
    color: white;
}

/* ====================
   DR. FORTH - MODERN DESIGN SYSTEM 2025
   Premium, cutting-edge aesthetics with conversion optimization
   ==================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===================
   DESIGN TOKENS
   =================== */
:root {
  /* Core Brand Colors - Enhanced */
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;
  
  --secondary-500: #0ea5e9;
  --secondary-600: #0284c7;
  --secondary-700: #0369a1;
  
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  /* Neutrals - High contrast system */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Semantic Colors */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: var(--secondary-500);
  
  /* Gradients - Premium feel */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #4338ca 50%, #6366f1 75%, #a855f7 100%);
  --gradient-feature: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-accent: linear-gradient(45deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899);
  
  /* Typography Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  
  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows - Elevated depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.4);
  --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.3);
  
  /* Animation Easing */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Legacy color support */
  --deep-blue: var(--gray-800);
  --deep-purple: var(--primary-700);
  --warm-cream: var(--gray-50);
  --electric-blue: var(--secondary-500);
}

/* ===================
   BASE STYLES
   =================== */
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================
   TYPOGRAPHY SYSTEM
   =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}

h1 {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Removed animation for performance */
}

h2 {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 700;
}

h3 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-lg) 0;
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* ===================
   BUTTON SYSTEM - Unified & Prominent
   =================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--text-md);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
  transform: translateY(0);
  user-select: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s var(--ease-out);
  border-radius: 50%;
}

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

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-600);
}

.btn-ghost:hover {
  background: var(--primary-600);
  color: white;
}

/* CTA Specific Enhancements */
.btn-cta {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-purple));
  color: white;
  font-weight: 700;
  font-size: var(--text-md);
  padding: var(--space-md) var(--space-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  /* Removed animations for performance */
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ===================
   GLASSMORPHISM COMPONENTS
   =================== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================
   CARD COMPONENTS
   =================== */
.card {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl);
  transition: all 0.3s var(--ease-out);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.card-feature {
  background: linear-gradient(135deg, white 0%, #f8fafc 100%);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 440px;
}

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

.card-feature:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.card-feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.card-feature-image {
  height: 200px;
  width: 100%;
  margin: 0;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ===================
   SECTION LAYOUTS
   =================== */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ===================
   TEXT CONTRAST FIXES
   =================== */
.text-contrast {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  color: white;
}

.text-contrast-strong {
  background: rgba(0, 0, 0, 0.7);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.text-overlay-dark {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  color: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(10px);
}

/* ===================
   SIMPLIFIED ANIMATIONS
   =================== */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

/* Reduce animation intensity */
.animate-float {
  animation: none; /* Disable floating animation */
}

.animate-pulse {
  animation: none; /* Disable pulse animation */
}

/* ===================
   RESPONSIVE DESIGN
   =================== */

/* Tablet and small desktop (850px and similar) */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .text-contrast-strong {
    padding: var(--space-lg) var(--space-xl);
    margin: 0 var(--space-md);
  }
  
  h1 {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  }
  
  h2 {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  :root {
    --space-xs: 0.125rem;
    --space-sm: 0.25rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .btn {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .card {
    padding: var(--space-xl);
  }
  
  h1 {
    line-height: 1.1;
    font-size: clamp(var(--text-2xl), 8vw, var(--text-4xl));
  }
  
  .text-contrast-strong {
    padding: var(--space-sm) var(--space-md);
    margin: 0 var(--space-sm);
  }
  
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .flex-col.sm\:flex-row {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* ===================
   ACCESSIBILITY
   =================== */
.focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================
   LEGACY SUPPORT
   =================== */
.text-gradient-teal {
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card {
  @apply card card-feature;
  display: flex;
  flex-direction: column;
}

.feature-image {
  height: 200px;
  width: 100%;
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s var(--ease-out);
}

.feature-card:hover .feature-image {
  transform: scale(1.05);
}

/* Navigation enhancement */
nav {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===================
   UTILITY CLASSES
   =================== */
.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; }
.gap-4 { gap: var(--space-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

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

.transition-all { transition: all 0.3s var(--ease-out); }
.transform { transform: translateZ(0); }
.translate-y-0 { transform: translateY(0); }
.translate-y-10 { transform: translateY(10px); }
.scale-105 { transform: scale(1.05); }

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

.ease-out { transition-timing-function: var(--ease-out); }

/* Grid system */
.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)); }
.gap-8 { gap: var(--space-2xl); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* Changed to 2 columns for better 850px handling */
}

@media (min-width: 1200px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 3 columns only on larger screens */
}

/* Parallax support */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Mobile menu */
#mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#mobile-menu.active {
  display: block;
}

/* Enhanced text shadows for mobile */
@media (max-width: 768px) {
  .mobile-text-enhance {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
  }
}
