/* Custom Styles to Complement Tailwind CSS */

/* =================================================================
   TYPOGRAPHY ENHANCEMENT SYSTEM
   
   Professional-grade typography system for crisp, sharp text rendering
   across all devices and screen densities. Optimized for:
   • High-contrast readability on all backgrounds
   • Pixel-perfect text rendering (anti-aliasing optimization)
   • Consistent hierarchy and visual stability
   • Professional government-grade interface standards
   • Enhanced legibility for exam content
   ================================================================= */

/* Base Font Rendering Optimization */
* {
    /* Optimize text rendering for sharpness */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    font-variant-ligatures: common-ligatures;
    font-kerning: auto;
}

/* Enhanced Font Loading and Performance */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
}

/* Root Typography Variables */
:root {
    /* Primary font stack - optimized for readability */
    --font-primary: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    --font-display: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    
    /* Typography scale with enhanced contrast */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */
    
    /* Line heights for optimal readability */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter spacing for enhanced readability */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    
    /* High-contrast color system */
    --text-primary: #1a202c;      /* Deep charcoal for maximum readability */
    --text-secondary: #2d3748;     /* Slightly lighter for secondary content */
    --text-muted: #4a5568;         /* Muted text with good contrast */
    --text-light: #718096;         /* Light text with minimum contrast ratio */
    --text-white: #ffffff;         /* Pure white for dark backgrounds */
    --text-accent: #3182ce;        /* Blue accent with high contrast */
    
    /* Background contrasts */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-accent: #edf2f7;
}

/* Enhanced font family application */
body {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-normal);
}

/* Typography Hierarchy - Enhanced for Professional UI */

/* Display Headings - Sharp and Commanding */
h1, .text-4xl, .text-5xl, .text-6xl {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    text-shadow: none; /* Remove any blur-causing text shadows */
}

/* Section Headings - Professional and Clear */
h2, .text-3xl {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
}

/* Subsection Headings - Strong and Readable */
h3, .text-2xl {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-normal);
}

/* Component Headings - Balanced and Clear */
h4, .text-xl {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-primary);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-normal);
}

/* Body Text - Optimized for Reading */
p, .text-base, .text-lg {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-normal);
}

/* Small Text - Maintained Readability */
.text-sm {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-muted);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-normal);
}

/* Micro Text - Clear and Legible */
.text-xs {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-muted);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-wide);
}

/* Enhanced Button Typography - Sharp and Professional */
.btn, button, [role="button"] {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: var(--tracking-normal);
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation Text - Clear and Accessible */
nav a, .nav-link, .nav-link-mobile {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: var(--tracking-normal);
    color: var(--text-primary);
    text-decoration: none;
}

/* Form Elements - Professional and Readable */
input, textarea, select, label {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: var(--tracking-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input::placeholder, textarea::placeholder {
    color: var(--text-light);
    opacity: 1;
}

/* Enhanced Text Color Classes for High Contrast */
.text-gray-900 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.text-gray-800 {
    color: var(--text-secondary) !important;
}

.text-gray-700 {
    color: var(--text-secondary) !important;
}

.text-gray-600 {
    color: var(--text-muted) !important;
}

.text-gray-500 {
    color: var(--text-light) !important;
}

/* High Contrast Utility Classes */
.text-sharp {
    color: var(--text-primary);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.text-crisp {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.text-professional {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
}

/* Enhanced Hero Typography */
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    text-shadow: none;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-normal);
}

/* Button Text Enhancement */
.btn-3d, .btn-3d span {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: var(--tracking-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive Typography Adjustments */
@media (max-width: 768px) {
    /* Maintain readability on smaller screens */
    .text-4xl, .text-5xl, .text-6xl {
        line-height: var(--leading-snug);
    }
    
    /* Ensure minimum touch targets for mobile */
    .nav-link-mobile {
        font-size: var(--text-base);
        font-weight: 500;
    }
}

/* High DPI Display Optimization */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    /* Enhanced text rendering for Retina displays */
    * {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #1a1a1a;
        --text-muted: #333333;
        --bg-primary: #ffffff;
    }
}

/* Remove any conflicting text shadows and blur effects */
.text-glow-3d {
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 3D Transform Utilities */
.transform-3d {
    transform-style: preserve-3d;
}

.perspective-1000 {
    perspective: 1000px;
}

.rotate-x-12 {
    transform: rotateX(12deg);
}

.rotate-y-12 {
    transform: rotateY(12deg);
}

/* 3D Card Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 3D Button Effects */
.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-3d:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-3d:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 10px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* 3D Icon Effects */
.icon-3d {
    transform-style: preserve-3d;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    box-shadow: 
        8px 8px 16px #cbd5e1,
        -8px -8px 16px #ffffff,
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(203, 213, 225, 0.3);
    transition: all 0.3s ease;
}

.icon-3d:hover {
    transform: translateZ(10px) rotateY(15deg);
    box-shadow: 
        12px 12px 24px #cbd5e1,
        -12px -12px 24px #ffffff,
        inset 3px 3px 6px rgba(255, 255, 255, 0.9),
        inset -3px -3px 6px rgba(203, 213, 225, 0.4);
}

/* Glassmorphism Navigation */
/* =================================================================
   SEAMLESS NAVIGATION BAR SYSTEM
   
   This system creates a modern, professional navbar that:
   • Starts completely transparent, blending with hero background
   • Smoothly transitions to solid background when scrolling
   • Adapts text colors automatically (white on transparent, dark on solid)
   • Maintains consistent height and layout throughout
   • Optimized for mobile performance with reduced blur effects
   • Respects user's reduced-motion preferences
   
   Key Classes:
   • .navbar-transparent - Initial transparent state
   • .navbar-scrolled - Solid background state after scrolling
   • .nav-link - Navigation link styling that adapts to navbar state
   • .mobile-nav-bg - Mobile menu background that adapts to navbar state
   
   JavaScript Integration:
   • initSeamlessNavigation() - Handles scroll detection and state changes
   • Trigger point: 50% of hero section height
   • Performance optimized with requestAnimationFrame
   ================================================================= */

/* Hero-integrated state - visible but seamlessly blended */
.navbar-transparent {
    /* Transparent background that blends with hero gradient */
    background: linear-gradient(
        180deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 51, 234, 0.05) 50%,
        transparent 100%
    );
    backdrop-filter: blur(8px) saturate(120%);
    border: none;
    box-shadow: none;
    
    /* Smooth transitions for all properties */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Consistent positioning - always visible */
    position: fixed;
    z-index: 50;
    width: 100%;
    top: 0;
    opacity: 1;
    transform: translateY(0);
}

/* Content-area state - solid background with professional styling */
.navbar-scrolled {
    /* Clean white background with subtle transparency */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: none;
    
    /* Professional shadow for depth */
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    
    /* Smooth transitions */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Consistent positioning */
    position: fixed;
    z-index: 50;
    width: 100%;
    top: 0;
    opacity: 1;
    transform: translateY(0);
}

/* Navigation links - hero-integrated state (dark colors for theme consistency) */
.navbar-transparent .nav-link {
    color: rgba(55, 65, 81, 0.9);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-transparent .nav-link:hover {
    color: rgba(55, 65, 81, 1);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* Navigation links - content-area state (dark colors for readability) */
.navbar-scrolled .nav-link {
    color: rgba(55, 65, 81, 0.85);
    text-shadow: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-scrolled .nav-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(10px);
}

/* Logo styling - hero-integrated state */
.navbar-transparent img {
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
    transition: filter 0.3s ease;
}

/* Mobile hamburger - hero-integrated state */
.navbar-transparent .hamburger {
    color: rgba(55, 65, 81, 0.9);
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
    transition: all 0.3s ease;
}

.navbar-transparent .hamburger:hover {
    color: rgba(55, 65, 81, 1);
    transform: scale(1.05);
}

/* Logo styling - content-area state */
.navbar-scrolled img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

/* Mobile hamburger - content-area state */
.navbar-scrolled .hamburger {
    color: rgba(55, 65, 81, 0.85);
    filter: none;
    transition: all 0.3s ease;
}

.navbar-scrolled .hamburger:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

/* Mobile navigation dropdown background */
.navbar-transparent .mobile-nav-bg {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .mobile-nav-bg {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile navigation links */
.navbar-transparent .nav-link-mobile,
.navbar-scrolled .nav-link-mobile {
    color: rgba(55, 65, 81, 0.85);
    transition: all 0.3s ease;
}

.navbar-transparent .nav-link-mobile:hover,
.navbar-scrolled .nav-link-mobile:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(4px);
}

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

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

/* 3D Floating Animations */
@keyframes float-3d {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    }
    50% {
        transform: translateY(-10px) rotateX(-3deg) rotateY(10deg);
    }
    75% {
        transform: translateY(-15px) rotateX(8deg) rotateY(-5deg);
    }
}

@keyframes float-3d-reverse {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(15px) rotateX(-5deg) rotateY(-8deg);
    }
    50% {
        transform: translateY(8px) rotateX(3deg) rotateY(-12deg);
    }
    75% {
        transform: translateY(12px) rotateX(-8deg) rotateY(6deg);
    }
}

@keyframes rotate-3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Blob animations for Features section background */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* Educational Animation Keyframes */
@keyframes float-book {
    0%, 100% {
        transform: translateY(0px) rotate(12deg) scale(1);
    }
    50% {
        transform: translateY(-20px) rotate(15deg) scale(1.05);
    }
}

@keyframes float-cap {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    33% {
        transform: translateY(-15px) rotateY(120deg);
    }
    66% {
        transform: translateY(-5px) rotateY(240deg);
    }
}

@keyframes float-paper {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) translateX(5px) rotate(1deg);
    }
    75% {
        transform: translateY(-5px) translateX(-3px) rotate(-1deg);
    }
}

@keyframes rotate-clock {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes float-certificate {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    50% {
        transform: translateY(-25px) rotateZ(3deg);
    }
}

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

@keyframes float-building {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

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

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

/* Trophy Animation */
@keyframes float-trophy {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-12px) rotate(1deg) scale(1.02);
    }
    50% {
        transform: translateY(-16px) rotate(0deg) scale(1.05);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg) scale(1.02);
    }
}

/* Medal Animation */
@keyframes float-medal {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(3deg);
    }
    66% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

/* Success Badge Animation */
@keyframes pulse-success {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Contact & Communication Icon Keyframes */
@keyframes float-phone {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(2deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-6px) rotate(-2deg);
    }
}

@keyframes float-envelope {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    33% {
        transform: translateY(-10px) translateX(3px) scale(1.02);
    }
    66% {
        transform: translateY(-6px) translateX(-3px) scale(0.98);
    }
}

@keyframes pulse-help {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
        opacity: 0.9;
    }
}

@keyframes float-headset {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    30% {
        transform: translateY(-8px) rotateX(5deg);
    }
    70% {
        transform: translateY(-12px) rotateX(-5deg);
    }
}

@keyframes float-chat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    40% {
        transform: translateY(-14px) scale(1.08);
    }
    60% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes float-location {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-6px) rotate(2deg) scale(1.05);
    }
    50% {
        transform: translateY(-15px) rotate(0deg) scale(1.1);
    }
    75% {
        transform: translateY(-8px) rotate(-2deg) scale(1.05);
    }
}

@keyframes float-calendar {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    33% {
        transform: translateY(-10px) rotateY(5deg);
    }
    66% {
        transform: translateY(-5px) rotateY(-5deg);
    }
}

/* Professional Background Icon Animations */
@keyframes pulse-ai-pro {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.6; 
    }
    50% { 
        transform: scale(1.08) rotate(3deg); 
        opacity: 0.9; 
    }
}

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

@keyframes float-paper-pro {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-10px) translateX(6px) rotate(2deg); 
    }
    66% { 
        transform: translateY(-14px) translateX(-4px) rotate(-1deg); 
    }
}

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

@keyframes float-globe-pro {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-22px) scale(1.06); 
        opacity: 1; 
    }
}

@keyframes float-students-pro {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
    }
    25% { 
        transform: translateY(-12px) translateX(6px); 
    }
    75% { 
        transform: translateY(-10px) translateX(-6px); 
    }
}

/* Educational Animation Classes */
.animate-float-book {
    animation: float-book 8s ease-in-out infinite;
}

.animate-float-cap {
    animation: float-cap 12s ease-in-out infinite;
}

.animate-float-paper {
    animation: float-paper 6s ease-in-out infinite;
}

.animate-rotate-clock {
    animation: rotate-clock 20s linear infinite;
}

.animate-float-certificate {
    animation: float-certificate 9s ease-in-out infinite;
}

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

.animate-float-building {
    animation: float-building 10s ease-in-out infinite;
}

.animate-pulse-ai {
    animation: pulse-ai 4s ease-in-out infinite;
}

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

/* Trophy, Medal, and Success Badge Animations */
.animate-float-trophy {
    animation: float-trophy 3.2s ease-in-out infinite;
}

.animate-float-medal {
    animation: float-medal 3.8s ease-in-out infinite;
}

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

/* Contact & Communication Icon Animations */
.animate-float-phone {
    animation: float-phone 3.5s ease-in-out infinite;
}

.animate-float-envelope {
    animation: float-envelope 4.2s ease-in-out infinite;
}

.animate-pulse-help {
    animation: pulse-help 2.5s ease-in-out infinite;
}

.animate-float-headset {
    animation: float-headset 3.8s ease-in-out infinite;
}

.animate-float-chat {
    animation: float-chat 3.2s ease-in-out infinite;
}

.animate-float-location {
    animation: float-location 4s ease-in-out infinite;
}

.animate-float-calendar {
    animation: float-calendar 3.6s ease-in-out infinite;
}

/* Professional Background Icon Animation Classes */
.animate-pulse-ai {
    animation: pulse-ai-pro 4s ease-in-out infinite;
}

.animate-float-chart {
    animation: float-chart-pro 6s ease-in-out infinite;
}

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

.animate-rotate-clock {
    animation: rotate-clock-pro 20s linear infinite;
}

.animate-float-globe {
    animation: float-globe-pro 7s ease-in-out infinite;
}

.animate-float-students {
    animation: float-students-pro 9s ease-in-out infinite;
}

.animate-float-3d {
    animation: float-3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.animate-float-3d-reverse {
    animation: float-3d-reverse 7s ease-in-out infinite;
    transform-style: preserve-3d;
}

.animate-rotate-3d {
    animation: rotate-3d 20s linear infinite;
    transform-style: preserve-3d;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Educational Element Styling */
.animate-float-book svg,
.animate-float-cap svg,
.animate-float-paper svg,
.animate-rotate-clock svg,
.animate-float-certificate svg,
.animate-float-pencil svg,
.animate-float-building svg,
.animate-pulse-ai svg,
.animate-float-calculator svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

/* Section Separator Educational Elements */
.section-separator {
    position: relative;
    overflow: hidden;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    transform: translateY(-50%);
}

/* Educational Background for Other Sections */
.edu-bg-light {
    position: relative;
}

.edu-bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* 3D Text Glow Effects */
.text-glow-3d {
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.text-glow-3d:hover {
    text-shadow: 
        0 0 15px rgba(59, 130, 246, 0.7),
        0 0 30px rgba(59, 130, 246, 0.5),
        0 0 45px rgba(59, 130, 246, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.bg-gradient-text {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* CTA Section Force Background */
section.bg-gradient-to-br.from-blue-600 {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #1e40af 100%) !important;
    color: white !important;
}

section.bg-gradient-to-br.from-blue-600 h2,
section.bg-gradient-to-br.from-blue-600 p {
    color: white !important;
}

/* Pulse animation for CTA elements */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Hero Section Animations */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s both;
}

/* Mobile Navigation Toggle */
.hamburger-line {
    transition: all 0.3s ease;
}

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

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* Smooth Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:bg-primary-200 {
    background-color: #dbeafe;
}

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

/* Enhanced Features Section Styling */
#features .group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#features .group:hover {
    transform: translateY(-8px);
}

/* Feature card enhanced shadows */
.shadow-glow {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Backdrop blur enhancement */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Icon container hover effects */
.feature-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

/* Badge hover effects */
.feature-badge {
    transition: all 0.2s ease;
}

.feature-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Custom Gradient for Hero Background */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, #eff6ff, #ffffff, #eff6ff);
}

/* Custom Scrollbar (for webkit browsers) */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus States for Better Accessibility */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px #3b82f6;
}

/* Print Styles */
@media print {
    .fixed,
    .hamburger,
    .cta,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .text-primary-600 {
        color: black !important;
    }
    
    .bg-gray-900,
    .bg-primary-600 {
        background: white !important;
        color: black !important;
    }
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    /* Features section mobile optimizations */
    #features .group {
        margin-bottom: 1rem;
    }
    
    /* Reduce motion on mobile for better performance */
    #features .group:hover {
        transform: translateY(-4px);
    }
    
    .feature-icon {
        width: 3rem;
        height: 3rem;
    }
    
    /* Simplified 3D effects for mobile performance */
    .card-3d:hover {
        transform: translateY(-5px) scale(1.02) !important;
        box-shadow: 0 15px 30px -6px rgba(0, 0, 0, 0.2) !important;
    }
    
    .btn-3d:hover {
        transform: translateY(-1px) scale(1.01) !important;
    }
    
    .icon-3d:hover {
        transform: translateZ(5px) scale(1.05) !important;
    }
    
    /* Hide educational elements on very small screens for performance */
    .animate-float-book,
    .animate-float-cap,
    .animate-float-paper,
    .animate-rotate-clock,
    .animate-float-certificate,
    .animate-float-pencil,
    .animate-float-building,
    .animate-pulse-ai,
    .animate-float-calculator {
        animation-duration: 12s; /* Slower animations on mobile */
        opacity: 0.3; /* More subtle on mobile */
    }
    
    /* Simplify complex animations on mobile */
    .animate-rotate-clock {
        animation: float-calculator 10s ease-in-out infinite;
    }
    
    .text-glow-3d {
        text-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
    }
    
    .text-glow-3d:hover {
        text-shadow: 0 0 12px rgba(59, 130, 246, 0.5) !important;
        transform: none !important;
    }
    
    /* Mobile navbar optimizations */
    .navbar-transparent,
    .navbar-scrolled {
        transition: all 0.3s ease; /* Faster transitions on mobile */
    }
    
    /* Reduce backdrop-blur on mobile for better performance */
    .navbar-scrolled {
        backdrop-filter: blur(10px) saturate(150%);
    }
    
    .navbar-transparent .mobile-nav-bg,
    .navbar-scrolled .mobile-nav-bg {
        backdrop-filter: blur(10px);
    }
    
    .perspective-1000 {
        perspective: 500px; /* Reduce perspective on mobile */
    }
    
    /* Disable complex 3D transforms on very small screens */
    .transform-3d {
        transform-style: flat;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable all animations for motion-sensitive users */
    .animate-blob,
    .animate-float-book,
    .animate-float-cap,
    .animate-float-paper,
    .animate-rotate-clock,
    .animate-float-certificate,
    .animate-float-pencil,
    .animate-float-building,
    .animate-pulse-ai,
    .animate-float-calculator {
        animation: none !important;
    }
    
    /* Simplify navbar transitions for reduced motion */
    .navbar-transparent,
    .navbar-scrolled {
        transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
        backdrop-filter: none !important;
    }
    
    /* Provide static, accessible fallbacks */
    .animate-float-book svg,
    .animate-float-cap svg,
    .animate-float-paper svg,
    .animate-rotate-clock svg,
    .animate-float-certificate svg,
    .animate-float-pencil svg,
    .animate-float-building svg,
    .animate-pulse-ai svg,
    .animate-float-calculator svg {
        opacity: 0.4 !important;
        transform: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff;
    }
    
    .text-gray-600 {
        color: #000000;
    }
    
    .border-gray-200 {
        border-color: #000000;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Currently maintaining light theme only */
    /* This can be expanded later if dark mode is desired */
}

/* =================================================================
   CINEMATIC 3-PHONE HERO LAYOUT SYSTEM
   
   Premium animation system for a futuristic exam platform hero section:
   • Front phone: Main showcase with glossy shimmer and floating animation
   • Back phones: Layered depth with parallax motion and entry animations
   • Advanced lighting effects and 3D transformations
   • Performance-optimized for all devices
   ================================================================= */

/* 3D Phone Layout Container */
.phone-showcase-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1500px;
    transform-style: preserve-3d;
    overflow: visible;
}

/* Back Phone - Left */
.phone-back-left {
    position: absolute;
    top: 80px;
    left: -60px;
    width: 280px;
    height: 520px;
    transform: 
        translateZ(-120px) 
        rotateY(25deg) 
        rotateX(5deg) 
        scale(0.85);
    opacity: 0.7;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: phoneBackEntryLeft 2s ease-out 0.5s both;
}

/* Back Phone - Right */
.phone-back-right {
    position: absolute;
    top: 120px;
    right: -80px;
    width: 280px;
    height: 520px;
    transform: 
        translateZ(-150px) 
        rotateY(-30deg) 
        rotateX(8deg) 
        scale(0.8);
    opacity: 0.6;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: phoneBackEntryRight 2s ease-out 0.8s both;
}

/* Front Phone - Main Showcase */
.phone-front-main {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 320px;
    height: 580px;
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: phoneFrontFloat 4s ease-in-out infinite;
}

/* Phone Frame Base Styling */
.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 45px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Phone Screen Container */
.phone-screen {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(145deg, #000000, #1a1a1a);
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Phone Screen Content */
.phone-screen-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%
    );
    background-size: 300% 300%;
    animation: screenGradientFlow 8s ease infinite;
    border-radius: 35px;
    overflow: hidden;
}

/* Exam Interface Mockup */
.exam-interface {
    position: absolute;
    inset: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 20px;
    backdrop-filter: blur(20px);
    animation: interfaceFlicker 3s ease-in-out infinite;
}

/* Interface Elements */
.interface-header {
    height: 60px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 15px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.interface-question {
    height: 120px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.interface-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.interface-option {
    height: 35px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.interface-timer {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 30px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 15px;
    animation: timerPulse 1.5s ease-in-out infinite;
}

/* Premium Shimmer Effect for Front Phone */
.phone-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.6) 55%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent 70%
    );
    transform: skewX(-25deg);
    animation: shimmerSweep 3s ease-in-out infinite;
    border-radius: 45px;
    z-index: 20;
}

/* Ambient Glow Behind Front Phone */
.phone-ambient-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(
        ellipse at center,
        rgba(59, 130, 246, 0.4) 0%,
        rgba(139, 92, 246, 0.3) 35%,
        rgba(236, 72, 153, 0.2) 70%,
        transparent 100%
    );
    border-radius: 60px;
    filter: blur(20px);
    animation: ambientGlowPulse 4s ease-in-out infinite;
    z-index: -1;
}

/* Floating Particles Background */
.particle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(2n) {
    background: rgba(139, 92, 246, 0.5);
    animation-duration: 18s;
    animation-delay: -5s;
}

.particle:nth-child(3n) {
    background: rgba(236, 72, 153, 0.4);
    animation-duration: 12s;
    animation-delay: -8s;
}

/* Hover Parallax Effects */
.phone-showcase-container:hover .phone-back-left {
    transform: 
        translateZ(-100px) 
        rotateY(20deg) 
        rotateX(3deg) 
        scale(0.88);
    opacity: 0.8;
}

.phone-showcase-container:hover .phone-back-right {
    transform: 
        translateZ(-130px) 
        rotateY(-25deg) 
        rotateX(6deg) 
        scale(0.83);
    opacity: 0.7;
}

.phone-showcase-container:hover .phone-front-main {
    transform: 
        translateX(-50%) 
        translateZ(20px) 
        rotateX(-2deg) 
        scale(1.05);
}

/* Entry Animations */
@keyframes phoneBackEntryLeft {
    0% {
        transform: 
            translateZ(-200px) 
            translateX(-200px) 
            rotateY(45deg) 
            rotateX(15deg) 
            scale(0.6);
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        transform: 
            translateZ(-120px) 
            rotateY(25deg) 
            rotateX(5deg) 
            scale(0.85);
        opacity: 0.7;
        filter: blur(0px);
    }
}

@keyframes phoneBackEntryRight {
    0% {
        transform: 
            translateZ(-250px) 
            translateX(200px) 
            rotateY(-50deg) 
            rotateX(20deg) 
            scale(0.5);
        opacity: 0;
        filter: blur(12px);
    }
    100% {
        transform: 
            translateZ(-150px) 
            rotateY(-30deg) 
            rotateX(8deg) 
            scale(0.8);
        opacity: 0.6;
        filter: blur(0px);
    }
}

@keyframes phoneFrontFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0px) translateZ(0);
    }
    25% {
        transform: translateX(-50%) translateY(-5px) translateZ(0) rotateX(1deg);
    }
    50% {
        transform: translateX(-50%) translateY(-8px) translateZ(0);
    }
    75% {
        transform: translateX(-50%) translateY(-3px) translateZ(0) rotateX(-1deg);
    }
}

@keyframes shimmerSweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

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

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

@keyframes interfaceFlicker {
    0%, 100% {
        opacity: 1;
    }
    94%, 96% {
        opacity: 0.95;
    }
    95% {
        opacity: 0.98;
    }
}

@keyframes timerPulse {
    0%, 100% {
        background: rgba(239, 68, 68, 0.9);
        transform: scale(1);
    }
    50% {
        background: rgba(239, 68, 68, 1);
        transform: scale(1.05);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {
    .phone-showcase-container {
        height: 400px;
        perspective: 1000px;
    }
    
    .phone-front-main {
        width: 240px;
        height: 440px;
    }
    
    .phone-back-left,
    .phone-back-right {
        width: 200px;
        height: 380px;
    }
    
    .phone-back-left {
        left: -40px;
        top: 60px;
    }
    
    .phone-back-right {
        right: -60px;
        top: 80px;
    }
    
    /* Reduce animation complexity on mobile */
    .phone-shimmer {
        animation-duration: 4s;
    }
    
    .particle {
        animation-duration: 20s;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .phone-front-main {
        animation: none;
    }
    
    .phone-shimmer {
        animation-duration: 6s;
    }
    
    .phone-showcase-container:hover .phone-back-left,
    .phone-showcase-container:hover .phone-back-right,
    .phone-showcase-container:hover .phone-front-main {
        transition-duration: 0.3s;
    }
    
    .particle {
        animation-duration: 30s;
    }
}

/* =================================================================
   DYNAMIC HERO BACKGROUND ANIMATIONS
   
   Cinematic background gradients that complement the 3-phone layout
   ================================================================= */

/* Dynamic Gradient Animations */
@keyframes gradient-x {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
}

@keyframes gradient-xy {
    0%, 100% {
        background-position: 0% 0%;
        opacity: 0.3;
    }
    25% {
        background-position: 100% 0%;
        opacity: 0.5;
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.3;
    }
    75% {
        background-position: 0% 100%;
        opacity: 0.4;
    }
}

@keyframes gradient-radial {
    0%, 100% {
        background-size: 200% 200%;
        background-position: 0% 0%;
    }
    50% {
        background-size: 300% 300%;
        background-position: 100% 100%;
    }
}

/* Gradient Animation Classes */
.animate-gradient-x {
    background-size: 400% 400%;
    animation: gradient-x 15s ease infinite;
}

.animate-gradient-xy {
    background-size: 400% 400%;
    animation: gradient-xy 20s ease infinite;
}

.animate-gradient-radial {
    animation: gradient-radial 12s ease infinite;
}

/* Enhanced Phone Container Interactions */
.phone-showcase-container {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone-showcase-container:hover {
    transform: scale(1.02) translateY(-10px);
}

/* Additional Premium Effects */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 45px;
    pointer-events: none;
    z-index: 1;
}

/* Cinematic Depth of Field Effect */
@media (min-width: 768px) {
    .phone-back-left,
    .phone-back-right {
        filter: blur(0.5px);
        transition: filter 0.8s ease;
    }
    
    .phone-showcase-container:hover .phone-back-left,
    .phone-showcase-container:hover .phone-back-right {
        filter: blur(0.2px);
    }
}

/* Floating Info Badge Styles */
#info-badge {
    will-change: transform, opacity;
}

#info-badge.show {
    opacity: 1;
    transform: scale(1);
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

#info-badge-btn {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

#info-badge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

#info-badge-btn:active {
    transform: translateY(0);
}

/* Pulse animation for attention */
#info-badge.pulse #info-badge-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.3));
    animation: pulse 2s infinite;
    z-index: -1;
}

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

/* Info Modal Styles */
#info-modal.show {
    opacity: 1;
    visibility: visible;
}

#info-modal.show #modal-content {
    transform: scale(1);
}

#modal-content {
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal animations */
@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#info-modal.show #modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

/* Hide scrollbars completely */
.glassmorphism-modal {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.glassmorphism-modal::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Button hover effects */
#stable-version-link:hover {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

#continue-preview:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #info-badge {
        bottom: 1rem;
        right: 1rem;
    }
    
    #info-badge-btn {
        width: 3rem;
        height: 3rem;
    }
    
    #info-badge-btn span {
        font-size: 1.25rem;
    }
    
    #modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    #modal-content h3 {
        font-size: 1.125rem;
    }
    
    .flex.flex-col.sm\\:flex-row {
        flex-direction: column;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    #info-badge,
    #info-modal,
    #modal-content,
    #info-badge-btn {
        transition: none;
        animation: none;
    }
    
    #info-badge.show {
        opacity: 1;
        transform: scale(1);
    }
}

/* Focus styles for accessibility */
#info-badge-btn:focus-visible,
#close-modal:focus-visible,
#stable-version-link:focus-visible,
#continue-preview:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    #modal-content {
        background-color: #1f2937;
        color: #f9fafb;
        border-color: rgba(75, 85, 99, 0.3);
    }
    
    #modal-content h3 {
        color: #f9fafb;
    }
    
    #modal-content p {
        color: #d1d5db;
    }
    
    #close-modal {
        color: #9ca3af;
    }
    
    #close-modal:hover {
        color: #f3f4f6;
        background-color: #374151;
    }
    
    #continue-preview {
        background-color: #374151;
        color: #f9fafb;
    }
    
    #continue-preview:hover {
        background-color: #4b5563;
    }
}

/* Advanced AI Modal - Sophisticated Light Theme */
#info-modal {
    backdrop-filter: blur(24px) saturate(180%);
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.6) 0%, 
        rgba(241, 245, 249, 0.7) 50%, 
        rgba(248, 250, 252, 0.6) 100%);
    will-change: opacity, visibility;
    overflow: hidden;
}

/* Sophisticated Glassmorphism Container */
.glassmorphism-modal {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 250, 252, 0.95) 30%,
        rgba(241, 245, 249, 0.9) 70%,
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    max-width: 480px;
    margin: auto;
    will-change: transform, opacity;
    box-shadow: 
        0 25px 60px rgba(100, 116, 139, 0.15),
        0 0 0 1px rgba(148, 163, 184, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Holographic Border Effect */
.glassmorphism-modal::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, 
        #64748b 0%, 
        #0891b2 20%, 
        #6366f1 40%, 
        #8b5cf6 60%, 
        #0891b2 80%, 
        #64748b 100%);
    background-size: 300% 300%;
    animation: holographicFlow 8s ease-in-out infinite;
    z-index: -2;
    opacity: 0.6;
    filter: blur(1px);
}

/* Frosted Glass Inner Layer */
.glassmorphism-modal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(148, 163, 184, 0.05) 25%, 
        rgba(100, 116, 139, 0.03) 50%, 
        rgba(148, 163, 184, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 24px;
    z-index: -1;
    backdrop-filter: blur(8px);
}

/* Enhanced welcome modal styling */
.welcome-modal-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.welcome-section {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Premium button styling */
#stable-version-link {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

#stable-version-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#stable-version-link:hover::before {
    left: 100%;
}

#continue-preview {
    border: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

#continue-preview:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Modal entrance animation */
#info-modal.show {
    animation: modalFadeIn 0.4s ease-out;
}

#info-modal.show #modal-content {
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive enhancements */
@media (max-width: 480px) {
    #modal-content {
        max-width: calc(100vw - 2rem);
        margin: 1rem;
    }
    
    #modal-content .p-8 {
        padding: 1.5rem;
    }
    
    #modal-content h2 {
        font-size: 1.5rem;
    }
    
    #modal-content p {
        font-size: 1rem;
    }
    
    .welcome-modal-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .welcome-modal-icon span {
        font-size: 1.75rem;
    }
}

/* Ensure modal appears above everything */
#info-modal {
    z-index: 9999;
}

/* Smooth close animation */
#info-modal.closing {
    animation: modalFadeOut 0.3s ease-in forwards;
}

#info-modal.closing #modal-content {
    animation: modalSlideDown 0.3s ease-in forwards;
}

@keyframes modalFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

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

/* Holographic Border Animation */
@keyframes holographicFlow {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.4;
    }
    25% {
        background-position: 75% 25%;
        opacity: 0.7;
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.5;
    }
    75% {
        background-position: 25% 75%;
        opacity: 0.8;
    }
}

/* Elegant Circuit Pattern Overlay */
.neural-circuit-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(100, 116, 139, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(8, 145, 178, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.03) 1.5px, transparent 1.5px),
        linear-gradient(45deg, transparent 48%, rgba(148, 163, 184, 0.02) 49%, rgba(148, 163, 184, 0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(100, 116, 139, 0.02) 49%, rgba(100, 116, 139, 0.02) 51%, transparent 52%);
    background-size: 60px 60px, 40px 40px, 80px 80px, 30px 30px, 30px 30px;
    animation: circuitShift 15s linear infinite;
    border-radius: 24px;
    pointer-events: none;
}

@keyframes circuitShift {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    100% {
        background-position: 60px 60px, -40px 40px, 80px -80px, 30px 30px, -30px 30px;
    }
}

/* Animated Background Glow */
.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

/* Modal Logo Styling */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.1),
        0 4px 16px rgba(139, 92, 246, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.3) 0%,
        rgba(139, 92, 246, 0.3) 25%,
        rgba(6, 182, 212, 0.3) 50%,
        rgba(139, 92, 246, 0.3) 75%,
        rgba(59, 130, 246, 0.3) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    animation: holographic-border 4s ease-in-out infinite;
    z-index: -1;
}

.logo-container img {
    filter: 
        drop-shadow(0 4px 8px rgba(59, 130, 246, 0.2))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-container:hover img {
    filter: 
        drop-shadow(0 6px 12px rgba(59, 130, 246, 0.3))
        drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15))
        brightness(1.05);
}

@keyframes holographic-border {
    0%, 100% {
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 0.3) 0%,
            rgba(139, 92, 246, 0.3) 25%,
            rgba(6, 182, 212, 0.3) 50%,
            rgba(139, 92, 246, 0.3) 75%,
            rgba(59, 130, 246, 0.3) 100%);
    }
    25% {
        background: linear-gradient(135deg, 
            rgba(139, 92, 246, 0.3) 0%,
            rgba(6, 182, 212, 0.3) 25%,
            rgba(59, 130, 246, 0.3) 50%,
            rgba(139, 92, 246, 0.3) 75%,
            rgba(6, 182, 212, 0.3) 100%);
    }
    50% {
        background: linear-gradient(135deg, 
            rgba(6, 182, 212, 0.3) 0%,
            rgba(59, 130, 246, 0.3) 25%,
            rgba(139, 92, 246, 0.3) 50%,
            rgba(6, 182, 212, 0.3) 75%,
            rgba(59, 130, 246, 0.3) 100%);
    }
    75% {
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 0.3) 0%,
            rgba(6, 182, 212, 0.3) 25%,
            rgba(139, 92, 246, 0.3) 50%,
            rgba(59, 130, 246, 0.3) 75%,
            rgba(6, 182, 212, 0.3) 100%);
    }
}

/* Neural Network Icon Animations */
.neural-network-icon {
    position: relative;
    will-change: transform;
}

.neural-node {
    animation: neuralPulse 2s ease-in-out infinite;
    transform-origin: center;
}

.central-node {
    animation: centralPulse 2s ease-in-out infinite;
}

.neural-connection {
    stroke-dasharray: 20 5;
    animation: connectionFlow 3s linear infinite;
}

@keyframes neuralPulse {
    0%, 100% {
        opacity: 0.8;
        r: 3;
    }
    50% {
        opacity: 1;
        r: 4;
    }
}

@keyframes centralPulse {
    0%, 100% {
        opacity: 0.9;
        r: 4;
    }
    50% {
        opacity: 1;
        r: 5;
    }
}

@keyframes connectionFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 25;
    }
}

/* Tech Grid Background - Light Theme */
.tech-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridShift 10s linear infinite;
}

@keyframes gridShift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #3b82f6, transparent);
    border-radius: 50%;
    animation: floatParticle 8s infinite linear;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 80%;
    right: 15%;
    animation-delay: 4s;
}

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

/* Glassmorphism Section - Light Theme */
.glassmorphism-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

/* Neon Close Button - Light Theme */
.neon-close-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.neon-close-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Neon Buttons - Light Theme */
.neon-button {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.neon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.primary-button {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(139, 92, 246, 0.8) 50%, 
        rgba(6, 182, 212, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.primary-button:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 1) 0%, 
        rgba(139, 92, 246, 1) 50%, 
        rgba(6, 182, 212, 1) 100%);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: rgba(59, 130, 246, 0.9);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
    color: rgba(59, 130, 246, 1);
}

/* Enhanced Modal Animations */
#info-modal.show {
    animation: glassMorphModalFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#info-modal.show .glassmorphism-modal {
    animation: glassMorphModalSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes glassMorphModalFadeIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(16px);
    }
}

@keyframes glassMorphModalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        backdrop-filter: blur(0px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(10px) scale(0.95);
        backdrop-filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        backdrop-filter: blur(20px);
    }
}

/* Responsive Design for Glassmorphism */
@media (max-width: 640px) {
    .glassmorphism-modal {
        max-width: calc(100vw - 2rem);
        margin: 1rem;
        border-radius: 16px;
    }
    
    .glassmorphism-modal::before {
        border-radius: 16px;
    }
    
    .neon-border-animated::after {
        border-radius: 18px;
    }
    
    .neural-network-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .tech-grid {
        background-size: 15px 15px;
    }
}

/* Performance Optimizations */
.glassmorphism-modal,
.neon-border-animated::after,
.neural-network-icon,
.tech-grid,
.floating-particles {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .neon-border-animated::after,
    .neural-node,
    .neural-connection,
    .tech-grid,
    .floating-particles::before,
    .floating-particles::after,
    .animate-pulse-glow {
        animation: none;
    }
    
    .glassmorphism-modal {
        transform: none;
    }
}

/* Light theme is now default - removed dark theme overrides */ 