:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --electric: #00d4ff;
    --neon: #39ff14;
    --orange: #ff6b35;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --accent-glow: rgba(0, 212, 255, 0.4);
    --neon-glow: rgba(57, 255, 20, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#app {
    position: relative;
    z-index: 1;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--electric);
    font-size: 0.8rem;
    vertical-align: super;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sections */
.v-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 10%;
    position: relative;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--neon);
    color: var(--neon);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1.5rem;
}

.glitch-text {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.highlight {
    color: var(--electric);
    font-weight: 600;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.btn-glow {
    background: var(--electric);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--accent-glow);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #fff;
    background: var(--glass);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Content Cards */
.glass {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 3rem;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass:hover {
    border-color: var(--electric);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-5px) scale(1.01);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--electric);
}

.section-title.centered {
    text-align: center;
    margin-bottom: 4rem;
}

.terminal-text p {
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
}

.text-electric {
    color: var(--electric);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline */
.timeline-item {
    display: flex;
    gap: 2rem;
}

.time {
    font-family: 'JetBrains Mono', monospace;
    color: var(--electric);
    min-width: 120px;
}

.log-list {
    list-style: none;
    margin-top: 1rem;
}

.log-list li {
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    position: relative;
    padding-left: 1.5rem;
}

.log-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.project-card {
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--electric);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 2rem;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tech-stack span {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.3rem;
    color: var(--electric);
    font-family: 'JetBrains Mono', monospace;
}

/* Contact */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
}

.social-row {
    display: flex;
    gap: 2rem;
}

.social-row a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-row a:hover {
    color: var(--electric);
}

/* Footer */
.glass-footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-dim);
    border-radius: 10px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: var(--electric);
    border-radius: 1px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .v-section {
        padding: 5rem 5%;
    }

    .glitch-text {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    .v-section {
        padding: 4rem 5%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .glass {
        padding: 2rem;
    }

    .glitch-text {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 2.8rem;
    }

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

    .stat-value {
        font-size: 2rem;
    }
}