﻿
/* =========================
   GENERAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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


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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #111;
    border-bottom: 1px solid #333;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
}

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

    .nav-links a:hover {
        color: #aaa;
    }


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

.hero {
    min-height: 80vh;
    max-width: 1200px;
    margin: auto;
    padding: 100px 30px;
    display: flex;
    align-items: center;
}

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

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    margin-bottom: 30px;
}

.hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 30px;
}





/* =========================
   BUTTON
========================= */
.button {
    display: inline-block;
    padding: 16px 35px;
    background: #fff;
    color: #111;
    font-weight: bold;
    margin-top: 50px;
    transition: 0.2s;
}

    .button:hover {
        opacity: 0.75;
    }


/* =========================
   SECTIONS
========================= */

section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 30px;
}

.section-heading {
    margin-bottom: 50px;
}

    .section-heading h2,
    .about h2,
    .contact h2 {
        font-size: 3rem;
        margin-bottom: 15px;
    }


/* =========================
   PORTFOLIO
========================= */

.portfolio {
    border-top: 1px solid #333;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}


/* =========================
   PROJECT CARDS
========================= */

.project-card {
    background: #1a1a1a;
    transition: transform 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-5px);
    }

    .project-card img {
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

.project-info {
    padding: 25px;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 8px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p:last-child {
    color: #aaa;
}


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

.about {
    border-top: 1px solid #333;
}

.about-content {
    max-width: 700px;
    align-content: center;
}

.about-text p:not(.eyebrow) {
    color: #bbb;
    margin-bottom: 20px;
    max-width: 600px;
    align-items: center;
}


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

.contact {
    border-top: 1px solid #333;
    text-align: center;
}

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

    .contact-content p:not(.eyebrow) {
        color: #bbb;
        margin-bottom: 25px;
    }


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

footer {
    border-top: 1px solid #333;
    text-align: center;
    padding: 30px;
    color: #777;
}


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

@media (max-width: 700px) {

    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 70px 20px;
    }

    section {
        padding: 70px 20px;
    }

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

    .hero h1 {
        font-size: 3rem;
    }

    .section-heading h2,
    .about h2,
    .contact h2 {
        font-size: 2.3rem;
    }
}

/* =========================
   ALL WORK PAGE
========================= */
.works-intro {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.works-intro h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    margin-bottom: 20px;
}

.works-intro > p:last-child {
    max-width: 600px;
    color: #bbb;
}


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

.work-section {
    border-top: 1px solid #333;
    scroll-margin-top: 80px;
}


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

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    background: #1a1a1a;
    padding-bottom: 20px;
}

    .work-item img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        margin-bottom: 20px;
    }

    .work-item h3 {
        padding: 0 20px;
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .work-item p {
        padding: 0 20px;
        color: #999;
    }

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

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

    .lightbox.active {
        display: flex;
    }

    .lightbox img {
        max-width: 95vw;
        max-height: 90vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.lightbox-image {
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

    .lightbox-close:hover {
        opacity: 0.7;
    }

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

@media (max-width: 700px) {

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