:root {
    --cyan: #00f0ff;
    --magenta: #ff00ff;
    --lime: #39ff14;
    --purple: #b300ff;
    --pink: #ff006e;
    --dark-bg: #0a0e27;
    --darker-bg: #050812;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: rgba(0, 240, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #0f1535 100%);
}

.grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(0, 240, 255, 0.05) 25%, rgba(0, 240, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 240, 255, 0.05) 75%, rgba(0, 240, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 240, 255, 0.05) 25%, rgba(0, 240, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 240, 255, 0.05) 75%, rgba(0, 240, 255, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    opacity: 0.3;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    font-size: 4rem;
    font-weight: 900;
    color: var(--cyan);
    letter-spacing: 3px;
    text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan), 0 0 20px rgba(0, 240, 255, 0.5);
    animation: glitch-animation 3s infinite;
}

@keyframes glitch-animation {
    0%, 100% {
        text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan), 0 0 20px rgba(0, 240, 255, 0.5);
    }
    14% {
        text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan), 0 0 20px rgba(255, 0, 255, 0.5);
    }
    15% {
        text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan), 0 0 20px rgba(0, 240, 255, 0.5);
    }
    49% {
        text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan), 0 0 20px rgba(57, 255, 20, 0.5);
    }
    50% {
        text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan), 0 0 20px rgba(0, 240, 255, 0.5);
    }
    99% {
        text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan), 0 0 20px rgba(255, 0, 110, 0.5);
    }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.switch-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--magenta);
    border-radius: 50px;
    color: var(--magenta);
    transition: all 0.3s ease;
}

.switch-btn:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

/* Hero Section */
.hero-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 2rem;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.3s both;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--magenta), var(--cyan), var(--lime));
    margin: 1rem auto 0;
    border-radius: 10px;
}

/* Neon Button */
.neon-btn {
    padding: 12px 30px;
    border: 2px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.neon-btn:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.2);
    color: var(--cyan);
}

.neon-btn:hover::before {
    left: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0 1rem;
    }
}