/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f5;
    color: #111;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}


/* ========================================
   NAVIGATION
======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 5vw;

    z-index: 100;

    background: rgba(247, 247, 245, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 13px;
    color: #555;

    transition: color 0.2s ease;
}

nav a:hover {
    color: #111;
}


/* ========================================
   GENERAL
======================================== */

section {
    padding: 140px 5vw;
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #777;
}

.section-number {
    font-size: 12px;
    color: #999;
    padding-top: 8px;
}

.section-header {
    display: grid;
    grid-template-columns: 80px 1fr;

    margin-bottom: 80px;
}

.section-header h2 {
    margin-top: 10px;

    font-size: clamp(35px, 5vw, 70px);
    font-weight: 400;
    letter-spacing: -0.04em;
}


/* ========================================
   HERO
======================================== */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 150px;
}

.hero-content {
    max-width: 1100px;
}

.hero h1 {
    margin-top: 25px;

    font-size: clamp(55px, 9vw, 130px);

    line-height: 0.95;

    font-weight: 400;

    letter-spacing: -0.06em;
}

.hero-description {
    max-width: 550px;

    margin-top: 40px;

    font-size: 17px;

    color: #555;
}

.scroll-link {
    display: inline-block;

    margin-top: 50px;

    font-size: 13px;

    border-bottom: 1px solid #111;

    padding-bottom: 5px;
}


/* ========================================
   WORK
======================================== */

.work {
    background: #111;
    color: #f7f7f5;
}

.work .section-number,
.work .eyebrow {
    color: #777;
}

.work-category {
    margin-top: 120px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    margin-bottom: 30px;
}

.category-header h3 {
    font-size: 28px;
    font-weight: 400;
}

.category-header p {
    font-size: 12px;
    color: #777;
}


/* ========================================
   PHOTO GRID
======================================== */

.photo-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.photo {
    overflow: hidden;
    background: #222;
}

.photo img {
    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.photo:hover img {
    transform: scale(1.03);
}

.photo.large {
    grid-row: span 2;
}

.photo.large img {
    height: 100%;
}

.photo.wide {
    grid-column: span 2;
}


/* ========================================
   VIDEO
======================================== */

.video-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.video-project {
    display: block;
}

.video-thumbnail {
    position: relative;

    overflow: hidden;

    background: #222;
}

.video-thumbnail img {
    aspect-ratio: 16 / 9;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.video-project:hover .video-thumbnail img {
    transform: scale(1.03);
}

.play-button {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 55px;
    height: 55px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(255,255,255,0.7);

    border-radius: 50%;

    font-size: 12px;

    backdrop-filter: blur(5px);
}

.video-info {
    margin-top: 15px;
}

.video-info h4 {
    font-size: 17px;
    font-weight: 400;
}

.video-info p {
    margin-top: 5px;

    font-size: 12px;

    color: #777;
}


/* ========================================
   ABOUT
======================================== */

.about-content {
    margin-left: 80px;
}

.about-text {
    max-width: 750px;
}

.about-intro {
    font-size: clamp(28px, 4vw, 50px);

    line-height: 1.1;

    letter-spacing: -0.03em;

    margin-bottom: 50px;
}

.about-text p:not(.about-intro) {
    max-width: 600px;

    margin-bottom: 20px;

    font-size: 16px;

    color: #666;
}


/* ========================================
   CONTACT
======================================== */

.contact {
    min-height: 70vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-content {
    margin-left: 80px;

    max-width: 700px;
}

.contact-content p {
    font-size: 20px;

    color: #666;

    margin-bottom: 30px;
}

.email {
    display: inline-block;

    font-size: clamp(25px, 4vw, 50px);

    letter-spacing: -0.03em;

    border-bottom: 1px solid #111;
}


/* ========================================
   FOOTER
======================================== */

footer {
    display: flex;
    justify-content: space-between;

    padding: 30px 5vw;

    border-top: 1px solid #ddd;

    font-size: 11px;

    color: #777;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a:hover {
    color: #111;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    .navbar {
        padding: 20px 6vw;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 11px;
    }


    section {
        padding: 100px 6vw;
    }


    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: clamp(50px, 15vw, 80px);
    }

    .hero-description {
        font-size: 15px;
    }


    .section-header {
        grid-template-columns: 40px 1fr;

        margin-bottom: 50px;
    }

    .section-header h2 {
        font-size: 40px;
    }


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

    .photo.large {
        grid-row: auto;
    }

    .photo.large img {
        height: auto;
    }

    .photo.wide {
        grid-column: auto;
    }


    .category-header {
        display: block;
    }

    .category-header p {
        margin-top: 5px;
    }


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


    .about-content,
    .contact-content {
        margin-left: 40px;
    }


    footer {
        flex-direction: column;
        gap: 15px;
    }

}

/* ========================================
   VIDEO LIGHTBOX
======================================== */

.video-project {
    cursor: pointer;
}


/* Dark background */

.video-lightbox {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 5vw;

    background: rgba(0, 0, 0, 0.92);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* Open state */

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
}


/* Video modal */

.video-modal {
    width: min(1100px, 100%);

    transform: translateY(20px);

    transition: transform 0.4s ease;
}


.video-lightbox.active .video-modal {
    transform: translateY(0);
}


/* YouTube player */

.video-player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;
}


.video-player iframe {
    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    border: none;
}


/* Video title */

.modal-info {
    padding-top: 20px;
}


.modal-info h3 {
    font-size: 20px;

    font-weight: 400;

    color: #f7f7f5;
}


/* Close button */

.close-video {
    position: fixed;

    top: 25px;
    right: 35px;

    z-index: 1001;

    width: 45px;
    height: 45px;

    border: none;

    background: transparent;

    color: #fff;

    font-size: 38px;
    font-weight: 200;

    line-height: 1;

    cursor: pointer;

    opacity: 0.7;

    transition: opacity 0.2s ease;
}


.close-video:hover {
    opacity: 1;
}
