/* 
 * Premium Designer Website - Ali Abdaal Style (OPTIMIZED)
 * Performance-optimized CSS with advanced features
 * Minified and optimized for production
 */

/* CSS Custom Properties */
:root {
    --coral-orange: #f7966e;
    --coral-orange-hover: #f68758;
    --coral-orange-shadow: rgba(247, 150, 110, 0.3);
    --bright-blue: #5fcbef;
    --bright-blue-hover: #4dbde6;
    --sky-blue: #64abde;
    --sky-blue-hover: #5597c8;
    --sky-blue-light: rgba(100, 171, 222, 0.1);
    --warm-yellow: #fcd26b;
    --warm-yellow-light: rgba(252, 210, 107, 0.15);
    --off-white: #f5f5f5;
    --pure-white: #ffffff;
    --charcoal: #2d3748;
    --medium-gray: #718096;
    --light-gray: #e2e8f0;
    --border-gray: #cbd5e0;
    
    /* Optimized Typography Scale */
    --font-h1: clamp(2.5rem, 5vw, 4rem);
    --font-h2: clamp(2rem, 4vw, 3rem);
    --font-h3: clamp(1.5rem, 3vw, 2rem);
    --font-h4: clamp(1.25rem, 2.5vw, 1.5rem);
    --font-body: clamp(1rem, 1.5vw, 1.125rem);
    --font-small: clamp(0.875rem, 1.2vw, 0.95rem);
    
    /* Spacing System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-xxxl: 80px;
    --space-huge: 120px;
    
    /* Component Properties */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-round: 50%;
    
    /* Optimized Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.18);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
}

/* Performance-Optimized Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-body);
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--off-white);
    font-weight: 400;
    overflow-x: hidden;
    font-display: swap;
}

/* Accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    background: var(--coral-orange);
    color: white;
    text-decoration: none;
    z-index: 9999;
}

.skip-link {
    position: fixed;
    top: -40px;
    left: 6px;
    background: var(--charcoal);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-h1);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--font-h2);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: var(--font-h3);
}

h4 {
    font-size: var(--font-h4);
}

p {
    margin-bottom: var(--space-md);
    color: var(--charcoal);
}

.text-secondary {
    color: var(--medium-gray);
    font-size: var(--font-small);
}

/* Enhanced Links */
a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: color var(--transition-base);
    position: relative;
}

a:hover, a:focus {
    color: var(--sky-blue-hover);
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--sky-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.text-link {
    border-bottom: 1px solid var(--sky-blue-light);
    padding-bottom: 2px;
}

.text-link:hover {
    border-bottom-color: var(--sky-blue);
}

/* Layout Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

.section {
    padding: var(--space-huge) 0;
}

.section-sm {
    padding: var(--space-xxl) 0;
}

.section-lg {
    padding: calc(var(--space-huge) * 1.5) 0;
}

/* Optimized Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--pure-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
    will-change: box-shadow, backdrop-filter;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bright-blue);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sky-blue);
    transition: width var(--transition-base);
}

.nav-link:hover::after, .nav-link:focus::after {
    width: 100%;
}

.nav-link:hover, .nav-link:focus {
    color: var(--sky-blue);
}

.nav-cta {
    background: var(--coral-orange);
    color: var(--pure-white) !important;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover, .nav-cta:focus {
    background: var(--coral-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--pure-white) !important;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background var(--transition-base);
}

.nav-toggle:hover, .nav-toggle:focus {
    background: var(--light-gray);
    outline: none;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--pure-white);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + var(--space-huge));
    padding-bottom: var(--space-huge);
    background: linear-gradient(135deg, var(--off-white) 0%, var(--pure-white) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--warm-yellow-light);
    border-radius: var(--radius-round);
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.hero-decoration-1 {
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero-decoration-2 {
    bottom: -150px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--sky-blue-light);
    color: var(--sky-blue);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-xl);
    font-size: var(--font-small);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(100, 171, 222, 0.2);
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: var(--font-h4);
    color: var(--medium-gray);
    margin-bottom: var(--space-xl);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:focus-visible {
    outline: 2px solid var(--charcoal);
    outline-offset: 2px;
}

.btn::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 var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

/* Primary Button - Coral Orange ONLY */
.btn-primary {
    background: var(--coral-orange);
    color: var(--pure-white);
    border-color: var(--coral-orange);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--coral-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--coral-orange-shadow);
    color: var(--pure-white);
    border-color: var(--coral-orange-hover);
}

/* Secondary Button */
.btn-secondary {
    background: var(--sky-blue);
    color: var(--pure-white);
    border-color: var(--sky-blue);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: var(--sky-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--pure-white);
    border-color: var(--sky-blue-hover);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--sky-blue);
    border-color: var(--sky-blue);
    box-shadow: none;
}

.btn-ghost:hover, .btn-ghost:focus {
    background: var(--sky-blue-light);
    transform: translateY(-1px);
    color: var(--sky-blue-hover);
    border-color: var(--sky-blue-hover);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
    min-height: 56px;
}

.btn-small {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
    min-height: 36px;
}

/* Enhanced Cards */
.card {
    background: var(--pure-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral-orange), var(--sky-blue), var(--bright-blue));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: var(--font-h4);
    margin-bottom: var(--space-sm);
}

.card-subtitle {
    color: var(--medium-gray);
    font-size: var(--font-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    margin-bottom: var(--space-md);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
}

/* Card Grid */
.card-grid {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xxl);
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 768px) {
    .card-grid-2,
    .card-grid-3,
    .card-grid-4,
    .card-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* Feature Sections */
.feature {
    display: flex;
    align-items: center;
    gap: var(--space-xxl);
    margin-bottom: var(--space-huge);
}

.feature-reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feature-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--warm-yellow-light);
    border-radius: var(--radius-lg);
    top: var(--space-md);
    left: var(--space-md);
    z-index: -1;
}

@media (max-width: 768px) {
    .feature,
    .feature-reverse {
        flex-direction: column;
        gap: var(--space-xl);
    }
}

/* Enhanced Forms */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--charcoal);
    font-size: var(--font-small);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--pure-white);
    color: var(--charcoal);
    min-height: 44px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px var(--sky-blue-light);
    transform: translateY(-1px);
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

.form-helper {
    margin-top: var(--space-xs);
    font-size: var(--font-small);
    color: var(--medium-gray);
}

.form-error {
    color: #ef4444;
    font-size: var(--font-small);
    font-weight: 500;
}

/* Custom Checkboxes */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    cursor: pointer;
    font-size: var(--font-small);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--sky-blue);
    border-color: var(--sky-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::before {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 2px var(--sky-blue-light);
}

/* Footer */
.footer {
    background: var(--pure-white);
    padding: var(--space-xxl) 0 var(--space-xl);
    margin-top: var(--space-huge);
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bright-blue);
    margin-bottom: var(--space-md);
}

.footer-description {
    color: var(--medium-gray);
    font-size: var(--font-small);
    line-height: 1.6;
}

.footer-column h3, .footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--charcoal);
}

.footer-links {
    list-style: none;
}

.footer-link {
    display: block;
    color: var(--medium-gray);
    padding: var(--space-xs) 0;
    transition: color var(--transition-base);
}

.footer-link:hover, .footer-link:focus {
    color: var(--sky-blue);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--medium-gray);
    font-size: var(--font-small);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: var(--radius-round);
    color: var(--medium-gray);
    transition: all var(--transition-base);
}

.social-link:hover, .social-link:focus {
    background: var(--sky-blue);
    color: var(--pure-white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-xs) !important; }
.mt-2 { margin-top: var(--space-sm) !important; }
.mt-3 { margin-top: var(--space-md) !important; }
.mt-4 { margin-top: var(--space-lg) !important; }
.mt-5 { margin-top: var(--space-xl) !important; }
.mt-6 { margin-top: var(--space-xxl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-xs) !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }
.mb-5 { margin-bottom: var(--space-xl) !important; }
.mb-6 { margin-bottom: var(--space-xxl) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--space-xs) !important; }
.pt-2 { padding-top: var(--space-sm) !important; }
.pt-3 { padding-top: var(--space-md) !important; }
.pt-4 { padding-top: var(--space-lg) !important; }
.pt-5 { padding-top: var(--space-xl) !important; }
.pt-6 { padding-top: var(--space-xxl) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--space-xs) !important; }
.pb-2 { padding-bottom: var(--space-sm) !important; }
.pb-3 { padding-bottom: var(--space-md) !important; }
.pb-4 { padding-bottom: var(--space-lg) !important; }
.pb-5 { padding-bottom: var(--space-xl) !important; }
.pb-6 { padding-bottom: var(--space-xxl) !important; }

.bg-white { background-color: var(--pure-white) !important; }
.bg-offwhite { background-color: var(--off-white) !important; }

.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.grid { display: grid !important; }

.gap-1 { gap: var(--space-xs) !important; }
.gap-2 { gap: var(--space-sm) !important; }
.gap-3 { gap: var(--space-md) !important; }
.gap-4 { gap: var(--space-lg) !important; }
.gap-5 { gap: var(--space-xl) !important; }

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    will-change: opacity, transform;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Performance Optimizations */
@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;
    }
    
    .hero-decoration-1,
    .hero-decoration-2 {
        animation: none;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    
    .btn {
        border-width: 3px;
    }
    
    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        box-shadow: 0 0 0 4px var(--sky-blue-light);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --off-white: #1a1a1a;
        --pure-white: #2d2d2d;
        --charcoal: #ffffff;
        --medium-gray: #a0a0a0;
        --light-gray: #404040;
        --border-gray: #505050;
    }
    
    .navbar {
        background: rgba(45, 45, 45, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .hero {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .hero-decoration,
    .btn,
    .footer-social,
    .scroll-animate {
        display: none !important;
    }
    
    .hero {
        padding-top: 0;
        background: white !important;
        color: black !important;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a {
        text-decoration: underline !important;
    }
    
    .card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--off-white) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus Management */
*:focus-visible {
    outline: 2px solid var(--sky-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--medium-gray);
}

/* Selection Styling */
::selection {
    background: var(--sky-blue-light);
    color: var(--charcoal);
}

/* Responsive Typography */
@media (max-width: 480px) {
    :root {
        --space-huge: 60px;
        --space-xxl: 48px;
        --space-xl: 32px;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + var(--space-xxl));
        padding-bottom: var(--space-xxl);
    }
    
    .section {
        padding: var(--space-xxl) 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ===================================================================
   CRITICAL MOBILE FIXES - ADDED FOR IMMEDIATE DEPLOYMENT
   =================================================================== */

/* Mobile Navigation Fixes */
@media screen and (max-width: 767px) {
    /* Center align text content on mobile */
    .feature-content,
    .feature-content h2,
    .feature-content p,
    .hero-content,
    .section-content {
        text-align: center !important;
    }
    
    /* Footer center alignment */
    .footer-content,
    .footer-section {
        text-align: center !important;
    }
    
    /* Feature sections mobile layout */
    .feature,
    .feature-reverse {
        flex-direction: column !important;
        text-align: center !important;
        gap: 24px;
    }
    
    .feature-content {
        order: 1;
    }
    
    .feature-image {
        order: 2;
        margin: 0 auto;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: flex !important;
        min-height: 48px;
        min-width: 48px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--charcoal);
        border-radius: 1px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform-origin: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--pure-white);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .nav-menu.active {
        display: flex !important;
        transform: translateX(0);
    }
    
    .nav-menu a {
        padding: 16px 0;
        font-size: 18px;
        font-weight: 500;
        border-bottom: 1px solid #f1f5f9;
        color: var(--charcoal);
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        color: var(--sky-blue);
    }
    
    .nav-menu .nav-cta {
        margin-top: 24px;
        padding: 16px 24px;
        background: var(--sky-blue);
        color: var(--pure-white);
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
        border-bottom: none;
    }
}

/* Navigation Consistency for All Screens */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Better Form Controls on Mobile */
@media screen and (max-width: 767px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
        border-radius: 8px;
        border: 2px solid #e2e8f0;
    }
    
    .btn, .button {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 12px 24px !important;
    }
}