/* --- Cyber Sentinel Stylesheet --- */

/* CSS Variables */
:root {
    --bg-darker: #f0f2f5;
    --bg-dark: #e4e7eb;
    --bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(245, 248, 255, 0.45) 100%);
    --bg-card-header: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 245, 255, 0.60) 100%);
    --border-color: rgba(255, 255, 255, 0.75);
    --border-glow: rgba(0, 102, 255, 0.40);
    
    /* Accent Colors - High Contrast, Premium Hues */
    --cyber-cyan: #005ecb;       /* Premium cobalt blue */
    --cyber-green: #0d8a43;      /* Vibrant forest emerald */
    --cyber-orange: #e05300;     /* Rich deep orange */
    --cyber-purple: #8e24aa;     /* Elegant purple */
    --cyber-blue: #1565c0;       /* Royal blue */
    --text-primary: #0f172a;     /* Slate 900 - maximum dark readability */
    --text-muted: #334155;       /* Slate 700 - bold crisp secondary text */
    --bg-wash: rgba(244, 247, 250, 0.35); /* Subtle frosted wash letting background image show */
    --bg-footer: rgba(244, 247, 250, 0.9);
    
    /* TryHackMe Badge cards mapping */
    --bg-badge-card: rgba(0, 102, 255, 0.03);
    --border-badge-card: rgba(0, 102, 255, 0.08);
    
    /* Button Theme mapping */
    --btn-primary-bg: var(--cyber-cyan);
    --btn-primary-glow: rgba(0, 102, 255, 0.3);
    --btn-primary-text: #ffffff;
    --btn-small-bg: rgba(0, 102, 255, 0.04);
    --btn-small-hover-color: var(--cyber-cyan);
    --btn-small-hover-bg: rgba(0, 102, 255, 0.08);

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-curve: cubic-bezier(0.25, 0.8, 0.25, 1);

    /* New Theme Mappings */
    --cyber-accent-glow: rgba(0, 102, 255, 0.35);
    --scrollbar-thumb: rgba(0, 102, 255, 0.25);
    --scrollbar-thumb-hover: var(--cyber-cyan);
    --badge-bg: rgba(0, 102, 255, 0.08);
    --badge-border: rgba(0, 102, 255, 0.25);
    --scanline-color: rgba(0, 102, 255, 0.4);
    --canvas-opacity: 0.08;
    --tab-active-bg: rgba(0, 102, 255, 0.08);
    --tab-active-shadow: rgba(0, 102, 255, 0.35);
    --tech-tag-bg: rgba(0, 102, 255, 0.05);
    --tech-tag-border: rgba(0, 102, 255, 0.15);
    --bg-controls-outer: rgba(0, 102, 255, 0.03);
    --bg-controls-inner: rgba(255, 255, 255, 0.95);
    --filter-btn-border: rgba(0, 102, 255, 0.15);
    --filter-btn-active-bg: rgba(0, 102, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.95);
    --input-focus-glow: rgba(0, 102, 255, 0.15);
    --status-msg-bg: rgba(13, 138, 67, 0.08);
    --status-msg-border: rgba(13, 138, 67, 0.25);
    --tooltip-bg: rgba(240, 244, 248, 0.95);
    --tooltip-border: rgba(0, 102, 255, 0.15);
    --tooltip-text: #1e293b;
    --link-hover: #0052cc;
    --link-hover-shadow: rgba(0, 82, 204, 0.35);
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-darker: #0a0f0a;
    --bg-dark: #0f1a0f;
    --bg-card: rgba(10, 25, 10, 0.65);
    --bg-card-header: rgba(0, 20, 0, 0.6);
    --border-color: rgba(0, 255, 65, 0.12);
    --border-glow: rgba(0, 255, 65, 0.25);
    
    /* Accent Colors */
    --cyber-cyan: #00ff41;
    --cyber-green: #00ff41;
    --cyber-orange: #ff8c00;
    --cyber-purple: #bf5fff;
    --cyber-blue: #4dabff;
    --text-primary: #e0ffe0;
    --text-muted: #7a9f7a;
    --bg-wash: rgba(5, 10, 5, 0.65);
    --bg-footer: rgba(5, 10, 5, 0.9);
    
    /* TryHackMe Badge cards mapping */
    --bg-badge-card: rgba(10, 25, 10, 0.4);
    --border-badge-card: rgba(0, 255, 65, 0.06);
    
    /* Button Theme mapping */
    --btn-primary-bg: var(--cyber-green);
    --btn-primary-glow: rgba(0, 255, 65, 0.4);
    --btn-primary-text: #0a0f0a;
    --btn-small-bg: rgba(0, 20, 0, 0.5);
    --btn-small-hover-color: var(--cyber-green);
    --btn-small-hover-bg: rgba(0, 255, 65, 0.05);

    /* New Theme Mappings (Dark Mode) */
    --cyber-accent-glow: rgba(0, 255, 65, 0.6);
    --scrollbar-thumb: #1a3a1a;
    --scrollbar-thumb-hover: var(--cyber-green);
    --badge-bg: rgba(0, 255, 102, 0.1);
    --badge-border: rgba(0, 255, 102, 0.3);
    --scanline-color: rgba(0, 255, 65, 0.6);
    --canvas-opacity: 0.18;
    --tab-active-bg: rgba(0, 255, 65, 0.05);
    --tab-active-shadow: rgba(0, 255, 65, 0.4);
    --tech-tag-bg: rgba(0, 255, 65, 0.05);
    --tech-tag-border: rgba(0, 255, 65, 0.1);
    --bg-controls-outer: rgba(10, 25, 10, 0.5);
    --bg-controls-inner: rgba(10, 25, 10, 0.6);
    --filter-btn-border: rgba(0, 255, 65, 0.08);
    --filter-btn-active-bg: rgba(0, 255, 65, 0.06);
    --bg-input: rgba(10, 25, 10, 0.6);
    --input-focus-glow: rgba(0, 255, 65, 0.15);
    --status-msg-bg: rgba(0, 255, 102, 0.05);
    --status-msg-border: rgba(0, 255, 102, 0.2);
    --tooltip-bg: rgba(10, 15, 24, 0.9);
    --tooltip-border: rgba(255, 255, 255, 0.15);
    --tooltip-text: #e0ffe0;
    --link-hover: #80ffb0;
    --link-hover-shadow: rgba(0, 255, 65, 0.6);
}

/* Base Reset & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-darker);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Dual-Layer Pre-Rendered Background Crossfader */
.bg-crossfade-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 2.2s ease-in-out, transform 2.5s ease-in-out;
    z-index: -2;
    pointer-events: none;
    will-change: opacity, transform;
}

.bg-crossfade-layer.active-bg {
    opacity: 1;
    transform: scale(1);
}

/* Background Canvas */
#cyberCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: var(--canvas-opacity);
}

img, video, canvas, svg, iframe {
    max-width: 100%;
}

/* Typography Utility */
.font-mono {
    font-family: 'Fira Code', 'Share Tech Mono', monospace;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

a {
    color: var(--cyber-green);
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-curve);
}

a:hover {
    color: var(--link-hover);
    text-shadow: 0 0 12px var(--link-hover-shadow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    box-shadow: 0 0 10px var(--scrollbar-thumb-hover);
}

/* HUD Top Diagnostic Bar */
.hud-top-bar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(245, 248, 255, 0.48) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 2px 0 rgba(0, 50, 150, 0.05), 0 12px 30px rgba(0, 40, 120, 0.12);
}

.hud-bar-left, .hud-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-bar-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hud-diag-pill {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 6px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.hud-bg-btn {
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--cyber-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.hud-bg-btn:hover {
    background: var(--cyber-cyan);
    color: #ffffff;
}

.hud-bg-btn.paused {
    background: rgba(224, 83, 0, 0.1);
    border-color: var(--cyber-orange);
    color: var(--cyber-orange);
}

.hud-bg-btn.sfx-muted {
    background: rgba(255, 0, 85, 0.08);
    border-color: rgba(255, 0, 85, 0.3);
    color: #ff0055;
}

.hud-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyber-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.hud-logo .hud-sub {
    color: var(--text-primary);
}

.cyber-blink {
    animation: blink 1.5s infinite;
}

.hud-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover, .nav-item.active {
    color: var(--cyber-cyan);
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--border-color);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.online {
    background-color: var(--cyber-green);
    box-shadow: 0 0 8px var(--cyber-green);
}

.status-indicator.online::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--cyber-green);
    animation: radarPulse 2s infinite ease-out;
    pointer-events: none;
}

@keyframes radarPulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.status-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Container Layout */
.container {
    max-width: 1300px;
    width: 90%;
    margin: 40px auto 100px auto;
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Section styling with smooth SPA entrance transitions */
.hud-section {
    display: none;
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.hud-section.active-section {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: hudSectionEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hudSectionEnter {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    border-left: 4px solid var(--cyber-cyan);
    padding-left: 15px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 30px;
}

/* Cyber Cards (Ultra-Premium Liquid Glass with Iridescent Sheen & HUD Corner Brackets) */
.cyber-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 2px 0 rgba(0, 50, 150, 0.05), 0 20px 40px -10px rgba(0, 40, 120, 0.12), 0 0 20px rgba(0, 102, 255, 0.06);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, transform var(--transition-speed) var(--transition-curve);
}

/* Tactical HUD Corner Accent Brackets */
.cyber-card::before,
.cyber-card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    opacity: 0.35;
    z-index: 5;
}

.cyber-card::before {
    top: 0;
    left: 0;
    border-top: 2px solid var(--cyber-cyan);
    border-left: 2px solid var(--cyber-cyan);
    border-top-left-radius: 6px;
}

.cyber-card::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--cyber-cyan);
    border-right: 2px solid var(--cyber-cyan);
    border-bottom-right-radius: 6px;
}

.cyber-card:hover {
    border-color: var(--cyber-cyan);
    box-shadow: inset 0 2px 2px 0 rgba(255, 255, 255, 0.98), inset 0 -1.5px 3px 0 rgba(0, 50, 150, 0.08), 0 28px 55px -10px rgba(0, 60, 180, 0.18), 0 0 30px var(--cyber-accent-glow);
    transform: translateY(-5px) scale(1.006);
}

.cyber-card:hover::before,
.cyber-card:hover::after {
    opacity: 1;
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 8px var(--cyber-cyan);
}

.card-header {
    background: var(--bg-card-header);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 0.85rem;
    color: var(--cyber-cyan);
    font-weight: 600;
}

.card-controls {
    display: flex;
    gap: 6px;
}

.ctrl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ctrl-dot.red { background-color: #ff5f56; border: 0.5px solid #e0443e; }
.ctrl-dot.yellow { background-color: #ffbd2e; border: 0.5px solid #dfa123; }
.ctrl-dot.green { background-color: #27c93f; border: 0.5px solid #1a9c30; }

.card-body {
    padding: 30px;
}

/* About Grid & Hero Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.hero-card {
    display: flex;
    flex-direction: column;
}

.cyber-badge {
    display: inline-block;
    background: var(--badge-bg);
    color: var(--cyber-green);
    border: 1px solid var(--badge-border);
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.glitch-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 5px;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 85, 0.15),
                 -0.025em -0.05em 0 rgba(0, 255, 65, 0.15),
                 0.025em 0.05em 0 rgba(0, 102, 255, 0.15);
    animation: glitch 15s infinite;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0.8;
}

.glitch-title::before {
    left: 2px;
    text-shadow: -1px 0 var(--cyber-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -1px 0 var(--cyber-green);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.sub-headline {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cyber-cyan);
    margin-bottom: 25px;
}

.bio-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.cv-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cyber-btn.cv-btn {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 229, 255, 0.14) 100%);
    border: 1px solid rgba(0, 102, 255, 0.3);
    color: var(--text-primary) !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 8px;
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.9), 0 6px 20px rgba(0, 102, 255, 0.12);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-btn.cv-btn i {
    color: var(--cyber-cyan);
}

body.dark-mode .cyber-btn.cv-btn {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.18) 0%, rgba(0, 102, 255, 0.1) 100%);
    border: 1px solid rgba(0, 229, 255, 0.45);
    color: #00e5ff !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), 0 0 25px rgba(0, 229, 255, 0.25);
}

.cyber-btn.cv-btn:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.28) 0%, rgba(0, 102, 255, 0.2) 100%);
    border-color: var(--cyber-cyan);
    color: var(--cyber-cyan) !important;
    box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95), 0 8px 30px rgba(0, 229, 255, 0.35);
    transform: translateY(-2px);
}

.cv-verify-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    background: rgba(13, 138, 67, 0.12);
    border: 1px solid rgba(13, 138, 67, 0.35);
    border-radius: 6px;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-curve);
    border: 1px solid transparent;
}

.cyber-btn.primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 0 15px var(--btn-primary-glow);
}

.cyber-btn.primary:hover {
    background: transparent;
    color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    box-shadow: 0 0 20px var(--btn-primary-glow);
}

.cyber-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.cyber-btn.secondary:hover {
    color: var(--cyber-green);
    border-color: var(--cyber-green);
    box-shadow: 0 0 15px var(--border-glow);
}

.cyber-btn.small {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    background: var(--btn-small-bg);
    color: var(--text-primary);
}

.cyber-btn.small:hover:not(:disabled) {
    color: var(--btn-small-hover-color);
    border-color: var(--btn-small-hover-color);
    background: var(--btn-small-hover-bg);
}

.cyber-btn.small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cyber-btn.block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Mini HUD Stats in Hero */
.mini-hud-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 245, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    padding: 16px 20px;
    gap: 15px;
    margin-top: 20px;
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95), 0 8px 22px -4px rgba(0, 40, 120, 0.08);
}

.hud-stat-box {
    display: flex;
    flex-direction: column;
}

.hud-stat-box .stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.hud-stat-box .stat-val {
    font-size: 0.9rem;
    font-weight: 600;
}

.text-cyan { color: var(--cyber-cyan) !important; }
.text-green { color: var(--cyber-green) !important; }
.text-orange { color: var(--cyber-orange) !important; }
.text-purple { color: var(--cyber-purple) !important; }
.text-blue { color: var(--cyber-blue) !important; }

.text-cyan-bg { background-color: var(--cyber-cyan) !important; }
.text-green-bg { background-color: var(--cyber-green) !important; }
.text-orange-bg { background-color: var(--cyber-orange) !important; }
.text-purple-bg { background-color: var(--cyber-purple) !important; }
.text-blue-bg { background-color: var(--cyber-blue) !important; }

/* Tactical Visual Feed Section */
.visual-feed-card {
    display: flex;
    flex-direction: column;
}

.visual-feed-body {
    background: transparent;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feed-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.feed-item {
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.feed-label {
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.feed-label .scanner-text {
    color: var(--cyber-green);
    margin-right: 5px;
}

.feed-img-wrapper {
    position: relative;
    width: fit-content;
    max-width: 100%;
    height: 380px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feed-img-wrapper:hover {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px var(--border-glow);
}

.cyber-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease, filter 0.3s ease;
    display: block;
}

.feed-img-wrapper:hover .cyber-img {
    opacity: 1;
    filter: brightness(1.1);
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(180deg, transparent 0%, var(--scanline-color) 50%, transparent 100%);
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
    animation: scan 4s linear infinite;
}

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


/* Skills (Technical Arsenal Grid & Flex Pill Layout) */
.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1100px) {
    .arsenal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .arsenal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.skills-flex-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px 18px;
    align-content: start;
}

.skill-pill-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 245, 255, 0.45) 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95), 0 4px 15px rgba(0, 40, 120, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

body.dark-mode .skill-pill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), 0 4px 15px rgba(0, 0, 0, 0.25);
}

.skill-pill-card:hover {
    border-color: var(--cyber-cyan);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.98), 0 6px 20px rgba(0, 229, 255, 0.18);
}

.skill-pill-icon {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.18);
    flex-shrink: 0;
}

.skill-pill-name {
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}

@media (max-width: 768px) {
    .skills-flex-grid {
        gap: 8px;
        padding: 12px 14px;
    }

    .skill-pill-card {
        padding: 6px 10px;
        font-size: 0.76rem;
    }

    .skill-pill-name {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Projects Grid & Equal Height Layout */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 16px;
    height: 100%;
}

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

.skill-item {
    margin-bottom: 20px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar .fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Operations Search & Filter Controls */
.ops-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ops-search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.ops-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    pointer-events: none;
}

#ops-search-input {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.70) 0%, rgba(240, 245, 255, 0.40) 100%);
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: 10px;
    padding: 10px 14px 10px 38px;
    font-family: inherit;
    font-size: 0.82rem;
    color: var(--text-primary);
    outline: none;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 4px 15px rgba(0, 40, 120, 0.04);
    transition: all 0.25s ease;
}

#ops-search-input:focus {
    border-color: rgba(0, 102, 255, 0.5);
    box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 0 8px 20px rgba(0, 102, 255, 0.12);
}

.ops-filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ops-tag-btn {
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ops-tag-btn:hover, .ops-tag-btn.active {
    background: var(--cyber-cyan);
    color: #ffffff;
    border-color: var(--cyber-cyan);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

/* Operations Filter Container & Tag Buttons */
.ops-filter-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 25px;
}

.ops-filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ops-tag-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ops-tag-btn:hover, .ops-tag-btn.active {
    color: var(--cyber-cyan);
    border-color: var(--cyber-cyan);
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

/* Operations (Projects & Work Simulations) Tabs */
.ops-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.tab-btn:hover, .tab-btn.active {
    color: var(--cyber-green);
    border-color: var(--cyber-green);
    background: var(--tab-active-bg);
    text-shadow: 0 0 5px var(--tab-active-shadow);
}

.ops-content {
    display: none;
}

.ops-content.active-content {
    display: block;
}

.github-telemetry-card {
    margin-top: 25px;
}

/* Tab 1: Project Cards Grid */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.70) 0%, rgba(240, 245, 255, 0.40) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.9), 0 12px 30px -5px rgba(0, 40, 120, 0.08);
    transition: all var(--transition-speed) ease;
}

.project-card:hover {
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95), 0 18px 40px -5px rgba(0, 102, 255, 0.15);
    transform: translateY(-4px);
}

.project-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 600;
}

.project-id {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    font-size: 0.7rem;
    background: var(--tech-tag-bg);
    color: var(--text-muted);
    border: 1px solid var(--tech-tag-border);
    padding: 3px 8px;
    border-radius: 3px;
}

.project-actions {
    display: flex;
}

/* Tab 2: Simulation Rows */
.simulations-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sim-row {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 245, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    padding: 20px 25px;
    display: grid;
    grid-template-columns: 180px 1fr 150px;
    gap: 25px;
    align-items: center;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 8px 25px -4px rgba(0, 40, 120, 0.08);
    transition: all var(--transition-speed) ease;
}

.sim-row:hover {
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 0 14px 30px -4px rgba(0, 102, 255, 0.15);
}

.sim-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sim-badge {
    font-size: 0.75rem;
    font-weight: bold;
}

.sim-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sim-details h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.sim-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sim-action {
    display: flex;
    justify-content: flex-end;
}

/* Section: Certifications Registry */

/* Certs Grid & Cards Layout */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .certs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .registry-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-buttons {
        justify-content: center;
    }
}

/* Glassmorphic Holographic Certificate Cards */
.cert-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(240, 245, 255, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    gap: 16px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.9), 0 8px 25px -4px rgba(0, 40, 120, 0.08);
    transform-style: preserve-3d;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease,
                opacity 0.35s ease;
    overflow: hidden;
}

body.dark-mode .cert-card {
    background: linear-gradient(135deg, rgba(8, 22, 12, 0.70) 0%, rgba(4, 14, 8, 0.50) 100%);
    border: 1px solid rgba(0, 255, 65, 0.12);
    box-shadow: inset 0 1px 1px 0 rgba(0, 255, 65, 0.08), 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Clean static border glow on hover */

/* Category-tailored hover accents */
.cert-card:hover {
    transform: translateY(-5px) scale(1.015);
}

.cert-card[data-tags*="security"]:hover {
    border-color: rgba(255, 106, 0, 0.5);
    box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95), 0 16px 36px -4px rgba(255, 106, 0, 0.22);
}

.cert-card[data-tags*="cloud"]:hover {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95), 0 16px 36px -4px rgba(0, 229, 255, 0.22);
}

.cert-card[data-tags*="ai"]:hover {
    border-color: rgba(170, 0, 255, 0.5);
    box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95), 0 16px 36px -4px rgba(170, 0, 255, 0.22);
}

.cert-card[data-tags*="microsoft"]:hover {
    border-color: rgba(0, 120, 212, 0.5);
    box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95), 0 16px 36px -4px rgba(0, 120, 212, 0.22);
}

body.dark-mode .cert-card[data-tags*="security"]:hover {
    border-color: rgba(255, 106, 0, 0.6);
    box-shadow: inset 0 1px 1px 0 rgba(255, 106, 0, 0.15), 0 16px 36px rgba(255, 106, 0, 0.25);
}

body.dark-mode .cert-card[data-tags*="cloud"]:hover {
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: inset 0 1px 1px 0 rgba(0, 229, 255, 0.15), 0 16px 36px rgba(0, 229, 255, 0.25);
}

body.dark-mode .cert-card[data-tags*="ai"]:hover {
    border-color: rgba(170, 0, 255, 0.6);
    box-shadow: inset 0 1px 1px 0 rgba(170, 0, 255, 0.15), 0 16px 36px rgba(170, 0, 255, 0.25);
}

body.dark-mode .cert-card[data-tags*="microsoft"]:hover {
    border-color: rgba(0, 255, 65, 0.6);
    box-shadow: inset 0 1px 1px 0 rgba(0, 255, 65, 0.15), 0 16px 36px rgba(0, 255, 65, 0.25);
}

/* Icon Micro-Animations */
.cert-icon {
    font-size: 1.75rem;
    display: flex;
    align-items: flex-start;
    margin-top: 2px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-icon i {
    display: inline-block;
}

.cert-card:hover .cert-icon {
    transform: scale(1.1);
}

.cert-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
    width: 100%;
}

.cert-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cert-card:hover .cert-info h4 {
    color: var(--cyber-cyan);
}

body.dark-mode .cert-card:hover .cert-info h4 {
    color: var(--cyber-green);
}

.cert-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.45;
}

.cert-link {
    font-size: 0.72rem;
    font-weight: 700;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cyber-cyan);
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

body.dark-mode .cert-link {
    color: var(--cyber-green);
}

.cert-link i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-card:hover .cert-link i, .cert-link:hover i {
    transform: translate(4px, -4px) scale(1.2);
}



/* TryHackMe Section */
.thm-dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.thm-profile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(240, 245, 255, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.9), 0 12px 30px -5px rgba(0, 40, 120, 0.08);
}

.thm-logo-div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.thm-logo-div .thm-symbol {
    color: var(--cyber-orange);
    font-weight: bold;
    font-size: 1.1rem;
}

.thm-profile h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.thm-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.thm-stat {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
    font-size: 0.85rem;
}

.thm-stat .lbl {
    color: var(--text-muted);
}

.thm-stat .val {
    font-weight: 600;
}

.thm-badges-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(240, 245, 255, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 30px;
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.9), 0 12px 30px -5px rgba(0, 40, 120, 0.08);
}

.thm-badges-panel h4 {
    font-size: 0.9rem;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.badge-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 245, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 15px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 6px 20px -4px rgba(0, 40, 120, 0.06);
    transition: all var(--transition-speed) ease;
}

.badge-card:hover {
    border-color: var(--cyber-orange);
    transform: translateY(-2px);
    box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 0 10px 25px -4px rgba(224, 83, 0, 0.15);
}

.badge-icon {
    font-size: 1.8rem;
    text-align: center;
}

.badge-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.badge-desc {
    font-size: 0.7rem;
    grid-column: 2;
}

/* Section: Secure Connection Bridge (Contact) */
.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px auto 0 auto;
}

.contact-info-card {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
}

.contact-methods-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-method-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 245, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 6px 20px -4px rgba(0, 40, 120, 0.06);
    transition: all 0.25s ease;
}

.contact-method-item:hover {
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 0 12px 25px -4px rgba(0, 102, 255, 0.15);
}

.method-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.method-lbl {
    font-size: 0.75rem;
    font-weight: 700;
}

.contact-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.copy-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cyber-cyan);
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-method-item:hover .copy-badge {
    background: var(--cyber-cyan);
    color: #ffffff;
}

.comms-divider {
    border-top: 1px dashed var(--border-color);
    margin: 25px 0;
}

.contact-socials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.contact-social-pill {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 245, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 6px 15px -3px rgba(0, 40, 120, 0.06);
    transition: all 0.22s ease;
}

.contact-social-pill:hover {
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 0 10px 22px -3px rgba(0, 102, 255, 0.16);
}

.contact-social-pill.thm-pill:hover {
    border-color: var(--cyber-orange);
    box-shadow: 0 8px 20px rgba(224, 83, 0, 0.18);
}

.contact-social-pill.ig-pill:hover {
    border-color: #e1306c;
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.18);
}

@media (max-width: 580px) {
    .contact-socials-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--cyber-cyan);
}

.input-wrapper {
    position: relative;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--cyber-green);
    box-shadow: 0 0 10px var(--input-focus-glow);
}

.form-status-msg {
    margin-top: 15px;
    font-size: 0.8rem;
    padding: 10px;
    border: 1px solid var(--status-msg-border);
    background: var(--status-msg-bg);
    border-radius: 4px;
}

.hidden {
    display: none;
}

/* Footer styling */
.hud-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 5%;
    background: var(--bg-footer);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 8px var(--cyber-green); }
    50% { transform: scale(1.1); box-shadow: 0 0 16px var(--cyber-green); }
    100% { transform: scale(1); box-shadow: 0 0 8px var(--cyber-green); }
}

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

/* Responsive Rules */
@media (max-width: 1024px) {
    .about-grid, .projects-container, .thm-dashboard, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .arsenal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .registry-controls {
        grid-template-columns: 1fr;
    }
    
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sim-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .sim-action {
        grid-column: 1 / span 2;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hud-top-bar {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }
    
    .hud-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .arsenal-grid {
        grid-template-columns: 1fr;
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
    }
    
    .glitch-title {
        font-size: 2rem;
    }
    
    .sim-row {
        grid-template-columns: 1fr;
    }
    
    .sim-action {
        grid-column: 1;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}



/* macOS App Dock */
.mac-dock-container {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    width: auto;
}

.mac-dock {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(35px) saturate(150%);
    backdrop-filter: blur(35px) saturate(150%);
    border: 1px solid rgba(0, 102, 255, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    pointer-events: auto;
    transition: padding 0.3s ease;
}

.dock-item {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 102, 255, 0.04);
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.dock-item:hover {
    transform: scale(1.25) translateY(-8px);
    background: rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.12);
    color: var(--cyber-cyan);
}

.dock-item.active {
    background: rgba(0, 102, 255, 0.06);
    border-color: rgba(0, 102, 255, 0.2);
    color: var(--cyber-cyan);
}

.dock-item::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    background: transparent;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.dock-item.active::after {
    background-color: var(--cyber-cyan);
    box-shadow: 0 0 6px var(--cyber-cyan);
}

/* Dark Mode Dock Overrides */
body.dark-mode .mac-dock {
    background: rgba(10, 25, 10, 0.55);
    border: 1px solid rgba(0, 255, 65, 0.15);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(0, 255, 65, 0.05);
}

body.dark-mode .dock-item {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.06);
}

body.dark-mode .dock-item:hover {
    background: rgba(0, 255, 65, 0.08);
    border-color: rgba(0, 255, 65, 0.2);
    color: var(--cyber-green);
}

body.dark-mode .dock-item.active {
    background: rgba(0, 255, 65, 0.08);
    border-color: rgba(0, 255, 65, 0.25);
    color: var(--cyber-green);
}

body.dark-mode .dock-item.active::after {
    background-color: var(--cyber-green);
    box-shadow: 0 0 6px var(--cyber-green);
}

/* App Tooltips */
.dock-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--tooltip-bg);
    border: 1px solid var(--tooltip-border);
    color: var(--tooltip-text);
    padding: 4px 10px;
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dock-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Premium Liquid Glass Skill Cards */
.skills-flex-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.skill-pill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 245, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 8px 20px -4px rgba(0, 40, 120, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-pill-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 0 12px 25px -4px rgba(0, 102, 255, 0.16);
}

.skill-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.skill-pill-icon i {
    display: inline-block;
    line-height: 1;
}

.skill-pill-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Dark Mode Skill Card Overrides */
body.dark-mode .skill-pill-card {
    background: rgba(0, 255, 65, 0.04);
    border: 1px solid rgba(0, 255, 65, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

body.dark-mode .skill-pill-card:hover {
    border-color: var(--cyber-green);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.1);
}

body.dark-mode .skill-pill-icon {
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.15);
}

/* Academic Timeline */
.academic-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    padding-left: 10px;
    padding-bottom: 10px;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    transition: border-color var(--transition-speed) ease;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 10px;
    bottom: -28px;
    width: 2px;
    background: var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 2px solid var(--cyber-cyan);
    box-shadow: 0 0 8px var(--border-glow);
    z-index: 2;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.timeline-item:hover::before {
    border-color: var(--cyber-green);
    box-shadow: 0 0 12px var(--border-glow);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.timeline-content p {
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.text-dim {
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Flowy Entry & Loading Animations --- */

/* Keyframes */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleInFade {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes glitch {
    0%, 14%, 17%, 100% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 85, 0.15),
                     -0.025em -0.05em 0 rgba(0, 255, 65, 0.15),
                     0.025em 0.05em 0 rgba(0, 102, 255, 0.15);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 85, 0.5),
                     0.025em 0.025em 0 rgba(0, 255, 65, 0.5),
                     -0.05em -0.05em 0 rgba(0, 102, 255, 0.5);
    }
    16% {
        text-shadow: 0.05em 0.05em 0 rgba(255, 0, 85, 0.5),
                     -0.05em -0.025em 0 rgba(0, 255, 65, 0.5),
                     0.05em 0.05em 0 rgba(0, 102, 255, 0.5);
    }
}

@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 66px, 0); }
    10% { clip: rect(30px, 9999px, 5px, 0); }
    20% { clip: rect(92px, 9999px, 83px, 0); }
    30% { clip: rect(12px, 9999px, 45px, 0); }
    40% { clip: rect(76px, 9999px, 98px, 0); }
    50% { clip: rect(43px, 9999px, 14px, 0); }
    60% { clip: rect(88px, 9999px, 23px, 0); }
    70% { clip: rect(5px, 9999px, 67px, 0); }
    80% { clip: rect(54px, 9999px, 89px, 0); }
    90% { clip: rect(31px, 9999px, 12px, 0); }
    100% { clip: rect(72px, 9999px, 55px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(76px, 9999px, 116px, 0); }
    11% { clip: rect(5px, 9999px, 34px, 0); }
    22% { clip: rect(120px, 9999px, 80px, 0); }
    33% { clip: rect(54px, 9999px, 6px, 0); }
    44% { clip: rect(12px, 9999px, 89px, 0); }
    55% { clip: rect(98px, 9999px, 45px, 0); }
    66% { clip: rect(43px, 9999px, 78px, 0); }
    77% { clip: rect(89px, 9999px, 12px, 0); }
    88% { clip: rect(2px, 9999px, 99px, 0); }
    100% { clip: rect(65px, 9999px, 50px, 0); }
}

/* Staggered Section Reveals */
.active-section .cyber-card {
    animation: slideUpFade 0.6s var(--transition-curve) forwards;
    opacity: 0;
}
.active-section .about-grid .cyber-card:nth-child(1) { animation-delay: 0.05s; }
.active-section .about-grid .cyber-card:nth-child(2) { animation-delay: 0.15s; }
.active-section .academic-card { animation-delay: 0.22s; }

/* Timeline Items Reveal */
.active-section .timeline-item {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
}
.active-section .timeline-item:nth-child(1) { animation-delay: 0.28s; }
.active-section .timeline-item:nth-child(2) { animation-delay: 0.38s; }
.active-section .timeline-item:nth-child(3) { animation-delay: 0.48s; }

/* Technical Arsenal Skill Cards Reveal */
.active-section .arsenal-grid .skill-card {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
}
.active-section .arsenal-grid .skill-card:nth-child(1) { animation-delay: 0.05s; }
.active-section .arsenal-grid .skill-card:nth-child(2) { animation-delay: 0.12s; }
.active-section .arsenal-grid .skill-card:nth-child(3) { animation-delay: 0.19s; }
.active-section .arsenal-grid .skill-card:nth-child(4) { animation-delay: 0.26s; }

/* Skill Pills Reveal */
.active-section .skill-pill-card {
    animation: scaleInFade 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}
.active-section .skill-pill-card:nth-child(1) { animation-delay: 0.2s; }
.active-section .skill-pill-card:nth-child(2) { animation-delay: 0.24s; }
.active-section .skill-pill-card:nth-child(3) { animation-delay: 0.28s; }
.active-section .skill-pill-card:nth-child(4) { animation-delay: 0.32s; }
.active-section .skill-pill-card:nth-child(5) { animation-delay: 0.36s; }
.active-section .skill-pill-card:nth-child(6) { animation-delay: 0.4s; }

/* Projects Cards Reveal */
.active-section .project-card {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
}
.active-section .project-card:nth-child(2n+1) { animation-delay: 0.05s; }
.active-section .project-card:nth-child(2n+2) { animation-delay: 0.15s; }

/* Simulations Rows Reveal */
.active-section .sim-row {
    animation: slideUpFade 0.4s var(--transition-curve) forwards;
    opacity: 0;
}
.active-section .sim-row:nth-child(1) { animation-delay: 0.05s; }
.active-section .sim-row:nth-child(2) { animation-delay: 0.12s; }
.active-section .sim-row:nth-child(3) { animation-delay: 0.19s; }
.active-section .sim-row:nth-child(4) { animation-delay: 0.26s; }
.active-section .sim-row:nth-child(5) { animation-delay: 0.33s; }
.active-section .sim-row:nth-child(6) { animation-delay: 0.4s; }

/* Certification Registry Reveal */
.active-section .registry-controls {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
    animation-delay: 0.05s;
}
.active-section .cert-card {
    animation: slideUpFade 0.4s var(--transition-curve) forwards;
    opacity: 0;
}
.active-section .cert-card:nth-child(3n+1) { animation-delay: 0.12s; }
.active-section .cert-card:nth-child(3n+2) { animation-delay: 0.18s; }
.active-section .cert-card:nth-child(3n+3) { animation-delay: 0.24s; }

/* TryHackMe Dashboard Reveal */
.active-section .thm-profile {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
    animation-delay: 0.05s;
}
.active-section .thm-badges-panel {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
    animation-delay: 0.15s;
}
.active-section .badge-card {
    animation: scaleInFade 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}
.active-section .badge-card:nth-child(2n+1) { animation-delay: 0.2s; }
.active-section .badge-card:nth-child(2n+2) { animation-delay: 0.28s; }

/* Contact Section Reveal */
.active-section .contact-info-card {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
    animation-delay: 0.05s;
}
.active-section .contact-form-card {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
    animation-delay: 0.15s;
}

/* --- Interactive Control Panels & Tabs --- */

.ctrl-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
}

.hud-tabs {
    display: flex;
    gap: 8px;
}

.hud-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-tab-btn:hover {
    color: var(--cyber-cyan);
    background: rgba(0, 102, 255, 0.04);
}

.hud-tab-btn.active {
    color: var(--cyber-cyan);
    background: rgba(0, 102, 255, 0.08);
    border-color: var(--border-color);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .hud-tab-btn.active {
    color: var(--cyber-green);
    background: rgba(0, 255, 65, 0.08);
}

body.dark-mode .hud-tab-btn:hover {
    color: var(--cyber-green);
    background: rgba(0, 255, 65, 0.04);
}

.hud-tab-content {
    display: none;
    width: 100%;
    height: 100%;
}

.hud-tab-content.active-tab-content {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

/* Port Scanner display console */
.scanner-screen {
    background: rgba(10, 15, 10, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    height: 380px;
    padding: 15px;
    overflow-y: auto;
    color: #00ff41;
    font-size: 0.8rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

body.dark-mode .scanner-screen {
    background: rgba(5, 10, 5, 0.98);
}

.scanner-header {
    border-bottom: 1px dashed rgba(0, 255, 65, 0.3);
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #00ff41;
}

.scanner-logs {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scanner-log-item {
    line-height: 1.4;
    word-break: break-all;
}

/* Terminal CLI display console */
.cli-screen {
    background: rgba(5, 8, 12, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    height: 380px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    color: #00ff41;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

body.dark-mode .cli-screen {
    background: rgba(5, 10, 5, 0.98);
}

.cli-output {
    flex: 1;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.4;
    padding-right: 5px;
}

.cli-output div {
    margin-bottom: 3px;
    word-break: break-all;
}

.cli-input-line {
    display: flex;
    align-items: center;
    border-top: 1px dashed rgba(0, 255, 65, 0.15);
    padding-top: 10px;
    gap: 8px;
}

.cli-prompt {
    font-size: 0.8rem;
    color: #00ff41;
    white-space: nowrap;
}

#cli-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e0ffe0;
    font-family: inherit;
    font-size: 0.8rem;
}

#cli-input::placeholder {
    color: rgba(0, 255, 65, 0.25);
}



/* Contact form Live payload preview box */
.payload-preview-container {
    margin-top: 5px;
}

.payload-preview {
    background: var(--bg-controls-outer);
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.78rem;
    color: var(--text-muted);
    min-height: 48px;
    word-break: break-all;
    display: flex;
    align-items: center;
    font-family: 'Fira Code', monospace;
}

.payload-preview.encrypted-state {
    color: var(--cyber-cyan);
    border-style: solid;
}

body.dark-mode .payload-preview.encrypted-state {
    color: var(--cyber-green);
}

/* Social Icon Buttons in Hero Actions */
.cyber-btn.icon-btn {
    padding: 12px;
    border-radius: 4px;
    font-size: 1.15rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--btn-small-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.cyber-btn.icon-btn:hover {
    color: var(--cyber-cyan);
    border-color: var(--cyber-cyan);
    background: rgba(0, 102, 255, 0.05);
    box-shadow: 0 0 15px var(--border-glow);
}

body.dark-mode .cyber-btn.icon-btn:hover {
    color: var(--cyber-green);
    border-color: var(--cyber-green);
    background: rgba(0, 255, 65, 0.05);
}

/* --- Secondary Info Grid (Education & GitHub Commits) --- */
.about-secondary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    align-items: stretch;
}

/* Slide Up Fade support for secondary grid cards */
.active-section .academic-card {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
    animation-delay: 0.05s;
}

.active-section .contributions-card {
    animation: slideUpFade 0.5s var(--transition-curve) forwards;
    opacity: 0;
    animation-delay: 0.25s;
}

.contributions-card {
    margin-top: 30px;
}

/* Skill Percentages inline indicators */
.skill-pct {
    margin-left: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.8;
}

/* Live Commit Feed inside Hacking Toolbox */
.live-commit-feed {
    margin-top: 15px;
    background: var(--bg-controls-outer);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 0.75rem;
    line-height: 1.45;
    transition: all var(--transition-speed) ease;
}

.live-commit-feed .feed-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cyber-cyan);
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 6px;
}

body.dark-mode .live-commit-feed .feed-header {
    color: var(--cyber-green);
}

.live-commit-feed .feed-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    word-break: break-all;
}

.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--cyber-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyber-cyan);
    animation: pulseGlow 1.5s infinite;
    flex-shrink: 0;
}

body.dark-mode .pulse-indicator {
    background-color: var(--cyber-green);
    box-shadow: 0 0 8px var(--cyber-green);
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* GitHub Contributions Graph */
.contrib-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
    overflow: hidden;
}

.contrib-weeks {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 10px);
    grid-gap: 3px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.contrib-weeks::-webkit-scrollbar {
    height: 5px;
}

.contrib-weeks::-webkit-scrollbar-track {
    background: transparent;
}

.contrib-weeks::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.contrib-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    transition: transform 0.1s ease;
}

.contrib-box:hover {
    transform: scale(1.3);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.4);
    z-index: 10;
}

/* Colors for levels - Dark/Light Theme compatible */
/* Level 0: Empty */
.contrib-box.lvl-0, .legend-box.lvl-0 { background-color: rgba(0, 0, 0, 0.05); }
body.dark-mode .contrib-box.lvl-0, body.dark-mode .legend-box.lvl-0 { background-color: rgba(255, 255, 255, 0.04); }

/* Level 1: Low */
.contrib-box.lvl-1, .legend-box.lvl-1 { background-color: #9be9a8; }
body.dark-mode .contrib-box.lvl-1, body.dark-mode .legend-box.lvl-1 { background-color: #0e4429; }

/* Level 2: Medium */
.contrib-box.lvl-2, .legend-box.lvl-2 { background-color: #40c463; }
body.dark-mode .contrib-box.lvl-2, body.dark-mode .legend-box.lvl-2 { background-color: #006d32; }

/* Level 3: High */
.contrib-box.lvl-3, .legend-box.lvl-3 { background-color: #30a14e; }
body.dark-mode .contrib-box.lvl-3, body.dark-mode .legend-box.lvl-3 { background-color: #26a641; }

/* Level 4: Extreme */
.contrib-box.lvl-4, .legend-box.lvl-4 { background-color: #216e39; }
body.dark-mode .contrib-box.lvl-4, body.dark-mode .legend-box.lvl-4 { background-color: #39d353; }

.contrib-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.contrib-legend {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* =============================================
   TRYHACKME SECTION
   ============================================= */

.thm-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .thm-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile block */
.thm-profile-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 4px;
}

.thm-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.thm-avatar-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(224,83,0,0.12), rgba(0,94,203,0.08));
    border: 2px solid var(--cyber-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(224,83,0,0.25);
    animation: thm-pulse 3s ease-in-out infinite;
}

@keyframes thm-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(224,83,0,0.25); }
    50% { box-shadow: 0 0 30px rgba(224,83,0,0.5); }
}

.thm-avatar-icon {
    font-size: 2rem;
    color: var(--cyber-orange);
}

.thm-status-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyber-green);
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 8px var(--cyber-green);
    animation: thm-blink 1.8s ease-in-out infinite;
}

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

.thm-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thm-handle {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.thm-rank {
    font-size: 0.75rem;
    opacity: 0.8;
}

.thm-profile-btn {
    font-size: 0.72rem;
    padding: 6px 14px;
    margin-top: 4px;
    width: fit-content;
}

/* Stats row */
.thm-stat-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin: 4px 0;
}

.thm-stat-box {
    flex: 1;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 245, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 12px;
    padding: 12px 8px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 6px 15px -3px rgba(0, 40, 120, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.thm-stat-box:hover {
    transform: translateY(-3px);
    border-color: var(--cyber-orange);
    box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 0 10px 20px -3px rgba(224, 83, 0, 0.18);
}

.thm-stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.thm-stat-lbl {
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* Official badge image */
.thm-badge-embed {
    text-align: center;
    padding: 8px 0;
}

.thm-official-badge {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thm-official-badge:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(224,83,0,0.2);
}

/* Badges grid */
.thm-badges-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thm-badge-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 245, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 6px 15px -3px rgba(0, 40, 120, 0.06);
    transition: all 0.22s ease;
}

.thm-badge-pill:hover {
    border-color: var(--cyber-orange);
    transform: translateX(5px);
    box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 0 8px 20px rgba(224, 83, 0, 0.16);
}

.thm-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(224,83,0,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.2s;
}

.thm-badge-pill:hover .thm-badge-icon {
    background: rgba(224,83,0,0.14);
}

.thm-badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thm-badge-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.thm-badge-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Dark mode overrides */
body.dark-mode .thm-stat-box {
    background: rgba(224,83,0,0.06);
    border-color: rgba(224,83,0,0.15);
}

body.dark-mode .thm-badge-pill {
    background: rgba(224,83,0,0.05);
    border-color: rgba(224,83,0,0.12);
}

body.dark-mode .thm-badge-icon {
    background: rgba(224,83,0,0.1);
}

/* TryHackMe hero button accent */
.thm-hero-btn {
    color: var(--cyber-orange) !important;
    border-color: var(--cyber-orange) !important;
}

.thm-hero-btn:hover {
    background: rgba(224,83,0,0.1) !important;
    box-shadow: 0 0 12px rgba(224,83,0,0.35) !important;
}

/* Instagram hero button accent */
.ig-hero-btn {
    color: #e1306c !important;
    border-color: #e1306c !important;
}

.ig-hero-btn:hover {
    background: rgba(225, 48, 108, 0.1) !important;
    box-shadow: 0 0 12px rgba(225, 48, 108, 0.35) !important;
}

/* =============================================
   CYBER TOAST & MODAL ENGINE
   ============================================= */

/* Floating Toast Notification */
.cyber-toast {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 245, 255, 0.85) 100%);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 50, 150, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cyber-toast.hidden {
    display: none !important;
}

/* Modal Overlay & Card */
.cyber-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease forwards;
}

.cyber-modal-overlay.hidden {
    display: none !important;
}

.cyber-modal-content {
    max-width: 580px;
    width: 100%;
    border-radius: 20px;
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.95), 0 30px 60px rgba(0, 40, 120, 0.25);
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--cyber-orange);
}

.modal-badge-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 15px 0 20px 0;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-detail-box {
    background: rgba(0, 102, 255, 0.04);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-detail-box .lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.modal-detail-box .val {
    font-size: 0.82rem;
    font-weight: 700;
}

/* =============================================
   COMPREHENSIVE RESPONSIVE DESIGN (ALL DEVICES)
   ============================================= */

/* Laptops & Tablets (< 1024px) */
@media (max-width: 1024px) {
    .container {
        width: 94%;
        margin-top: 25px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets & Mobile (< 768px) */
@media (max-width: 768px) {
    .hud-top-bar {
        padding: 8px 12px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
    }
    .hud-bar-left {
        gap: 8px;
        min-width: 0;
    }
    .hud-bar-title {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hud-bar-right {
        gap: 6px;
        flex-wrap: wrap;
    }
    .hud-diag-pill, .hud-bg-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    .hud-nav {
        display: none;
    }
    .glitch-title {
        font-size: 2.2rem !important;
        letter-spacing: 1px;
        line-height: 1.25;
    }
    .sub-headline {
        font-size: 1.12rem;
        line-height: 1.45;
    }
    .bio-text {
        font-size: 1.05rem;
        line-height: 1.65;
    }
    .section-title {
        font-size: 1.55rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }
    .projects-container {
        grid-template-columns: 1fr;
    }
    .skills-flex-grid {
        grid-template-columns: 1fr;
    }
    .sim-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sim-action {
        justify-content: flex-start;
    }
    .thm-stat-row {
        flex-wrap: wrap;
    }
    .thm-stat-box {
        min-width: 45%;
    }
}

/* Small Mobile Devices (< 480px) */
@media (max-width: 480px) {
    .container {
        width: 95%;
        margin: 15px auto 110px auto;
    }
    .hud-top-bar {
        padding: 8px 10px;
        gap: 6px;
    }
    .hud-bar-left {
        gap: 6px;
        max-width: 100%;
    }
    .hud-bar-title {
        font-size: 0.78rem;
    }
    .hud-bar-right {
        gap: 4px;
    }
    .hud-diag-pill, .hud-bg-btn {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    .cyber-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    .card-body {
        padding: 20px 16px;
    }
    .glitch-title {
        font-size: 1.85rem !important;
        line-height: 1.22;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .sub-headline {
        font-size: 1.05rem;
        line-height: 1.45;
        font-weight: 600;
    }
    .bio-text {
        font-size: 0.98rem;
        line-height: 1.6;
    }
    .certs-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .cv-btn-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .cyber-btn.cv-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.88rem;
    }
    .cv-verify-tag {
        align-self: center;
        font-size: 0.78rem;
        padding: 6px 12px;
    }
    .hero-actions .btn.secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.88rem;
    }
    .hero-social-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    .btn.cyber-btn {
        padding: 11px 16px;
        font-size: 0.85rem;
    }
    .cyber-btn.icon-btn {
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
    }
    .mini-hud-stats {
        gap: 4px;
        padding: 10px 8px;
        border-radius: 12px;
    }
    .hud-stat-box {
        font-size: 0.75rem;
        padding: 2px;
        min-width: 0;
    }
    .hud-stat-box .stat-lbl {
        font-size: 0.68rem;
        font-weight: 700;
    }
    .hud-stat-box .stat-val {
        font-size: clamp(0.72rem, 2.7vw, 0.82rem);
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal;
    }
    .section-title {
        font-size: 1.38rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    .card-title {
        font-size: 0.88rem;
    }
    .cert-info h4 {
        font-size: 0.94rem;
    }
    .cert-desc {
        font-size: 0.84rem;
        line-height: 1.45;
    }
    .filter-btn {
        font-size: 0.82rem;
        padding: 8px 12px;
    }
    .mac-dock-container {
        max-width: 96vw;
        width: auto;
    }
    .mac-dock {
        padding: 6px 8px;
        gap: 6px;
        max-width: 100%;
    }
    .dock-item {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }
    .cyber-toast {
        bottom: 80px;
        right: 5%;
        left: 5%;
        width: 90%;
    }
    .cyber-modal-content {
        padding: 0;
        width: 95%;
    }
}

/* =============================================
   HUD LIGHTBOX CERTIFICATE PREVIEW MODAL
   ============================================= */
.hud-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(4, 8, 14, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

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

.hud-lightbox-content {
    position: relative;
    max-width: 920px;
    width: 92%;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--cyber-cyan);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 45px var(--cyber-accent-glow);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.hud-lightbox-modal.active .hud-lightbox-content {
    transform: scale(1) translateY(0);
}

.hud-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: var(--bg-card-header);
    border-bottom: 1px solid var(--border-color);
}

.hud-lightbox-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    overflow-y: auto;
    background: var(--bg-wash);
}

.hud-lightbox-img {
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.hud-lightbox-img:hover {
    transform: scale(1.015);
}

.hud-lightbox-meta {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--cyber-cyan);
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 6px 16px;
    border-radius: 20px;
}

.hud-lightbox-close {
    background: rgba(255, 0, 85, 0.08);
    border: 1px solid rgba(255, 0, 85, 0.3);
    color: #ff0055;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.hud-lightbox-close:hover {
    background: #ff0055;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.6);
    transform: rotate(90deg);
}

/* =============================================
   TRYHACKME & GITHUB TELEMETRY BADGES
   ============================================= */
.thm-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 25px;
    align-items: stretch;
}

.thm-badges-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thm-badge-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-badge-card);
    border: 1px solid var(--border-badge-card);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.thm-badge-pill::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg, transparent 45%, rgba(0, 243, 255, 0.1) 50%, transparent 55%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.thm-badge-pill:hover::after {
    opacity: 1;
    animation: thmScanbeam 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes thmScanbeam {
    0% { transform: translateY(-40%) translateX(-40%); }
    100% { transform: translateY(40%) translateX(40%); }
}

.thm-badge-pill:hover {
    border-color: var(--cyber-cyan);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 20px var(--cyber-accent-glow);
    transform: translateY(-4px) scale(1.015);
}

.thm-badge-pill.highlight-pill {
    border-color: rgba(224, 83, 0, 0.4);
    background: rgba(224, 83, 0, 0.05);
}

.thm-badge-pill.highlight-pill:hover {
    border-color: var(--cyber-orange);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 20px rgba(224, 83, 0, 0.4);
}

.thm-badge-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.thm-badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.thm-badge-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thm-tag {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    letter-spacing: 0.05em;
}

.thm-badge-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* GitHub Telemetry Grid */
.github-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px 0;
}

.telemetry-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.telemetry-box .lbl {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.telemetry-box .val {
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .thm-grid {
        grid-template-columns: 1fr;
    }
    .github-telemetry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   INTERACTIVE PDF EVIDENCE VIEWER MODAL
   ============================================= */
.hud-pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(4, 8, 14, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

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

.hud-pdf-content {
    position: relative;
    max-width: 1000px;
    width: 95%;
    max-height: 92vh;
    background: var(--bg-card);
    border: 1px solid var(--cyber-cyan);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 50px var(--cyber-accent-glow);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.hud-pdf-modal.active .hud-pdf-content {
    transform: scale(1) translateY(0);
}

.hud-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: var(--bg-card-header);
    border-bottom: 1px solid var(--border-color);
}

.hud-pdf-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-pdf-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 70%;
}

.hud-pdf-title-block #pdf-modal-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hud-pdf-status-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(13, 138, 67, 0.12);
    border: 1px solid rgba(13, 138, 67, 0.3);
    border-radius: 4px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.hud-pdf-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    overflow-y: auto;
}

.hud-pdf-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.78rem;
}

.meta-hash-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hud-pdf-meta-bar .hash-text {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.hud-pdf-iframe-container {
    width: 100%;
    height: 58vh;
    min-height: 380px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    background: #1e1e1e;
    transition: height 0.3s ease;
}

/* Fullscreen Mode Overrides */
.hud-pdf-modal.fullscreen .hud-pdf-content {
    max-width: 98vw;
    width: 98vw;
    max-height: 96vh;
    height: 96vh;
}

.hud-pdf-modal.fullscreen .hud-pdf-iframe-container {
    height: 76vh;
}

.hud-pdf-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hud-pdf-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 768px) {
    .hud-pdf-meta-bar {
        flex-direction: column;
    }
    .hud-pdf-iframe-container {
        height: 48vh;
    }
    .hud-pdf-actions {
        flex-direction: column;
    }
    .hud-pdf-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* =============================================
   FUTURISTIC STAGGERED CASCADE SCROLL-REVEALS
   ============================================= */
.hud-cascade-item {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--cascade-index, 0) * 65ms);
}

.hud-cascade-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Remove transform transition after reveal to allow 60fps lag-free 3D mouse tilt */
    transition: opacity 0.3s ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

/* =============================================
   TOP NEON SCROLL PROGRESS BAR
   ============================================= */
.hud-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--cyber-cyan), #00ff66, var(--cyber-pink));
    z-index: 9999999;
    box-shadow: 0 0 10px var(--cyber-cyan), 0 0 20px var(--cyber-cyan);
    transition: width 0.08s ease-out;
    pointer-events: none;
}

/* =============================================
   3D INTERACTIVE CARD TILT & CURSOR SPOTLIGHT
   ============================================= */
.cyber-card, .cert-card, .thm-badge-pill {
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.is-tilting {
    transition: transform 0.06s linear, box-shadow 0.25s ease, border-color 0.25s ease !important;
    will-change: transform;
}

.cyber-card::after, .cert-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 229, 255, 0.12),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.cyber-card:hover::after, .cert-card:hover::after {
    opacity: 1;
}

/* =============================================
   CLICK-TRIGGERED LIQUID RIPPLE WAVES
   ============================================= */
.cyber-ripple-container {
    position: relative;
    overflow: hidden;
}

.cyber-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.45) 0%, rgba(0, 229, 255, 0.12) 60%, transparent 80%);
    border: 1px solid rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    transform: translate(-50%, -50%) scale(0);
    animation: liquidRipple 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes liquidRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.85;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.2);
        opacity: 0;
    }
}

