/* ==========================================
   DADA'S PROJECT PORTFOLIO
========================================== */

:root {
    --navy: #082c50;
    --navy-dark: #041b31;
    --navy-light: #124977;

    --gold: #bd8b3b;
    --gold-light: #d8ae65;

    --cream: #f7f4ee;
    --white: #ffffff;

    --text: #17202a;
    --grey: #6c7278;

    --border: rgba(8, 44, 80, 0.12);
}


/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* ==========================================
   NAVIGATION
========================================== */

.navbar {
    width: 100%;
    height: 94px;

    padding: 0 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 1000;
}

.logo img {
    width: 105px;
    height: 78px;

    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;

    /* More breathing room */
    gap: 42px;
}

.nav-links a {
    color: var(--navy);

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.8px;

    position: relative;

    padding: 37px 0;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 28px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: 0.3s ease;
}

.nav-links a:hover::after,
.nav-links .active::after {
    width: 100%;
}

.nav-button {
    background: var(--navy);

    color: white;

    padding: 13px 23px;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition: 0.3s;
}

.nav-button:hover {
    background: var(--gold);
}


/* ==========================================
   HERO
========================================== */

.project-hero {
    min-height: 670px;

    position: relative;

    display: flex;
    align-items: center;

    padding: 100px 8%;

    background:
        linear-gradient(
            90deg,
            rgba(4, 27, 49, 0.96) 0%,
            rgba(4, 27, 49, 0.88) 45%,
            rgba(4, 27, 49, 0.32) 100%
        ),
        url("images/project-1.jpg");

    background-position: center;
    background-size: cover;
}

.project-hero::after {
    content: "";

    position: absolute;

    right: 7%;
    bottom: -1px;

    height: 105px;
    width: 1px;

    background: var(--gold);
}

.hero-content {
    position: relative;

    max-width: 800px;

    z-index: 2;

    color: white;
}

.eyebrow {
    color: var(--gold-light);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 4px;

    margin-bottom: 26px;
}

.hero-content h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(55px, 7vw, 95px);

    line-height: 0.95;

    font-weight: 600;

    max-width: 850px;
}

.hero-content h1 span {
    color: var(--gold-light);
}

.hero-description {
    max-width: 590px;

    margin-top: 34px;

    font-size: 15px;
    line-height: 1.9;

    color: rgba(255,255,255,0.78);
}

.gold-button {
    display: inline-flex;
    align-items: center;

    gap: 18px;

    margin-top: 42px;

    padding: 17px 28px;

    background: var(--gold);

    color: white;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition: 0.3s ease;
}

.gold-button span {
    font-size: 18px;
}

.gold-button:hover {
    background: white;
    color: var(--navy);

    transform: translateY(-2px);
}


/* ==========================================
   INTRODUCTION
========================================== */

.project-intro {
    max-width: 1400px;

    margin: auto;

    /* More vertical space */
    padding: 135px 7%;

    display: grid;

    grid-template-columns: 1.4fr 1fr;

    /* Increased spacing between columns */
    gap: 120px;

    align-items: center;
}

.intro-title {
    display: flex;

    gap: 35px;

    align-items: flex-start;
}

.section-number {
    color: var(--gold);

    font-family: "Cormorant Garamond", serif;

    font-size: 22px;

    border-top: 1px solid var(--gold);

    padding-top: 9px;
}

.small-title {
    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;

    color: var(--gold);

    margin-bottom: 20px;
}

.intro-title h2,
.section-heading h2 {
    color: var(--navy);

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(43px, 5vw, 70px);

    line-height: 1.05;

    font-weight: 600;
}

.intro-text {
    border-left: 1px solid var(--gold);

    padding-left: 40px;
}

.intro-text p {
    color: var(--grey);

    font-size: 14px;

    line-height: 1.9;

    margin-bottom: 20px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   PROJECT GALLERY
========================================== */

.projects-section {
    /* More space above and below gallery */
    padding: 130px 7% 145px;

    background: var(--cream);
}

.section-heading {
    max-width: 1400px;

    /* Increased space before the project cards */
    margin: 0 auto 80px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 65px;
}

.section-heading > p {
    max-width: 390px;

    color: var(--grey);

    font-size: 14px;

    line-height: 1.8;
}


/* ==========================================
   PROJECT GRID
========================================== */

.project-grid {
    width: 100%;
    max-width: 1500px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    grid-auto-rows: 420px;

    /*
       Main spacing improvement.
       Previous version was 20px.
    */
    gap: 36px;
}

.project-card {
    position: relative;

    overflow: hidden;

    cursor: pointer;

    background: var(--navy);
}

.project-card.large {
    grid-row: span 2;
}

.project-card.wide {
    grid-column: span 2;

    height: 520px;

    /* Gives wide projects a little separation */
    margin-top: 4px;
}

.project-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(.2,.6,.3,1),
        opacity 0.5s;
}


/* ==========================================
   PROJECT GRADIENT
========================================== */

.project-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    /* Slightly more internal spacing */
    padding: 38px;

    background:
        linear-gradient(
            to top,
            rgba(3, 21, 39, 0.92) 0%,
            rgba(3, 21, 39, 0.35) 45%,
            transparent 75%
        );

    transition: 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-card:hover .project-overlay {
    background:
        linear-gradient(
            to top,
            rgba(3, 21, 39, 0.97) 0%,
            rgba(3, 21, 39, 0.50) 55%,
            transparent 90%
        );
}


/* ==========================================
   PROJECT INFORMATION
========================================== */

.project-info {
    padding-right: 20px;
}

.project-info span {
    display: block;

    color: var(--gold-light);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2.5px;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.project-info h3 {
    color: white;

    font-family: "Cormorant Garamond", serif;

    font-size: 30px;

    font-weight: 600;

    margin-bottom: 8px;
}

.project-info p {
    color: rgba(255,255,255,0.7);

    font-size: 12px;

    line-height: 1.6;
}


/* ==========================================
   VIEW BUTTON
========================================== */

.view-project {
    min-width: 57px;
    height: 57px;

    border: 1px solid rgba(255,255,255,0.5);

    background: rgba(255,255,255,0.05);

    color: white;

    border-radius: 50%;

    cursor: pointer;

    font-size: 10px;

    flex-shrink: 0;

    transition: 0.3s ease;
}

.view-project:hover {
    background: var(--gold);

    border-color: var(--gold);

    transform: scale(1.08);
}


/* ==========================================
   CTA
========================================== */

.project-cta {
    /* More separation between gallery and CTA */
    padding: 145px 7%;

    background: var(--navy);

    text-align: center;

    position: relative;

    overflow: hidden;
}

.project-cta::before {
    content: "D";

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -52%);

    font-family: "Cormorant Garamond", serif;

    font-size: 520px;

    color: rgba(255,255,255,0.025);

    line-height: 1;

    pointer-events: none;
}

.cta-inner {
    max-width: 820px;

    margin: auto;

    position: relative;

    z-index: 2;
}

.project-cta h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(50px, 6vw, 80px);

    color: white;

    font-weight: 600;

    line-height: 1;
}

.project-cta h2 span {
    color: var(--gold-light);
}

.project-cta p:not(.small-title) {
    margin: 32px auto;

    max-width: 650px;

    color: rgba(255,255,255,0.7);

    line-height: 1.8;

    font-size: 14px;
}

.cta-button {
    display: inline-flex;

    align-items: center;

    gap: 18px;

    margin-top: 15px;

    padding: 17px 29px;

    background: var(--gold);

    color: white;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    transition: 0.3s;
}

.cta-button:hover {
    background: white;

    color: var(--navy);

    transform: translateY(-3px);
}


/* ==========================================
   FOOTER
========================================== */

footer {
    min-height: 200px;

    padding: 40px 7%;

    background: #031626;

    display: flex;

    align-items: center;
    justify-content: space-between;

    color: white;

    gap: 45px;
}

.footer-logo img {
    width: 105px;

    background: white;

    padding: 4px;
}

.footer-text {
    text-align: center;
}

.footer-text p {
    font-family: "Cormorant Garamond", serif;

    font-size: 24px;

    margin-bottom: 8px;
}

.footer-text span {
    color: rgba(255,255,255,0.55);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.footer-links {
    display: flex;

    gap: 28px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);

    font-size: 12px;

    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--gold-light);
}


/* ==========================================
   IMAGE LIGHTBOX
========================================== */

.lightbox {
    position: fixed;

    inset: 0;

    background: rgba(3, 17, 30, 0.96);

    z-index: 5000;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 60px;

    opacity: 0;

    visibility: hidden;

    transition: 0.3s ease;
}

.lightbox.active {
    opacity: 1;

    visibility: visible;
}

.lightbox img {
    max-width: 1200px;
    max-height: 82vh;

    object-fit: contain;

    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.close-lightbox {
    position: absolute;

    top: 30px;
    right: 40px;

    border: none;

    background: none;

    color: white;

    font-size: 45px;

    cursor: pointer;

    transition: 0.2s;
}

.close-lightbox:hover {
    color: var(--gold);
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 950px) {

    .nav-links {
        display: none;
    }

    .project-intro {
        grid-template-columns: 1fr;

        padding: 110px 7%;

        gap: 60px;
    }

    .section-heading {
        display: block;

        margin-bottom: 60px;
    }

    .section-heading > p {
        margin-top: 25px;
    }

    .projects-section {
        padding: 110px 7% 125px;
    }

    .project-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 480px;

        /* Extra spacing on tablets */
        gap: 30px;
    }

    .project-card.large,
    .project-card.wide {
        grid-row: auto;
        grid-column: auto;

        height: auto;

        margin-top: 0;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .navbar {
        height: 80px;

        padding: 0 5%;
    }

    .logo img {
        width: 85px;
        height: 65px;
    }

    .nav-button {
        padding: 11px 16px;

        font-size: 10px;
    }

    .project-hero {
        min-height: 610px;

        padding: 80px 7%;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-description {
        font-size: 13px;

        margin-top: 28px;
    }

    .project-intro {
        padding: 90px 6%;

        gap: 48px;
    }

    .projects-section {
        padding: 95px 6% 110px;
    }

    .intro-title {
        gap: 20px;
    }

    .intro-text {
        padding-left: 24px;
    }

    .intro-text p {
        margin-bottom: 18px;
    }

    .section-heading {
        margin-bottom: 48px;
    }

    .project-grid {
        grid-auto-rows: 390px;

        /*
           Previous mobile spacing was only 14px.
           This gives each project much more breathing room.
        */
        gap: 24px;
    }

    .project-overlay {
        padding: 26px;
    }

    .project-info {
        padding-right: 12px;
    }

    .project-info h3 {
        font-size: 25px;

        margin-bottom: 7px;
    }

    .view-project {
        min-width: 48px;
        height: 48px;
    }

    .project-cta {
        padding: 110px 7%;
    }

    .project-cta p:not(.small-title) {
        margin: 27px auto;
    }

    footer {
        flex-direction: column;

        gap: 38px;

        padding: 50px 7%;

        text-align: center;
    }

    .footer-links {
        justify-content: center;

        gap: 24px;

        flex-wrap: wrap;
    }

    .lightbox {
        padding: 20px;
    }

}