:root {
    --bg-color: #020202;
    --text-color: #ffffff;
    --accent-color: #00f3ff;
    /* Cyan/Electric Blue */
    --secondary-accent: #bc13fe;
    /* Neon Purple */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --glow-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

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

body {
    background-color: var(--bg-color);
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 2, 2, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--accent-color);
}

.nav-links a:hover {
    color: var(--text-color);
    text-shadow: 0 0 8px var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-accent);
    box-shadow: 0 0 10px var(--secondary-accent);
}

/* Hero */
.hero-content {
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 8px;
    position: relative;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    text-shadow: 0 0 8px var(--accent-color);
}

.btn-secondary {
    border-color: var(--secondary-accent);
    color: var(--secondary-accent);
}

.btn-secondary:hover {
    background: rgba(188, 19, 254, 0.1);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.3);
    color: #fff;
    text-shadow: 0 0 8px var(--secondary-accent);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.8;
}

/* Footer */
footer {
    padding: 3rem;
    text-align: center;
    background: #000;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glitch Effect (Enhanced) */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(26px, 9999px, 11px, 0);
    }

    20% {
        clip: rect(83px, 9999px, 98px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 86px, 0);
    }

    60% {
        clip: rect(56px, 9999px, 2px, 0);
    }

    80% {
        clip: rect(34px, 9999px, 56px, 0);
    }

    100% {
        clip: rect(92px, 9999px, 12px, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
}