:root {
    --bg: rgb(14,15,19);
    --bg-soft: #12151c;
    --text: #f4f4f4;
    --muted: #9aa0aa;
    --accent: #e10600;
}

/* ================= RESET ================= */

* {
    box-sizing: border-box;
}

body.main-site {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    padding-top: 80px; /* Adjust this number to match the height of your nav bar */
}

body:not(.main-site) {
    padding-top: 0 !important;
    margin: 0;
}

/* ================= NAV ================= */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    
    /* New styles for the fixed header */
    position: fixed;      /* Keeps it locked in place */
    top: 0;              /* Aligns it to the very top */
    left: 0;             /* Aligns it to the left */
    width: 100%;         /* Ensures it spans the full width */
    background: var(--bg); /* Keeps the background solid so text doesn't bleed through */
    z-index: 1000;       /* Ensures it stays on top of all other elements */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-a {
    text-decoration: none;
    color: inherit;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
}

.nav-link:hover {
    border-bottom: 2px solid var(--accent);
}


nav a,
.dropdown-toggle {
    margin-left: 2rem;
    color: var(--text);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.dropdown-toggle {
    padding: 1px 0;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    left: 0;
    background: var(--bg-soft);
    padding: 1rem;
    min-width: 180px;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-radius: 10px;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 0;
    margin: 0 0.5rem;
    color: var(--text);
}

.dropdown-content a:hover {
    color: var(--accent);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-toggle {
    border-bottom-color: var(--accent);
}

.caret {
    display: inline-block;
    margin-left: 0.3rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .caret {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* ================= HERO (SPLIT IMAGE) ================= */

.hero-split {
    min-height: 85vh;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    background-color: var(--bg);
}

/* LEFT: TEXT */

.hero-left {
    padding: 3rem 6rem 6rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-left h1 {
    font-size: 4rem;
    margin: 0;
}

.hero-left h1 span {
    color: var(--accent);
}

.hero-left h2 {
    font-weight: 300;
    margin: 1rem 0 2rem;
}

.hero-left p {
    max-width: 520px;
    color: var(--muted);
}

.cta {
    margin-top: 0.5rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    margin-right: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    border: 1px solid var(--muted);
    color: var(--text);
}

/* RIGHT: IMAGE */

.hero-right {
    position: relative;
    background-image: url("/static/img/hero-skunk2.png");
    /* background-size: cover; */
    /* background-position: center; */
    background-size: 100%;
    background-position: center 30%;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* IMAGE BLEED (KEY PART) */

.hero-image-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(14,15,19,0.0) 0%,
        rgba(14,15,19,0.15) 60%,
        rgba(14,15,19,0.35) 70%,
        rgba(14,15,19,0.6) 80%,
        rgba(14,15,19,0.85) 90%,
        rgba(14,15,19,1.0) 100%
    );
    pointer-events: none;
}


/* ================= CONTENT ================= */

.content {
    padding: 1rem 4rem;
}

.content.narrow {
    max-width: 700px;
}

.project-card iframe {
    width: 100%;
    height: 85vh; /* Overrides the previous 750px */
    border: none;
    margin-top: 0;
}

@media (max-width: 900px) {
    .project-card iframe {
        height: 1800px; /* On mobile, let it grow long so charts aren't tiny */
        overflow: visible;
    }
}

.project-card h2 {
    margin-bottom: 0;
}

.timeline .role {
    margin-bottom: 2.5rem;
}

/* ========================================================================
                DASHBOARD STYLING - But A Lot Is Inline In Python */
/* ========================================================================
/* 2. THE MAIN CONTAINER */
.dash-main-container {
    display: flex !important; /* Forces the side-by-side view */
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    height: 95vh; /* Sets a physical height based on the screen */
    box-sizing: border-box;
}

.dash-column{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Helper to make the graphs fill their cards */
.dash-card-flex {
    display: flex;
    flex-direction: column;
}

.dash-graph {
    flex: 1;
    min-height: 350px; /* Ensures charts don't collapse to 0px */
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}


/* 3. THE CHART CARDS */
.chart-card {
    background-color: #1a1a1a; /* Lighter Grey Card */
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: visible !important; /* Prevents dots/text from being cut off */
}

.chart-title {
    color: var(--text); 
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

/* 4. MODERN DROPDOWN STYLING */
/* Targets the main box */
.dash-dropdown .Select-control {
    background-color: #2b2b2b !important;
    border: 1px solid #444 !important;
}

/* Text inside the box */
.dash-dropdown .Select-value-label {
    color: var(--text) !important;
    font-size: 13px !important;
}

/* The actual menu that drops down */
.dash-dropdown .Select-menu-outer {
    background-color: #2b2b2b !important;
    border: 1px solid #444 !important;
}

/* The individual options */
.dash-dropdown .VirtualizedSelectOption {
    background-color: #2b2b2b !important;
    color: #ccc !important;
    font-size: 12px !important;
}

/* "ALL ITEMS" HIGHLIGHT */
.dash-dropdown .VirtualizedSelectOption[aria-label="All Items"] {
    color: #00d4ff !important;
    font-weight: bold;
    border-left: 3px solid #00d4ff;
}

/* Hovering over an option */
.dash-dropdown .VirtualizedSelectFocusedOption {
    background-color: #444 !important;
    color: white !important;
}

/* --- MOBILE ADJUSTMENTS (Screens under 900px) --- */
@media (max-width: 900px) {
    .dash-main-container {
        flex-direction: column; /* Stack columns vertically */
        height: auto;           /* Allow the page to grow long */
    }

    .dash-column {
        width: 100%;
    }

    .dash-graph {
        min-height: 400px; /* Give charts more room on mobile */
    }

    /* Adjust the tall bar chart column specifically for mobile */
    .dash-main-container > .chart-card {
        min-height: 800px; /* The 30-item bar chart needs height to be readable */
    }
}

/* ===================================================== */
                /* EXPERIENCE / CAREER */
/* ===================================================== */

.experience-page {
    padding: 2rem 4rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.exp-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligns button with the bottom of the H1 */
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.btn-resume {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(154, 160, 170, 0.3); /* Uses your --muted color with low opacity */
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-resume i {
    margin-right: 8px;
}

.btn-resume:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(225, 6, 0, 0.05); /* Very subtle hint of your accent color */
}

/* Mobile Fix */
@media (max-width: 600px) {
    .exp-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

.serif-title {
    font-weight: 700;
    color: var(--text);
}

.exp-header {
    text-align: left;
    margin-bottom: 4rem;
}

.exp-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.exp-intro {
    max-width: 1200px;
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Layout Containers */
.exp-container {
    display: flex;
    gap: 4rem;
}

/* Sidebar Styling */
.exp-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.timeline-nav {
    position: sticky;
    top: 120px; /* Adjust based on your header height */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 1.5rem;
}

.timeline-link span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.6;
}

.timeline-link:hover, .timeline-link.active {
    color: var(--text);
    border-left-color: var(--accent);
}

/* Content Cards */
.exp-content {
    flex-grow: 1;
}

.exp-card {
    background: var(--bg-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Cinematic Fade Effect */
    background: linear-gradient(145deg, rgba(30,34,45,1) 0%, rgba(14,15,19,1) 100%);
}

.exp-card.highlight {
    border: 1px solid rgba(225, 6, 0, 0.2); /* Subtle accent border for most recent */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.exp-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.exp-card h2 {
    font-size: 1.75rem;
    margin: 0 0 1.5rem 0;
}

.exp-narrative {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.micro-bullets {
    list-style: none;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.micro-bullets li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.micro-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .exp-container {
        flex-direction: column;
    }
    
    .exp-sidebar {
        display: none; /* Hide sticky sidebar on mobile */
    }
    
    .experience-page {
        padding: 2rem 1.5rem;
    }
    
    .exp-header h1 {
        font-size: 2.2rem;
    }
    
    .exp-card {
        padding: 2rem;
    }
}


/* ================= MOBILE ================= */

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-right {
        min-height: 50vh;
    }

    nav {
        display: none;
        position: absolute;
        right: 2rem;
        top: 5rem;
        flex-direction: column;
        background: var(--bg-soft);
        padding: 1.5rem;
    }

    nav.open {
        display: flex;
    }

    nav a,
    .dropdown-toggle {
        margin: 0.5rem 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }

    .hamburger {
        display: block;
    }

    .hero-left {
        padding: 4rem 2rem;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }

    .hero-image-fade {
        background: linear-gradient(
            to top,
            rgba(11,13,18,1.0),
            rgba(11,13,18,0.2)
        );
    }
}
