@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #040504;
    --secondary-color: #6A6E79;
    --ascent-color: #F4F5F7;
    --base-color: #FFFFFF;
    --soft-color: #242629;

    --heading-font-family: "Work Sans", sans-serif;
    --body-font-family: "Inter", sans-serif;

    --font-h1: clamp(2.25rem, 2rem + 1.25vw, 3.125rem);
    --font-h2: clamp(1.875rem, 1.66rem + 1.07vw, 2.625rem);
    --font-h3: clamp(1.5rem, 1.32rem + 0.89vw, 2.125rem);
    --font-h4: clamp(1.25rem, 1.14rem + 0.54vw, 1.625rem);
    --font-h5: clamp(1.1rem, 1.02rem + 0.39vw, 1.375rem);
    --font-h6: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
    --font-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
}

html {
  scroll-behavior: smooth;
}

header {
    background-color: var(--primary-color);
}

body {
    font-size: var(--font-body);
    font-family: var(--body-font-family);
    background-color: var(--primary-color);
    color: var(--ascent-color);
    line-height: 1.5;
    margin: 1.25rem 0;
    padding: 0 0.625rem;
}

body, html {
  overflow-x: hidden;
}

main {
    margin: 0 auto;
    padding: 1.25rem 0;
    max-width: 1440px;
}

h1 {
    font-size: var(--font-h1);
    font-family: var(--heading-font-family);
    color: var(--ascent-color);
    line-height: 1.1;
    font-optical-sizing: auto;
    overflow-wrap: break-word;
    font-weight: 400;
    font-style: normal;
}

h2 { 
    font-size: var(--font-h2);
    font-family: var(--heading-font-family);
    line-height: 1.2;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

h3 { 
    font-size: var(--font-h3);
    font-family: var(--heading-font-family);
    line-height: 1.2;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

h4 { 
    font-size: var(--font-h4);
    font-family: var(--heading-font-family);
    line-height: 1.3;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

h5 { 
    font-size: var(--font-h5);
    font-family: var(--heading-font-family);
    line-height: 1.3;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

h6 { 
    font-size: var(--font-h6);
    font-family: var(--heading-font-family);
    line-height: 1.4;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

span {
    font-weight: 700;
}

.break {
    font-weight: 700;
    display: block;
}

.text-bold {
    font-weight: 700;
    font-size: 1.125rem;
}

.primary-button {
    background-color: var(--secondary-color);
    color: var(--ascent-color);
    border-radius: 15px;
    padding: .5rem;
    text-decoration: none;
    width: 100%;
}

.primary-button:hover {
    background-color: var(--ascent-color);
    color: var(--primary-color);
    
}

.secondary-button {
    border: solid 2px var(--secondary-color);
    border-radius: 15px;
    color: var(--ascent-color);
    padding: .5rem;
    text-decoration: none;
}

.secondary-button:hover {
    background-color: var(--ascent-color);
    color: var(--primary-color);
}

.base-button {
    background-color: var(--base-color);
    color: var(--primary-color);
    padding: .5rem;
    text-decoration: none;
}

.base-button:hover {
    background-color: var(--secondary-color);
    color: var(--ascent-color);
}

/* Navigation */
.nav-links {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    
    display: none;
    flex-direction: column;
    
  
    justify-content: center; 
    align-items: center;
    
    padding: 2rem;
    gap: 2rem;      
    list-style: none;
    background-color: var(--primary-color);
    z-index: 998; 
}

.nav-container {
    background-color: var(--soft-color);
    border: solid 1px var(--secondary-color);
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: .5rem;
}

.logo {
    display:flex;
    flex-direction: column;
    justify-content: center;
}

/* .nav-links li a {
    text-decoration: none;
    color: var(--ascent-color);
    font-weight: 500;
    font-size: 2rem;
} */

.nav-links li a {
    text-decoration: none;
    color: var(--ascent-color);
    font-weight: 500;
    font-size: 2rem;
    position: relative;
}

.nav-links a {
    border-bottom: none;
}

.nav-links li a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--ascent-color);
    transition: width 0.3s ease;
}

.nav-links li a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-links li a.active:not(.nav-cta)::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.nav-toggle:checked ~ .nav-links {
    display: flex;
}

.nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
    bottom: 0;
    top: 0;
    transform: rotate(-45deg);
}

.nav-toggle-label {
    cursor: pointer;
    padding: 1rem;
    position: relative; 
    z-index: 999;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    left: 0;
    position: absolute; 
    display: block;
    background: var(--ascent-color);
    height: 2px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle-label span::before {
    content: ""; 
    top: 8px; 
}

.nav-toggle-label span::after { 
    content: ""; 
    bottom: 10px; 
}

.nav-cta {
    background: var(--ascent-color);
    color: var(--soft-color) !important;
    border-radius: 16px;
    padding: 1rem !important;
}

.nav-cta:hover {
    background: var(--secondary-color);
    color: var(--ascent-color) !important;
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s; 
}

.delay-2 {
    animation-delay: 0.4s; 
}

.delay-3 {
    animation-delay: 0.6s; 
}

.delay-4 {
    animation-delay: 0.8s; 
}

.delay-5 {
    animation-delay: 2.5s; 
}

.delay-6 {
    animation-delay: 2.8s; 
}

.delay-7 {
    animation-delay: 3s; 
}

.delay-8 {
    animation-delay: 3.2s; 
}

@media (min-width: 1024px) {

    .nav-bar {
        padding: 3.125rem 0;
    }

    .nav-toggle-label {
        display: none;
    }
  
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        padding: 0;
        width: auto;
        border: none;
        align-items: center;
        height: 5vh;
        background-color: var(--soft-color);
    }

    .nav-links li a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    main {
        padding-bottom: 3.125rem;
    }
}