:root {
    --bg-deep: #060b14;
    --bg-space: #0a0e1a;
    --bg-card: rgba(14, 22, 40, 0.55);
    --glass-bg: rgba(12, 20, 38, 0.5);
    --glass-border: rgba(0, 200, 240, 0.25);
    --glass-border-strong: rgba(0, 220, 255, 0.5);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    --accent-cyan: #00d4ff;
    --accent-teal: #00f0a8;
    --accent-gold: #ffb740;
    --accent-purple: #8b5cf6;
    --accent-rose: #f43f5e;
    --text-primary: #e2e8f0;
    --text-secondary: #b0bec5;
    --text-muted: #78909c;
    --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.4), 0 0 60px rgba(0, 212, 255, 0.15);
    --glow-teal: 0 0 25px rgba(0, 240, 168, 0.35), 0 0 50px rgba(0, 240, 168, 0.12);
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Orbitron', 'Rajdhani', 'Segoe UI', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-glitch: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --z-canvas: 0;
    --z-overlay: 1;
    --z-content: 10;
    --z-nav: 100;
    --z-modal: 200;
    --z-loader: 999;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: default;
    min-height: 100vh;
    position: relative;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-canvas);
    pointer-events: none;
}

.scanlines-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-overlay);
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
    opacity: 0.5;
}
.scanlines-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(6, 11, 20, 0.65) 100%);
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-overlay);
    pointer-events: none;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(0, 200, 240, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 240, 0.5) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.main-content {
    position: relative;
    z-index: var(--z-content);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-nav);
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--glow-cyan);
}
.nav-bar:hover {
    border-color: var(--glass-border-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
}

/* ──────────────────────────────────
   CUSTOM LOGO IMAGES
   ────────────────────────────────── */
.nav-logo-img {
    width: 28px;
    height: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.preloader-logo-img {
    width: 80px;
    height: auto;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.7));
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-logo svg {
    stroke: currentColor;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
    position: relative;
    white-space: nowrap;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-cyan);
    transition: width var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-cyan);
}
.nav-links a:hover {
    color: #fff;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-cta {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.4);
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    color: var(--accent-cyan) !important;
    font-weight: 600 !important;
    transition: all var(--transition-smooth) !important;
}
.nav-cta:hover {
    background: rgba(0, 212, 255, 0.22) !important;
    box-shadow: var(--glow-cyan);
    color: #fff !important;
}
.nav-cta::after {
    display: none !important;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 3rem;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(0, 240, 168, 0.35);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--accent-teal);
    background: rgba(0, 240, 168, 0.06);
    margin-bottom: 1.5rem;
    animation: pulseBadge 3s ease-in-out infinite;
    text-transform: uppercase;
}
@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 240, 168, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 240, 168, 0.45); }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin-bottom: 0.8rem;
    position: relative;
}
.hero-title .glitch-text {
    display: inline-block;
    position: relative;
    color: #fff;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.7), 0 0 80px rgba(0, 212, 255, 0.3);
}
.hero-title .glitch-text::before,
.hero-title .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero-title .glitch-text::before {
    color: var(--accent-rose);
    animation: glitchShift 2.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    opacity: 0.7;
    z-index: -1;
}
.hero-title .glitch-text::after {
    color: var(--accent-cyan);
    animation: glitchShift 2.5s infinite reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    opacity: 0.7;
    z-index: -1;
}
@keyframes glitchShift {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -1px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 3px); }
}
.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.typewriter-container { display: inline-block; min-height: 1.5em; }
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent-cyan);
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
    box-shadow: 0 0 8px var(--accent-cyan);
}
@keyframes blink { 50% { opacity: 0; } }
.hero-description {
    max-width: 620px;
    color: var(--text-muted);
    font-size: 1rem;
    margin: 1.5rem auto 2rem;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    font-family: var(--font-sans);
}
.btn-primary {
    background: rgba(0, 212, 255, 0.15);
    border: 1.5px solid rgba(0, 212, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}
.btn-primary:hover {
    background: rgba(0, 212, 255, 0.28);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
}
.btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}
.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Avatar Hologram */
.avatar-hologram {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.2), rgba(0, 240, 168, 0.08));
    border: 2px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), 0 0 80px rgba(0, 200, 240, 0.1), inset 0 0 30px rgba(0, 200, 240, 0.1);
    animation: hologramFloat 4s ease-in-out infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-hologram img {
    width: 86%;
    height: 86%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.15);
}
.avatar-hologram::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.12), transparent, rgba(0, 240, 168, 0.08), transparent);
    animation: hologramSpin 8s linear infinite;
    z-index: 0;
    border-radius: 50%;
}
@keyframes hologramFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes hologramSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sections */
.section { padding: 5rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--accent-teal);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.6rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent-cyan);
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 0%, var(--glass-highlight), transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 20px;
}
.glass-card > * { position: relative; z-index: 1; }
.glass-card:hover {
    border-color: var(--glass-border-strong);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.15);
}
.glass-card.glow-cyan { border-color: rgba(0, 212, 255, 0.35); }
.glass-card.glow-cyan:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--glow-cyan); }
.glass-card.glow-teal { border-color: rgba(0, 240, 168, 0.3); }
.glass-card.glow-teal:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--glow-teal); }

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.8rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: all var(--transition-smooth);
    pointer-events: none;
    z-index: 2;
}
.project-card:hover::after {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.05);
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 212, 255, 0.18);
}
.project-icon { font-size: 2rem; margin-bottom: 1rem; display: block; color: var(--accent-cyan); }
.project-title { font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.project-tech { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent-teal); letter-spacing: 0.05em; margin-bottom: 0.8rem; }
.project-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* Skill Tags */
.skill-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-cyan);
    margin: 0.25rem;
    transition: all var(--transition-fast);
}
.skill-tag:hover { background: rgba(0, 212, 255, 0.18); border-color: var(--accent-cyan); box-shadow: 0 0 12px rgba(0, 212, 255, 0.3); }
.skill-tag.teal { background: rgba(0, 240, 168, 0.07); border-color: rgba(0, 240, 168, 0.3); color: var(--accent-teal); }
.skill-tag.teal:hover { box-shadow: 0 0 12px rgba(0, 240, 168, 0.3); border-color: var(--accent-teal); }
.skill-tag.gold { background: rgba(255, 183, 64, 0.07); border-color: rgba(255, 183, 64, 0.3); color: var(--accent-gold); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; border-left: 2px solid rgba(0, 212, 255, 0.3); }
.timeline-item { margin-bottom: 2rem; position: relative; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    border: 2px solid var(--bg-deep);
}
.timeline-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-teal); letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.timeline-role { font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: 0.2rem; }
.timeline-company { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Stat Cards */
.stat-card { text-align: center; padding: 1.5rem; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* Contact Links */
.contact-links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.5rem; }
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-smooth);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}
.contact-link:hover { border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); transform: translateY(-2px); color: #fff; }
.contact-icon { font-size: 1.2rem; }

/* AI Terminal */
.ai-terminal-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-modal);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--glass-border-strong);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), var(--glow-cyan);
    animation: terminalPulse 3s ease-in-out infinite;
    color: var(--accent-cyan);
}
@keyframes terminalPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.35); }
    50% { box-shadow: 0 8px 35px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.55); }
}
.ai-terminal-toggle:hover { transform: scale(1.08); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 55px rgba(0, 212, 255, 0.5); }
.ai-terminal-panel {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: var(--z-modal);
    width: 380px;
    max-width: 90vw;
    height: 450px;
    max-height: 60vh;
    background: rgba(8, 14, 26, 0.9);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--glass-border-strong);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), var(--glow-cyan);
    transform-origin: bottom right;
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    pointer-events: none;
}
.ai-terminal-panel.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}
.terminal-header {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.terminal-dot.red { background: #f43f5e; }
.terminal-dot.yellow { background: #ffb740; }
.terminal-dot.green { background: #00f0a8; }
.terminal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.terminal-msg {
    max-width: 85%;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    animation: msgIn 0.3s ease-out;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.terminal-msg.ai { background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.25); align-self: flex-start; color: #c8d6e5; }
.terminal-msg.user { background: rgba(0, 240, 168, 0.08); border: 1px solid rgba(0, 240, 168, 0.2); align-self: flex-end; color: #d4f5e9; }
.terminal-input-row { display: flex; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 0.6rem; gap: 0.5rem; }
.terminal-input-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    outline: none;
}
.terminal-input-row input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 8px rgba(0, 212, 255, 0.2); }
.terminal-input-row button {
    background: rgba(0, 212, 255, 0.18);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}
.terminal-input-row button:hover { background: rgba(0, 212, 255, 0.3); box-shadow: 0 0 12px rgba(0, 212, 255, 0.3); }

/* Footer */
.footer { text-align: center; padding: 2.5rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.04em; }
.footer span { color: var(--accent-cyan); }
.footer a:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

/* ──────────────────────────────────
   PRELOADER
   ────────────────────────────────── */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-deep);
    z-index: var(--z-loader);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}
.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.preloader-logo {
    width: 80px;
    height: 80px;
    stroke: var(--accent-cyan);
    animation: preloaderPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.7));
}
@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}
.preloader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #fff;
    position: relative;
}
.preloader-text.glitch-text::before,
.preloader-text.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.preloader-text.glitch-text::before {
    color: var(--accent-rose);
    animation: glitchShift 2.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    opacity: 0.8;
    z-index: -1;
}
.preloader-text.glitch-text::after {
    color: var(--accent-cyan);
    animation: glitchShift 2.5s infinite reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    opacity: 0.8;
    z-index: -1;
}
.preloader-bar {
    width: 200px;
    max-width: 60vw;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.preloader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    border-radius: 3px;
    animation: loadProgress 1.8s ease-out forwards;
    box-shadow: 0 0 12px var(--accent-cyan);
}
@keyframes loadProgress {
    0%   { width: 0%; }
    100% { width: 100%; }
}
.preloader-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--accent-teal);
    text-transform: uppercase;
    animation: statusBlink 2s step-end infinite;
}
@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    html { font-size: 15px; }
    .nav-bar { padding: 0.5rem 1.2rem; gap: 0.8rem; border-radius: 40px; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.8rem);
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        background: rgba(10, 16, 28, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid var(--glass-border-strong);
        border-radius: 16px;
        padding: 1rem 1.5rem;
        gap: 0.8rem;
        min-width: 180px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    }
    .nav-links.show { display: flex; }
    .mobile-menu-btn { display: flex; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .section { padding: 3rem 0; }
    .timeline { padding-left: 1.5rem; }
    .timeline-item::before { left: -1.95rem; width: 10px; height: 10px; }
    .ai-terminal-panel { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; height: 380px; border-radius: 14px; }
    .ai-terminal-toggle { width: 48px; height: 48px; bottom: 1rem; right: 1rem; }
    .avatar-hologram { width: 100px; height: 100px; }
}
@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-section { padding: 5rem 0.8rem 2rem; min-height: auto; }
    .hero-title { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; padding: 0.6rem 1.4rem; font-size: 0.85rem; }
    .nav-bar { top: 0.5rem; padding: 0.45rem 1rem; border-radius: 35px; }
    .nav-logo { font-size: 0.9rem; }
    .section-title { font-size: 1.5rem; }
    .glass-card { padding: 1.3rem; border-radius: 14px; }
    .stat-number { font-size: 1.8rem; }
}