:root {
    --background: #121212;
    --surface: #1e1e1e;
    --primary: #bb86fc;
    --secondary: #b579fd;
    --on-background: #ffffff;
    --on-surface: #ffffff;
    --on-primary: #000000;
    --on-secondary: #000000;
    --grid-color: rgba(187, 134, 252, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--on-background);
    line-height: 1.6;
    overflow-x: hidden;

    cursor: none;
}

::-webkit-scrollbar {
    width: 0px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: transparent;
}

a {
    color: #2EE7B6;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2EE7B6;
    text-shadow: 0 0 8px #2EE7B6;
    text-decoration: none;
}


#grid-background {
    position: fixed;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 50px);
    z-index: -1;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
}

.navbar {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 90%;
    max-width: 1200px;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--on-background);
    margin-right: 27%;
}

.navbar-logo {
    width: 30px;
    height: 30px;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 60%;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--on-surface);
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--on-surface);
    margin: 5px;
    transition: all 0.3s ease;
}

main {
    padding-top: 6rem;
}

section {
    padding: 4rem 0;

}

h1,
h2,
h3 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary);
}

p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 6rem);
    text-align: center;
}

.hero-image {
    width: 30%;
    max-width: 200px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.cta-button,
.download-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover,
.download-button:hover {
    background-color: var(--secondary);
    color: var(--on-secondary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(3, 218, 198, 0.4);
}

.cta-button::before,
.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.cta-button:hover::before,
.download-button:hover::before {
    left: 100%;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.download-button:hover::before {
    left: 100%;
}

.credits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.credits-list li {
    margin-bottom: 0.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: opacity 0.5s, transform 0.5s, box-shadow 0.5s;
    transform: translateY(50px) scale(0.9);
    opacity: 0;
}

.feature.feature-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(187, 134, 252, 0.3);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 2rem auto 0;
}

#contact-form input,
#contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    color: var(--on-surface);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover {
    background-color: var(--secondary);
    color: var(--on-secondary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(3, 218, 198, 0.4);
}

footer {
    text-align: center;
    height: 50px;
    padding: 1rem;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    color: var(--on-surface);
}

@media screen and (max-width: 1024px) {
    .nav-links {
        width: 70%;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 62vh;
        top: 8vh;
        background-color: rgba(30, 30, 30, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-radius: 20px 20px 20px 20px;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .navbar {
        width: 95%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    #grid-background {
        background-size: 30px 30px;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width 0.2s ease-out;
}

#cursor-trail {
    position: fixed;
    pointer-events: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(187, 134, 252, 0.2);
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    z-index: 9998;
}