/* ============================================================
   NEXAURA FILMS — Design System
   A modern, airy, premium creative digital platform
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Sora:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Colors — Light First */
    --color-bg: #FAFAF7;
    --color-bg-warm: #F5F3EE;
    --color-surface: #F0EDE8;
    --color-surface-hover: #E8E5DF;
    --color-card: #FFFFFF;
    --color-card-hover: #FEFEFE;
    --color-border: #E8E5DF;
    --color-border-light: #F0EDE8;

    /* Text */
    --color-text: #1A1A1A;
    --color-text-secondary: #5A5A5A;
    --color-text-muted: #8A8A8A;
    --color-text-light: #B5B5B5;

    /* Accent — Electric Warm Coral */
    --color-accent: #E8593E;
    --color-accent-hover: #D14A30;
    --color-accent-light: rgba(232, 89, 62, 0.12);
    --color-accent-glow: rgba(232, 89, 62, 0.25);

    /* Dark Sections */
    --color-dark-bg: #111111;
    --color-dark-surface: #1A1A1A;
    --color-dark-text: #F0EDE8;
    --color-dark-text-secondary: #A0A0A0;
    --color-dark-border: #2A2A2A;

    /* Status */
    --color-success: #34A853;
    --color-warning: #F59E0B;
    --color-danger: #DC3545;
    --color-info: #4A90D9;

    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Outfit', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;
    --text-9xl: 8rem;

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    --space-48: 12rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-pill: 100px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-navbar: 500;
    --z-modal: 1000;
    --z-toast: 1100;
    --z-cursor: 9999;
    --z-loading: 10000;

    /* Layout */
    --container-max: 1400px;
    --container-content: 1100px;
    --container-narrow: 800px;
    --navbar-height: 72px;
    --section-padding: clamp(4rem, 8vw, 8rem);
}

/* ============================================================
   BASE RESET & GLOBAL STYLES
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-regular);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Restore cursor on touch devices */
@media (hover: none) {
    body { cursor: auto; }
}

::selection {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    cursor: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.text-7xl { font-size: var(--text-7xl); }
.text-8xl { font-size: var(--text-8xl); }

.font-light { font-weight: var(--font-light); }
.font-regular { font-weight: var(--font-regular); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }
.font-black { font-weight: var(--font-black); }

.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent { color: var(--color-accent); }
.text-light { color: var(--color-text-light); }
.text-center { text-align: center; }
.text-upper { text-transform: uppercase; letter-spacing: 0.1em; }

.display-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: var(--font-black);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.section-heading {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: var(--font-bold);
    letter-spacing: -0.03em;
}

.section-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

.section-number {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-accent);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: clamp(2.5rem, 6vw, 8rem) !important;
    padding-right: clamp(2.5rem, 6vw, 8rem) !important;
}

.container-content {
    max-width: var(--container-content);
    margin: 0 auto;
    padding-left: clamp(2.5rem, 6vw, 8rem) !important;
    padding-right: clamp(2.5rem, 6vw, 8rem) !important;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding-left: clamp(2.5rem, 6vw, 8rem) !important;
    padding-right: clamp(2.5rem, 6vw, 8rem) !important;
}

.container .container-narrow {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.section-dark {
    background-color: var(--color-dark-bg);
    color: var(--color-dark-text);
}

.section-dark p,
.section-dark .text-secondary {
    color: var(--color-dark-text-secondary);
}

.section-warm {
    background-color: var(--color-bg-warm);
}

/* Grid */
.grid { display: grid; gap: var(--space-8); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ============================================================
   ANIMATIONS (Scroll Reveal)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
.hide-mobile { display: block; }
.show-mobile { display: none; }
.hide-tablet { display: block; }
.show-tablet { display: none; }

/* --- 1280px: Small Desktop --- */
@media (max-width: 1280px) {
    .container,
    .container-content,
    .container-narrow {
        padding-left: clamp(1.5rem, 4vw, 5rem) !important;
        padding-right: clamp(1.5rem, 4vw, 5rem) !important;
    }
}

/* --- 1024px: Tablet Landscape --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hide-tablet { display: none !important; }
    .show-tablet { display: block !important; }
    .gap-8 { gap: var(--space-6); }
    .gap-6 { gap: var(--space-4); }
}

/* --- 768px: Tablet Portrait / Large Phone --- */
@media (max-width: 768px) {
    :root {
        --section-padding: clamp(2.5rem, 6vw, 5rem);
    }

    .container,
    .container-content,
    .container-narrow {
        padding-left: clamp(1rem, 5vw, 2rem) !important;
        padding-right: clamp(1rem, 5vw, 2rem) !important;
    }

    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .gap-8 { gap: var(--space-4); }

    .flex-between {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .display-heading {
        font-size: clamp(1.75rem, 8vw, 3rem);
    }

    .section-heading {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
}

/* --- 480px: Small Phone --- */
@media (max-width: 480px) {
    .container,
    .container-content,
    .container-narrow {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .display-heading {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .btn-lg {
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-6);
    }

    .section {
        padding-top: var(--space-10);
        padding-bottom: var(--space-10);
    }
}
