:root {
    --bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary: #7c4dff;
    --secondary: #00e5ff;
    --text: #ffffff;
    --text-dim: #b0b0b0;
    --nav-height: 72px;
}

/* Prevent scrollbar layout shift */
html {
    overflow-y: scroll;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------------- NAVBAR ---------------- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-img {
    margin-right: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-btn {
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ---------------- HERO ---------------- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.badge {
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-top: 20px;
    line-height: 1.1;
}

.hero p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin: 30px auto;
    max-width: 600px;
}

.hero-btns {
    margin-top: 20px;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
    animation: move 10s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(-10%, -10%);
    }

    to {
        transform: translate(10%, 10%);
    }
}

/* ---------------- SERVICES ---------------- */

.services {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 30px;
    border-radius: 24px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* ---------------- BUTTONS ---------------- */

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    display: inline-block;
}

.primary {
    background: var(--primary);
    color: white;
}

.secondary {
    border: 1px solid #444;
    color: white;
}

/* ---------------- FOOTER ---------------- */

footer {
    text-align: center;
    padding: 100px 8% 40px;
}

.footer-email {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    margin: 30px 0;
}

.footer-bottom {
    margin-top: 50px;
    color: var(--text-dim);
    font-size: 0.8rem;
    border-top: 1px solid #222;
    padding-top: 20px;
}

/* ---------------- BACK TO TOP ---------------- */

#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
}

/* ---------------- BOTTOM NAV (MOBILE) ---------------- */

.bottom-nav {
    display: none;
}

@media screen and (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid #222;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
    }

    .bottom-nav a,
    .bottom-nav button {
        flex: 1;
        text-align: center;
        color: var(--text-dim);
        text-decoration: none;
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .bottom-nav span {
        display: block;
        font-size: 1.4rem;
    }

    .bottom-nav small {
        display: block;
        font-size: 0.7rem;
        margin-top: 2px;
    }

    .bottom-nav a.active,
    .bottom-nav a:hover {
        color: var(--primary);
    }

    /* Prevent content from hiding behind bottom nav */
    body {
        padding-bottom: 64px;
    }

    /* Hide desktop top navbar on mobile */
    .nav-links,
    .nav-btn,
    .menu-toggle {
        display: none;
    }

    /* Hide desktop back-to-top button on mobile */
    #backToTop {
        display: none !important;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
    }

    .bottom-nav a {
        color: var(--text-dim);
    }

    .bottom-nav a.active {
        color: var(--primary);
    }
    /* Offset hero from fixed navbar (iOS fix) */
    .hero {
        padding-top: 50px;
        padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
    }

}