:root {
    --bg-color: #050510;
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --terminal-black: #111;
    --text-main: #e0e0e0;
    --font-mono: 'Fira Code', monospace;
    --font-heading: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- Background & Effects --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at center, #0a0a2a 0%, #000 100%);
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2)
    );
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
}

.section-title {
    color: var(--neon-purple);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.5);
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    margin-bottom: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: color 0.3s, text-shadow 0.3s;
}

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

/* --- Hero & Terminal --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-window {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.btn-close, .btn-min, .btn-max {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }
.btn-max { background: #27c93f; }

.terminal-title {
    margin: 0 auto;
    font-size: 0.8rem;
    color: #888;
}

.terminal-body {
    padding: 40px 30px;
}

.command {
    color: #888;
    margin-bottom: 20px;
}

.terminal-body h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.typewriter-text {
    font-size: 1.2rem;
    height: 1.5rem;
    color: #aaa;
    margin-bottom: 40px;
}

/* --- Buttons --- */
.cyber-btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    font-family: var(--font-mono);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: inset 0 0 0 rgba(0, 243, 255, 0), 0 0 10px rgba(0, 243, 255, 0.2);
}

.cyber-btn:hover {
    background: var(--neon-blue);
    color: var(--bg-color);
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.6);
}

/* --- Skills Section --- */
.tech-section {
    padding: 80px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tech-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(188, 19, 254, 0.3);
    padding: 30px 20px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: crosshair;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
    color: #fff;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0 120px;
}

.glass-panel {
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #777;
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus, .input-group textarea:focus {
    border-bottom-color: var(--neon-blue);
}

.input-group input:focus ~ label, 
.input-group textarea:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--neon-blue);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

#form-status {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

#form-status.success {
    color: #27c93f;
    text-shadow: 0 0 5px #27c93f;
}

.hidden { display: none; }

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #555;
    font-size: 0.8rem;
}

/* --- Glitch Effect --- */
.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: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(39px, 9999px, 71px, 0); }
    20% { clip: rect(3px, 9999px, 5px, 0); }
    40% { clip: rect(6px, 9999px, 98px, 0); }
    60% { clip: rect(98px, 9999px, 20px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    100% { clip: rect(12px, 9999px, 44px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(10px, 9999px, 45px, 0); }
    40% { clip: rect(44px, 9999px, 98px, 0); }
    60% { clip: rect(78px, 9999px, 12px, 0); }
    80% { clip: rect(9px, 9999px, 23px, 0); }
    100% { clip: rect(85px, 9999px, 67px, 0); }
}

/* Media Queries */
@media (max-width: 768px) {
    .terminal-body h1 { font-size: 2rem; }
    .nav-links { display: none; /* simple mobile fallback */ }
}
