:root {
    --bg-color: #02010f;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #00d4ff;
    --accent-color: #7b2cbf;
    --card-bg: rgba(10, 8, 26, 0.6);
    /* Glass effect base */
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --btn-radius: 50px;
    /* Modern pill shape */

    /* 2026 Gradients */
    --gradient-main: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    --gradient-text: linear-gradient(90deg, #fff 0%, #00d4ff 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(123, 44, 191, 0.25) 0%, transparent 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Static glow + Dynamic mouse glow */
    background-image:
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        var(--gradient-glow);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    letter-spacing: -2px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--gradient-main);
    color: #fff;
    border-radius: var(--btn-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    border: 1px solid transparent;
    /* Prevent layout shift */
}

.btn:hover {
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--btn-radius);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Add subtle divider glows between sections */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.8rem;
    }
}

/* Header & Nav */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(2, 1, 15, 0.8);
    backdrop-filter: blur(16px);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(2, 1, 15, 0.98);
        flex-direction: column;
        padding: 40px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Cards (Glassmorphism) */
.card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Card hover glow effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    /* Fix: Allow clicks to pass through */
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

.card>* {
    position: relative;
    z-index: 2;
    /* Content above glow */
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.card h3,
.card h4 {
    color: #fff;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 20px;
    margin-top: 80px;
    background: #010008;
    position: relative;
}

/* Footer ambient glow */
footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.05), transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}