/* =====================
   ROOT — DARK AGGRESSIVE THEME
===================== */
:root {
    --bg: #050505;
    --bg2: #0a0a0a;
    --red: #ff0022;
    --red-bright: #ff1a3a;
    --red-dim: rgba(255, 0, 34, 0.1);
    --red-glow: rgba(255, 0, 34, 0.5);
    --red-border: rgba(255, 0, 34, 0.2);
    --white: #e8e8e8;
    --muted: #666;
    --light-muted: #999;
    --card-bg: rgba(12, 12, 12, 0.9);
    --card-bg2: rgba(8, 8, 8, 0.95);
    --green: #00ff41;
    --blue: #4da6ff;
    --yellow: #ffcc00;
    --orange: #ff6600;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =====================
   BACKGROUND EFFECTS
===================== */
#matrix-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.scanline {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.04) 1px, rgba(0,0,0,0.04) 3px);
    pointer-events: none;
    z-index: 1;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,0,34,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,34,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

body > *:not(#matrix-canvas):not(.vignette):not(.scanline):not(.grid-overlay) {
    position: relative;
    z-index: 2;
}

/* =====================
   NAVIGATION
===================== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--red-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled { box-shadow: 0 0 40px rgba(255,0,34,0.1), 0 1px 0 var(--red); }

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 5%;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 4px;
}

.logo-bracket { color: var(--muted); font-weight: 400; }
.nav-cursor { color: var(--red); animation: blink 0.8s infinite; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--red); border-bottom-color: var(--red); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
}

/* =====================
   SKIP BUTTON
===================== */
.skip-btn {
    position: fixed;
    top: 15px; right: 15px;
    z-index: 10000;
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red);
    padding: 8px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
}

.skip-btn:hover { background: var(--red); color: #000; }
#skip-terminal.hidden { display: none; }

/* =====================
   HERO
===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 80px;
    gap: 4rem;
}

.hero-content { flex: 1; }

.hero-threat-level {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,0,34,0.08);
    border: 1px solid var(--red-border);
    padding: 6px 18px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: var(--light-muted);
}

.threat-dot {
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: threat-pulse 1.5s infinite;
}

@keyframes threat-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.surname {
    display: block;
    color: var(--muted);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 12px;
}

.hero-title {
    font-size: 0.85rem;
    color: var(--light-muted);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.separator { color: var(--red); }

.typed-wrap {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 1.8em;
}

.prompt { color: var(--green); }
#typed-text { color: var(--white); }
.typed-cursor { color: var(--red); animation: blink 0.6s infinite; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--red);
    text-shadow: 0 0 30px var(--red-glow);
    line-height: 1;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 2px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--red-border);
}

.hero-actions { margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 10px; }

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

.hero-links a {
    color: var(--muted);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-links a:hover { color: var(--red); transform: translateY(-3px); text-shadow: 0 0 15px var(--red-glow); }

.hero-hud {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1.5rem;
    border: 1px solid var(--red-border);
    background: var(--card-bg2);
    min-width: 250px;
}

.hud-item { display: flex; justify-content: space-between; gap: 2rem; font-size: 0.75rem; }
.hud-label { color: var(--muted); letter-spacing: 2px; }
.hud-value { color: var(--light-muted); }

/* =====================
   GLITCH
===================== */
.glitch { position: relative; }
.glitch:hover { animation: glitch-hard 0.3s ease; }

@keyframes glitch-hard {
    0% { text-shadow: 3px 0 var(--red), -3px 0 cyan; transform: translate(0); }
    20% { text-shadow: -3px 0 var(--red), 3px 0 cyan; transform: translate(-2px, 1px); }
    40% { text-shadow: 3px 2px var(--red), -3px -2px cyan; transform: translate(2px, -1px); }
    60% { text-shadow: -2px 0 var(--red), 2px 0 cyan; transform: translate(-1px, 2px); }
    80% { text-shadow: 2px -1px var(--red), -2px 1px cyan; transform: translate(1px, -2px); }
    100% { text-shadow: 0 0 30px rgba(255,0,0,0.3); transform: translate(0); }
}

/* =====================
   BUTTONS
===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--red-border);
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--red);
    color: #000;
    border-color: var(--red);
    box-shadow: 0 0 30px var(--red-dim), 0 0 60px rgba(255,0,34,0.1);
    transform: translateY(-2px);
}

.btn.primary { background: var(--red); color: #000; border-color: var(--red); }
.btn.primary:hover { box-shadow: 0 0 40px var(--red-glow); }

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--red-border);
    color: var(--red);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-small:hover { background: var(--red); color: #000; border-color: var(--red); }

/* =====================
   SECTIONS
===================== */
main { padding: 40px 8%; }
section { margin-bottom: 100px; }

section > h2 {
    color: var(--red);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

section > h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--red-border), transparent);
}

.section-note {
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    padding: 12px 18px;
    background: var(--card-bg2);
    border-left: 2px solid var(--red);
}

/* =====================
   PROFILE
===================== */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-text p {
    color: var(--light-muted);
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

.quote-block {
    border-left: 3px solid var(--red);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--red-dim);
}

.quote-block p {
    color: var(--white) !important;
    font-style: italic;
    font-size: 0.9rem !important;
}

.profile-terminal {
    background: var(--card-bg2);
    border: 1px solid var(--red-border);
    overflow: hidden;
}

.terminal-header {
    background: rgba(20, 20, 20, 0.95);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }
.terminal-title { margin-left: auto; color: var(--muted); font-size: 0.7rem; letter-spacing: 1px; }

.terminal-body {
    padding: 20px;
    font-size: 0.75rem;
    line-height: 1.5;
}

.t-green { color: var(--green); }
.t-blue { color: var(--blue); }
.t-red { color: var(--red); }
.blink-cursor { animation: blink 0.8s infinite; }

/* =====================
   ARSENAL
===================== */
.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.arsenal-card {
    background: var(--card-bg);
    border: 1px solid var(--red-border);
    padding: 2rem 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.arsenal-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--red), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.arsenal-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255,0,34,0.1);
}

.arsenal-card:hover::after { opacity: 1; }

.arsenal-icon {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--red-glow);
}

.arsenal-card h3 {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--red);
    margin-bottom: 1.2rem;
}

.arsenal-card ul {
    list-style: none;
}

.arsenal-card li {
    color: var(--light-muted);
    font-size: 0.78rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
}

.arsenal-card li:hover { color: var(--white); }
.arsenal-card li:last-child { border-bottom: none; }

/* =====================
   PROJECTS
===================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
}

.project-card[data-severity="critical"]::before { background: linear-gradient(to right, var(--red), transparent); }
.project-card[data-severity="high"]::before { background: linear-gradient(to right, var(--orange), transparent); }
.project-card[data-severity="medium"]::before { background: linear-gradient(to right, var(--yellow), transparent); }
.project-card[data-severity="low"]::before { background: linear-gradient(to right, var(--green), transparent); }

.project-card:hover {
    border-color: var(--red-border);
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5), 0 0 30px var(--red-dim);
}

.severity-badge {
    position: absolute;
    top: 12px; right: 12px;
    padding: 3px 10px;
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.severity-badge.critical { background: rgba(255,0,34,0.15); color: var(--red); border: 1px solid rgba(255,0,34,0.3); }
.severity-badge.high { background: rgba(255,102,0,0.15); color: var(--orange); border: 1px solid rgba(255,102,0,0.3); }
.severity-badge.medium { background: rgba(255,204,0,0.15); color: var(--yellow); border: 1px solid rgba(255,204,0,0.3); }
.severity-badge.low { background: rgba(0,255,65,0.15); color: var(--green); border: 1px solid rgba(0,255,65,0.3); }

.project-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.project-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; letter-spacing: 1px; }
.project-card p { color: var(--muted); font-size: 0.82rem; margin-bottom: 1rem; font-family: 'Inter', sans-serif; line-height: 1.6; }

.project-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.5rem; }
.project-tags span {
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    padding: 3px 10px;
    font-size: 0.65rem;
    border: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.flagship-card {
    background: var(--card-bg2);
    border: 1px solid var(--red);
    padding: 2.5rem;
    position: relative;
    margin-top: 1rem;
    box-shadow: 0 0 40px var(--red-dim);
}

.flagship-badge {
    position: absolute;
    top: -12px; left: 30px;
    background: var(--bg);
    padding: 4px 16px;
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid var(--red);
}

.flagship-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.flagship-card p { color: var(--light-muted); font-family: 'Inter', sans-serif; font-size: 0.88rem; margin-bottom: 1rem; }

/* =====================
   TRAINING
===================== */
.edu-card {
    background: var(--card-bg);
    border-left: 4px solid var(--red);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.edu-badge {
    position: absolute;
    top: 12px; right: 20px;
    background: rgba(0,255,65,0.1);
    color: var(--green);
    padding: 3px 12px;
    font-size: 0.6rem;
    letter-spacing: 2px;
    border: 1px solid rgba(0,255,65,0.3);
}

.edu-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.edu-meta { color: var(--muted); font-size: 0.8rem; }

.chain-title {
    color: var(--red);
    font-size: 0.95rem;
    margin: 2.5rem 0 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.chain-year { margin-bottom: 2rem; }

.chain-year > h4 {
    color: var(--light-muted);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-badge {
    background: var(--red);
    color: #000;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 800;
}

.chain-modules { display: flex; flex-direction: column; gap: 6px; }

.module-card {
    background: var(--card-bg2);
    border-left: 3px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--light-muted);
    transition: all 0.3s ease;
}

.module-header:hover { color: var(--white); }

.module-chevron {
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--muted);
    transition: transform 0.3s ease;
}

.module-card.open .module-chevron { transform: rotate(180deg); color: var(--red); }
.module-card.open { border-left-color: var(--red); }
.module-card.highlight { border-left-color: var(--red); background: var(--red-dim); }

.module-num { color: var(--red); font-weight: 700; font-size: 0.7rem; opacity: 0.5; min-width: 24px; }

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 16px;
}

.module-card.open .module-content {
    max-height: 300px;
    padding: 0 16px 16px 50px;
}

.module-content p {
    color: var(--muted);
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* =====================
   CERTIFICATIONS
===================== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-card:hover { border-color: var(--red-border); transform: translateY(-3px); }
.cert-card i { font-size: 1.8rem; color: var(--red); margin-bottom: 0.8rem; }
.cert-card h4 { font-size: 0.8rem; margin-bottom: 0.8rem; color: var(--white); letter-spacing: 1px; }

.cert-status {
    font-size: 0.6rem;
    padding: 3px 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

.cert-status.complete { background: rgba(0,255,65,0.1); color: var(--green); border: 1px solid rgba(0,255,65,0.2); }
.cert-status.progress { background: rgba(255,204,0,0.1); color: var(--yellow); border: 1px solid rgba(255,204,0,0.2); }

/* =====================
   INTEL REPORTS
===================== */
.intel-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.intel-card:hover { border-color: var(--red-border); }

.intel-classification {
    position: absolute;
    top: 0; right: 0;
    background: var(--red);
    color: #000;
    padding: 4px 14px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.intel-card h3 {
    padding: 18px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-muted);
    transition: color 0.3s;
}

.intel-card:hover h3 { color: var(--white); }

.toggle-icon { color: var(--red); font-size: 0.7rem; transition: transform 0.3s; }
.intel-card.open .toggle-icon { transform: rotate(90deg); }

.intel-card .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.intel-card.open .content { max-height: 500px; padding: 0 20px 20px; }

.intel-card .content p {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.report-download {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.report-note {
    color: var(--muted);
    font-size: 0.7rem;
    font-style: italic;
}

/* =====================
   LANGUAGES
===================== */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lang-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.lang-card:hover { border-color: var(--red-border); transform: translateY(-3px); }
.lang-flag { font-size: 2.5rem; }
.lang-card h4 { margin: 0.5rem 0; font-size: 0.9rem; letter-spacing: 2px; }

.lang-bar {
    width: 100%; height: 3px;
    background: rgba(255,255,255,0.05);
    margin: 0.8rem 0;
    overflow: hidden;
}

.lang-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--red), var(--red-bright));
    transition: width 1.5s ease;
}

.lang-level { color: var(--muted); font-size: 0.65rem; letter-spacing: 3px; }

/* =====================
   CONTACT
===================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 10px 40px var(--red-dim); }
.contact-card i { font-size: 2rem; color: var(--red); margin-bottom: 1rem; display: block; }
.contact-card h4 { font-size: 0.7rem; letter-spacing: 3px; color: var(--muted); margin-bottom: 0.8rem; }
.contact-card a { color: var(--white); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.contact-card a:hover { color: var(--red); }

/* =====================
   BACK TO TOP
===================== */
.back-to-top {
    position: fixed;
    bottom: 25px; right: 25px;
    background: var(--red);
    color: #000;
    border: none;
    width: 42px; height: 42px;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); box-shadow: 0 5px 25px var(--red-glow); }

/* =====================
   FOOTER
===================== */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--red-border);
}

.footer-logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 4px; margin-bottom: 0.5rem; }
footer p { color: var(--muted); font-size: 0.75rem; letter-spacing: 1px; }

.footer-links {
    margin-top: 1rem;
    display: flex; justify-content: center; gap: 2rem;
}

.footer-links a { color: var(--muted); font-size: 1.2rem; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--red); }

/* =====================
   TERMINAL BOOT
===================== */
#terminal {
    position: fixed;
    inset: 0;
    background: #000;
    color: var(--red);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 30px;
    z-index: 9999;
    overflow: hidden;
}

#terminal-text { white-space: pre-wrap; line-height: 1.5; }
#terminal-text::after { content: "█"; animation: blink 0.6s infinite; }
@keyframes blink { 50% { opacity: 0; } }

#terminal.fade-out { animation: terminalFade 0.8s ease forwards; }
@keyframes terminalFade { to { opacity: 0; visibility: hidden; } }

/* =====================
   ANIMATIONS
===================== */
.animate { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1024px) {
    .arsenal-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .hero { flex-direction: column; }
    .hero-hud { flex-direction: row; flex-wrap: wrap; min-width: auto; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 65px; left: -100%;
        flex-direction: column;
        background: rgba(5,5,5,0.98);
        width: 100%; padding: 2rem;
        gap: 1.5rem; transition: left 0.3s ease;
        border-bottom: 1px solid var(--red);
    }
    .nav-menu.active { left: 0; }
    .hero { padding: 100px 5% 60px; }
    .hero h1 { font-size: 2.5rem; }
    .surname { font-size: 1.8rem; letter-spacing: 6px; }
    main { padding: 30px 5%; }
    .arsenal-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .lang-grid { grid-template-columns: 1fr; }
    .hero-hud { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .surname { font-size: 1.4rem; }
    section > h2 { font-size: 1.1rem; letter-spacing: 2px; }
}

/* =====================
   CINEMATIC INTRO
===================== */
#cinematic-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.intro-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,0,34,0.08) 0%, #000 70%);
}

.intro-glitch-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,0,34,0.03) 3px, rgba(255,0,34,0.03) 6px);
    animation: glitch-scroll 4s linear infinite;
}

@keyframes glitch-scroll { 0%{transform:translateY(0)} 100%{transform:translateY(6px)} }

.intro-content {
    text-align: center;
    z-index: 1;
    animation: intro-fade-in 1s ease;
}

@keyframes intro-fade-in { 0%{opacity:0;transform:scale(0.95)} 100%{opacity:1;transform:scale(1)} }

.intro-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 10px;
    color: var(--white);
    text-shadow: 0 0 60px rgba(255,0,34,0.4);
    margin-bottom: 1rem;
}

.intro-bracket { color: var(--muted); font-weight: 400; }
.intro-accent { color: var(--red); }

.intro-tagline {
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: var(--muted);
    margin-bottom: 2rem;
}

.intro-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.intro-bar-fill {
    height: 100%;
    width: 0;
    background: var(--red);
    animation: bar-load 2.5s ease forwards;
}

@keyframes bar-load { 0%{width:0} 100%{width:100%} }

.intro-status {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--red);
    animation: blink 1s infinite;
}

#cinematic-intro.fade-out {
    animation: cinema-fade 1s ease forwards;
}

@keyframes cinema-fade {
    0% { opacity: 1; }
    70% { opacity: 1; filter: brightness(3); }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* =====================
   ABOUT ME MODAL
===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg2);
    border: 1px solid var(--red-border);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: 1px solid var(--red-border);
    color: var(--red);
    width: 36px; height: 36px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover { background: var(--red); color: #000; }

.modal-inner {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
}

.modal-photo {
    background: var(--card-bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--red);
    opacity: 0.3;
    width: 100%;
    height: 100%;
}

.modal-bio {
    padding: 2.5rem;
}

.modal-bio h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.modal-role {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.modal-divider {
    width: 40px;
    height: 2px;
    background: var(--red);
    margin-bottom: 1.2rem;
}

.modal-desc {
    color: var(--light-muted);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1.2rem 0;
}

.modal-tags span {
    background: var(--red-dim);
    color: var(--red);
    padding: 4px 12px;
    font-size: 0.65rem;
    letter-spacing: 1px;
    border: 1px solid var(--red-border);
}

.modal-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.modal-links a {
    color: var(--muted);
    font-size: 1.3rem;
    transition: all 0.3s;
}

.modal-links a:hover { color: var(--red); }

/* =====================
   MODULE CARDS (FIXED)
===================== */
.module-card {
    background: var(--card-bg2);
    border-left: 3px solid rgba(255,255,255,0.05);
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.module-card:hover { border-left-color: rgba(255,0,34,0.4); }
.module-card.open { border-left-color: var(--red); background: rgba(255,0,34,0.03); }
.module-card.highlight { border-left-color: var(--red); background: var(--red-dim); }

.mod-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 0.82rem;
    color: var(--light-muted);
    transition: color 0.3s;
}

.mod-head:hover { color: var(--white); }

.mod-num {
    color: var(--red);
    font-weight: 700;
    font-size: 0.7rem;
    opacity: 0.5;
    min-width: 22px;
}

.mod-title { flex: 1; }

.mod-arrow {
    font-size: 0.6rem;
    color: var(--muted);
    transition: transform 0.3s ease, color 0.3s;
}

.module-card.open .mod-arrow {
    transform: rotate(90deg);
    color: var(--red);
}

.mod-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.module-card.open .mod-body {
    max-height: 250px;
}

.mod-body p {
    padding: 0 18px 16px 52px;
    color: var(--muted);
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* =====================
   INTEL CARDS (FIXED)
===================== */
.intel-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.intel-card:hover { border-color: var(--red-border); }
.intel-card.open { border-color: var(--red-border); }

.intel-class {
    position: absolute;
    top: 0; right: 0;
    background: var(--red);
    color: #000;
    padding: 4px 12px;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.intel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--light-muted);
    transition: color 0.3s;
}

.intel-card:hover .intel-head { color: var(--white); }

.intel-arrow {
    font-size: 0.6rem;
    color: var(--red);
    transition: transform 0.3s;
}

.intel-card.open .intel-arrow { transform: rotate(90deg); }

.intel-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.intel-card.open .intel-body { max-height: 400px; }

.intel-body p {
    padding: 0 20px 12px;
    color: var(--muted);
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

.intel-body .project-tags { padding: 0 20px 12px; }

.report-dl {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.report-note {
    color: var(--muted);
    font-size: 0.65rem;
    font-style: italic;
}

/* =====================
   RESPONSIVE MODAL
===================== */
@media (max-width: 768px) {
    .modal-inner { grid-template-columns: 1fr; }
    .modal-photo { min-height: 200px; }
    .intro-logo { font-size: 3rem; }
}

/* =====================
   HERO BACKGROUND IMAGE
===================== */
.hero-bg-image {
    position: fixed;
    inset: 0;
    background: url('assets/img/network-bg.jpg') center center / cover no-repeat;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

/* =====================
   CINEMATIC INTRO — FINGERPRINT SCANNER
===================== */
.intro-fingerprint {
    position: relative;
    width: 180px;
    height: 260px;
    margin: 0 auto 2rem;
    overflow: hidden;
    opacity: 0;
    animation: fp-appear 0.8s 0.3s ease forwards;
}

@keyframes fp-appear {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.intro-fingerprint img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255,0,34,0.5));
}

.scan-line-anim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--red), transparent);
    box-shadow: 0 0 15px var(--red), 0 0 40px rgba(255,0,34,0.3);
    animation: scan-sweep 1.8s ease-in-out infinite;
}

@keyframes scan-sweep {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.intro-scan-text {
    font-size: 0.6rem;
    letter-spacing: 5px;
    color: var(--green);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: scan-text-in 0.5s 1s ease forwards;
}

@keyframes scan-text-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.intro-logo {
    opacity: 0;
    animation: logo-in 0.8s 1.8s ease forwards;
}

@keyframes logo-in {
    0% { opacity: 0; transform: translateY(10px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.intro-tagline {
    opacity: 0;
    animation: tag-in 0.6s 2.2s ease forwards;
}

@keyframes tag-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.intro-bar {
    opacity: 0;
    animation: bar-in 0.3s 2.4s ease forwards;
}

@keyframes bar-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.intro-bar-fill {
    animation: bar-load 1.5s 2.5s ease forwards;
}

.intro-status {
    opacity: 0;
    color: var(--green);
    animation: status-in 0.5s 3.8s ease forwards;
}

@keyframes status-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Override old intro-status blink - make it solid green when verified */
#cinematic-intro .intro-status {
    animation: status-in 0.5s 3.8s ease forwards;
}

/* =====================
   PROFILE SECTION — HACKER AVATAR ACCENT
===================== */
.profile-grid::before {
    content: '';
    display: none;
}

/* =====================
   MODAL PHOTO — HACKER AVATAR STYLING
===================== */
.modal-photo {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    overflow: hidden;
    position: relative;
}

.modal-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 40%);
    pointer-events: none;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

/* =====================
   RESPONSIVE INTRO FINGERPRINT
===================== */
@media (max-width: 768px) {
    .intro-fingerprint {
        width: 130px;
        height: 190px;
    }
    .intro-logo { font-size: 3rem !important; }
}

/* =====================
   PROFILE AVATAR CARD
===================== */
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-avatar {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 320px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--red-border);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
    transition: all 0.5s ease;
}

.profile-avatar:hover img {
    filter: brightness(1) contrast(1.15);
    transform: scale(1.03);
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    justify-content: center;
}

.avatar-label {
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--red);
    font-weight: 700;
    text-shadow: 0 0 10px var(--red-glow);
}

/* =====================
   MODAL PHOTO — REAL PROFILE PIC
===================== */
.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
