/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

body,
a,
button {
    cursor: none;
}


/* =========================================================
   CUSTOM CURSOR
========================================================= */

.cursor {
    position: fixed;

    width: 18px;
    height: 18px;

    left: 0;
    top: 0;

    border-radius: 50%;

    background: #ffffff;

    pointer-events: none;

    z-index: 99999;

    transform: translate(-50%, -50%);

    mix-blend-mode: difference;

    transition:
        width 0.3s ease,
        height 0.3s ease,
        background 0.3s ease;

    will-change: transform;
}

.cursor span {
    position: absolute;

    width: 100%;
    height: 100%;

    border: 1px solid #ffffff;

    border-radius: 50%;

    transform: scale(1.8);

    opacity: 0;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

.cursor.active {
    width: 10px;
    height: 10px;
}

.cursor.active span {
    transform: scale(3);
    opacity: 0.5;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    padding: 30px 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 1000;

    mix-blend-mode: difference;
}

.logo {
    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    position: relative;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 1px;

    background: #fff;

    transition: width 0.4s ease;
}

.nav a:hover::after {
    width: 100%;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: 100%;
    height: 100vh;

    min-height: 700px;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    isolation: isolate;
}


/* Background wrapper */

.hero-bg-wrap {
    position: absolute;

    inset: -8%;

    width: 116%;
    height: 116%;

    z-index: -3;

    overflow: hidden;
}


/* Actual image */

.hero-bg {
    position: absolute;

    inset: 0;

    background-image: url("images/hero-bg.png");

    background-size: cover;

    background-position: center center;

    transform: scale(1.08);

    will-change: transform;

    filter: saturate(0.8);
}


/* Dark overlay */

.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.18) 45%,
            rgba(0, 0, 0, 0.72) 100%
        );
}


/* Additional vignette */

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            transparent 25%,
            rgba(0, 0, 0, 0.35) 100%
        );
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    width: 100%;

    max-width: 1500px;

    padding: 120px 60px 80px;

    text-align: center;

    position: relative;

    z-index: 5;
}

.hero-small {
    font-size: 11px;

    letter-spacing: 4px;

    margin-bottom: 30px;

    opacity: 0.75;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 9rem);

    line-height: 0.88;

    letter-spacing: -0.065em;

    font-weight: 800;

    text-transform: uppercase;

    text-shadow:
        0 10px 50px rgba(0, 0, 0, 0.4);
}

.hero-title span {
    color: transparent;

    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);

    text-shadow: none;
}

.subtitle {
    margin-top: 35px;

    font-size: 12px;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.75);
}

.subtitle span {
    margin: 0 10px;
}


/* Hero button */

.hero-button {
    display: inline-flex;

    align-items: center;

    gap: 25px;

    margin-top: 45px;

    padding: 16px 25px;

    border: 1px solid rgba(255, 255, 255, 0.45);

    border-radius: 50px;

    font-size: 11px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition:
        background 0.4s ease,
        color 0.4s ease,
        transform 0.4s ease;
}

.hero-button span {
    font-size: 18px;

    transition: transform 0.4s ease;
}

.hero-button:hover {
    background: #ffffff;

    color: #000000;

    transform: translateY(-4px);
}

.hero-button:hover span {
    transform: translate(4px, -4px);
}


/* =========================================================
   HERO BOTTOM
========================================================= */

.hero-bottom {
    position: absolute;

    bottom: 35px;

    left: 50px;
    right: 50px;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    font-size: 9px;

    letter-spacing: 2px;

    color: rgba(255, 255, 255, 0.65);

    z-index: 10;
}

.hero-bottom > div:nth-child(2) {
    text-align: center;
}

.hero-bottom .scroll-line {
    justify-self: end;

    width: 100px;

    height: 1px;

    background: rgba(255, 255, 255, 0.4);
}


/* =========================================================
   WORK SECTION
========================================================= */

.work-section {
    padding: 150px 50px;

    background: #080808;
}

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    padding-bottom: 30px;

    margin-bottom: 50px;

    border-bottom: 1px solid #2a2a2a;
}

.section-header > div {
    display: flex;

    align-items: center;

    gap: 25px;
}

.section-number,
.about-number,
.contact-number {
    font-size: 11px;

    color: #666;

    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 16px;

    letter-spacing: 2px;
}

.section-header p {
    width: 300px;

    color: #666;

    font-size: 12px;

    line-height: 1.6;
}


/* Project Grid */

.project-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 100px 35px;
}


/* Project card */

.project-card {
    position: relative;

    overflow: hidden;
}


/* Project image */

.project-image {
    position: relative;

    width: 100%;

    height: 600px;

    overflow: hidden;

    background-size: cover;

    background-position: center;

    transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}


/* Demo backgrounds */

.project-image-1 {
    background:
        linear-gradient(
            135deg,
            #151515,
            #555
        );
}

.project-image-2 {
    background:
        linear-gradient(
            135deg,
            #202020,
            #777
        );
}

.project-image-3 {
    background:
        linear-gradient(
            135deg,
            #101010,
            #333
        );
}

.project-image-4 {
    background:
        linear-gradient(
            135deg,
            #252525,
            #666
        );
}


/* Project overlay */

.project-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(0, 0, 0, 0.25);

    opacity: 0;

    transition: opacity 0.5s ease;
}

.project-overlay span {
    border: 1px solid #fff;

    border-radius: 50%;

    width: 120px;

    height: 120px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

    letter-spacing: 1px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image {
    transform: scale(1.025);
}


/* Project information */

.project-info {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    padding-top: 20px;
}

.project-info h3 {
    font-size: 22px;

    font-weight: 500;
}

.project-info p {
    margin-top: 7px;

    color: #666;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.project-year {
    color: #555;

    font-size: 11px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    min-height: 100vh;

    padding: 150px 50px;

    display: grid;

    grid-template-columns: 100px 1fr;

    background: #eeeeeb;

    color: #080808;
}

.about-content {
    max-width: 1000px;
}

.about-content h2 {
    font-size: clamp(3rem, 7vw, 8rem);

    line-height: 0.9;

    letter-spacing: -0.06em;
}

.about-content h2 span {
    color: #777;
}

.about-content p {
    max-width: 500px;

    margin-top: 60px;

    font-size: 18px;

    line-height: 1.6;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    min-height: 90vh;

    padding: 150px 50px;

    display: grid;

    grid-template-columns: 100px 1fr;

    align-items: center;

    background: #080808;
}

.contact-label {
    font-size: 10px;

    letter-spacing: 3px;

    color: #777;

    margin-bottom: 35px;
}

.contact-section h2 {
    font-size: clamp(3.5rem, 8vw, 9rem);

    line-height: 0.88;

    letter-spacing: -0.06em;
}

.contact-section h2 span {
    color: #666;
}

.contact-button {
    display: inline-block;

    margin-top: 50px;

    padding: 18px 30px;

    border: 1px solid #555;

    border-radius: 50px;

    font-size: 11px;

    letter-spacing: 2px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.contact-button:hover {
    background: #ffffff;

    color: #000000;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 30px 50px;

    border-top: 1px solid #222;

    display: flex;

    justify-content: space-between;

    color: #555;

    font-size: 9px;

    letter-spacing: 2px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .header {
        padding: 25px;
    }

    .nav {
        gap: 15px;
    }

    .hero-content {
        padding: 100px 25px 80px;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 6rem);
    }

    .hero-bottom {
        left: 25px;
        right: 25px;
    }

    .work-section {
        padding: 100px 25px;
    }

    .project-grid {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    .project-image {
        height: 500px;
    }

    .section-header {
        display: block;
    }

    .section-header p {
        margin-top: 25px;

        width: 100%;
    }

    .about-section,
    .contact-section {
        padding: 100px 25px;

        grid-template-columns: 50px 1fr;
    }

    .about-content p {
        font-size: 16px;

        margin-top: 40px;
    }

    footer {
        padding: 25px;

        flex-direction: column;

        gap: 10px;
    }
}


@media (max-width: 600px) {

    .cursor {
        display: none;
    }

    body,
    a {
        cursor: auto;
    }

    .header {
        padding: 20px;

        align-items: flex-start;
    }

    .logo {
        font-size: 11px;
    }

    .nav a {
        font-size: 9px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-small {
        font-size: 8px;

        letter-spacing: 3px;
    }

    .hero-title {
        font-size: 14vw;
    }

    .subtitle {
        font-size: 8px;

        line-height: 2;
    }

    .hero-bottom {
        grid-template-columns: 1fr 1fr;
    }

    .hero-bottom > div:nth-child(2) {
        display: none;
    }

    .hero-bottom .scroll-line {
        width: 60px;
    }

    .project-image {
        height: 400px;
    }

    .about-section,
    .contact-section {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .about-number,
    .contact-number {
        margin-bottom: 10px;
    }

    .contact-section h2 {
        font-size: 16vw;
    }
}
