@import url("./variables.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    outline: none;
    font-family: "Mona Sans", serif;
    font-family: "Inter", serif;
}


body {
    overflow-x: hidden;
    background: var(--black-color);
    color: var(--white-color);
}

.section {
    /* padding-left: clamp(1rem, 5vw, 3rem);
  padding-right: clamp(1rem, 5vw, 3rem); */
    padding-inline: clamp(1rem, 5vw, 3rem);
    scroll-margin-top: 10vh;
}

.button-container {
    display: inline-block;
}

.button {
    display: flex;
    background-color: var(--white-color);
    align-items: center;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--white-color);
    font-size: 15px;
    transition: .3s ease;
    cursor: pointer;
    color: var(--black-color);
    text-transform: capitalize;
}

/* 

.intro {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 100000;

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

.intro-content {
    text-align: center;
}

.intro-logo {
    width: 120px;
    margin-bottom: 20px;
}

.intro-content h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.intro-content p {
    color: var(--grey-2);
} */

.arrow-right {
    font-weight: 400;
}

.button:hover {
    background-color: transparent;
    color: var(--white-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding-block: 24px;
    transition:
        transform 0.4s ease,
        background-color 0.4s ease,
        padding 0.4s ease;
}

/* Navbar cachée */
header.nav-hidden {
    transform: translateY(-100%);
}

/* Navbar visible avec fond noir */
header.nav-scrolled {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    padding-block: 18px;
}

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

.logo {
    width: 120px;
    position: relative;
    z-index: 300;
}

nav ul {
    display: flex;
}

nav ul li:not(:first-child) {
    margin-left: 24px;
}

nav ul li a {
    color: var(--grey-2);
    transition: .3s ease;
    text-transform: capitalize;
}

nav ul li a.active {
    font-weight: 500;
    color: var(--white-color);
}

nav ul li a:hover {
    color: var(--white-color);
}

nav ul li .active:hover {
    color: var(--grey-1);
}

.nav-btn,
.nav-menu-footer {
    display: none;
}

/* Footer */
footer {
    padding-block: 48px;
}

.footer-top-left {
    margin-bottom: 32px;
}

.footer-top-left p {
    font-size: clamp(24px, 3vw, 36px);
    text-transform: capitalize;
    color: var(--grey-1);
    margin-bottom: 8px;
}

.footer-top-left p span {
    color: var(--white-color);
    font-weight: 600;
}

.footer-top-left a {
    color: var(--white-color);
    position: relative;
    margin-bottom: 32px;
    transition: .4s ease-in;
}

.footer-top-left a::before {
    content: '';
    width: 100%;
    height: 2px;
    background-color: var(--white-color);
    position: absolute;
    bottom: -5px;
    transition: .4s ease-in;
}

.footer-top-left a:hover {
    color: var(--grey-2);
}

.footer-top-left a:hover::before {
    background-color: var(--grey-2);
}

.footer-top-right p {
    color: var(--grey-2);
}

.footer-header {
    padding-bottom: 40px;
}

.footer-bottom {
    display: flex;
    flex-direction: column-reverse;
}

.footer-bottom-right ul li a {
    color: var(--grey-2);
    text-transform: capitalize;
    font-size: clamp(15px, .5vw, 18px);
    transition: .4s ease-in;
}

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

.footer-bottom-right ul li {
    margin-bottom: 8px;
}

.footer-bottom-right ul li:last-child {
    margin-bottom: 0;
}

.footer-bottom-left {
    margin-top: 24px;
    color: var(--grey-2);
}

.footer-bottom-left p {
    font-size: clamp(15px, .5vw, 18px);
}

/* Transition */
/* 
.page-transition {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 99999;

    transform: translateY(100%);
}

.reveal {
    opacity: 0;
} */

/* Header left right */
@media (min-width: 1000px) {
    .header-container {
        display: flex;
        justify-content: space-between;
    }

    .about {
        min-height: 60vh;
    }

    .header-left {
        width: 40%;
    }

    .header-right {
        width: 50%;
    }

    .home-services-right {
        width: 40%;
    }

    /* Footer */
    .footer-header {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding-bottom: 200px;
    }

    .footer-top-right {
        display: flex;
        justify-content: end;
        align-items: end;
    }

    .footer-top-right p {
        width: min(500px, 100%);
    }

    .footer-top-left {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--black-low);
        padding-top: 24px;
    }

    .footer-bottom-right ul {
        display: flex;
    }

    .footer-bottom-right ul li {
        margin-bottom: 0 !important;
    }

    .footer-bottom-left {
        margin-top: 0;
    }

    .footer-bottom-right ul li {
        margin-left: 16px;
    }

    .footer-bottom-right ul li:first-child {
        margin-left: 0;
    }

    /* ------ */
}

@media (max-width: 800px) {

    header nav .button,
    header nav ul {
        display: none;
    }

    .nav-btn {
        display: flex;
    }

    .logo {
        width: 85px;
    }

}

.close-menu {
    display: none;
}

@media (max-width: 999px) {



    header nav {
        position: relative;
    }

    .nav-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1;
    }

    .nav--btn {
        width: 30px;
        height: 3px;
        background: var(--white-color);
    }

    nav .button {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 100%;
        height: 30px;
        background: var(--black-color);

        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;

        z-index: 200;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu li a {
        opacity: 0;
        pointer-events: none;
        font-size: 2rem;
        color: var(--white-color);
    }

    .close-menu {
        display: block;
        position: fixed;
        top: 50px;
        right: 20px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        z-index: 250;
    }

    .close-menu div::before,
    .close-menu div::after {
        content: "";
        position: absolute;
        width: 30px;
        height: 3px;
        background: var(--white-color);
    }

    .close-menu div::before {
        transform: rotate(-45deg);
    }

    .close-menu div::after {
        transform: rotate(45deg);
    }

    .nav-menu-footer {
        display: flex;
        position: absolute;
        bottom: 88px;
        left: 1rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu-footer .nav-footer-link {
        color: var(--white-color);
        position: absolute;
        text-transform: capitalize;
    }

    .nav-menu-footer .nav-footer-link::before {
        position: absolute;
        content: "";
        bottom: -8px;
        width: 100%;
        height: 2px;
        background-color: var(--white-color);
    }
}