/* SOFTEXPERT 2026 - BASE STYLES */

:root {
    --color-bg: #f8f8f8;
    --color-bg-alt: #ffffff;
    --color-bg-dark: #0d0d0d;
    --color-surface: #ffffff;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-text: #0d0d0d;
    --color-text-secondary: #555555;
    --color-text-muted: #888888;
    --color-text-light: #ffffff;
    --color-primary: #4f46e5;
    --color-accent: #ec4899;
    --color-focus: #4f46e5;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.4);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   ACCESSIBILITY UTILITIES
   ============================================ */

/* Screen reader only - visually hidden but accessible */
.visually-hidden,
.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;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 10001;
    transition: top 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Enhanced focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    box-shadow: var(--focus-ring);
}

/* Remove outline for mouse users but keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion for accessibility */
@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;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-video {
        opacity: 1 !important;
    }

    .hero-content {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   SCROLL CONTAINER & BODY
   ============================================ */
html {
    font-size: 16px;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: clip;
    /* 'clip' prevents horizontal scroll but keeps sticky working */
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

::selection {
    background: var(--color-primary);
    color: white;
}

/* Ensure anchor links don't hide behind fixed header */
section[id],
div[id] {
    scroll-margin-top: 100px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}