:root {
    --bg-color: #05050a;
    --primary-color: #00f0ff;
    --secondary-color: #ff003c;
    --text-color: #e0e0e0;
    --dark-accent: #11111a;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
    z-index: -1;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

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

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-color);
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    white-space: nowrap;
}

nav a:hover::before {
    width: 100%;
}

main {
    padding: 0 5%;
}

.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.glitch {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.typewriter {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-height: 2rem;
    margin-bottom: 3rem;
}

.cyber-button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2) inset;
    text-decoration: none;
}

.cyber-button:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.4);
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.tech-stack {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--dark-accent);
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.card:hover::before {
    width: 100%;
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.card h3 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #a0a0a0;
}

footer {
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    padding: 2rem 5%;
    margin-top: 5rem;
}

.terminal-footer {
    font-family: monospace;
    color: #00ff00;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 5%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero {
        height: auto;
        padding: 4rem 0;
        text-align: center;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .typewriter {
        font-size: 1.1rem;
        min-height: 4rem;
        margin-bottom: 2rem;
    }

    .cta-container {
        display: flex;
        justify-content: center;
    }

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

    .grid-container {
        grid-template-columns: 1fr;
    }
}