:root {
    --white: #ffffff;
    --black: #111111;
    --red: #D91A21;
    --light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--black);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Smooth Scroll */
html.lenis {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Add transition for background and padding */
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

/* This class will be toggled via JS */
nav.scrolled {
    padding: 10px 5%;
    /* Remove justify-content: center to keep mascot on the left */
    justify-content: flex-start;
}

.logomascot {
    height: 3rem;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

nav.scrolled .logomascot {
    filter: drop-shadow(0px 6px 12px rgba(217, 26, 33, 0.3));
    /* Tinted shadow matching your red */
}

.logotype {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    height: 3rem;
}

.logotype.hidden {
    opacity: 0;
    transform: translateX(20px);
    width: 0;
    /* Ensures it doesn't take up space when hidden */
    margin: 0;
    pointer-events: none;
}

.mascot-eye {
    transform-origin: center;
    transform-box: fill-box;
    /* Ensures the origin is relative to the path itself */
    animation: blink-animation 4s infinite;
}

@keyframes blink-animation {

    0%,
    90%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    /* The actual blink happens between 92% and 96% */
    94% {
        transform: scaleY(0.05);
    }
}

/* Tablet Navigation */
@media (min-width: 768px) {
    nav {
        padding: 25px 5%;
    }

    .logotype {
        height: 50px;
    }

    .logomascot {
        height: 50px;
    }
}

@media (min-width: 1024px) {
    .logotype {
        height: 60px;
    }

    .logomascot {
        height: 60px;
    }
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    /* Changed from center center to bottom left */
    align-items: flex-end;
    justify-content: flex-start;
    background: var(--black);
    overflow: hidden;
    position: relative;
    padding: 0 0 10vh 8%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ensure image fills everything regardless of container padding */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)),
        url('https://pub-936a2a79cb9b473fabc46e4ad35a3e2e.r2.dev/zoros-dream/zoros-dream.avif');
    background-size: cover;
    background-position: center;
}

@media (max-width: 500px) {
    .hero-bg {
        background-position: 75% center;
    }

    nav.scrolled .logomascot {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: none !important;
        height: 2.5rem;
        /* Optional: shrink slightly on scroll */
    }

    nav.scrolled {
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
    }
}

.hero-content {
    text-align: left;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-size: clamp(3rem, 15vw, 9rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: -2px;
}

.hero-sub {
    font-size: clamp(0.6rem, 2vw, 1rem);
    letter-spacing: 5px;
    margin-top: 20px;
    text-transform: uppercase;
    color: var(--red);
}

@media (min-width: 768px) {
    .hero-title {
        letter-spacing: -3px;
    }

    .hero-sub {
        letter-spacing: 8px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        letter-spacing: -5px;
    }

    .hero-sub {
        letter-spacing: 10px;
    }
}

/* Section Global Styling */
section {
    padding: 80px 5%;
    position: relative;
}

@media (min-width: 768px) {
    section {
        padding: 50px 8%;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 80px 10%;
    }
}

.outline-bg {
    position: absolute;
    font-size: 15vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(17, 17, 17, 0.1);
    top: 10px;
    left: 5%;
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
    display: none;
}

@media (min-width: 768px) {
    .outline-bg {
        display: block;
        font-size: 12vw;
    }
}

@media (min-width: 1024px) {
    .outline-bg {
        font-size: 10vw;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

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

/* About Section */
#about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 15px;
}

.about-text p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: #444;
    max-width: 100%;
}

.about-image {
    height: 300px;
    background: #eee;
    order: -1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    #about {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-image {
        height: 350px;
        order: 0;
    }
}

@media (min-width: 1024px) {
    #about {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
    }

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

/* Showreel */
#showreel {
    padding: 30px 5% 60px;
    color: var(--black);
    overflow: hidden;
}

@media (min-width: 768px) {
    #showreel {
        padding: 40px 8%;
    }
}

@media (min-width: 1024px) {
    #showreel {
        padding: 40px 10%;
    }
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #222;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-container.expanded {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay play button */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
    transition: 0.3s;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Speaker button */
.sound-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

.sound-toggle i {
    font-size: 1.1rem;
}

.sound-toggle.show {
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 26, 33, 0.1);
    transition: 0.3s;
}

.video-overlay:hover {
    background: rgba(217, 26, 33, 0.3);
}

.video-overlay i {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    .video-overlay i {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .video-overlay i {
        font-size: 4rem;
    }
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.work-card {
    height: 250px;
    background: var(--light);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .work-card {
        height: 280px;
    }
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.work-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.5);
}

.work-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.work-card:hover .work-info {
    opacity: 1;
}

#works h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    #works h2 {
        margin-bottom: 30px;
    }
}

/* Services */
.services-container {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    transition: 0.3s;
}

@media (min-width: 768px) {
    .service-row {
        padding: 25px 0;
    }
}

@media (min-width: 1024px) {
    .service-row {
        padding: 30px 0;
    }

    .service-row:hover {
        padding-left: 20px;
        color: var(--red);
    }
}

.service-row h3 {
    font-size: clamp(1.2rem, 5vw, 2rem);
    text-transform: uppercase;
}

.service-row span {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    font-weight: 700;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.team-card {
    text-align: left;
}

.team-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-info h4 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-info p {
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 5px;
}

#team h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 20px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    #team h2 {
        margin-bottom: 30px;
    }
}

/* Contact Section */
#contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: var(--white);
}

@media (min-width: 768px) {
    #contact {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (min-width: 1024px) {
    #contact {
        gap: 60px;
    }
}

.contact-left h2 {
    font-size: clamp(2.5rem, 10vw, 4rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

.contact-left p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-top: 20px;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--black);
    background: transparent;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    border-color: var(--red);
}

.file-upload-container {
    margin-bottom: 20px;
}

.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 4px;
    text-align: center;
}

.upload-box:hover {
    border-color: var(--red);
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.upload-box.has-file {
    border-color: var(--black);
    border-style: solid;
    background: #f0f0f0;
}

.upload-box i {
    font-size: 2.5rem;
    color: #888;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.upload-box:hover i {
    color: var(--red);
}

.upload-text {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--black);
    margin-bottom: 5px;
}

.file-info {
    font-size: 0.65rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.file-name-display {
    margin-top: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    word-break: break-all;
    max-width: 100%;
}

@media (max-width: 768px) {
    .upload-box {
        padding: 30px 15px;
    }
}

.submit-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 18px;
    width: 100%;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .submit-btn {
        padding: 20px;
    }
}

/* Footer */
footer {
    background: var(--white);
    color: var(--black);
    padding: 50px 5% 0 5%;
    border-top: 1px solid #eee;
}

@media (min-width: 768px) {
    footer {
        padding: 60px 8% 0 8%;
    }
}

@media (min-width: 1024px) {
    footer {
        padding: 80px 10% 0 10%;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 2fr 1.5fr 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
}

.footer-col h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 800;
}

@media (min-width: 768px) {
    .footer-col h3 {
        margin-bottom: 20px;
    }
}

.footer-col p,
.footer-col a {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--red);
}

.newsletter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

@media (min-width: 768px) {
    .newsletter-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 40px 0;
    }
}

.newsletter-text {
    font-size: 0.85rem;
    color: #444;
}

.newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--black);
    border-right: none;
    background: transparent;
    font-size: 0.75rem;
    outline: none;
    height: 45px;
}

@media (min-width: 768px) {
    .newsletter-form input {
        padding: 15px;
        font-size: 0.8rem;
        height: 50px;
    }
}

.newsletter-btn {
    background: var(--red);
    color: var(--white);
    border: 1px solid var(--red);
    padding: 0 25px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .newsletter-btn {
        padding: 0 35px;
        font-size: 0.75rem;
        height: 50px;
    }
}

.newsletter-btn:hover {
    filter: brightness(1.2);
}

.footer-bottom {
    /* background: var(--black); */
    color: #444;
    padding: 20px 5%;
    margin: 0 -5%;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding: 20px 8%;
        margin: 0 -8%;
        font-size: 0.7rem;
    }
}

@media (min-width: 1024px) {
    .footer-bottom {
        padding: 20px 10%;
        margin: 0 -10%;
    }
}