:root {
    --bg-hero-1: #909489;
    --bg-hero-2: #7a7f73;
    --bg-hero-3: #55594f;

    --bg-page: #191919;
    --bg-page-light: #222222;
    --bg-page-dark: #111111;

    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.8);
}

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

/* --------------------------------------------------
    GLOBAL STYLES
-------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
}

main {
    width: 100%;
    padding: 4rem 2rem;
    gap: 6rem;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-section {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 1200px;
    scroll-margin-top: 150px;
}

/* --------------------------------------------------
    UTILITY CLASSES
-------------------------------------------------- */

/* ---------------- UNDERLINE EFFECT ---------------- */

.underline {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
    text-decoration: none;
}

.underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.underline:hover::after {
    transform: scaleX(1);
}


/* --------------------------------------------------
    MAIN NAVIGATION
-------------------------------------------------- */

.main-nav-wrapper {
    display: flex;
    width: 100%;
    background: var(--bg-page);
    /* background: rgba(25, 25, 25, 0.8); */

    z-index: 10;

    padding: 1rem 1rem;
    /* margin-top: 1rem; */

    position: sticky;
    top: 0;
}


.main-nav-name {
    font-weight: 700;
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.hamburger {
    display: none;
}


/* --------------------------------------------------
    FOOTER
-------------------------------------------------- */

footer {
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.footer-socials a {
    text-decoration: none;
    color: var(--text-muted);
}

.footer-socials a:hover {
    color: var(--text-main);
}

footer p {
    margin-top: 1rem;
}


/* --------------------------------------------------
    MOBILE STYLES
-------------------------------------------------- */

@media screen and (max-width: 768px) {

    /* Global spacing */
    main {
        padding: 2rem 1rem;
        gap: 3rem;
    }

    /* Sections anchor offset for mobile nav */
    .page-section {
        scroll-margin-top: 110px;
    }


    /* ---------------- MAIN NAV BAR ---------------- */

    .main-nav-wrapper {
        position: sticky;
        top: 0;
        z-index: 1000;

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

        background: var(--bg-page);
        padding: 0.75rem 1rem;
    }

    .main-nav-name {
        font-size: 2rem;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;

        width: 28px;
        height: 28px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .hamburger span {
        height: 2px;
        width: 100%;
        background: var(--text-main);
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
    }

    .main-nav.mobile-open {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        position: absolute;
        left: 0;
        top: 100%;

        width: 100%;
        padding: 1.25rem 1rem;

        background: var(--bg-page-light);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    body.menu-lock {
        overflow: hidden;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}