/* =====================================================
   DESIGN SYSTEM
   ===================================================== */
:root {
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-dark: #4c1d95;
    --purple-glow: rgba(124, 58, 237, 0.35);
    --cyan: #22d3ee;
    --cyan-light: #67e8f9;
    --cyan-glow: rgba(34, 211, 238, 0.25);
    --red: #f43f5e;
    --red-glow: rgba(244, 63, 94, 0.25);
    --bg-base: #060912;
    --bg-surface: rgba(8, 11, 22, 0.7);
    --bg-card: rgba(10, 14, 28, 0.6);
    --bg-card-hover: rgba(14, 19, 38, 0.8);
    --border: rgba(124, 58, 237, 0.15);
    --border-hover: rgba(124, 58, 237, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --font-sans: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Orbitron', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--purple) var(--bg-base);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    background-image:
        radial-gradient(ellipse at 15% 10%, rgba(76, 29, 149, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =====================================================
   CANVAS & OVERLAYS
   ===================================================== */
#matrix-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100%;
    max-width: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
}

#aurora-bg { display: none; }

#aurora-canvas {
    position: fixed !important;
    top: 0; left: 0;
    width: 100vw !important; height: 100%;
    max-width: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100%;
    max-width: 100%;
    z-index: 2;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

.glitch-flash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9998;
    pointer-events: none;
    background: rgba(124, 58, 237, 0);
    transition: background 0.05s;
}

/* =====================================================
   BOOT SCREEN
   ===================================================== */
.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #020408;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-content {
    max-width: 560px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.boot-header { display: flex; flex-direction: column; gap: 0.5rem; }

.boot-logo {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.boot-bracket { color: var(--cyan); }
.boot-text    { color: var(--text-primary); }
.boot-accent  { color: var(--purple-light); }
.boot-version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
}

.boot-tagline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.boot-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 50%, transparent 100%);
    opacity: 0.35;
}

.boot-log {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-height: 160px;
}

.boot-log div { opacity: 0; animation: fadeInLine 0.08s forwards; }
.boot-log .ok   { color: #4ade80; }
.boot-log .warn { color: #fbbf24; }
.boot-log .info { color: var(--cyan); }

@keyframes fadeInLine { to { opacity: 1; } }

.boot-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.boot-bar-track {
    flex: 1;
    height: 3px;
    background: rgba(124,58,237,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.boot-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    border-radius: 2px;
    transition: width 0.12s ease;
    box-shadow: 0 0 8px var(--cyan);
}

.boot-bar-pct {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan);
    min-width: 32px;
    text-align: right;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.1rem 0;
    background: rgba(6, 9, 18, 0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: padding var(--transition), background var(--transition), backdrop-filter var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(6, 9, 18, 0.92);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: font-size var(--transition);
}

.navbar.scrolled .nav-logo {
    font-size: 0.95rem;
}

.logo-bracket { color: var(--cyan); }
.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--purple-light); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link .prompt { color: var(--purple-light); margin-right: 0.2rem; }

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.12);
}

.lang-toggle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.lang-toggle:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--cyan);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =====================================================
   CONTAINER & LAYOUT
   ===================================================== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 10;
}

section { padding: 8rem 0; }

/* =====================================================
   SECTION TITLE
   ===================================================== */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 4rem;
    white-space: nowrap;
}

.section-number {
    color: var(--purple-light);
    font-size: 0.9em;
    opacity: 0.7;
}

.gradient-text {
    color: var(--text-primary);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--purple) 0%, transparent 100%);
    opacity: 0.4;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero text */
.hero-text { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.hero-name-accent {
    color: var(--purple-light);
}

.hero-typed-line {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    min-height: 1.5rem;
}

.typed-arrow { color: var(--purple-light); }

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 24px var(--purple-glow);
    transition: all var(--transition);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(124, 58, 237, 0.5);
    border-color: var(--purple-light);
}

.cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.cta-outline:hover {
    border-color: var(--purple-light);
    background: rgba(124, 58, 237, 0.08);
    transform: translateY(-2px);
}

.hero-links { display: flex; gap: 1rem; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition);
}

.social-link:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

/* Hero terminal */
.hero-terminal-wrap { position: relative; }

.hero-terminal-wrap::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.terminal-window {
    background: rgba(6, 8, 16, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, 0.08),
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 60px var(--purple-glow);
    backdrop-filter: blur(20px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    background: rgba(10, 12, 24, 0.8);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #f43f5e; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #4ade80; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.4rem 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    min-height: 240px;
}

.terminal-line { display: flex; align-items: baseline; gap: 0; }
.terminal-prompt { color: var(--purple-light); }
.terminal-cmd { color: var(--cyan); margin-left: 0.1rem; }
.terminal-output { color: var(--text-secondary); padding-left: 1rem; }

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    width: calc(100% - 120px);
    caret-color: transparent;
}

.terminal-input::placeholder { color: var(--text-muted); }

.cursor {
    color: var(--purple-light);
    animation: blink 1s step-end infinite;
    font-size: 0.8rem;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.typing-line { display: flex; align-items: center; }

/* Glitch name */
.glitch-name {
    color: var(--purple-light);
    position: relative;
    display: inline-block;
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.mouse {
    width: 20px;
    height: 32px;
    border: 1px solid var(--text-muted);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--purple-light);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease infinite;
}

@keyframes scroll-wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(8px); } }

/* =====================================================
   ABOUT
   ===================================================== */
.about { background: rgba(8, 10, 20, 0.3); }

.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 5rem;
    align-items: start;
}

.image-wrapper {
    position: relative;
    aspect-ratio: 1;
    max-width: 320px;
}

.avatar-hud-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.hud-circle-outer {
    inset: 0;
    animation: rotate-cw 12s linear infinite;
    border-color: rgba(124, 58, 237, 0.2);
    border-top-color: var(--purple);
}

.hud-circle-inner {
    inset: 15%;
    animation: rotate-ccw 8s linear infinite;
    border-color: rgba(34, 211, 238, 0.15);
    border-right-color: var(--cyan);
}

@keyframes rotate-cw { to { transform: rotate(360deg); } }
@keyframes rotate-ccw { to { transform: rotate(-360deg); } }

.hud-scanner-line {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(124, 58, 237, 0.15) 60deg, transparent 60deg);
    animation: rotate-cw 3s linear infinite;
}

.avatar-hud-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.avatar-hud-icon {
    font-size: 4rem;
    color: var(--purple-light);
    filter: drop-shadow(0 0 20px var(--purple-glow));
    transition: all var(--transition-slow);
}

.avatar-hud-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(8, 10, 20, 0.7);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: pulse-dot 2s ease infinite;
}

.corner-decoration {
    position: absolute;
    width: 20px;
    height: 20px;
}

.corner-decoration.top-left {
    top: 5%;
    left: 5%;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
}

.corner-decoration.bottom-right {
    bottom: 5%;
    right: 5%;
    border-bottom: 2px solid var(--purple);
    border-right: 2px solid var(--purple);
}

.about-content { display: flex; flex-direction: column; gap: 1.25rem; }

.about-content h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-content .prompt { color: var(--purple-light); }

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

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

.about-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-item i { color: var(--purple-light); margin-top: 0.15rem; min-width: 14px; }

.soft-skills { margin-top: 0.5rem; }

.soft-skills h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.soft-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all var(--transition);
}

.tag i { color: var(--purple-light); font-size: 0.65rem; }

.tag:hover {
    border-color: var(--purple);
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.08);
}

/* =====================================================
   SKILLS
   ===================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--purple) 0%, var(--cyan) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.skill-card.red-team::before {
    background: linear-gradient(180deg, var(--red) 0%, var(--purple) 100%);
}

.skill-card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--purple-glow);
}

.skill-card:hover::before { opacity: 1; }

.skill-icon {
    font-size: 1.4rem;
    color: var(--purple-light);
}

.skill-card.red-team .skill-icon { color: var(--red); }

.skill-card h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.skill-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.skill-tools span {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--text-muted);
    transition: all var(--transition);
}

.skill-card:hover .skill-tools span {
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--text-secondary);
}

/* Tech stack */
.tech-stack {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.tech-stack h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.tech-stack .prompt { color: var(--purple-light); }

.tech-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: rgba(8, 10, 20, 0.5);
    transition: all var(--transition);
}

.tech-tag i { color: var(--cyan); font-size: 0.65rem; }

.tech-tag:hover {
    border-color: var(--cyan);
    color: var(--text-primary);
    background: rgba(34, 211, 238, 0.06);
    transform: translateY(-2px);
}

/* =====================================================
   PROJECTS
   ===================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--purple-glow);
}

.project-card.red-team:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--red-glow);
    border-color: rgba(244, 63, 94, 0.3);
}

.project-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.placeholder-project {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.proj-monitoring { background: linear-gradient(135deg, rgba(30, 10, 70, 0.9) 0%, rgba(10, 30, 60, 0.9) 100%); color: var(--cyan); }
.proj-automation { background: linear-gradient(135deg, rgba(10, 40, 70, 0.9) 0%, rgba(20, 10, 60, 0.9) 100%); color: var(--purple-light); }
.proj-networking { background: linear-gradient(135deg, rgba(5, 35, 65, 0.9) 0%, rgba(15, 5, 50, 0.9) 100%); color: var(--cyan); }
.proj-hardware { background: linear-gradient(135deg, rgba(20, 10, 60, 0.9) 0%, rgba(10, 30, 50, 0.9) 100%); color: var(--purple-light); }
.proj-python { background: linear-gradient(135deg, rgba(60, 10, 30, 0.9) 0%, rgba(40, 5, 60, 0.9) 100%); color: var(--red); }
.proj-ad { background: linear-gradient(135deg, rgba(50, 10, 20, 0.9) 0%, rgba(30, 5, 50, 0.9) 100%); color: var(--red); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 18, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition);
    background: rgba(124, 58, 237, 0.15);
}

.project-link:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.project-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
}

.label-blueteam { background: rgba(34, 211, 238, 0.1); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.2); }
.label-redteam { background: rgba(244, 63, 94, 0.1); color: var(--red); border: 1px solid rgba(244, 63, 94, 0.2); }
.label-automation { background: rgba(124, 58, 237, 0.1); color: var(--purple-light); border: 1px solid rgba(124, 58, 237, 0.2); }
.label-networking { background: rgba(34, 211, 238, 0.08); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.2); }
.label-iot { background: rgba(251, 191, 36, 0.08); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.2); }

.project-info h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.project-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    padding: 0.18rem 0.5rem;
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 3px;
    color: var(--text-muted);
}

/* =====================================================
   CERTIFICATIONS
   ===================================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.cert-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 70%);
}

.cert-card.red-team::after {
    background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.07), transparent 70%);
}

.cert-card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), 0 0 24px var(--purple-glow);
}

.cert-card.red-team:hover {
    border-color: rgba(244, 63, 94, 0.3);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), 0 0 24px var(--red-glow);
}

.cert-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cert-icon {
    font-size: 1.5rem;
    color: var(--purple-light);
    min-width: 30px;
}

.cert-card.red-team .cert-icon { color: var(--red); }

.cert-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.05em;
}

.cert-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.cert-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    color: var(--purple-light);
    background: rgba(124, 58, 237, 0.06);
    transition: all var(--transition);
}

.cert-link:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--purple);
    transform: translateY(-1px);
}

.cert-link-article {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.25);
    background: rgba(34, 211, 238, 0.05);
}

.cert-link-article:hover {
    background: rgba(34, 211, 238, 0.12);
    border-color: var(--cyan);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-info .prompt { color: var(--purple-light); }

.contact-info > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--purple-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.contact-item a,
.contact-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.contact-item a:hover { color: var(--purple-light); }

.contact-socials { display: flex; gap: 0.75rem; }

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition);
}

.social-btn:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

/* Contact CTA */
.contact-email-cta {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cta-label .prompt { color: var(--purple-light); }

.btn-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    word-break: break-all;
}

.btn-email-primary {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(34, 211, 238, 0.08) 100%);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: var(--purple-light);
}

.btn-email-primary:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(34, 211, 238, 0.12) 100%);
    border-color: var(--purple-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--purple-glow);
}

.btn-email i { font-size: 1.1rem; flex-shrink: 0; }

.email-providers { display: flex; flex-direction: column; gap: 0.75rem; }

.email-providers > span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.provider-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.provider-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: rgba(8, 10, 20, 0.5);
    transition: all var(--transition);
}

.provider-btn:hover {
    border-color: var(--purple);
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.08);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =====================================================
   MODAL (Easter Egg)
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(6, 9, 18, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: rgba(8, 11, 22, 0.98);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 0 60px var(--purple-glow);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--purple-light);
    letter-spacing: 0.1em;
}

.close-modal {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    transition: color var(--transition);
}

.close-modal:hover { color: var(--text-primary); }

.modal-body {
    padding: 1.5rem;
}

.modal-body pre {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #4ade80;
    white-space: pre-wrap;
    line-height: 1.6;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-scanner {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--purple) 50%, transparent 100%);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */
.reveal,
.reveal-left,
.reveal-right { opacity: 0; }

.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

/* Fallback (no GSAP) */
.reveal.active { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.active { opacity: 1; transform: translateX(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.active { opacity: 1; transform: translateX(0); transition: opacity 0.7s ease, transform 0.7s ease; }

/* =====================================================
   PROMPT / UTILITY
   ===================================================== */
.prompt { color: var(--purple-light); margin-right: 0.3rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
    .hero-split { grid-template-columns: 1fr; gap: 3rem; }
    .hero-terminal-wrap { max-width: 600px; }
    .about-grid { grid-template-columns: 260px 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
    .hero-terminal-wrap { width: 100%; max-width: 100%; }
    .terminal-window { width: 320px; max-width: calc(100vw - 3rem); }
    #aurora-canvas { display: none; }
}

@media (max-width: 900px) {
    section { padding: 6rem 0; }
    .container { padding: 0 1.5rem; }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: min(320px, 90vw);
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 5rem 1.5rem 2rem;
        background: rgba(6, 9, 18, 0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        transition: right var(--transition-slow);
        overflow-y: auto;
    }

    .nav-menu.open { right: 0; }
    .nav-toggle { display: flex; }

    .nav-link { width: 100%; padding: 0.75rem 1rem; }

    .about-grid { grid-template-columns: 1fr; }
    .image-wrapper { max-width: 220px; margin: 0 auto; }

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

    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

    .hero-name { font-size: clamp(2.2rem, 8vw, 3.5rem); }
}

@media (max-width: 640px) {
    .section-title { flex-direction: column; align-items: flex-start; white-space: normal; }
    .section-line { width: 80px; }

    .hero-actions { flex-direction: column; align-items: flex-start; }
    .cta-primary, .cta-outline { width: 260px; justify-content: center; }

    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }

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

    .boot-logo { font-size: 1.3rem; }
}
