/* Base Styles */
:root {
    --bg-color: #0A0A0A;
    --bg-alt: #141414;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent-color: #6C5CE7; /* Deep Purple accent */
    --accent-hover: #8A7DF0;
    --font-main: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2.section-title {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.nav-brand {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 6px 0;
    transition: 0.4s;
}

/* Mobile Menu Active State */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -7px);
}

/* Hero Section */
.hero-section {
    width: 100%;
    aspect-ratio: 2/3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#rain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 240px; /* Moved up by ~10% more */
}

.hero-logo {
    width: min(1260px, 90vw); /* Fully responsive: max 1260px, otherwise 90% of screen */
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.9));
    animation: fadeInUp 1s ease forwards;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    width: 100%;
    overflow: visible; /* Prevent clipping */
}

.carousel-content h1 {
    font-size: 2.2vw; /* Slightly smaller to fit name on one line */
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 5px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 1);
    transition: all 0.5s ease;
    line-height: 1.2;
    padding: 0;
}

.hero-divider {
    width: 300px;
    height: 1px;
    background-color: var(--text-primary);
    margin: 15px auto;
    opacity: 0.8;
}

.carousel-content p {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

/* Movie-Specific Role Styles */
.carousel-slide[data-movie="daredevil"] p {
    font-family: 'Oswald', sans-serif !important;
    color: #e60000 !important;
}

.carousel-slide[data-movie="missing-piece"] p {
    font-family: 'Montserrat', serif !important;
    color: #fdf5e6 !important;
    letter-spacing: 6px;
    font-weight: 300;
}

.carousel-slide[data-movie="play-dirty"] p {
    font-family: 'Oswald', sans-serif !important;
    color: #ffffff !important;
    font-style: italic;
    letter-spacing: 1px;
}

.carousel-slide[data-movie="tender-bar"] p {
    font-family: 'Montserrat', serif !important;
    color: #ffd700 !important;
    font-weight: 400;
    letter-spacing: 4px;
}

.carousel-slide[data-movie="godmothered"] p {
    font-family: 'Montserrat', sans-serif !important;
    color: #add8e6 !important;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(173, 216, 230, 0.8);
}

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

/* About Section */
.about-section {
    padding: 8rem 0;
    background-color: var(--bg-alt);
}

.about-container {
    display: flex;
    align-items: flex-start; /* Changed to flex-start for sticky to work correctly */
    gap: 4rem;
}

.about-image {
    flex: 1.2; /* Make the photo a little larger */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: sticky; /* Make the photo sticky */
    top: 120px; /* Offset when scrolling */
    z-index: 10;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(108, 92, 231, 0.2), transparent);
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1.5; /* Keep text proportionate */
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Credits Section */
.credits-section {
    padding: 8rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.credit-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.credit-item {
    display: flex;
    gap: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.credit-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Poster Images */
.credit-left {
    flex: 0 0 300px;
}

.credit-right {
    flex: 1;
    padding-top: 1rem;
}

.poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.3);
}

/* Credit Text Details */
.credit-right h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.credit-right h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.credit-right .role {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credit-right ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

.credit-right li {
    margin-bottom: 0.5rem;
}

.compact-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
}

.compact-list li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

.compact-list strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

/* Footer */
footer {
    background-color: var(--bg-color);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-left h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-left p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.social-link {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.social-link:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-logo {
        width: 85vw;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .carousel-slide {
        padding-bottom: 180px;
    }

    .carousel-content h1 {
        font-size: 5.5vw; /* Slightly smaller to guarantee one-line fit */
        letter-spacing: 2px;
        padding: 0 1rem;
        white-space: nowrap; /* Forces one line */
    }

    .hero-divider {
        width: 120px;
        margin: 8px auto;
    }

    .carousel-content p {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .about-section {
        padding: 4rem 0;
    }

    .about-container {
        flex-direction: column;
        gap: 3rem;
    }

    .about-image {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-text h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .about-text p {
        font-size: 1rem;
    }

    .credit-item {
        flex-direction: column;
        gap: 1.5rem;
    }

    .credit-left {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .credit-right h4 {
        font-size: 1.5rem;
        text-align: center;
    }

    .credit-right .role {
        font-size: 1rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    .footer-right {
        justify-content: center;
        width: 100%;
    }

    .fixed-socials {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Placeholder Poster for Missing/Scrapped Movies */
.placeholder-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #555;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border: 1px solid #333;
    padding: 1rem;
}

/* Fixed Social Icons */
.fixed-socials {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    z-index: 1000;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(10, 10, 10, 0.8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.social-icon:hover {
    background-color: #e60000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
}

/* --- Resume Section --- */
.resume-section {
    padding: 100px 0;
    text-align: center;
    background-color: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.resume-section h2 {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff;
}

.resume-section p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.resume-content .contact-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
}