/* =====================================================
   FONT
===================================================== */

@font-face {
    font-family: "Modak";
    src: url("fonts/Modak-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --green: #2f6b3f;
    --cream: #f4f0df;
    --dark-green: #183822;
}


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

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


html {
    scroll-behavior: smooth;
}


body {
    background: var(--green);
    color: var(--cream);

    font-family: Arial, sans-serif;

    overflow-x: hidden;
}


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

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 75px;

    padding: 0 40px;

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

    z-index: 100;
}


.logo {
    color: var(--cream);

    font-family: "Modak", sans-serif;

    font-size: 28px;

    text-decoration: none;

    letter-spacing: 1px;
}


.nav-links {
    display: flex;

    gap: 30px;
}


.nav-links a {
    color: var(--cream);

    text-decoration: none;

    font-size: 13px;
    font-weight: bold;

    transition: opacity 0.25s ease;
}


.nav-links a:hover {
    opacity: 0.55;
}


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

.hero {
    position: relative;

    width: 100%;
    min-height: 100svh;

    padding: 120px 8% 80px;

    display: flex;
    align-items: center;

    overflow: hidden;
}


.hero-content {
    position: relative;

    z-index: 2;

    width: 50%;

    pointer-events: none;
}


.hero-content a {
    pointer-events: auto;
}


/* =====================================================
   SMALL LABELS
===================================================== */

.eyebrow {
    font-size: 12px;

    letter-spacing: 2px;

    margin-bottom: 20px;

    opacity: 0.7;
}


/* =====================================================
   BIG TYPOGRAPHY
===================================================== */

h1,
h2 {
    font-family: "Modak", sans-serif;

    font-weight: normal;

    line-height: 0.85;
}


h1 {
    font-size: clamp(90px, 15vw, 220px);

    letter-spacing: -2px;
}


h2 {
    font-size: clamp(60px, 10vw, 140px);

    letter-spacing: -1px;
}


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

.hero-text {
    max-width: 320px;

    margin-top: 35px;

    font-size: 18px;

    line-height: 1.5;
}


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

.contact-button {
    display: inline-block;

    margin-top: 30px;

    padding: 15px 26px;

    background: var(--cream);

    color: var(--green);

    border-radius: 50px;

    text-decoration: none;

    font-size: 14px;

    font-weight: bold;

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


.contact-button:hover {
    transform: scale(1.06);
}


/* =====================================================
   THREE.JS
===================================================== */

#three-container {
    position: absolute;

    top: 0;
    right: 0;

    width: 60%;
    height: 100%;

    z-index: 1;

    pointer-events: none;
}


#three-container canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;
}


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

.section,
.contact-section {
    position: relative;

    min-height: 90vh;

    padding: 150px 10%;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.section-text {
    max-width: 550px;

    margin-top: 40px;

    font-size: 20px;

    line-height: 1.6;
}


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

.contact-section {
    min-height: 80vh;
}


.contact-email {
    display: inline-block;

    margin-top: 40px;

    color: var(--cream);

    font-size: clamp(25px, 5vw, 60px);

    font-weight: bold;

    text-decoration: none;

    transition: opacity 0.3s ease;
}


.contact-email:hover {
    opacity: 0.6;
}


/* =====================================================
   SCROLL REVEAL
===================================================== */

.reveal {
    opacity: 0;

    transform: translateY(60px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}


.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


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

footer {
    padding: 30px 40px;

    display: flex;

    justify-content: space-between;

    font-size: 12px;

    opacity: 0.6;
}


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

@media (max-width: 700px) {

    .navbar {
        height: 65px;

        padding: 0 20px;
    }


    .logo {
        font-size: 23px;
    }


    .nav-links {
        gap: 15px;
    }


    .nav-links a {
        font-size: 11px;
    }


    /* HERO */

    .hero {
        min-height: 100svh;

        padding: 100px 25px 50px;

        align-items: center;
    }


    .hero-content {
        width: 100%;

        align-self: flex-start;

        padding-top: 80px;
    }


    h1 {
        font-size: clamp(85px, 25vw, 150px);
    }


    .hero-text {
        max-width: 240px;

        font-size: 16px;
    }


    /* THREE.JS */

    #three-container {
        width: 100%;
        height: 65%;

        top: 30%;
        right: -5%;
    }


    /* SECTIONS */

    .section,
    .contact-section {
        min-height: 90svh;

        padding: 120px 25px;
    }


    h2 {
        font-size: clamp(55px, 16vw, 100px);
    }


    .section-text {
        font-size: 17px;
    }


    /* FOOTER */

    footer {
        padding: 25px;
    }

}