:root {
    --bg-black: #0a0a0f;
    --bg-dark: #121218;
    --bg-card: #1a1a22;
    --neon-cyan: #00f0ff;
    --neon-pink: #ff007c;
    --text-gray: #b3b3c6;
    --neon-green: #6eff51;
}

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

body {
    background: linear-gradient(180deg, var(--bg-black), var(--bg-dark));
    font-family: 'Inter', sans-serif;
    color: white;
}

/* PARTICLE CANVAS */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}


/* NAV */
nav {
    position: fixed;
    width: 90%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20,20,30,0.6);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid #222;
    z-index: 1000;
}

nav h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: var(--neon-cyan);
    animation: pulseGlow 3s infinite alternate;}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-gray);
    transition: 0.3s;
}

nav a:hover {
    color: white;
    text-shadow: 0 0 8px var(--neon-pink);
}

@keyframes pulseGlow {
    from { text-shadow: 0 0 5px var(--neon-cyan); }
    to { text-shadow: 0 0 20px var(--neon-cyan); }
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    text-align: center;
}

.hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 60px;
    color: white;
}

.hero span {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
}

.typing {
    margin-top: 20px;
    font-size: 20px;
    color: var(--text-gray);
    border-right: 2px solid var(--neon-cyan);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 4s steps(40, end) forwards, blink 0.8s infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 225px }
}

@keyframes blink {
    50% { border-color: transparent }
}


.btn {
    margin-top: 40px;
    padding: 14px 38px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s ease;
}

.btn:hover {
    background: var(--neon-cyan);
    color: black;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* SECTIONS */
section {
    padding: 120px 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

/* ABOUT */
.about p {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* PROJECTS */
.projects-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.project-card {
    flex: 1 1 280px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2a2a35;
    transition: 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0,240,255,0.2);
}

.project-card h3 {
    margin-bottom: 15px;
    color: var(--neon-cyan);
}

.project-card p {
    color: var(--text-gray);
}

/* CONTACT */
.contact a {
    color: var(--neon-cyan);
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #222;
    background: #0d0d12;
    color: #666;
}