:root {
    --bg-primary: #020408;
    /* Deeper Blue-Black */
    --bg-secondary: #0a0f18;
    /* Dark Navy */
    --bg-card: rgba(13, 20, 32, 0.7);
    /* Translucent Navy */
    --text-primary: #e6edf3;
    --text-secondary: #7d8590;
    --accent-primary: #00ff41;
    /* Hacker Green (kept for contrast) */
    --accent-secondary: #00e5ff;
    /* Parrot Cyan */
    --accent-blue: #0ea5e9;
    /* Blue Team Sky Blue */
    --accent-gradient: linear-gradient(135deg, #00e5ff 0%, #0ea5e9 100%);
    --border-color: #30363d;
    --window-border: #444c56;
    --terminal-header: #161b22;
    --crt-opacity: 0.02;
    /* More subtle */

    --font-heading: 'JetBrains Mono', 'Fira Code', monospace;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Parrot Top Panel */
.parrot-top-panel {
    height: 32px;
    background: #000;
    border-bottom: 2px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.2rem;
    font-size: 0.85rem;
    color: #e0e0e0;
    font-family: var(--font-mono);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
}

.panel-left,
.panel-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.panel-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.panel-item:hover {
    color: var(--accent-primary);
}

.panel-clock {
    color: var(--accent-primary);
    font-weight: bold;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    border-right: 1px solid #333;
    padding-right: 15px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 4px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    color: var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-primary);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

.lang-switcher .sep {
    color: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Boot Sequence Overlay */
#boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    padding: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    /* New logs at bottom */
    pointer-events: all;
    transition: opacity 1s ease-out;
}

#boot-logs {
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: pre-wrap;
}

.boot-line {
    margin-bottom: 2px;
}

.boot-line .timestamp {
    color: #555;
    margin-right: 8px;
}

.boot-line .status-ok {
    color: var(--accent-primary);
    font-weight: bold;
}

.boot-line .status-info {
    color: var(--accent-secondary);
}

/* CRT/Scanline Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg,
            rgba(255, 0, 0, 0.03),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--crt-opacity);
}

.crt-overlay::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% {
        opacity: 0.27861;
    }

    5% {
        opacity: 0.34769;
    }

    10% {
        opacity: 0.23604;
    }

    /* ... shortened for brevity but I will include the full logic in the next steps if needed ... */
    100% {
        opacity: 0.24387;
    }
}

body, .distro-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Matrix-like subtle grid */
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--window-border);
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.btn-primary:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
}

.btn-secondary:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    background: rgba(0, 229, 255, 0.05);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    padding-left: 50px;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #000;
    border: 1px solid var(--accent-primary);
    z-index: 1;
    transform: rotate(45deg);
}

.job-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.company {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.job-details li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: #999;
}

.job-details li::before {
    content: '#';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.tech-tags span {
    display: inline-block;
    font-size: 0.75rem;
    background: #111;
    padding: 0.2rem 0.6rem;
    border: 1px solid #222;
    border-radius: 2px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: #777;
    font-family: var(--font-mono);
}

/* Window Frame */
.window-frame {
    margin: 60px auto 40px;
    max-width: 1300px;
    width: 90%;
    background: var(--bg-primary);
    border: 1px solid var(--window-border);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 65, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 100;
    /* Above desktop icons */
    margin-left: 100px;
    /* Force space for desktop icons */
    margin-right: 20px;
    width: auto;
    max-width: calc(100% - 120px);
}

.window-titlebar {
    height: 35px;
    background: var(--terminal-header);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    border-bottom: 1px solid #222;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background: #ff5f56;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #27c93f;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #999;
}

.window-content {
    flex: 1;
    overflow-y: auto;
    background: rgba(5, 5, 5, 0.95);
    position: relative;
}

/* Scanline Effect Overlay */
.window-content::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    z-index: 10;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

/* Window Navigation */
.window-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background: var(--terminal-header);
    border-bottom: 1px solid #222;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links li a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
}


.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}



/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(0, 255, 65, 0.05) 0%, transparent 70%);
}

.neofetch-container {
    display: flex;
    gap: 2rem;
    background: rgba(10, 15, 24, 0.1);
    padding: 2.5rem;
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    font-family: var(--font-mono);
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    overflow: hidden;
    position: relative;
}

.neofetch-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
}

.neofetch-logo pre {
    color: var(--accent-secondary);
    font-size: 0.75rem;
    /* Reduced to prevent clipping */
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.neofetch-info {
    flex: 1;
}

.neofetch-user {
    color: var(--accent-primary);
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.neofetch-user span {
    color: var(--text-primary);
}

.neofetch-sep {
    color: #333;
    margin-bottom: 0.8rem;
    letter-spacing: -2px;
}

.neofetch-info p {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.neofetch-info .label {
    color: var(--accent-primary);
    font-weight: bold;
    margin-right: 10px;
}

.neofetch-colors {
    display: flex;
    gap: 6px;
    margin: 1.8rem 0;
}

.neofetch-colors span {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-0 {
    background: #073642;
}

.bg-1 {
    background: #dc322f;
}

.bg-2 {
    background: #859900;
}

.bg-3 {
    background: #b58900;
}

.bg-4 {
    background: #268bd2;
}

.bg-5 {
    background: #d33682;
}

.bg-6 {
    background: #2aa198;
}

.bg-7 {
    background: #eee8d5;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

/* Conky style widgets */
.conky-widget {
    position: absolute;
    /* Changed from fixed to absolute */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.05);
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 1.2rem;
    z-index: 50;
    /* Background level - behind the window */
    pointer-events: none;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0.5;
    /* Even more subtle */
}

.conky-top-right {
    top: 60px;
    right: 25px;
    width: 220px;
}

.conky-bottom-right {
    bottom: 25px;
    right: 25px;
    width: 280px;
}

.conky-header {
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    letter-spacing: 1px;
}

.conky-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.stat-bar {
    width: 100%;
    height: 5px;
    background: #1a1a1a;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.stat-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

@media (max-width: 900px) {
    .neofetch-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        margin: 0 1rem;
    }

    .neofetch-logo {
        display: none;
    }

    .conky-widget {
        display: none;
    }
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    /* Changed from fixed to absolute */
    top: 80px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 50;
    /* Below window */
    width: 60px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: 60px;
    transition: var(--transition);
}

.desktop-icon i {
    color: var(--accent-secondary);
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.4));
    width: 32px;
    height: 32px;
}

.desktop-icon span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 2px;
    margin-top: 4px;
}

.desktop-icon:hover {
    transform: scale(1.1);
}

.desktop-icon:hover span {
    background: var(--accent-primary);
    color: #000;
}

@media (max-width: 768px) {
    .parrot-top-panel {
        padding: 0 0.75rem;
    }

    .panel-left {
        gap: 0.75rem;
    }

    .panel-left .panel-item:not(:first-child),
    .panel-right i:not(:last-child),
    .siem-live {
        display: none;
    }

    .lang-switcher {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }

    .window-frame {
        margin: 60px 0 20px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .desktop-icons {
        display: none;
    }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.2);
}

.project-card .card-header {
    background: #1a1a1a;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.proj-type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.proj-type-security { color: var(--accent-secondary); border: 1px solid var(--accent-secondary); }
.proj-type-ops { color: #888; border: 1px solid #444; }
.proj-type-fullstack { color: var(--accent-primary); border: 1px solid var(--accent-primary); }
.proj-type-auto { color: #ffbd2e; border: 1px solid #ffbd2e; }

.project-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.project-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.project-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.feature-list {
    margin: 1.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #888;
}

.feature-list li::before {
    content: '>';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

.tech-stack-mini {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack-mini span {
    font-size: 0.7rem;
    background: #111;
    color: #666;
    padding: 0.2rem 0.6rem;
    border: 1px solid #222;
    border-radius: 2px;
}

.card-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.link-btn:hover {
    text-shadow: 0 0 5px var(--accent-primary);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(13, 13, 13, 0.5);
    padding: 1.5rem;
    border: 1px solid #222;
    border-radius: 4px;
}

.skill-category h3 {
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--accent-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #222;
}

.skill-category li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #999;
}

.badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 2px;
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

.badge.highlight {
    background: var(--accent-primary);
    color: #000;
}

/* Certifications */
.cert-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.1);
}

.cert-img-container {
    width: 100%;
    height: 150px;
    background: #050505;
    border-radius: 2px;
    margin-bottom: 1rem;
    border: 1px solid #1a1a1a;
    overflow: hidden;
}

.cert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.cert-card:hover .cert-img-container img {
    transform: scale(1.05);
}

.cert-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 0.25rem;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
    border-radius: 4px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    transition: var(--transition);
}

.step:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

/* Section Title Tweak */
.section-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    padding-top: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background: var(--accent-primary);
    opacity: 0.3;
}

.section-title::before {
    content: '> ';
    color: var(--accent-primary);
    font-weight: bold;
}

/* Canvas Background */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Form Styles */
/* Contact Terminal Section */
.contact-terminal {
    max-width: 800px;
    margin: 3rem auto;
    background: #050505;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: var(--font-mono);
}

.contact-terminal .terminal-header {
    background: #1a1a1a;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-title {
    font-size: 0.8rem;
    color: #888;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.t-red {
    background: #ff5f56;
}

.t-yellow {
    background: #ffbd2e;
}

.t-green {
    background: #27c93f;
}

.contact-terminal .terminal-body {
    padding: 2.5rem;
    min-height: 300px;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.t-prompt {
    color: var(--accent-primary);
    font-weight: bold;
}

.t-path {
    color: var(--accent-secondary);
}

.terminal-output {
    padding-left: 10px;
    margin-bottom: 20px;
}

.t-info {
    color: #888;
}

.t-success {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.contact-links {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.t-label {
    color: #555;
    min-width: 80px;
}

.t-value {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a.t-value:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.t-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--accent-primary);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    from,
    to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .window-nav {
        justify-content: space-between;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateY(0);
        display: flex;
        /* Ensure it shows when active */
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -9px;
    }

    .skills-grid {
        gap: 2rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 5px;
    }

    .contact-terminal .terminal-body {
        padding: 1.5rem;
    }
}

/* Footer Section */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #222;
    color: #444;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: #050505;
}

.copyright {
    display: block;
    margin-top: 1rem;
}

.copyright::before {
    content: '[';
}

.copyright::after {
    content: ']';
}

/* Mobile Menu Button (Base) */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 0.5rem;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    transform: translateY(20px);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--accent-secondary);
    transform: translateY(-5px);
}

/* ================================================
   SIEM / SOC AESTHETIC LAYER
   ================================================ */

:root {
    --siem-critical: #ff3333;
    --siem-high: #ff6600;
    --siem-medium: #ffaa00;
    --siem-low: #00ff41;
    --siem-info: #00e5ff;
}

/* Live pulsing dot */
.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: live-pulse 2s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.6);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 5px rgba(0, 255, 65, 0);
    }
}

/* SIEM Live indicator — top panel */
.siem-live {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.25);
    padding: 1px 7px;
    border-radius: 2px;
    background: rgba(0, 255, 65, 0.05);
}

/* Project type badges and status variants are already defined above. */

/* Skill badge variants */
.badge-studying {
    color: var(--siem-medium) !important;
    border-color: var(--siem-medium) !important;
    box-shadow: 0 0 5px rgba(255, 170, 0, 0.2) !important;
}

.badge-training {
    color: var(--siem-info) !important;
    border-color: var(--siem-info) !important;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.2) !important;
}

/* SOC log stream */
.soc-log {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 1.5rem;
}

.log-entry {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 5px;
    line-height: 1.5;
}

.log-ts {
    color: #3a3a3a;
    margin-right: 6px;
}

.log-level-ok {
    color: var(--accent-primary);
    font-weight: bold;
    margin-right: 6px;
}

.log-level-info {
    color: var(--accent-secondary);
    margin-right: 6px;
}

.log-level-warn {
    color: var(--siem-medium);
    margin-right: 6px;
}

.profile-quote {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.2rem;
    font-style: italic;
    line-height: 1.7;
}

/* Analyst profile card (About section) */
.analyst-card {
    display: inline-flex;
    flex-direction: column;
    gap: 0.45rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.25);
    border-left: 4px solid var(--accent-primary);
    padding: 0.9rem 1.3rem;
    border-radius: 2px;
    box-shadow: -5px 0 15px rgba(0, 255, 65, 0.05);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 1.8rem;
}

.analyst-row {
    display: flex;
    gap: 1.2rem;
}

.analyst-field {
    color: #444;
    min-width: 95px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analyst-val {
    color: var(--text-secondary);
}

.analyst-val-green {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Neofetch threat level colors */
.threat-low {
    color: var(--siem-low);
}

.threat-med {
    color: var(--siem-medium);
}

.threat-high {
    color: var(--siem-critical);
}

/* SOC matrix label above skills */
.soc-matrix-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}
