:root {
    --body: #fefaf7;
    --white: #ffffff;
    --black: #000000;
    --dark: #1e1e24;
    --light: #e7e7e7;
    --primary: #d08445;
    --secondary: #469bf7;
}

::-webkit-scrollbar {
    width: .3rem;
    height: .3rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: .5rem;
    height: .2rem;
}

::-webkit-scrollbar-track {
    background-color: var(--light);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--body);
    color: var(--dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

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

.a:hover {
    text-decoration: underline;
}

button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

button:hover {
    filter: brightness(0.9);
}

button:active {
    filter: brightness(1.1);
}

button:disabled {
    background-color: var(--light);
    color: var(--dark);
    cursor: not-allowed;
}

button:disabled:hover {
    filter: none;
}

#yessss {
    color: #fff!important;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--light);
    color: var(--dark);
}

nav a:not(.nav-logo) {
    color: var(--black);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

nav a:hover:not(.nav-logo) {
    background-color: var(--body);
}

nav ul {
    display: flex;
    gap: 1rem;
}

nav ul li {
    list-style: none;
}

nav ul li:last-child>a {
    background-color: var(--primary);
}

nav img {
    width: 50px;
    height: auto;
    border-radius: 50%;
}

#nav-mobile {
    display: none;
}

#nav-toggle {
    display: none;
}

#nav-menu {
    display: none;
}

@media (max-width: 768px) {
    #nav-links {
        display: none;
    }

    #nav-mobile {
        display: block;
    }

    #nav-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
    #nav-toggle div {
        width: 30px;
        height: 3px;
        background-color: var(--white);
        margin: 5px;
    }

    #nav-menu {
        opacity: 0;
        pointer-events: none;
        position: absolute;
        top: 10vh;;
        right: 0;
        background-color: var(--light);
        width: 100%;
        height: 20vh;
        z-index: 999;
        transition: all 0.5s;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
    }

    #nav-menu.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    #logo {
        display: none;
    }
}


.content {
    display: grid;
    place-items: center;
    height: 100vh;
    grid-template-columns: 1fr 1fr;
}


#logo {
    width: 50%;
    height: auto;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
    animation-fill-mode: both;
    transform: rotateX(20deg) rotateY(20deg);
    /* add a shadow to the bottom */
    box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

@keyframes float {
    0% {
        transform: translateY(0) rotateX(20deg) rotateY(20deg);
    }

    50% {
        transform: translateY(-25px) rotateX(20deg) rotateY(20deg);
    }

    100% {
        transform: translateY(0) rotateX(20deg) rotateY(20deg);
    }
}

.hero {
    display: grid;
    height: 40vh;
    place-items: center;
    background-image: url('../img/code.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.7);
}


.hero-stuff {
    filter: none!important;
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 1;
    grid-template-columns: 1fr 1fr;
    gap: 20%;
    width: 100%;
}

.section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 1rem;
}

.section:not(:last-child) {
    margin-bottom: 5rem;
}

.section-stuff {
    display: grid;
    place-items: center;
    grid-template-columns: 1fr;
    width: 80%;
}

#feature {
    display: grid;
    place-items: center;
}

.features {
    display: grid;
    place-items: center;
    gap: 1rem;
}

.balls {
    display: grid;
    place-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    width: 80%;
}

.balls div {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    padding: 1rem;
    border-radius: 1rem;
    width: 100%;
    text-align: center;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.balls div i {
    font-size: 3rem;
    color: var(--white);
}

.balls div ul {
    list-style: none;
    padding: 1rem;
}

.balls div ul li {
    padding: 0.5rem;
}

.balls div ul li i {
    padding-right: 0.5rem;
    font-size: 1.5rem;
}

.balls a {
    width: 100%;
}

.balls a button {
    width: 100%;
}

@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        text-align: center;
    }

    .content img {
        width: 55%;
    }

    .hero {
        height: 50vh;
        display: flex;
        justify-content: center;
        align-items: center;

    }

    .hero-stuff {
        text-align: center;
        grid-template-columns: 1fr;

    }

    .section {
        flex-direction: column;
    }

    .section-stuff {
        width: 100%;
    }

    .balls {
        grid-template-columns: 1fr;
    }

    #feature {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .features img {
        width: 50%;
    }

    .features h2 {
        font-size: 1.5rem;
    }

    .features p {
        font-size: 1rem;
    }

    .features button {
        font-size: 1rem;
    }

    .features button {
        padding: 0.5rem 1rem;
    }


}

@media (prefers-color-scheme: dark) {
    :root {
        --body: #1e1e24;
        --white: #ffffff;
        --black: #ffffff;
        --dark: #fefaf7;
        --light: #383838;
        --primary: #d08445;
        --secondary: #469bf7;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01s!important;
        animation-iteration-count: 1!important;
        transition-duration: 0.01s!important;
        scroll-behavior: auto!important;
    }
    .hero {
        background-image: none;
    }
}