/* Static Pages CSS - Professional & Slick Design for About/Contact Pages */

/* CSS Custom Properties for Design System */
:root {
    /* Colors */
    --primary-600: #4f46e5;
    --primary-500: #6366f1;
    --primary-400: #818cf8;
    --secondary-600: #4a90e2;
    --secondary-500: #5a9fd4;
    --secondary-400: #7fb3d3;
    --accent-600: #059669;
    --accent-500: #10b981;
    --accent-400: #34d399;
    
    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-backdrop: blur(10px);
}

/* Page Layout */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    font-family: var(--font-body);
    position: relative;
}

@media (min-width: 768px) {
    .page-container {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .page-container {
        padding: 0 var(--space-xl);
    }
}

/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 75%, #0f172a 100%);
    color: white;
    padding: var(--space-2xl) 0 5rem;
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(90, 159, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    z-index: 1;
    animation: heroBackground 20s ease-in-out infinite;
}

@keyframes heroBackground {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 0 0 var(--space-md) 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 40px rgba(99, 102, 241, 0.4), 0 0 60px rgba(90, 159, 212, 0.2); }
}

.page-hero .tagline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .breadcrumb {
    opacity: 0.8;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.page-hero .breadcrumb:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.page-hero .breadcrumb a {
    color: var(--secondary-400);
    text-decoration: none;
    transition: var(--transition-fast);
}

.page-hero .breadcrumb a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(127, 179, 211, 0.5);
}

/* Main Content */
.page-main {
    margin-bottom: 4rem;
}

/* Card System */
/* Advanced CSS Grid System */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
    position: relative;
}

/* Bento Box Layout Variations */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.bento-item-large {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-item-medium {
    grid-column: span 4;
}

.bento-item-small {
    grid-column: span 4;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .bento-item-large,
    .bento-item-medium,
    .bento-item-small {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Asymmetric Grid for Mission Cards */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.mission-grid .page-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.mission-grid .page-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.mission-grid .page-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .mission-grid .page-card {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}

/* Glass-morphism Card System - Optimized */
.page-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent);
    z-index: 1;
}

.page-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.page-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: var(--transition-fast);
}

.page-card h3 {
    color: #1a1a2e;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.page-card.highlight {
    border-left: 4px solid var(--secondary-500);
    background: linear-gradient(135deg, 
        rgba(248, 251, 255, 0.95) 0%, 
        rgba(240, 247, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

.page-card.highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--secondary-400) 0%, 
        var(--secondary-500) 50%, 
        var(--secondary-600) 100%);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    z-index: 2;
}

.page-card.contact-card {
    border-left: 4px solid var(--primary-500);
    background: linear-gradient(135deg, 
        rgba(250, 250, 255, 0.95) 0%, 
        rgba(244, 243, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

.page-card.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--primary-400) 0%, 
        var(--primary-500) 50%, 
        var(--primary-600) 100%);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    z-index: 2;
}

.page-card.business-card {
    border-left: 4px solid var(--accent-500);
    background: linear-gradient(135deg, 
        rgba(240, 253, 244, 0.95) 0%, 
        rgba(236, 253, 245, 0.95) 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

.page-card.business-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--accent-400) 0%, 
        var(--accent-500) 50%, 
        var(--accent-600) 100%);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    z-index: 2;
}

/* Contact Buttons */
/* Enhanced Interactive Buttons */
.contact-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: var(--transition-normal);
    margin: var(--space-xs) var(--space-xs) var(--space-xs) 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-button::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: var(--transition-slow);
    z-index: 1;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.contact-button:active {
    transform: translateY(-1px) scale(1.01);
    transition: var(--transition-fast);
}

.contact-button.secondary {
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    color: white;
}

.contact-button.secondary:hover {
    background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-500) 100%);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(90, 159, 212, 0.4);
    color: white;
}

/* Micro-animations for buttons - Reduced for Performance */
.contact-button {
    animation: buttonPulse 4s infinite;
    animation-play-state: paused;
}

.contact-button:not(:hover):not(:focus) {
    animation-play-state: running;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: var(--shadow-md); }
    50% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(99, 102, 241, 0.05); }
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    position: relative;
}

/* Advanced Stats Grid with Subgrid Support */
@supports (grid-template-rows: subgrid) {
    .stats-grid {
        grid-template-rows: subgrid;
    }
}

.stat-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.1) 0%, 
        transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: var(--transition-slow);
}

.stat-card:hover::before {
    width: 200px;
    height: 200px;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-card > * {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact Form Styling */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Advanced Background Textures */
body {
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(90, 159, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Layered Background Pattern */
.page-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(99,102,241,0.02)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    z-index: -2;
    opacity: 0.5;
    pointer-events: none;
}

/* Enhanced Typography */
.page-content h2 {
    color: #1a1a2e;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: var(--space-2xl) 0 var(--space-lg) 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    position: relative;
}

.page-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-500) 0%, 
        var(--secondary-500) 100%);
    border-radius: 2px;
}

.page-content h3 {
    color: #333;
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin: var(--space-xl) 0 var(--space-md) 0;
    font-weight: 650;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

.page-content p {
    line-height: 1.7;
    color: #555;
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
    letter-spacing: 0.002em;
}

.page-content ul {
    line-height: 1.7;
    color: #555;
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
    font-size: 1.05rem;
}

.page-content li {
    margin-bottom: var(--space-xs);
    position: relative;
}

.page-content li::marker {
    color: var(--primary-500);
}

/* Special Sections */
.highlight-box {
    background: linear-gradient(135deg, 
        var(--secondary-500) 0%, 
        var(--primary-500) 50%, 
        var(--secondary-600) 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    margin: var(--space-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.highlight-box > * {
    position: relative;
    z-index: 2;
}

.highlight-box h3 {
    margin-top: 0;
    color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
    position: relative;
}

/* Advanced Background Pattern */
.process-steps::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(90, 159, 212, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, transparent 100%);
    z-index: -1;
    border-radius: var(--radius-2xl);
}

.process-step {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(90, 159, 212, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.process-step:hover {
    border-color: var(--primary-500);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.process-step:hover::before {
    opacity: 1;
}

.process-step > * {
    position: relative;
    z-index: 1;
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    box-shadow: 
        var(--shadow-md),
        0 0 0 4px rgba(99, 102, 241, 0.1);
    transition: var(--transition-normal);
    position: relative;
}

.process-step:hover .process-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        var(--shadow-lg),
        0 0 0 6px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(99, 102, 241, 0.3);
}

/* Page Navigation */
/* Enhanced Navigation with Scroll Behaviors */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(224, 224, 224, 0.3);
    margin-top: var(--space-2xl);
    position: relative;
    z-index: 10;
}

.page-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-500), 
        transparent);
    animation: navigationGlow 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes navigationGlow {
    0%, 100% { opacity: 0.3; width: 50px; }
    50% { opacity: 1; width: 150px; }
}

/* Navigation Links Container */
.nav-links-right {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* Enhanced Navigation Links - Simplified for Better Interaction */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-600);
    text-decoration: none;
    border: 1px solid var(--primary-500);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm);
    z-index: 20;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    transition: var(--transition-normal);
    z-index: -1;
    pointer-events: none;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-600);
}

.nav-link:active {
    transform: translateY(0);
    transition: var(--transition-fast);
}

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

@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Parallax Effects for Hero */
@media (prefers-reduced-motion: no-preference) {
    .page-hero {
        background-attachment: fixed;
    }
    
    .page-hero::before {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Enhanced Scroll Indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-500) 0%, 
        var(--secondary-500) 50%, 
        var(--accent-500) 100%);
    z-index: 9999;
    transition: width var(--transition-fast);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        padding: var(--space-xl) 0 var(--space-2xl);
        min-height: 50vh;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: var(--space-md);
    }
    
    .page-navigation {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
        align-items: center;
    }
    
    .nav-links-right {
        margin-top: var(--space-sm);
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
        align-items: center;
    }
    
    .nav-link {
        width: auto;
        min-width: 200px;
        justify-content: center;
    }
    
    .contact-button {
        width: 100%;
        justify-content: center;
        margin: var(--space-xs) 0;
    }
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

/* CSS Containment for Performance */
.page-card {
    contain: layout style paint;
}

.stat-card {
    contain: layout style paint;
}

.process-step {
    contain: layout style paint;
}

/* Optimize animations for 60fps - Navigation Friendly */
@media (prefers-reduced-motion: no-preference) {
    .page-card,
    .contact-button,
    .stat-card,
    .process-step {
        will-change: transform, box-shadow;
    }
    
    .page-card:hover,
    .contact-button:hover,
    .stat-card:hover,
    .process-step:hover {
        will-change: auto;
    }
    
    /* Separate handling for nav-links to prevent interference */
    .nav-link {
        will-change: auto;
    }
    
    .nav-link:hover {
        will-change: transform;
    }
    
    .nav-link:not(:hover) {
        will-change: auto;
    }
}

/* Accessibility Improvements */
@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;
    }
}

/* Enhanced Focus States */
.contact-button:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    box-shadow: 
        var(--shadow-lg),
        0 0 0 4px rgba(99, 102, 241, 0.2);
}

.page-card:focus-within {
    outline: 1px solid var(--primary-400);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .page-card {
        border: 2px solid;
        background: white;
    }
    
    .contact-button {
        border: 2px solid;
    }
    
    .highlight-box {
        border: 2px solid;
    }
}

/* Dark Mode Considerations */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f0f23;
        --text-primary: #e2e8f0;
        --text-secondary: #a0a0a0;
    }
    
    body {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .page-card {
        background: rgba(26, 26, 46, 0.95);
        color: var(--text-primary);
        border-color: rgba(99, 102, 241, 0.3);
    }
    
    .page-content h2,
    .page-content h3 {
        color: var(--text-primary);
    }
    
    .page-content p,
    .page-content ul,
    .page-content li {
        color: var(--text-secondary);
    }
}

/* Print Styles */
@media print {
    .page-hero {
        background: none !important;
        color: black !important;
        padding: 1rem 0 !important;
    }
    
    .page-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .contact-button {
        background: none !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    .highlight-box {
        background: #f0f0f0 !important;
        color: black !important;
    }
    
    /* Hide non-essential elements */
    .scroll-indicator {
        display: none !important;
    }
    
    /* Optimize for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
}