/**
 * Elevate Career Coaching Template
 * Main Stylesheet
 * 
 * TABLE OF CONTENTS:
 * 1. Design Tokens & Variables
 * 2. Theme Application
 * 3. Base HTML Styles & Editorial Typo
 * 4. Navigation & Modals
 * 5. Utilities & Grid Borders
 * 6. Animations (Marquee, Reveal Text)
 * 7. Form Field Styles (Contact & Auth)
 * 8. Dashboard & Application Panels
 *
 * TODO: CUSTOMIZATION POINTS
 * - Primary Brand Color: Change the '--accent' variable directly below to match your brand palette.
 * - Custom Fonts: Change 'Inter' on the body selector to any Google Font of your choice.
 */

:root {
    /* --- Foundation Color Palette --- */
    --primary: #0f172a;         /* Deep Slate / Main typography */
    --primary-light: #1e293b;   /* Slate 800 */
    --secondary: #334155;       /* Slate 700 / Borders */
    --accent: #0d9488;          /* Teal 600 / CTA & Highlights */
    --accent-hover: #0f766e;    /* Teal 700 / Hover states */

    --neutral-light: #f8fafc;   /* Slate 50 / Backgrounds */
    --neutral-gray: #94a3b8;    /* Slate 400 / Muted text */
    --neutral-dark: #0f172a;    /* Slate 900 / Inverse Backgrounds */

    /* --- Theme Application (Light Mode Default) --- */
    --bg-main: var(--neutral-light);
    --text-main: var(--primary);
    --border-main: var(--primary-light);

    /* --- Inverted Sections (Dark blocks in Light Mode) --- */
    --bg-inverse: var(--neutral-dark);
    --text-inverse: var(--neutral-light);
    --border-inverse: var(--primary-light);
    --gray-text: var(--neutral-gray);
}

html.dark {
    /* Dark Theme — inverts the light-mode palette */
    --bg-main: var(--primary);
    --text-main: var(--neutral-light);
    --border-main: var(--primary-light);

    /* Inverted Sections — stay dark in dark mode */
    --bg-inverse: var(--primary-light);
    --text-inverse: var(--neutral-light);
    --border-inverse: var(--secondary);
    --gray-text: var(--neutral-gray);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    cursor: auto !important;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .hero-title { 
    letter-spacing: normal !important; 
    text-transform: none !important; 
}

nav { 
    backdrop-filter: blur(12px); 
    background-color: rgba(248, 250, 252, 0.8) !important; 
}

html.dark nav { 
    background-color: rgba(15, 23, 42, 0.8) !important; 
}

/* Dynamic Nav Toggle Highlights */
html.dark #theme-btn {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(13, 148, 136, 0.1);
}

html.dark #theme-btn svg {
    fill: var(--accent);
}

html[dir="rtl"] #rtl-btn {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(13, 148, 136, 0.1);
}

/* Horizontal Scroll Structure (GSAP) */
.horizontal-container {
    overflow: hidden;
    width: 100%;
}

.horizontal-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    height: 100vh;
}

.horizontal-panel {
    width: 100vw;
    flex-shrink: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Utilities */
.no-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.border-inverse-override {
    border-color: var(--border-inverse) !important;
}

/* Logical Editorial Grid Borders */
.grid-border-t { border-block-start: 1px solid var(--border-main); }
.grid-border-b { border-block-end: 1px solid var(--border-main); }
.grid-border-l { border-inline-start: 1px solid var(--border-main); }
.grid-border-r { border-inline-end: 1px solid var(--border-main); }

/* Soft Cards & Hover Effects */
.cursor-hover.group, .outcome-card { 
    border-radius: 1.5rem !important; 
    overflow: hidden; 
}

.cursor-hover.group:hover, .outcome-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); 
}

/* Marquee Animation */
.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Marquee RTL Direction Override */
html[dir="rtl"] .marquee-inner {
    animation: marquee-rtl 15s linear infinite;
}

@keyframes marquee-rtl {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(50%); }
}
/* Range Slider Styles */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 0 4px var(--bg-inverse);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    cursor: pointer;
    background: var(--border-inverse);
}

/* Form Field Styles (Contact & Auth) */
.form-field input,
.form-field textarea {
    background: transparent;
    border: 1px solid rgba(244, 244, 240, 0.12);
    border-radius: 6px;
    color: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    width: 100%;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.04);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-weight: 500;
}

.form-field textarea {
    resize: none;
    min-height: 120px;
}

.form-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.auth-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.auth-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-main);
    background-color: var(--bg-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.sso-btn:hover {
    background-color: var(--border-main);
}

.border-e-logical { border-inline-end: 1px solid var(--border-main); }
.border-b-logical { border-block-end: 1px solid var(--border-main); }
.ms-logical { margin-inline-start: auto; }
.ps-logical { padding-inline-start: 1.5rem; }
.pe-logical { padding-inline-end: 1.5rem; }

.app-panel {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-main);
    transition: all 0.3s ease;
}

.app-panel:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.status-review {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray-text);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.status-interview {
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.status-offer {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-main); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-text); }



/* Typography Masking for GSAP */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(110%);
}

/* Lenis Smooth Scroll Overrides */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/**
 * Editorial Form Inputs (Waitlist specific)
 */
.waitlist-input {
    background: transparent;
    border: none;
    border-block-end: 2px solid var(--border-main);
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
    padding: 1rem 0;
    width: 100%;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.waitlist-input:focus {
    outline: none;
    border-block-end-color: var(--accent);
}

.waitlist-input::placeholder {
    color: var(--text-main);
    opacity: 0.2;
}
