@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
    overflow-x: hidden;
}

:root {
    --background: rgb(var(--white));
    --text: rgb(var(--black));

    --white: 255, 250, 247;
    --black: 39, 39, 39;
    --first: 181, 166, 139;
    --second: 218, 208, 193;
    --third: 110, 103, 89;
}

/* SLIDER */

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--background);;
}

::-webkit-scrollbar-thumb {
    color: var(--text);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--black)) var(--background); 
}

/* LOADER */
@media (min-width: 1026px) {
    #blackout-loader {
        display: none;
    }
}

@media (max-width: 1025px) {
    #blackout-loader {
        display: flex;
    }
}

#blackout-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgb(var(--white));
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
#blackout-loader.hide {
    opacity: 0;
    pointer-events: none;
}
.loader-animation {
    width: 48px;
    height: 48px;
    border: 6px solid rgb(var(--second));
    border-top: 6px solid rgb(var(--first));
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* HEADER */

header {
    transition: background-color 0.3s ease, color 0.3s ease;

    background-color: var(--background);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;

    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    width: 100%;
}

header .logo {
    font-size: 2rem;
    font-weight: 800;
} 

header .logo a {
    text-decoration: none;
    color: var(--text);
}

.svglogo {
    width: 2rem;
    margin-right: 0.5rem;
    height: auto;
    color: rgb(var(--first));
}

header .logo span {
    color: rgb(var(--first));
}

header .logo a {
    display: flex;
    justify-content: center;
    align-items: center;
}

header .logo a .icon {
    margin-right: 0.5rem;
    /* background-color: var(--black); */
    color: var(--text);
}

header ul {
    display: flex;
    list-style: none;
    padding: 0;
}

header ul li {
    margin: 0 1rem;
}

header ul li i {
    margin-right: 0.3rem;
}

header ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    margin-top: 6px;
    font-size: 2rem;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 500;
}

@media (min-width: 1026px) {
    header nav {
        padding-inline: 4rem;
    }

    header ul li a {
        font-weight: 600;
        font-size: 1.4rem;
        color: rgb(var(--black));
    }

    header ul li a:hover {
        color: rgb(var(--first));
    }

    .nav-links {
        display: none;
    }

    .blackout {
        display: none;
    }
}

@media (max-width: 1025px) {
    header nav {
        padding-inline: 2rem;
    }

    header ul li a {
        font-weight: 600;
        color: rgb(var(--third));
    }

    header nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
    }

    .blackout {
        display: block;
    }

    .blackout {
        position: fixed;
        inset: 0;
        background: rgba(var(--black), 0.1);
        z-index: 900;
        transition: all 0.3s;
        opacity: 0;
        pointer-events: none;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .nav-links.show ~ .blackout {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        z-index: 1001;
        color: rgb(var(--third));
        background: rgba(var(--white), 0.05);
        border: 2px solid rgba(var(--black), 0.05);
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
        box-shadow: 0 8px 32px 0 rgba(var(--black), 0.18), 0 0 0 100vmax rgba(var(--black), 0.18);
        border-radius: 2rem 2rem 2rem 2rem;
        /* border: 2px solid #333333; */
        position: absolute;
        right: 0.5rem;
        left: auto;
        top: calc(44px + 1rem);
        min-width: 220px;
        max-width: 90vw;
        margin-right: 0;
        overflow: hidden;
        /* backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px); */
        animation: dynamic-island-right-bounce-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        animation-fill-mode: forwards;
        /* Hide by default */
        opacity: 0;
        pointer-events: none;
        transform: translateX(120%) scaleX(1) scaleY(1.1);
        filter: blur(8px);
        transition: none;
    }

    .nav-links.show {
        display: flex;
        animation: dynamic-island-right-bounce-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        animation-fill-mode: forwards;
        opacity: 1;
        pointer-events: auto;
        filter: blur(0);
        transform: translateX(0) scaleX(1) scaleY(1);
        transition: none;
    }

    .nav-links.hide {
        display: flex;
        animation: dynamic-island-right-bounce-out 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        animation-fill-mode: forwards;
        opacity: 0;
        pointer-events: none;
        filter: blur(8px);
        transform: translateX(120%) scaleX(1) scaleY(1.1);
        transition: none;
    }

    @keyframes dynamic-island-right-bounce-in {
        0% {
            opacity: 0;
            transform: translateY(-120%) scaleX(1) scaleY(1.1);
            filter: blur(8px);
        }
        40% {
            opacity: 1;
            filter: blur(5px);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scaleX(1) scaleY(1);
            filter: blur(0);
        }
    }

    @keyframes dynamic-island-right-bounce-out {
        0% {
            opacity: 1;
            transform: translateY(0) scaleX(1) scaleY(1);
            filter: blur(0);
        }
        60% {
            opacity: 1;
            filter: blur(5px);
        }
        100% {
            opacity: 0;
            transform: translateY(-120%) scaleX(1) scaleY(1.1);
            filter: blur(8px);
        }
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        text-align: left;
        padding: 10px; 
        z-index: 1000;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

/* MAIN */

main {
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--background);
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 44px);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgb(var(--first));
    background: rgba(var(--third), 0.05);
    border: 3px solid rgba(var(--third), 0.2);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 24px;
}

/* FOOTER */

footer {
    background-color: rgb(var(--black));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 3rem 0;
    min-height: 10rem;
}

footer h5 {
    font-size: 2rem;
    color: rgb(var(--first));
    font-weight: 900;
}

footer h5 span {
    color: rgb(var(--white));
}

footer p {
    color: rgb(var(--first));
    font-weight: 300;
}

footer .adress {
    color: rgb(var(--third));
    font-weight: 300;
}

footer .inline {
    display: flex;
    flex-direction: row;
}

footer .inline p {
    padding: 0 0.5rem;
}

footer .watermark {
    margin-top: 1rem;
    font-weight: 800;
}

/* DEVICES */

/* PC */
@media (min-width: 1026px) { 
    footer p,
    footer .adress {
        font-size: 1.2rem;
    }
}

/* MOBILE */
@media (max-width: 1025px) {
    footer h5 {
        max-width: 95%;
        font-size: 1.8rem;
    }

    footer p {
        /* max-width: 90%; */
        font-size: 0.8rem;
    }

    footer .adress {
        text-align: center;
        /* font-size: auto; */
        width: 90%;
    }
    footer .watermark {
        margin-top: 1rem;
        font-weight: 800;
    }
}