@font-face {
    font-family: "Manrope";
    src: url("./assets/fonts/Manrope-Regular.ttf") format("ttf");
    font-weight: 400;
}

@font-face {
    font-family: "Manrope";
    src: url("./assets/fonts/Manrope-Medium.ttf") format("ttf");
    font-weight: 500;
}

@font-face {
    font-family: "Manrope";
    src: url("./assets/fonts/Manrope-SemiBold.ttf") format("ttf");
    font-weight: 600;
}

:root{
    --bg-color: #171717;
    --deep-bg: #111111;
    --text: #f2f2f0;
    --sec-text: #a3a3a3;
    --accent: #5b4b78;

}

*{
    box-sizing: border-box;
}



body{
    margin: 0;
    background-color: #171717;
    color: #f2f2f0;
    font-family: "Manrope", sans-serif;
}

section{
    min-height: 100vh;
}

/* MAIN NAV */

.main-nav {
    margin-top: 24px;
    padding: 0 32px;

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

.logo img {
    width: 64px;
    height: auto;
    display: block;
}

.menu-button,
.menu-close {
    background: transparent;
    border: none;

    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 400;

    cursor: pointer;
}


/* MENU OVERLAY */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    background: var(--bg-color);

    padding: 24px 32px;

    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* MENU HEADER */

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* MENU LINKS */

.menu-nav {
    margin-top: auto;
    margin-bottom: auto;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-nav a {
    width: fit-content;

    color: var(--text);
    text-decoration: none;

    font-family: "Manrope", sans-serif;
    font-size: 40px;
    font-weight: 400;

    transition: color 0.2s ease;
}

.menu-nav a:hover {
    color: var(--accent);
}

.menu-button {
    position: relative;
}

.menu-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.menu-button:hover::after {
    width: 100%;
}
 
/* hero */
#hero{
    min-height: auto;

    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 230px;
}

.hero-content{
    display: flex;
    align-items: center;
    gap: 120px;

    color: var(--text);
    font-family: "Manrope", sans-serif;
}

.main-text{
    font-weight: 500;
    font-size: 90px;
    line-height: 1;
}

.add-text{
    font-size: 20px;
    line-height: 1.3;
    color: var(--sec-text);
}

#philosophy{
    padding-top: 170px;
}

.phi{
    font-size: 20px;
    margin-left: 1.3em;
    padding-top: 100px;
}

.big-text{
    text-align: center;
    padding-top: 120px;
    font-size: 64px;
    line-height: 1.3;
}

#work-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 24px;
    padding: 12px 18px;

    color: var(--text);
    background: transparent;

    border: 1px solid #2a2a2a;
    border-radius: 3px;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;

    text-decoration: none;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

#work-link:hover {
    color: var(--text);
    background-color: rgba(91, 75, 120, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.small-text{
    padding-top: 120px;
    text-align: center;
    font-size: 20px;
}

/* WORK */

#work {
    min-height: 100vh;
    padding-top: 100px;
}

.section-label {
    margin: 0 0 60px;

    font-size: 14px;
    font-weight: 500;
    color: var(--sec-text);
}

.work-slider {
    max-width: 1100px;
    margin: 0 auto;
}

.work-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;
    background-color: var(--deep-bg);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-info {
    margin-top: 24px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.work-info h2 {
    margin: 0;

    font-size: 24px;
    font-weight: 500;
}

.work-info p {
    margin: 8px 0 0;

    color: var(--sec-text);
    font-size: 16px;
    font-weight: 400;
}

.work-controls {
    display: flex;
    align-items: center;
    gap: 32px;
}

#work-counter {
    color: var(--sec-text);
    font-size: 14px;
}

.work-arrows {
    display: flex;
    gap: 8px;
}

.work-arrows button {
    width: 40px;
    height: 40px;

    background: transparent;
    border: 1px solid #2a2a2a;

    color: var(--text);

    font-family: "Manrope", sans-serif;
    font-size: 18px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.work-arrows button:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Systems */
.list-block{
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 100px;
    padding-top: 10em;
}

.services{
    font-size: 64px;
}

.text{
    font-size: 24px;
}

/* INV */
.idea-block{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 10em;
    gap: 8rem;
}

.main-idea{
    font-size: 64px;
}

.prinzip{
    font-size: 32px;
    font-style: bold;
}

.clarity{
    font-size: 22px;
}

/* CONTACT */
.contact-cta{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    margin-top: 120px;
}

.contact-form{
    background: linear-gradient(90deg, rgba(91, 75, 120, 0.1) 0%, rgba(254, 254, 254, 0.1) 100%);
    border-radius: 4px;
    padding: 27px;
    text-decoration: none;
    color: var(--text);
    font-size: 32px;
}

.cta{
    font-size: 40px;
}

/* FOOTER */
footer{
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 40px;
}

.privacy{
    text-decoration: none;
    color: var(--text);
}

/* =========================
   ANIMATIONS
   ========================= */

html {
    scroll-behavior: smooth;
}


/* PAGE LOAD */

.main-nav {
    animation: fade-down 0.7s ease both;
}

.hero-content {
    animation: hero-in 1s ease both;
}


/* HERO */

@keyframes fade-down {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* MENU */

.menu-overlay {
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.menu-nav a {
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.menu-nav a:hover {
    transform: translateX(8px);
}


/* BUTTONS */

.menu-button,
.menu-close {
    transition: color 0.25s ease;
}

.menu-button:hover,
.menu-close:hover {
    color: var(--accent);
}


/* WORK IMAGE */

.work-image {
    transition: opacity 0.3s ease;
}

.work-arrows button {
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}

.work-arrows button:hover {
    transform: translateY(-2px);
}


/* CONTACT */

.contact-form {
    transition:
        background 0.3s ease,
        transform 0.25s ease,
        border-color 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-3px);
}


/* FOOTER */

.privacy {
    transition: color 0.25s ease;
}

.privacy:hover {
    color: var(--accent);
}

.animate-section {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    /* NAV */

    .main-nav {
        margin-top: 20px;
        padding: 0 20px;
    }

    .logo img {
        width: 52px;
    }


    /* MENU */

    .menu-overlay {
        padding: 20px;
    }

    .menu-nav a {
        font-size: 28px;
    }


    /* HERO */

    #hero {
        padding: 100px 20px 0;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        width: 100%;
    }

    .main-text {
        font-size: 52px;
    }

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


    /* PHILOSOPHY */

    #philosophy {
        padding: 50px 20px 0;
    }

    .phi {
        margin-left: 0;
        font-size: 16px;
    }

    .big-text {
        padding-top: 100px;
        font-size: 38px;
        line-height: 1.2;
    }

    .small-text {
        padding-top: 80px;
        font-size: 17px;
    }


    /* WORK */

    #work {
        padding: 50px 20px;
    }

    .section-label {
        margin-bottom: 40px;
    }

    .work-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .work-info h2 {
        font-size: 21px;
    }

    .work-info p {
        font-size: 15px;
    }

    .work-controls {
        width: 100%;
        justify-content: space-between;
    }


    /* SYSTEMS */

    .list-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding: 100px 20px 0;
    }

    .services {
        font-size: 42px;
    }

    .text {
        font-size: 20px;
    }


    /* INV */

    .idea-block {
        margin-top: 100px;
        padding: 0 20px;
        gap: 60px;
        text-align: center;
    }

    .main-idea {
        font-size: 42px;
    }

    .prinzip {
        font-size: 26px;
    }

    .clarity {
        font-size: 18px;
    }


    /* CONTACT */

    .contact-cta {
        margin-top: 100px;
        padding: 0 20px;
        gap: 24px;
        text-align: center;
    }

    .cta {
        font-size: 32px;
    }

    .contact-form {
        padding: 20px 24px;
        font-size: 24px;
    }


    /* FOOTER */

    footer {
        padding: 0 20px;
        gap: 24px;
    }
}