/* ============================= */
/* VARIABLES */
/* ============================= */

:root {
    --bg-color: #0d0d11;
    --card-bg: #16161d;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-gradient: linear-gradient(90deg, #8a4fff, #d859ff);
    --btn-shadow: 0 0 20px rgba(138, 79, 255, 0.4);
}

/* ============================= */
/* BASE */
/* ============================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================= */
/* TYPOGRAPHY */
/* ============================= */

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 30px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: var(--btn-shadow);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ============================= */
/* HEADER */
/* ============================= */

/* ============================= */
/* HEADER */
/* ============================= */

.header {
    width: 100%;
    padding: 25px 0;
}

.nav-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.logo {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.5rem;
    color: #d859ff;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
    padding: 60px 0;
    border-top: 1px solid #1c1c24;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-muted);
}

.nav-close {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

/* ============================= */
/* MOBILE MENU IMPROVED */
/* ============================= */

html, body {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    justify-self: end;
}

.burger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 900;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 992px) {

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 270px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        padding: 80px 30px;
        gap: 20px;
        transition: 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-close {
        display: block;
    }

    .header .btn {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Footer grid */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 20px;
    }
}