* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--dark-text);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    background: var(--dark-bg) !important;
    color: var(--dark-text-light);
}

.content-wrapper {
    position: relative;
    z-index: 1;
    background: transparent;
}

body.dark-theme .content-wrapper {
    background: transparent;
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Enhanced focus states for better keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 3px;
}

body.dark-theme *:focus-visible {
    outline-color: var(--primary-green);
}

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

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor !important;
    }

    button,
    .cta-button,
    .get-started-btn {
        border: 2px solid currentColor !important;
    }
}

/* Print styles */
@media print {
    .theme-toggle,
    .scroll-top,
    .menu-toggle,
    nav,
    .modal-backdrop,
    .loading-screen {
        display: none !important;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}