/* Kaleida-Inspired Theme & Video Background */
:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-accent: #FFD700;
    --font-main: 'Montserrat', sans-serif;
    --nav-height: 80px;
}

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

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

/* Delayed Reveal for Content */
main,
footer,
.nav-links,
.menu-toggle {
    opacity: 0;
    animation: contentFadeIn 1.5s ease-out 2s forwards;
}

@keyframes contentFadeIn {
    to {
        opacity: 1;
    }
}

/* Typography - BIG & BOLD */
h1 {
    font-size: 8vw;
    /* Reduced size */
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--color-text);
    transition: color 0.5s;
    position: relative;
    z-index: 2;
    opacity: 0;
    /* Star invisible */
    animation: slideUpFadeIn 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.5s;
    /* Small delay */
}

h1:hover {
    color: var(--color-text);
}

h2 {
    font-size: 2vw;
    text-transform: uppercase;
    font-weight: 800;
    padding: 2rem 5%;
    border-top: 1px solid #333;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: transparent;
    mix-blend-mode: difference;
    /* Visible on any background */
}

.logo {
    font-weight: 900;
    letter-spacing: 1px;
    color: white;
    /* Intro Animation - Smooth & Simple */
    animation: logoEntrance 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    will-change: transform, opacity;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translate(45vw, 45vh) scale(2);
        /* Start Center-ish */
    }

    20% {
        opacity: 1;
        transform: translate(45vw, 45vh) scale(2);
        /* Hold Center */
    }

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

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

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push to bottom */
    align-items: flex-start;
    /* Push to left */
    padding: 0 5%;
    padding-bottom: 5%;
    /* Spacing from bottom edge */
    padding-top: var(--nav-height);
    overflow: hidden;
    text-align: left;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content p {
    font-size: 0.75rem;
    max-width: 600px;
    margin-right: auto;
    /* reset alignment */
    margin-left: 0;
    text-align: left;
    position: relative;
    z-index: 2;
    margin-top: 1rem;
}

/* Marquee Section */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    background: var(--color-accent);
    color: black;
    transform: rotate(-2deg) scale(1.05);
    /* Slight tilt for kinetic feel */
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

#work .section-title {
    text-align: right;
}

/* Manual Horizontal Slider */
.work-section {
    padding: 6rem 0;
    position: relative;
    background: #000;
    overflow: hidden;
    /* Hide overflow from slider */
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    /* track is visible within wrapper but wrapper is inside overflow hidden section if needed, or just let it slide */
}

.work-section .section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-right: 5%;
    top: auto;
    right: auto;
}

.slider-nav {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 20;
}

.nav-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    /* Override default button margin */
    padding: 0;
}

.nav-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: black;
}

.scroll-track {
    display: flex;
    gap: 5vw;
    padding-left: 5vw;
    /* Start offset */
    width: max-content;
    will-change: transform;
}

.portfolio-item {
    position: relative;
    flex: 0 0 60vw;
    height: 50vh;
    /* balanced height */
    border: 1px solid #222;
    overflow: hidden;
}

@media (min-width: 768px) {
    .portfolio-item {
        flex: 0 0 40vw;
        height: 60vh;
    }
}

.thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    filter: grayscale(100%);
}

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

.info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    pointer-events: none;
}

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

.info h3 {
    font-size: 1.5rem;
    color: white;
    /* Contrast against hover image */
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Global Clients */
.clients-section {
    padding: 6rem 5%;
    background: #050505;
    text-align: center;
}

.clients-list p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #666;
}

.country-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 4rem;
}

.country-grid span {
    font-size: 3vw;
    /* Big but fits */
    font-weight: 800;
    color: #333;
    transition: color 0.3s;
    cursor: default;
}

.country-grid span:hover {
    color: var(--color-accent);
}

/* About Section */
.about-section {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* For floating images */
}

.about-content {
    position: relative;
    z-index: 2;
    /* Text above images */
}

.about-section .section-title {
    position: relative;
    z-index: 2;
}

.floating-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-image {
    position: absolute;
    background-size: cover;
    background-position: center;
    opacity: 0;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity;
}

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

    20% {
        opacity: 0.3;
    }

    /* Max opacity */
    80% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) scale(1.1);
        opacity: 0;
    }
}

.about-content p {
    font-size: 1rem;
    max-width: 800px;
    /* Prevent full width stretching */
    margin: 0 auto;
    /* Center block */
    line-height: 1.6;
    color: #ccc;
}

/* Clapboard Contact Section */
.contact-section {
    padding: 8rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #111;
}

.clapboard-container {
    perspective: 1000px;
    margin-top: 2rem;
}

.clapboard {
    width: 100%;
    max-width: 600px;
    background: #000;
    border: 10px solid #fff;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.clapboard:hover {
    transform: rotate(0deg) scale(1.02);
}

.clapboard-top {
    height: 60px;
    background: repeating-linear-gradient(135deg,
            #fff,
            #fff 20px,
            #000 20px,
            #000 40px);
    border-bottom: 10px solid #fff;
    position: relative;
    /* Animation hook: could make it 'clap' on load, stick to static but styled for now */
}

.clapboard-body {
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    /* Script font feel */
    color: white;
}

.field-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid white;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-block {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid white;
    padding-bottom: 1rem;
}

.contact-details {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid white;
    padding-bottom: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #000;
    background: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--color-accent);
}

.label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.2rem;
    display: block;
}

.value {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

a.value {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

.main-name {
    font-size: 2rem;
    display: block;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1rem;
    color: white;
    cursor: pointer;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* For now simple toggle or hidden */
    }

    /* Typography */
    h1 {
        font-size: 15vw;
        /* Larger relative to screen for impact */
    }

    h2 {
        font-size: 8vw;
    }

    .main-name {
        font-size: 1.5rem;
    }

    /* Slider Items */
    .portfolio-item {
        width: 85vw;
        /* Show mostly one slide */
        height: 60vh;
        /* taller vertical aspect */
    }

    .slider-wrapper {
        padding-left: 7.5vw;
        /* Center single item */
    }

    .slider-nav {
        transform: translateX(-50%) translateY(20px);
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 2rem;
    }

    .nav-btn {
        padding: 1rem 2rem;
        /* Larger touch area */
        font-size: 1rem;
    }

    /* Clapboard Mobile */
    .clapboard {
        width: 95%;
        margin: 0 auto;
        border: 5px solid #fff;
    }

    .clapboard-top {
        height: 40px;
        border-bottom: 5px solid #fff;
    }

    .clapboard-body {
        padding: 1rem;
    }

    .field-row {
        flex-direction: row;
        gap: 0.5rem;
    }

    .field-group .label {
        font-size: 0.6rem;
    }

    .field-group .value {
        font-size: 0.9rem;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        word-break: break-all;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-links a {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    /* About Floating Images - reduce for mobile */
    .floating-image {
        /* Make them smaller on mobile */
        max-width: 150px !important;
    }
}

/* Intro Animation */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

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