:root {
    /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */
    --primary: #EFEFEF;
    --primaryLight: #ffba43;
    --secondary: #ffba43;
    --secondaryLight: #ffba43;
    --headerColor: #1a1a1a;
    --bodyTextColor: #4e4b66;
    --bodyTextColorWhite: #fafbfc;
    --topperFontFamily: "Inter";
    --titleFontFamily: "Inter";
    --textFontFamily: "Inter";
    /* 13px - 16px */
    --topperFontSize: clamp(0.7125rem, 1.6vw, 1rem);
    /* 31px - 49px */
    --headerFontSize: clamp(1.7900rem, 3.9vw, 3.0625rem);
    --bodyFontSize: clamp(.67rem, 2vw, 1.25rem);
    /* 60px - 100px top and bottom */
    --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter.ttf');
}
@font-face {
    font-family: 'Avenir-Heavy';
    src: url('/assets/fonts/AvenirTTF/AvenirLTStd-Heavy.otf') format('truetype');
}
@font-face {
    font-family: 'Avenir-Book';
    src: url('/assets/fonts/AvenirTTF/Avenir-Book-01.ttf') format('truetype');
}
@font-face {
    font-family: 'Avenir-Black';
    src: url('/assets/fonts/AvenirTTF/Avenir-Black-03.ttf') format('truetype');
}
@font-face {
    font-family: 'Avenir-Book';
    src: url('/assets/fonts/AvenirTTF/Avenir-Book-01.ttf') format('truetype');
}
@font-face {
    font-family: 'Avenir-Medium';
    src: url('/assets/fonts/AvenirTTF/Avenir-Medium-09.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
}

*, *:before, *:after {
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
}
.cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-align: inherit;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
    font-family: var(--topperFontFamily);
}

.cs-title {
    font-size: var(--headerFontSize);
    line-height: 1.2em;
    text-align: inherit;
    max-width: 43.75rem;
    margin: 0 0 1rem 0;
    color: var(--primary);
    position: relative;
    font-family: var(--titleFontFamily);
    letter-spacing: .1rem;
}

.cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.7em;
    text-align: inherit;
    width: 100%;
    max-width: 40.625rem;
    margin: 0;
    color: var(--primary);
    font-family: var(--textFontFamily);
}
                            


/*-- -------------------------- -->
<---     Mobile Navigation      -->
<--- -------------------------- -*/

body,
html {
    margin: 0;
    padding: 0;
}

/* Mobile - 1023px */
@media only screen and (max-width: 47.9rem) {
    body.cs-open {
        overflow: hidden;
    }
    #cs-navigation {
        width: 100%;
        padding: 1.75rem 1rem;
        box-sizing: border-box;
        background-color: #fff;
        position: fixed;
        z-index: 10000;
        transition: background-color 0.3s;
    }
    #cs-navigation.cs-active {
        background-color: #282B25;
    }
    #cs-navigation.cs-active .cs-ul-wrapper {
        opacity: 1;
        transform: scaleY(1);
        background-color: #282B25;
    }
    #cs-navigation.cs-active .cs-li {
        transform: translateY(0);
        opacity: 1;
    }
    #cs-navigation .cs-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    #cs-navigation .cs-logo {
        width: 25%;
        max-width: 9.125rem;
        height: 100%;
        margin: 0 0 0 auto;
        padding: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        z-index: 10;
    }
    #cs-navigation .cs-logo img {
        width: 56px;
        height: 56px;
        object-fit: contain;
    }
    #cs-navigation .cs-toggle {
        width: clamp(3.5rem, 7vw, 4rem);
        height: clamp(3.5rem, 7vw, 4rem);
        margin: 0 auto 0 0;
        border-radius: 0.5rem;
        background-color: #282B25; /* Initial state: black/green */
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s; /* Smooth transition */
    }
    #cs-navigation.cs-active .cs-toggle {
        background-color: #EFEFEF; /* Toggled state: light gray */
    }
    
    #cs-navigation .cs-box {
        width: clamp(2rem, 2.5vw, 2.25rem);
        height: clamp(1.25rem, 1.8vw, 1.5rem);
        position: relative;
        background-color: #282B25; /* Initial state: black/green */
        transition: background-color 0.3s; /* Smooth transition */
    }
    #cs-navigation.cs-active .cs-box {
        background-color: #EFEFEF; /* Toggled state: light gray */
    }
    
    #cs-navigation .cs-line {
        width: 100%;
        height: 3px;
        border-radius: 2px;
        background-color: #FFFFFF; /* Initial state: white for contrast */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    #cs-navigation .cs-line1 {
        top: 0;
        transform-origin: center;
        transition:
            transform 0.5s,
            top 0.3s,
            left 0.3s,
            background-color 0.3s;
    }
    
    #cs-navigation .cs-line2 {
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        transition:
            top 0.3s,
            left 0.3s,
            transform 0.5s,
            background-color 0.3s;
    }
    
    #cs-navigation .cs-line3 {
        bottom: 0;
        transition:
            bottom 0.3s,
            opacity 0.3s;
    }
    
    #cs-navigation .cs-active .cs-line1 {
        top: 50%;
        transform: translate(-50%, -50%) rotate(225deg);
        background-color: #282B25; /* Toggled state: black/green */
    }
    
    #cs-navigation .cs-active .cs-line2 {
        top: 50%;
        transform-origin: center;
        transform: translate(-50%, -50%) translateY(0) rotate(-225deg);
        background-color: #282B25; /* Toggled state: black/green */
    }
    
    #cs-navigation .cs-active .cs-line3 {
        bottom: 100%;
        opacity: 0;
    }
    
    #first-picture {
        position: absolute;
        max-width: 56px;
    }

    .cs-logo .cs-picture.cs-hidden {
        visibility: hidden;
        opacity: 0;
    }

    .cs-hidden {
        display: block;
    }
    #cs-navigation .cs-ul-wrapper {
        width: 100%;
        height: 100vh;
        padding-bottom: 2.4em;
        opacity: 0;
        background-color: #282B25;
        overflow: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: -1;
        transform: scaleY(0);
        transform-origin: top;
        transition:
            transform 0.4s,
            opacity 0.3s;
    }
    #cs-navigation .cs-ul {
        margin: 0;
        padding: 3rem 0 3rem 2.5rem;
        width: 100%;
        height: auto;
        max-height: 65vh;
        overflow: hidden;
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }
    #cs-navigation .cs-li {
        list-style: none;
        margin-right: 0;
        transform: translateY(-4.375rem);
        opacity: 0;
        transition:
            transform 0.6s,
            opacity 0.9s;
    }
    #cs-navigation .cs-li:nth-of-type(1) {
        transition-delay: 0.05s;
    }
    #cs-navigation .cs-li:nth-of-type(2) {
        transition-delay: 0.1s;
    }
    #cs-navigation .cs-li:nth-of-type(3) {
        transition-delay: 0.15s;
    }
    #cs-navigation .cs-li:nth-of-type(4) {
        transition-delay: 0.2s;
    }
    #cs-navigation .cs-li:nth-of-type(5) {
        transition-delay: 0.25s;
    }
    #cs-navigation .cs-li:nth-of-type(6) {
        transition-delay: 0.3s;
    }
    #cs-navigation .cs-li:nth-of-type(7) {
        transition-delay: 0.35s;
    }
    #cs-navigation .cs-li:nth-of-type(8) {
        transition-delay: 0.4s;
    }
    #cs-navigation .cs-li:nth-of-type(9) {
        transition-delay: 0.45s;
    }
    #cs-navigation .cs-li-link {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        line-height: 1.56rem;
        text-decoration: none;
        margin: 0;
        color: #EFEFEF;
        display: inline-block;
        position: relative;
        font-family: 'Avenir-Heavy';
        letter-spacing: 1px;
        font-weight: 700;
    }
    #cs-navigation .cs-li-link.cs-active:before {
        display: block;
    }
    #cs-navigation .cs-button-solid {
        display: none;
    }
    .cs-icons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 0 3rem 2.5rem;
    }
    #linkedin {
        margin-bottom: 1rem;
    }
}

/*-- -------------------------- -->
<---     Tablet+ Navigation     -->
<--- -------------------------- -*/

/* Tablet + - 768px */
@media only screen and (min-width: 47.91rem) {
    #cs-navigation {
        width: 100%;
        padding: 2rem 4rem;
        box-sizing: border-box;
        background-color: #fff;
        position: fixed;
        z-index: 10000;
    }
    #cs-navigation .cs-container {
        width: 100%;
        margin: auto;
        display: flex;
        justify-content: space-between; /* Distributes space between logo and nav */
        flex-direction: row-reverse;
        align-items: center;
        gap: 1.5rem;
    }
    #cs-navigation .cs-toggle {
        display: none;
    }
    #cs-navigation .cs-logo {
        margin: 0; /* Remove right margin to align left */
        padding: 0;
        display: flex;
        justify-content: flex-start; /* Aligns logo content to the left */
        align-items: center;
        z-index: 100;
    }
    #cs-navigation .cs-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding-top: 1rem;
    }
    #cs-navigation .cs-nav {
        display: flex;
        justify-content: flex-end; /* Pushes nav content to the right */
        align-items: center;
    }
    #cs-navigation .cs-ul-wrapper {
        align-items: center;
    }
    #cs-navigation .cs-ul {
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center; 
        align-items: center;
    }
    #cs-navigation .cs-li {
        list-style: none;
        padding: 2rem 0rem 0rem 2rem;
        flex: none;
    }
    #cs-navigation .cs-li-link {
        font-size: clamp(0.775rem, .7vw, 1rem);
        /* font-size: clamp(0.875rem, 1vw, 1rem); */
        line-height: 1.56rem;
        text-decoration: none;
        margin: 0;
        font-weight: 600;
        color: black;
        display: block;
        position: relative;
        font-family: 'Avenir-Heavy';
    }
    #cs-navigation .cs-active {
        color: #5D1922;
    }
    #cs-navigation .cs-li-link.cs-active:before {
        width: 100%;
        background-color: black;
        height: .2rem;
    }
    #cs-navigation .cs-li-link:before {
        content: "";
        width: 0%;
        height: 2px;
        background: var(--primary);
        opacity: 1;
        position: absolute;
        display: block;
        bottom: 0rem;
        left: 0;
        transition: width 0.3s;
    }
    #cs-navigation .cs-button-solid {
        font-size: 1rem;
        line-height: clamp(2.875em, 5.5vw, 3.5em);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #fff;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        box-sizing: border-box;
    }
    #cs-navigation .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #cs-navigation .cs-button-solid:hover:before {
        width: 100%;
    }
    .cs-icons {
        display: flex;
        align-items: center;
        gap: 1rem; /* Space between icons */
        margin-left: 1.5rem; /* Space between links and icons */
    }
    #linkedin {
        display: none; /* Show icons on tablet+ */
    }
    #resume {
        display: none; /* Show icons on tablet+ */
    }
    #first-picture {
        max-width: 30%;
    }
    #second-picture {
        display: none;
    }
}

@media only screen and (min-width: 64rem) {
    #cs-navigation {
        padding: 2rem 5rem;
    }
    #cs-navigation .cs-ul {
        gap: clamp(1.25rem, 2.6vw, 2.25rem);
        justify-content: flex-end; 
    }
    #cs-navigation .cs-logo img {
        width: 115%;
        height: 115%;
    }
}

@media only screen and (min-width: 85rem) {
    #cs-navigation {
        padding: 2rem 10rem;
    }
    #cs-navigation .cs-logo img {
        width: 120%;
        height: 120%;
    }
}

@media only screen and (min-width: 145rem) {
    #cs-navigation {
        padding: 2rem 25rem;
    }
}





/*-- -------------------------- -->
<---          Footer            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #footer {
        background-color: #282B25; /* Dark background */
        padding: 2rem 1rem; /* Padding for mobile */
        text-align: center;
    }

    #footer .footer-container {
        width: 100%;
        max-width: 59rem; /* Match the max-width of the contact section */
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #footer .footer-icons {
        display: flex;
        justify-content: center;
        gap: 2rem; /* Space between icons */
        margin-bottom: 1.5rem; /* Space between icons and text */
        align-items: center;
    }


    a.icon.document-icon svg {
        width: 28px;
        height: 28px;
    }

    a.icon.la-icon svg {
        width: 48px;
        height: 58px;
    }

    a.icon.linkedin-icon svg {
        width: 28px;
        height: 28px;
    }

    #footer .footer-text {
        font-size: 9px;
        line-height: 1.5;
        color: #EFEFEF; /* Light gray text */
        margin: 0;
        max-width: 90%; /* Prevent text from touching the edges */
        font-family: 'Inter';
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #footer {
        padding: 3rem 2rem; /* More padding for tablet */
    }

    #footer .footer-icons {
        gap: 4rem; /* Slightly larger gap between icons */
        margin-bottom: 2rem;
    }

    a.icon.document-icon svg {
        width: 38px;
        height: 38px;
    }

    a.icon.la-icon svg {
        width: 68px;
        height: 68px;
    }

    a.icon.linkedin-icon svg {
        width: 38px;
        height: 38px;
    }

    #footer .footer-text {
        font-size: 9px;
        max-width: 80%;
    }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #footer {
        padding: 4rem 2rem; /* Even more padding for desktop */
    }

    #footer .footer-text {
        font-size: 9px; /* 18px */
        max-width: 70%;
    }
}