:root {
    --black: #0a0a0a;
    --dark: #111111;
    --charcoal: #1a1a1a;
    --gold: #c9a227;
    --gold-bright: #f4d03f;
    --cream: #f5f0e6;
    --silver: #8a8a8a;
    --red: #8b0000;
}

body.light-mode {
    --black: #f5f0e6;
    --dark: #e8e0d0;
    --charcoal: #d6cebf;
    --cream: #0a0a0a;
    --silver: #444444;
}

/* Additional adjustments for light mode specific elements */
body.light-mode .cinematic-bar {
    background: #0a0a0a; /* Keep bars dark for cinematic feel or match theme? User asked for light mode. Let's make them match theme or maybe dark contrast. Let's make them var(--black) which is cream in light mode, basically disappearing, or we keep them dark. Usually cinematic bars are black. Let's keep them black. */
}
body.light-mode .cinematic-bar {
    background: #0a0a0a; /* Overridden to stay black */
}
body.light-mode nav {
    background: linear-gradient(to bottom, rgba(230, 230, 230, 0.9), transparent);
}
body.light-mode .portfolio-item::before {
    background: linear-gradient(to top, var(--black), transparent 60%);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--black);
    color: var(--cream);
    overflow-x: hidden;
    cursor: crosshair;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: grain 0.5s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 0); }
    60% { transform: translate(1%, 0); }
    70% { transform: translate(0, 1%); }
    80% { transform: translate(0, -1%); }
    90% { transform: translate(1%, 1%); }
}

/* Vignette Effect */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
}

/* Cinematic Bars */
.cinematic-bar {
    position: fixed;
    left: 0;
    width: 100%;
    height: 60px;
    background: #0a0a0a; /* Fixed black */
    z-index: 9998;
}

.cinematic-bar.top { top: 0; }
.cinematic-bar.bottom { bottom: 0; }

/* Navigation */
nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10,10,10,0.9), transparent);
    transition: background 0.3s ease;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--silver);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

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

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gold);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
        linear-gradient(225deg, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
}

.spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    animation: spotlight 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes spotlight {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-30%, -30%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    margin-bottom: 30px;
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 15vw, 12rem);
    letter-spacing: 0.1em;
    line-height: 0.9;
    margin-bottom: 40px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(201, 162, 39, 0.3);
}

.hero-tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--silver);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-btn {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 18px 50px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: transparent;
    cursor: pointer;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-btn:hover {
    color: var(--black);
}

.cta-btn:hover::before {
    left: 0;
}

/* Section Styling */
section {
    padding: 120px 60px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.15em;
    color: var(--cream);
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 30px auto 0;
}

/* About Section */
.about {
    background: linear-gradient(to bottom, var(--black), var(--dark));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%) contrast(1);
}

.about-text h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--silver);
    margin-bottom: 40px;
}

.stats {
    display: flex;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--silver);
    margin-top: 10px;
}

/* Skills Section */
.skills {
    background: var(--charcoal);
}

.skills-container {
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 60px;
    padding: 40px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}

.skill-category h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--cream);
    margin-bottom: 30px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--silver);
    color: var(--silver);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.2);
}

/* Timeline Section */
.timeline {
    background: var(--dark);
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 30px 0;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: var(--charcoal);
    border: 1px solid rgba(201, 162, 39, 0.2);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -38px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -38px;
}

.timeline-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 10px;
}

.timeline-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    color: var(--cream);
    margin-bottom: 10px;
}

.timeline-place {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--silver);
}

/* Portfolio Section */
.portfolio {
    background: var(--black);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--black), transparent 60%);
    z-index: 2;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(70%);
    transition: all 0.6s ease;
}

.portfolio-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 3;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-category {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 15px;
}

.portfolio-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--cream);
    margin-bottom: 15px;
}

.portfolio-desc {
    font-size: 1rem;
    color: var(--silver);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-desc {
    opacity: 1;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.portfolio-item:hover .portfolio-link {
    opacity: 1;
}

.portfolio-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.portfolio-link:hover::after {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background: linear-gradient(to bottom, var(--charcoal), var(--black));
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--silver);
    margin-bottom: 60px;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 15px;
}

.contact-value {
    font-size: 1.2rem;
    color: var(--cream);
}

.contact-value a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--gold);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--silver);
    font-style: italic;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    padding: 40px 60px 100px;
    background: var(--black);
    text-align: center;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--silver);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--silver);
    writing-mode: vertical-rl;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 400px;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-end;
    }

    .timeline-content {
        width: 85%;
    }

    .timeline-item .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -38px;
        right: auto;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px 30px;
    }
    
    .nav-right {
        gap: 20px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 80px 30px;
    }

    .hero {
        padding: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats {
        justify-content: center;
    }

    .cinematic-bar {
        height: 40px;
    }
}

/* Film Reel Decoration */
.film-reel {
    position: absolute;
    width: 100%;
    height: 30px;
    display: flex;
    overflow: hidden;
    opacity: 0.1;
}

.film-reel.top { top: 60px; }
.film-reel.bottom { bottom: 60px; }

.film-hole {
    width: 20px;
    height: 15px;
    background: var(--cream);
    margin: 7px 15px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-bright);
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
