:root {
    /* Color Palette */
    --bg-slate: #1A1A1A;
    /* Deep charcoal base */
    --bg-slate-light: #1E293B;
    /* Lighter slate for cards */
    --bg-slate-card: #283747;
    /* Slate card accent */
    --accent-orange: #FF6600;
    /* Signature Orange */
    --accent-orange-hover: #e65c00;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-retro: 'Anton', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-slate: #F8FAFC;
    --bg-slate-light: #FFFFFF;
    --bg-slate-card: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --border-color: rgba(15, 23, 42, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Base Light Mode Overrides */
[data-theme="light"] body {
    background-color: var(--bg-slate);
    color: var(--text-primary);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .service-card,
[data-theme="light"] .impact,
[data-theme="light"] .contact-wrapper,
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea {
    background-color: var(--bg-slate-light);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="light"] .nav-links a {
    color: var(--text-primary);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-slate);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    margin: 0 auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.btn-outline:hover {
    border-color: var(--accent-orange);
    background-color: rgba(255, 102, 0, 0.1);
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    color: var(--accent-orange);
    background-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Fixed Backgrounds */
.fixed-backgrounds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sunset-bg {
    background: url('assets/cinematic_sunset.png') no-repeat center center;
    background-size: cover;
    /* Slow motion ethereal pan over the course of viewing */
    animation: slowPan 40s ease-in-out infinite alternate;
    transform: scale(1.1);
}

.film-grain {
    /* Fractal noise SVG for film grain effect */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    mix-blend-mode: overlay;
    transition: opacity 0.2s linear;
}

.black-fade {
    background-color: var(--bg-slate);
    opacity: 0;
    transition: opacity 0.2s linear;
}

@keyframes slowPan {
    0% {
        transform: scale(1.1) translateY(-2%);
    }

    100% {
        transform: scale(1.15) translateY(2%);
    }
}

/* Cinematic Title Sequence */
.title-sequence {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 0 4rem 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.title-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -3rem;
}

.title-main {
    font-family: var(--font-retro);
    font-size: 8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #FFD700;
    /* Retro Yellow */
    text-transform: uppercase;
    /* Deep red extruded shadow for brutalist 80s / Tarantino logo style */
    text-shadow:
        2px 2px 0px #C70000,
        4px 4px 0px #C70000,
        6px 6px 0px #C70000,
        8px 8px 0px #C70000,
        10px 10px 0px #C70000,
        12px 12px 0px #C70000,
        14px 14px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: popInTitle 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.5s;
    margin-bottom: 0.5rem;
}

@keyframes popInTitle {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.title-roles {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-top: -0.5rem;
}

.title-roles span {
    font-family: var(--font-retro);
    font-size: 2.2rem;
    color: #F8FAFC;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 0px #C70000;
    opacity: 0;
}

.title-roles .role-dot {
    color: var(--accent-orange);
    font-size: 1.8rem;
}

.title-roles span:nth-child(1) {
    animation: slideInWord 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.5s;
}

.title-roles span:nth-child(2) {
    animation: slideInWord 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.8s;
}

.title-roles span:nth-child(3) {
    animation: slideInWord 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2.1s;
}

.title-roles span:nth-child(4) {
    animation: slideInWord 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2.4s;
}

.title-roles span:nth-child(5) {
    animation: slideInWord 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2.7s;
}

@keyframes slideInWord {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.title-copyright {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeInLegal 3s ease forwards 4.0s;
    margin-top: 1.5rem;
}

@keyframes fadeInLegal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Bio Section */
.bio {
    background-color: rgba(26, 26, 26, 0.6);
    /* Transparent back */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bio-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 4rem 4rem;
    background-color: rgba(255, 102, 0, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 102, 0, 0.2);
    box-shadow: var(--shadow-premium);
}

.bio-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 400;
}

.drop-cap {
    float: left;
    font-family: var(--font-retro);
    font-size: 4.5rem;
    line-height: 0.8;
    padding-top: 0.2rem;
    padding-right: 0.8rem;
    color: var(--accent-orange);
    text-shadow: 2px 2px 0px #C70000;
}

.bio-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--accent-orange);
    opacity: 0.6;
    font-size: 1.2rem;
}

.bio-divider .dot {
    font-size: 0.8rem;
}

/* Services */
.services {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-slate-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 102, 0, 0.1), transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(255, 102, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 102, 0, 0.1);
    color: var(--accent-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon {
    background-color: var(--accent-orange);
    color: #fff;
    transform: scale(1.1);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Impact / Stats */
.impact {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    opacity: 0.5;
    pointer-events: none;
}

.impact-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.impact-list-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 102, 0, 0.2);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.impact-list-item:hover {
    background: rgba(255, 102, 0, 0.05);
    border-color: rgba(255, 102, 0, 0.5);
    transform: translateX(10px);
}

.impact-list-item i {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-right: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.impact-list-item span {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Contact */
.contact {
    background-color: transparent;
    /* Rely on fixed background being black here */
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-slate-light);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-slate);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.select-wrapper {
    position: relative;
}

.contact-form select {
    appearance: none;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.btn-submit {
    width: 100%;
    gap: 0.5rem;
}

.btn-submit:hover i {
    transform: translateX(5px) translateY(-5px);
}

.btn-submit i {
    transition: var(--transition-fast);
}

/* Footer */
.footer {
    background-color: var(--bg-slate);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-mission {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-orange);
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

/* Animations (Reveal Classes) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .title-main {
        font-size: 5rem;
    }

    .title-content {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .title-main {
        font-size: 3.5rem;
    }

    .title-roles span {
        font-size: 1.2rem;
    }

    .title-roles .role-dot {
        font-size: 1rem;
    }

    .contact-wrapper {
        padding: 2rem 1.5rem;
    }

    .bio-content {
        padding: 2.5rem 1.5rem;
    }
}