html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--main-white);
}

body.active {
    .nav-links a:not(.btn-primary, .cta-two) {
        color: var(--dark-ow);
    }
    .btn-secondary {
        background-color: var(--dark-text) !important;
        color: var(--main-white);
    }
    .nav-links a:hover:not(.btn-primary) {
        background-color: var(--dark-text);
    }
    #mySidebar {
        background-color: var(--dark-header);
    }
    .sidebar-links a {
        color: var(--main-white);
    }
    .sidebar-links a:hover, button.openbtn {
        background-color: var(--dark-text) !important;
    }
    .togglebtn {
        background-color: var(--dark-text);
    }
    section:nth-child(odd) {
        background-color: var(--dark-header);
    }
    section:nth-child(even) {
        background-color: var(--dark-text) !important;
    }
    h1, h2, h3, button {
        color: var(--main-white);
    }
    p, li, span {
        color: var(--dark-ow) !important;
    }
    li b {
        color: var(--main-white);
    }
    .btn-primary {
        background-color: var(--dark-yellow);
    }
    .btn-primary:hover {
        filter: brightness(80%);
    }
    .btn-tertiary {
        color: var(--dark-ow);
    }
    .image-arrow i {
        color: var(--dark-ow);
    }
    .image-arrow i:hover {
        background-color: var(--main-white);
        color: var(--dark-header);
    }
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-display: swap;
    src: url("assets/fraunces-700.woff2") format('woff2');
}

@font-face {
    font-family: 'Fraunces-Two';
    font-style: normal;
    font-display: swap;
    src: url("assets/fraunces-regular.woff2") format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    src: url("assets/inter-regular.woff2") format('woff2');
}

section {
    min-height: 100vh;
    width: 100%;

    background-color: var(--main-white);
    margin: 0;
    padding: 0;
}

:root {
    --main-yellow: #f6f604;
    --dark-yellow: #d7d706;
    
    --main-white: #faf8f8;
    --off-white: #f5f0f0;
    --dark-ow: #e3e3e3;

    --header-main: #333;
    --dark-header: #1f1f1f;
    --text-main: #535353;
    --dark-text: #2d2d2d;

    --fs-h1: clamp(2.4rem, 6vw, 3.5rem);
    --fs-h2: clamp(2rem, 4vw, 2.4rem);
    --fs-h3: clamp(1.6rem, 4vw, 1.8rem);
    --fs-h4: clamp(1.2rem, 3vw, 1.3rem);
    --fs-p: clamp(1rem, 2vw, 1.2rem);

    --ff-header: 'Fraunces', serif;
    --ff-header-two: 'Fraunces-Two', serif;
    --ff-body: 'Inter', sans-serif;
}

.mobile-only {
    display: none;
}

section:nth-child(even) {
    background-color: var(--main-white);
}
section:nth-child(odd) {
    background-color: var(--off-white);
}

h2 {
    font-size: var(--fs-h2);
    font-family: var(--ff-header);
    font-weight: 700;
    color: var(--header-main);
    text-align: center;
    padding: 75px 0 0 0;
    margin: 0 auto !important;
}

h3 {
    font-size: var(--fs-h3);
    font-family: var(--ff-header);
    color: var(--header-main);
    margin: 0;
}

p {
    font-size: var(--fs-p);
    font-family: var(--ff-body);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

li {
    font-size: var(--ff-body);
    font-family: var(--ff-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 0;
}

.row-container {
    display: flex;
    max-width: 80%;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 0;
}

#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;

    min-height: 135vh;
    padding-top: 25vh;
    padding-bottom: 75px;
}

.project-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-page img#project-image {
    width: 900px;
    border-radius: 7px;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

#project-image.fade-out {
    opacity: 0;
}

.project-image-arrows {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.project-image-arrows button {
    background-color: transparent;
    border: none;
}

.project-image-arrows i {
    width: 40px;
    height: 40px;
    color: var(--text-main);
    border: 1.8px solid var(--header-main);

    border-radius: 50px;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;

    padding: 8px;
    transition: color 0.3s ease, background-color 0.4s ease;
    cursor: pointer;
}

.project-image-arrows i:hover {
    background-color: var(--text-main);
    color: var(--main-white);
}

#philosophy {
    min-height: 40vh;
    padding-bottom: 75px;
}

#philosophy .container {
    gap: 24px;
}

#tech {
    min-height: 20vh;
    padding-bottom: 75px;
}

#tech .container {
    gap: 24px;
}

#tech p {
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
}

footer {
    background-color: #1a1919;
    padding: 60px 0 10px 0;
}

footer .intro {
    display: flex;
    flex-direction: column;

    max-width: 550px;
    padding-bottom: 50px;
}

footer .intro h2 {
    display: flex;
    margin-right: auto;
    width: 100%;
    padding: 0;

    color: var(--main-white);
}

.intro h2 span {
    color: var(--main-yellow);
}

footer .intro p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-family: var(--ff-body);
    color: var(--main-white);
    padding: 0;
}

.row-container .footer-links {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.footer-links .footer-col {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.footer-col h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem) !important;
    font-family: var(--ff-header);
    color: var(--main-white);

    margin: 0 0 10px 0;
    padding: 0;
    text-align: center;
}

.footer-col ul {
    display: flex !important;
    flex-direction: column;

    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    text-align: center;
}

.footer-col ul li a {
    font-family: var(--ff-body);
    color: #aeaeae;

    margin: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.footer-col ul li a:hover {
    color: var(--main-white);
}

footer .footer-bottom {
    margin: 50px 0 0 0;
    padding: 30px 0;
    width: 80%;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;

    border-top: 1px solid #4e4e4e;
}

.footer-bottom p {
    font-size: 0.9rem;
    font-family: var(--ff-body);
    color: #676767;
}