/* ============================================
   CYBERSECURITY PORTFOLIO — DESIGN SYSTEM
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
    /* Colors — Cyber Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #141425;
    --bg-card: rgba(15, 15, 30, 0.7);
    --bg-card-hover: rgba(20, 20, 40, 0.9);
    --bg-glass: rgba(15, 15, 30, 0.5);

    --text-primary: #e8e6e3;
    --text-secondary: #8b8a97;
    --text-muted: #5a5868;

    --accent-primary: #00ff88;
    --accent-primary-dim: rgba(0, 255, 136, 0.15);
    --accent-primary-glow: rgba(0, 255, 136, 0.4);
    --accent-secondary: #00d4ff;
    --accent-secondary-dim: rgba(0, 212, 255, 0.15);
    --accent-tertiary: #a855f7;
    --accent-tertiary-dim: rgba(168, 85, 247, 0.15);
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-pink: #ec4899;

    --gradient-primary: linear-gradient(135deg, #00ff88, #00d4ff);
    --gradient-secondary: linear-gradient(135deg, #a855f7, #ec4899);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 255, 136, 0.2);

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: clamp(60px, 10vw, 120px);
    --container-max: 1200px;
    --container-padding: clamp(16px, 4vw, 32px);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-terminal {
    width: min(90vw, 480px);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.1);
}

.loader-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

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

.loader-dot.red {
    background: #ff5f56;
}

.loader-dot.yellow {
    background: #ffbd2e;
}

.loader-dot.green {
    background: #27c93f;
}

.loader-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.loader-body {
    padding: 20px;
}

.loader-line {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    opacity: 0;
    transform: translateY(10px);
    animation: loaderFadeIn 0.4s ease forwards;
    margin-bottom: 8px;
}

.loader-line:nth-child(1) {
    animation-delay: 0s;
}

.loader-line:nth-child(2) {
    animation-delay: 0.3s;
}

.loader-line:nth-child(3) {
    animation-delay: 0.6s;
}

.loader-line:nth-child(4) {
    animation-delay: 0.9s;
}

.loader-line:nth-child(5) {
    animation-delay: 1.2s;
}

.loader-success {
    color: var(--accent-primary);
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-primary-glow);
}

@keyframes loaderFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Matrix Background --- */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.06;
    pointer-events: none;
}

/* --- Cursor Glow --- */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-normal);
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-bracket {
    color: var(--text-muted);
}

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

.logo-slash {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.nav-cta:hover {
    background: var(--accent-primary-dim);
    box-shadow: 0 0 20px var(--accent-primary-dim);
}

/* Ctrl+K Command Palette Hint */
.nav-cmd-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-left: -8px;
}

.nav-cmd-hint kbd {
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.nav-cmd-hint:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-primary-dim);
    box-shadow: 0 0 12px var(--accent-primary-dim);
}

.nav-cmd-hint:hover kbd {
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--accent-primary);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--accent-primary);
}

.mobile-cta {
    font-family: var(--font-mono);
    padding: 12px 28px;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px var(--container-padding) 60px;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* --- Floating Gradient Orbs --- */
.hero-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    will-change: transform;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(59, 7, 100, 0.2) 70%, transparent 100%);
    top: -10%;
    left: -8%;
    animation: orbDrift1 15s ease-in-out infinite;
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(14, 116, 144, 0.15) 70%, transparent 100%);
    bottom: -5%;
    right: -5%;
    animation: orbDrift2 20s ease-in-out infinite;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation: orbDrift3 18s ease-in-out infinite;
}

@keyframes orbDrift1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, 30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 50px) scale(0.95);
    }
}

@keyframes orbDrift2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, -40px) scale(1.08);
    }

    66% {
        transform: translate(20px, -20px) scale(0.92);
    }
}

@keyframes orbDrift3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 30px) scale(1.1);
    }
}

/* --- Hero Grid Lines Background --- */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 100px;
    margin-bottom: 24px;
    animation: tagGlow 4s ease-in-out infinite;
}

@keyframes tagGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.15), 0 0 40px rgba(99, 102, 241, 0.05);
    }
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #818cf8;
    animation: pulse-dot 2s ease-in-out infinite;
}

.tag-text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(165, 180, 252, 0.9);
    letter-spacing: 0.5px;
}

.hero-greeting {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--accent-secondary);
    font-weight: 400;
    margin-bottom: 8px;
}

.hero-name {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(90deg,
            #ffffff 0%,
            #e2e8f0 25%,
            #cbd5e1 50%,
            #e2e8f0 75%,
            #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: nameShimmer 6s ease-in-out infinite;
}

@keyframes nameShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Glitch Effect — Very Subtle */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    -webkit-background-clip: text;
    background-clip: text;
    overflow: hidden;
    opacity: 0.4;
}

.glitch-text::before {
    -webkit-text-fill-color: rgba(100, 180, 255, 0.5);
    animation: glitch-1 4s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    -webkit-text-fill-color: rgba(167, 139, 250, 0.4);
    animation: glitch-2 4s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(1px, -1px);
    }

    60% {
        transform: translate(-0.5px, 0.5px);
    }

    80% {
        transform: translate(0.5px, -0.5px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(1px, -1px);
    }

    40% {
        transform: translate(-1px, 1px);
    }

    60% {
        transform: translate(0.5px, -0.5px);
    }

    80% {
        transform: translate(-0.5px, 0.5px);
    }
}

.hero-typing-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin-bottom: 20px;
    min-height: 2rem;
}

.hero-caret {
    color: var(--accent-primary);
    font-weight: 700;
}

.hero-typed {
    color: var(--accent-secondary);
}

.typing-cursor {
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.highlight {
    color: var(--accent-secondary);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3), 0 8px 32px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.btn-primary .btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-ghost {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-primary-dim);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-plus,
.stat-percent {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: #818cf8;
    font-weight: 700;
}

.stat-label-top {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Hero Visual / Terminal */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    position: relative;
    z-index: 1;
}

.terminal-window {
    width: 100%;
    max-width: 500px;
    background: rgba(15, 15, 30, 0.6);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

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

.term-dot.red {
    background: #ff5f56;
}

.term-dot.yellow {
    background: #ffbd2e;
}

.term-dot.green {
    background: #27c93f;
}

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

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.9;
}

.term-prompt {
    color: var(--accent-primary);
    font-weight: 700;
    margin-right: 8px;
}

.term-cmd {
    color: var(--accent-secondary);
}

.term-output {
    color: var(--text-secondary);
    padding-left: 20px;
}

.typing-anim {
    animation: blink 1s step-end infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: floatUpDown 2s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    transform: rotate(45deg);
    margin: -6px auto 0;
    opacity: 0;
    animation: scrollArrow 2s infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 var(--accent-primary-glow);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px transparent;
    }
}

/* --- Section Common --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
}

/* Alternating section backgrounds for depth */
.section:nth-child(even) {
    background: linear-gradient(180deg, rgba(15, 15, 30, 0.5) 0%, rgba(10, 10, 20, 0.3) 50%, rgba(15, 15, 30, 0.5) 100%);
}

.section:nth-child(odd) {
    background: transparent;
}

/* Section divider glow line */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 20%, rgba(6, 182, 212, 0.4) 50%, rgba(168, 85, 247, 0.3) 80%, transparent 100%);
    position: relative;
    overflow: visible;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 17px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.06) 20%, rgba(6, 182, 212, 0.08) 50%, rgba(168, 85, 247, 0.06) 80%, transparent 100%);
    filter: blur(8px);
}

.section-compact {
    padding: clamp(40px, 6vw, 80px) 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.section-tag-end {
    display: block;
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    opacity: 0.4;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 3px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.about-card-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.about-avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--gradient-primary) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* TryHackMe Badge */
.thm-badge-section {
    text-align: center;
    margin-top: 40px;
}

.thm-badge-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.thm-badge-wrapper {
    display: inline-flex;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 12px 20px;
}

.avatar-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 100px;
    border: 1px solid var(--border-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulse-dot 2s infinite;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-primary);
}

.about-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.info-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.chip-icon {
    font-size: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.highlight-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateX(8px);
}

.hl-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.highlight-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.highlight-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.skill-category:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.05);
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.skill-cat-icon {
    font-size: 1.5rem;
}

.skill-cat-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    position: relative;
}

.skill-name {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-primary-dim);
}

.skill-item.animated .skill-fill {
    width: var(--level);
}

/* Tools Grid */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    cursor: default;
}

.tool-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-primary-dim);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-primary-dim);
}

.tool-icon {
    font-size: 1rem;
}

/* --- Experience / Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 12px var(--accent-primary-glow);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition-normal);
}

.timeline-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateX(8px);
}

.timeline-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 12px;
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
    border-radius: 100px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.timeline-badge.active {
    background: var(--accent-secondary-dim);
    color: var(--accent-secondary);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-duration {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.timeline-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-normal);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 136, 0.05);
}

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

.project-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-primary-dim) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.project-card:hover .project-glow {
    opacity: 0.3;
}

.project-card.featured {
    border-color: rgba(0, 255, 136, 0.15);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.03), rgba(0, 212, 255, 0.03));
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-icon {
    font-size: 2rem;
}

.project-badges {
    display: flex;
    gap: 8px;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.badge.ongoing {
    background: var(--accent-warning);
    color: #000;
}

.badge.complete {
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.badge.published {
    background: var(--accent-secondary-dim);
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.badge.featured-badge {
    background: var(--gradient-secondary);
    color: #fff;
}

.badge.award {
    background: #f59e0b;
    color: #000;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.project-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-bottom: 12px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-muted);
}

/* --- Certifications --- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.cert-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cert-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

.cert-logo.ibm {
    background: linear-gradient(135deg, #054ada, #0f62fe);
}

.cert-logo.cisco {
    background: linear-gradient(135deg, #049fd9, #0a76b8);
}

.cert-logo.thm {
    background: linear-gradient(135deg, #212c42, #1c2538);
    font-size: 0.7rem;
}

.cert-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cert-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cert-badge {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Achievements */
.achievements-section {
    margin-top: 0;
}

.achievements-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    justify-content: center;
}

.ach-icon {
    font-size: 1.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.achievement-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.achievement-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 0 30px var(--accent-primary-dim);
}

.ach-number {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Education --- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.edu-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.edu-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.edu-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.contact-link:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary-dim);
    transform: translateX(8px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Contact Terminal Form */
.contact-terminal .terminal-body {
    padding: 24px;
}

.term-field {
    margin-bottom: 16px;
}

.term-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.term-field input,
.term-field textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
    resize: vertical;
}

.term-field input:focus,
.term-field textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 16px var(--accent-primary-dim);
}

.term-field input::placeholder,
.term-field textarea::placeholder {
    color: var(--text-muted);
}

.term-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent-primary-dim);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.term-submit:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--accent-primary-dim);
}

.submit-arrow {
    transition: transform 0.3s ease;
}

.term-submit:hover .submit-arrow {
    transform: translateX(4px);
}

/* --- Footer --- */
#footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

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

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.97);
    filter: blur(3px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

/* Staggered reveal for child elements */
.reveal.visible:nth-child(1) {
    transition-delay: 0s;
}

.reveal.visible:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal.visible:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal.visible:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal.visible:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal.visible:nth-child(6) {
    transition-delay: 0.5s;
}

/* --- Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    #hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-tag {
        margin: 0 auto 24px;
    }

    .hero-typing-wrapper {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-cmd-hint {
        display: none;
    }

    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

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

    .hero-stats {
        flex-direction: row;
        gap: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

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

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

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

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        gap: 20px;
    }

    .marker-dot {
        width: 12px;
        height: 12px;
    }

    .scroll-indicator {
        display: none;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Mobile: simplify hero effects for performance */
    .orb-3 {
        display: none;
    }

    .orb-1 {
        width: 250px;
        height: 250px;
        filter: blur(60px);
        opacity: 0.25;
    }

    .orb-2 {
        width: 200px;
        height: 200px;
        filter: blur(60px);
        opacity: 0.2;
    }

    #cursor-glow {
        display: none !important;
    }

    .hero-grid-lines {
        display: none;
    }

    .hero-name {
        animation: none;
        background-size: 100% 100%;
    }

    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 16px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    #matrix-bg {
        display: none;
    }

    #cursor-glow {
        display: none;
    }
}

/* --- Particle Network --- */
#particle-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

/* --- Scanline Overlay --- */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
}

.scanline-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.08), transparent);
    animation: scanlineMove 6s linear infinite;
}

@keyframes scanlineMove {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* --- Hero Socials --- */
.hero-socials {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-normal);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-primary-dim);
    box-shadow: 0 0 20px var(--accent-primary-dim);
    transform: translateY(-3px);
}

.social-link svg {
    transition: var(--transition-normal);
}

.social-link:hover svg {
    filter: drop-shadow(0 0 6px var(--accent-primary-glow));
}

/* --- Project Links --- */
.project-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: var(--accent-primary-dim);
    transition: var(--transition-normal);
}

.project-link:hover {
    background: rgba(0, 255, 136, 0.25);
    box-shadow: 0 0 16px var(--accent-primary-dim);
    transform: translateY(-2px);
}

.project-link svg {
    flex-shrink: 0;
}

/* --- Cert Card as Link --- */
a.cert-card {
    cursor: pointer;
}

a.cert-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--accent-primary);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.15);
}

a.cert-card:hover .cert-badge {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 12px var(--accent-primary-glow);
}

/* --- Command Palette --- */
.cmd-palette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cmd-palette.active {
    opacity: 1;
    visibility: visible;
}

.cmd-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.cmd-modal {
    position: relative;
    width: min(92vw, 520px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(0, 255, 136, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cmd-palette.active .cmd-modal {
    transform: translateY(0) scale(1);
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.cmd-icon {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.cmd-header input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

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

.cmd-header kbd {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.cmd-results {
    max-height: 350px;
    overflow-y: auto;
    padding: 8px;
}

.cmd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cmd-item:hover,
.cmd-item.active {
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
}

.cmd-item-icon {
    width: 24px;
    text-align: center;
    font-size: 0.9rem;
}

.cmd-item.hidden {
    display: none;
}

.cmd-footer {
    display: flex;
    gap: 20px;
    padding: 10px 18px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Footer Socials */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.footer-socials a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-primary-dim);
    transform: translateY(-3px);
}

.footer-thm-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.cmd-hint {
    opacity: 0.6;
    font-size: 0.78rem;
}

.cmd-hint kbd {
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
}

/* --- Performance Optimizations --- */
.terminal-window,
.project-card,
.cert-card,
.highlight-card,
.timeline-card,
.achievement-card,
.edu-card,
.contact-link,
.tool-chip {
    will-change: transform;
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {

    .scanline-overlay,
    #particle-network {
        display: none;
    }
}