/* ===== Variables ===== */
:root {
    --bg: #050505;
    --bg-secondary: #0d0d0d;
    --bg-card: #141414;
    --text: #ffffff;
    --text-muted: #888888;
    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.12);
    --border: #222222;
    --border-hairline: rgba(255, 255, 255, 0.08);
    --shadow-inset: inset 0 1px 1px rgba(255, 255, 255, 0.12);
    --font: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 14px;
    --radius-outer: 20px;
    --transition: all 0.3s ease;
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
    --transition-spring: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fluid: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text: #0a0a0a;
    --text-muted: #666666;
    --accent: #00aa55;
    --accent-dim: rgba(0, 170, 85, 0.1);
    --border: #e0e0e0;
}


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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* ===== Full-Page Background Canvas ===== */
.bg-canvas-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.88;
}

/* ===== Cyber-Green Glowing Custom Cursor Engine ===== */
@media (pointer: fine) {

    body,
    a,
    button,
    input,
    textarea,
    select,
    .link-pill,
    .filter-btn,
    .header-cta {
        cursor: none !important;
    }
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 255, 136, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    background: rgba(0, 255, 136, 0.04);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.custom-cursor-dot.hovered {
    width: 12px;
    height: 12px;
    background: #00aaff;
    box-shadow: 0 0 12px #00aaff, 0 0 24px #00aaff;
}

.custom-cursor-follower.hovered {
    width: 52px;
    height: 52px;
    border-color: rgba(0, 170, 255, 0.6);
    background: rgba(0, 170, 255, 0.08);
}

.custom-cursor-follower.active {
    transform: translate(-50%, -50%) scale(0.85);
}

/* ===== Loading Screen ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.loader-logo span {
    color: var(--accent);
}

.loader-bar {
    width: 140px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress {
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loaderProgress 1.2s ease-in-out infinite;
}

@keyframes loaderProgress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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



/* ===== Floating Island Header Navigation ===== */
.header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fluid);
}

.logo {
    font-size: 1.38rem;
    font-weight: 700;
    letter-spacing: -1px;
}

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

.nav {
    display: flex;
    gap: 2.25rem;
}

.nav a {
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fluid);
    padding: 0.2rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition-fluid);
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent);
}

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

.nav a:hover {
    color: var(--text);
}

.header-cta {
    padding: 0.5rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fluid);
}

.header-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

/* ===== Hero ===== */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 110px 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 45%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, black 20%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero-bg-grid::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.14) 0%, rgba(0, 170, 255, 0.06) 50%, transparent 75%);
    filter: blur(70px);
    border-radius: 50%;
    animation: meshOrbGlow 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes meshOrbGlow {
    0% {
        transform: translate(-10%, -10%) scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: translate(15%, 12%) scale(1.18);
        opacity: 0.95;
    }

    100% {
        transform: translate(-5%, 15%) scale(1.05);
        opacity: 0.65;
    }
}

/* ===== Reading Scroll Progress Bar ===== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* ===== Mouse Spotlight Card Glow ===== */
.about-card,
.doppelrand-shell,
.learning-card {
    position: relative;
    overflow: hidden;
}

.about-card::before,
.doppelrand-shell::before,
.learning-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -500px);
    left: var(--mouse-x, -500px);
    width: 380px;
    height: 380px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 255, 136, 0.09) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 0;
}

.about-card:hover::before,
.doppelrand-shell:hover::before,
.learning-card:hover::before {
    opacity: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 4rem;
    padding-right: 4rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    font-size: 0.92rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    width: fit-content;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero-title .line {
    display: block;
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.link-pill {
    padding: 0.75rem 1.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-spring);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.link-pill:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.hero-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tech-pill {
    padding: 0.45rem 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    transition: var(--transition-spring);
}

.tech-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

/* Hero Terminal Visual & Floating Badges */
.hero-visual {
    width: 100%;
    position: relative;
}

.floating-badge {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(16, 16, 16, 0.9);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: float 4s ease-in-out infinite;
}

.floating-badge.top-right {
    top: -18px;
    right: 15px;
    animation-delay: 0s;
}

.floating-badge.bottom-left {
    bottom: -12px;
    left: 15px;
    animation-delay: 2s;
}

@keyframes float {

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

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

.terminal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    position: relative;
}

.terminal-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.15);
    transform: translateY(-4px);
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

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

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

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

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

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

.terminal-body {
    padding: 1.5rem 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    line-height: 1.8;
}

.terminal-body p {
    margin-bottom: 0.25rem;
}

.indent-1 {
    padding-left: 1.25rem;
}

.indent-2 {
    padding-left: 2.5rem;
}

.syn-keyword {
    color: #ff79c6;
    font-weight: 600;
}

.syn-class {
    color: var(--accent);
    font-weight: 600;
}

.syn-func {
    color: #50fa7b;
}

.syn-string {
    color: #f1fa8c;
}

.terminal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.t-stat {
    position: relative;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.t-stat-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font);
}

.hero-scroll-indicator {
    position: relative;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition-fluid);
    z-index: 10;
    text-decoration: none;
    width: fit-content;
}

.hero-scroll-indicator:hover {
    color: var(--accent);
}

.scroll-arrow {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(5px);
    }

    60% {
        transform: translateY(3px);
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-scroll-indicator {
        display: none;
    }
}


/* ===== Global Layout Container (Full Screen Width) ===== */
.about,
.experience-section,
.projects,
.playground,
.skills,
.learning,
.achievements,
.blog,
.contact {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2.5rem 4rem;
    box-sizing: border-box;
}

.about {
    padding-top: 1rem;
}

/* ===== Section Label ===== */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    padding-left: 0.85rem;
    border-left: 2px solid var(--accent);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
    width: 100%;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-inset);
    border-radius: var(--radius-outer);
    padding: 2rem;
    transition: var(--transition-fluid);
}

.about-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: #181818;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.about-card.main {
    grid-column: span 2;
    grid-row: span 2;
}

.about-card.main h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.85rem;
}

.about-card.main p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.about-tags span {
    padding: 0.3rem 0.65rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-big {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

/* ===== Doppelrand (Double-Bezel) Universal Glass Architecture ===== */
.doppelrand-shell {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-outer);
    padding: 6px;
    transition: var(--transition-fluid);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.doppelrand-shell:hover {
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(0, 255, 136, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.doppelrand-inner {
    background: rgba(12, 12, 12, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
    border-radius: calc(var(--radius-outer) - 4px);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background 0.3s ease;
}

.doppelrand-shell:hover .doppelrand-inner {
    background: rgba(18, 22, 20, 0.78);
}

/* ===== Doppelrand Glass Stat Cards ===== */
.stat-glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-outer);
    padding: 6px;
    transition: var(--transition-fluid);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.stat-glass-card:hover {
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 36px -10px rgba(0, 255, 136, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.stat-card-inner {
    background: rgba(12, 12, 12, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
    border-radius: calc(var(--radius-outer) - 4px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.stat-glass-card:hover .stat-card-inner {
    background: rgba(18, 22, 20, 0.78);
}

.achievements {
    position: relative;
    overflow: hidden;
}

.section-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.section-bg-grid::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 15%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.14) 0%, rgba(0, 170, 255, 0.07) 50%, transparent 75%);
    filter: blur(65px);
    border-radius: 50%;
    animation: sectionOrbGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes sectionOrbGlow {
    0% {
        transform: translate(-10%, -5%) scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: translate(12%, 15%) scale(1.15);
        opacity: 0.95;
    }
}

/* ===== Projects & Achievements Wide Doppelrand Cards ===== */
.projects-list,
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-row {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition-fluid);
}

.project-row:hover .timeline-role {
    color: var(--accent);
}

.project-desc-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0.85rem 0 1.25rem;
}

/* ===== GitHub Heatmap Matrix Card ===== */
.github-heatmap-card {
    position: relative;
    margin-top: 1.5rem;
}

.heatmap-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.heatmap-legend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
}

.heat-box {
    width: 11px;
    height: 11px;
    border-radius: 2px;
}

.heatmap-grid {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    grid-auto-flow: column;
    grid-auto-columns: 12px;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.heat-cell {
    width: 12px;
    height: 12px;
    border-radius: 2.5px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
    cursor: pointer;
}

.heat-cell:hover {
    transform: scale(1.4);
    z-index: 10;
    filter: brightness(1.3);
}

.lvl-0 {
    background: rgba(255, 255, 255, 0.05);
}

.lvl-1 {
    background: #0e4429;
}

.lvl-2 {
    background: #006d32;
}

.lvl-3 {
    background: #26a641;
}

.lvl-4 {
    background: #39d353;
    box-shadow: 0 0 10px rgba(57, 211, 83, 0.5);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    width: 100%;
    gap: 0.75rem;
}

.stat-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-muted);
    white-space: nowrap;
}

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

.badge-dot.green {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.badge-dot.cyan {
    background: #00aaff;
    box-shadow: 0 0 8px #00aaff;
}

.badge-dot.violet {
    background: #ab47bc;
    box-shadow: 0 0 8px #ab47bc;
}

.stat-icon-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-glass-card:hover .stat-icon-bubble {
    transform: scale(1.15) rotate(8deg);
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #00ff88 0%, #00aaff 60%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.stat-unit {
    font-size: 1.1rem;
    font-weight: 500;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
    margin-left: 0.15rem;
}

.stat-title {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.stat-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: auto;
}

.stat-sublabel {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.45);
}

.stat-indicator-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00aaff);
    border-radius: 4px;
}

.stat-spark-graph {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.stat-spark-graph .bar {
    width: 3px;
    background: #00aaff;
    border-radius: 2px;
    opacity: 0.7;
    transition: height 0.3s ease;
}

.stat-spark-graph .h-4 {
    height: 40%;
}

.stat-spark-graph .h-6 {
    height: 60%;
}

.stat-spark-graph .h-8 {
    height: 80%;
}

.stat-spark-graph .h-10 {
    height: 100%;
    background: #00ff88;
    opacity: 1;
}

.stat-spark-graph .h-7 {
    height: 70%;
}

.stat-live-dot {
    font-size: 0.72rem;
    font-weight: 600;
    color: #00ff88;
    font-family: var(--font-mono);
}

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

.about-card.experience {
    grid-column: span 2;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.exp-role {
    font-weight: 600;
    font-size: 1.1rem;
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
}

.exp-company {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.exp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.exp-skills span {
    padding: 0.2rem 0.55rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Experience Timeline ===== */
.experience-timeline {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 0;
    position: relative;
    padding-left: 1.75rem;
    border-left: 2px solid var(--border);
    box-sizing: border-box;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-dim);
}

.timeline-content {
    position: relative;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-role {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.timeline-company {
    display: block;
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.2rem;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-bullets {
    margin: 1rem 0 1.25rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.timeline-bullets li {
    margin-bottom: 0.4rem;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tech span {
    padding: 0.25rem 0.65rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.about-card.education {
    grid-column: span 2;
}

.about-card.main p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-card.main p em {
    color: var(--accent);
    font-style: italic;
}

.soft-skills-title {
    margin-top: 1.5rem;
}

/* ===== Achievements Section Grid ===== */
.achievements {
    position: relative;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.achievement-item {
    height: 100%;
}

.achievement-item .doppelrand-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== Projects ===== */
.projects {
    position: relative;
}

.project-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-fluid);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.filter-btn.active .filter-count {
    background: rgba(0, 0, 0, 0.25);
    color: var(--bg);
}

/* ===== Skills ===== */
.skills {
    overflow: hidden;
}

.skills-marquee {
    margin: 2rem -4rem;
    padding: 1.5rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-block {
    list-style: none;
}

.skill-block h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.skill-block li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.skill-block li:last-child {
    border-bottom: none;
}

/* ===== Contact ===== */
.contact {
    text-align: center;
}

.contact-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.contact-sub {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-btn:hover {
    border-color: var(--accent);
}

.contact-btn.primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.contact-btn.primary:hover {
    background: #00cc6a;
}

.contact-location {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: var(--bg);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    background: #00cc6a;
    transform: translateY(-2px);
}

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

.form-submit:hover span {
    transform: translateX(5px);
}

.contact-divider {
    text-align: center;
    color: var(--text-muted);
    margin: 2rem 0;
    position: relative;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border);
}

.contact-divider::before {
    left: 10%;
}

.contact-divider::after {
    right: 10%;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


.footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

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

.footer p:last-child {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-card.main {
        grid-column: span 2;
        grid-row: span 1;
    }

    .about-card.experience {
        grid-column: span 2;
    }

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

@media (max-width: 768px) {
    html {
        font-size: 106.25%;
    }

    body {
        cursor: auto;
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .nav {
        display: none;
    }

    .hero,
    .about,
    .projects,
    .skills,
    .contact {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-title {
        font-size: 2.65rem;
        letter-spacing: -1px;
    }

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

    .about-card.main,
    .about-card.experience {
        grid-column: span 1;
    }

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

    .skills-marquee {
        margin: 2rem -1.5rem;
    }
}

/* ===== Loading Screen ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.loader-logo span {
    color: var(--accent);
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: var(--accent);
    animation: loading 1.5s ease forwards;
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* ===== Theme Toggle ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--accent);
}

[data-theme="light"] .theme-icon-light,
:root:not([data-theme="light"]) .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-icon-dark,
:root:not([data-theme="light"]) .theme-icon-light {
    display: inline;
}

/* ===== Project Filters ===== */
.project-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.55rem 1.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-spring);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    margin-left: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: currentColor;
}

.project-row.hidden {
    display: none;
}

/* ===== GitHub Stats ===== */
.github-stats {
    position: relative;
}

.stats-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.github-card {
    max-width: 100%;
    border-radius: var(--radius);
}

/* ===== Currently Learning ===== */
.learning {
    position: relative;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.learning-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-inset);
    border-radius: var(--radius-outer);
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition-fluid);
}

.learning-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: #181818;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.learning-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.learning-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

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

/* ===== Achievements ===== */
.achievements-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-inset);
    border-radius: var(--radius-outer);
    transition: var(--transition-fluid);
}

.achievement-item:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: #181818;
    transform: translateY(-3px);
}

.achievement-year {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    background: var(--accent-dim);
    border-radius: 4px;
    white-space: nowrap;
}

.achievement-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

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

/* ===== Blog Section (Home Page) ===== */
.blog {
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.blog-badge {
    padding: 0.25rem 0.75rem;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date,
.blog-read-time {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.blog-card-title a {
    color: var(--text);
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--accent);
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.blog-tags span {
    padding: 0.35rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    transition: var(--transition);
}

.blog-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.875rem;
    transition: var(--transition);
}

.blog-read-more span {
    transition: transform 0.3s ease;
}

.blog-read-more:hover span {
    transform: translateX(6px);
}

/* ===== Dedicated Blog Article Reader Page ===== */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10001;
}

.reading-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
}

.article-wrapper {
    width: 100%;
    max-width: 100%;
    padding-top: 110px;
    padding-bottom: 5rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.article-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.article-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.article-bg-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, rgba(0, 170, 255, 0.07) 50%, transparent 75%);
    filter: blur(85px);
    border-radius: 50%;
    animation: meshOrbGlow 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-category-badge,
.article-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 100%;
}

.article-meta,
.author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-avatar,
.author-bio-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.author-role {
    display: block;
    font-size: 0.82rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 500;
}

.article-details,
.article-read-time {
    display: flex;
    gap: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.article-tags span {
    padding: 0.35rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    transition: var(--transition-spring);
}

.article-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* Article Body Typography */
.article-body,
.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}

.article-body p,
.article-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .article-body p,
[data-theme="light"] .article-content p {
    color: #222222;
}

.lead-paragraph {
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
    background: var(--accent-dim);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body h2,
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.75rem;
    margin-bottom: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 0.85rem;
    scroll-margin-top: 90px;
}

.article-body ul,
.article-content ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.article-body li,
.article-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.article-body li::before,
.article-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.05rem;
}

.article-body li strong,
.article-content li strong {
    color: var(--text);
}

.article-body pre,
.article-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.75rem 0;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--accent);
    overflow-x: auto;
    line-height: 1.6;
}

.article-divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.styled-list {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.styled-list li {
    position: relative;
    padding-left: 0.85rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.styled-list li::before {
    content: '▹';
    position: absolute;
    left: -0.65rem;
    color: var(--accent);
}

/* Insight & Warning Boxes */
.insight-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.75rem 0;
}

.insight-box.warning {
    border-color: rgba(255, 170, 0, 0.4);
    background: rgba(255, 170, 0, 0.05);
}

.insight-box h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #ffaa00;
}

.insight-box ul {
    list-style-type: disc;
    padding-left: 1rem;
}

.insight-box li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Quote Cards Grid */
.comparison-quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.75rem 0;
}

.quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
}

.quote-card.rag-card {
    border-top: 3px solid #00aaff;
}

.quote-card.okf-card {
    border-top: 3px solid var(--accent);
}

.quote-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 0.5rem;
}

.rag-card .quote-tag {
    color: #00aaff;
}

.okf-card .quote-tag {
    color: var(--accent);
}

.quote-card p {
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 0;
}

/* Article Table Styling */
.table-responsive {
    overflow-x: auto;
    margin: 1.75rem 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
    background: var(--bg-card);
}

.article-table th,
.article-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.article-table th {
    background: var(--bg-secondary);
    font-family: var(--font);
    font-weight: 700;
    color: var(--text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

/* Diagrams */
.diagram-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.75rem 0;
    overflow-x: auto;
}

.diagram-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.75rem;
}

.diagram-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.45;
    margin: 0;
}

/* Query Callouts */
.query-example {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.query-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

.query-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    border-left: 2px solid var(--accent);
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.query-explanation {
    margin-bottom: 0 !important;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Analogy & Highlight Boxes */
.analogy-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.75rem 0;
}

.analogy-box h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.summary-highlight {
    background: var(--accent-dim);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.summary-highlight p {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem !important;
}

.summary-highlight p:last-child {
    margin-bottom: 0 !important;
}

/* TL;DR Box */
.tldr-box {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin: 2.5rem 0;
}

.tldr-box h3 {
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.tldr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.tldr-item h4 {
    font-size: 0.925rem;
    margin-bottom: 0.75rem;
}

.tldr-item ul {
    list-style-type: none;
    padding: 0;
}

.tldr-item li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tldr-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.tldr-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.conclusion-text {
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 500;
    margin-top: 1.75rem;
}

/* Author Bio Card Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.author-bio-card {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.author-bio-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-bio-info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.author-bio-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.author-bio-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.author-bio-links a {
    font-size: 0.8rem;
    color: var(--accent);
    padding: 0.25rem 0.65rem;
    background: var(--accent-dim);
    border-radius: 50px;
    transition: var(--transition);
}

.author-bio-links a:hover {
    background: var(--accent);
    color: var(--bg);
}

.article-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    font-weight: 600;
    color: var(--accent);
}

.scroll-top-btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.scroll-top-btn:hover {
    color: var(--text);
}

/* Responsive Styles for Article */
@media (max-width: 768px) {
    .article-wrapper {
        padding-top: 85px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .comparison-quote-grid,
    .tldr-grid {
        grid-template-columns: 1fr;
    }

    .author-bio-card {
        flex-direction: column;
    }

    .blog-card {
        padding: 1.75rem;
    }

    .blog-card-title {
        font-size: 1.35rem;
    }
}


/* ===== Testimonials ===== */
.testimonials {
    padding: 6rem 3rem;
    background: var(--bg-secondary);
}

.testimonial-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.author-name {
    color: var(--accent);
    font-weight: 500;
}

/* ===== Responsive for New Sections ===== */
@media (max-width: 1024px) {
    .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Command Palette Button in Header ===== */
.cmd-k-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.cmd-k-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cmd-icon {
    padding: 0.15rem 0.4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
}

/* ===== Live AI Playground Section ===== */
.playground-intro h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.playground-intro p {
    color: var(--text-muted);
    font-size: 1.08rem;
    margin-bottom: 2rem;
}

.playground-card {
    background: rgba(14, 14, 14, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-outer);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.playground-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.pg-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: var(--transition);
}

.pg-tab:hover {
    color: var(--text);
}

.pg-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-card);
}

.pg-panel {
    display: none;
    padding: 2rem;
}

.pg-panel.active {
    display: block;
}

/* Tab 1: Deepfake Scanner */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: center;
}

.scanner-viewport {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.scanner-overlay {
    position: relative;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0d0d15 100%);
    border: 1px solid var(--border);
}

.scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
    z-index: 5;
    opacity: 0;
}

.scanner-laser.scanning {
    opacity: 1;
    animation: scanLine 2s ease-in-out infinite;
}

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

    50% {
        top: 98%;
    }

    100% {
        top: 0;
    }
}

.sample-frame-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.frame-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.frame-tag.authentic {
    background: var(--accent-dim);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: var(--accent);
}

.frame-tag.warning {
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid rgba(255, 170, 0, 0.4);
    color: #ffaa00;
}

.frame-tag.fake {
    background: rgba(255, 95, 86, 0.15);
    border: 1px solid rgba(255, 95, 86, 0.4);
    color: #ff5f56;
}

.sample-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

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

.sample-btn {
    padding: 0.3rem 0.65rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.sample-btn.active,
.sample-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.scanner-report {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.report-header h4 {
    font-size: 0.95rem;
}

.run-scan-btn {
    padding: 0.4rem 0.85rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.run-scan-btn:hover {
    background: #00cc6a;
}

.report-metrics {
    margin-bottom: 1.25rem;
}

.r-metric {
    margin-bottom: 0.85rem;
}

.r-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.r-bar-wrap {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.r-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.r-bar.authentic {
    background: var(--accent);
}

.r-bar.low {
    background: #50fa7b;
}

.r-bar.fake {
    background: #ff5f56;
}

.r-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
}

.report-log {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}

.report-log p {
    margin-bottom: 0.2rem;
}

/* Tab 2: NLP Emotion Classifier */
.nlp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nlp-input-box label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.nlp-input-box textarea {
    width: 100%;
    padding: 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    resize: none;
}

.nlp-input-box textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.nlp-quick-prompts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.prompt-chip {
    padding: 0.25rem 0.65rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent);
    cursor: pointer;
    transition: var(--transition);
}

.prompt-chip:hover {
    background: var(--accent-dim);
}

.nlp-results h4 {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.emotion-item {
    margin-bottom: 1rem;
}

.emo-label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.emo-progress {
    height: 10px;
    background: var(--bg);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.emo-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.emo-fill.joy {
    background: #ffbd2e;
}

.emo-fill.surprise {
    background: #00aaff;
}

.emo-fill.sadness {
    background: #bd93f9;
}

.emo-fill.anger {
    background: #ff5f56;
}

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

/* Tab 3: Vision Face Tracker */
.vision-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
}

.vision-canvas-wrap {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

#landmarkCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background: #0d0d15;
}

.vision-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.vision-toggle-btn {
    padding: 0.35rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.vision-toggle-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.vision-stats-panel h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.fps-meter {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.fps-val {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.fps-unit {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.vision-specs {
    list-style: none;
    padding: 0;
}

.vision-specs li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

/* ===== Command Palette Modal ===== */
.command-palette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10005;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.command-palette-overlay.open {
    opacity: 1;
    visibility: visible;
}

.command-palette-modal {
    width: 90%;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(-15px);
    transition: transform 0.25s ease;
}

.command-palette-overlay.open .command-palette-modal {
    transform: translateY(0);
}

.cmd-search-input-wrap {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
}

.cmd-search-icon {
    font-size: 1.1rem;
}

#cmdSearchInput {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
}

#cmdSearchInput:focus {
    outline: none;
}

.cmd-esc-badge {
    padding: 0.15rem 0.45rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cmd-results-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 0.75rem;
}

.cmd-group-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0.75rem 0.25rem;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.cmd-item-icon {
    margin-right: 0.6rem;
}

.cmd-shortcut {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

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

/* ===== Project Detail Modal ===== */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.project-modal {
    width: 100%;
    max-width: 680px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.project-modal-overlay.open .project-modal {
    transform: scale(1);
}

.project-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-modal-close:hover {
    color: var(--text);
    border-color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .panel-grid,
    .nlp-container,
    .vision-container {
        grid-template-columns: 1fr;
    }

    .cmd-k-btn span {
        display: none;
    }
}

/* ===== GitHub Activity Section & Heatmap Matrix ===== */
.github-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.github-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.gh-handle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.gh-profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.gh-follow-btn {
    padding: 0.65rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text);
    transition: var(--transition);
}

.gh-follow-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.github-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gh-stat-card {
    position: relative;
    transition: var(--transition-fluid);
}

.gh-stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.gh-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: block;
}

.github-heatmap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.heatmap-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.heat-box {
    width: 11px;
    height: 11px;
    border-radius: 2px;
}

.heat-box.lvl-0 {
    background: rgba(255, 255, 255, 0.05);
}

.heat-box.lvl-1 {
    background: rgba(0, 255, 136, 0.25);
}

.heat-box.lvl-2 {
    background: rgba(0, 255, 136, 0.5);
}

.heat-box.lvl-3 {
    background: rgba(0, 255, 136, 0.75);
}

.heat-box.lvl-4 {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    grid-template-rows: repeat(7, 12px);
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.heat-cell {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    transition: transform 0.2s;
    cursor: pointer;
}

.heat-cell:hover {
    transform: scale(1.3);
    z-index: 5;
}

/* ===== Interactive CLI Terminal Modal ===== */
.cli-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cli-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.cli-modal {
    background: #0c0d10;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    height: 520px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 255, 136, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cli-overlay.open .cli-modal {
    transform: translateY(0);
}

.cli-header {
    background: #14161d;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cli-dots {
    display: flex;
    gap: 0.45rem;
}

.cli-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    cursor: pointer;
}

.cli-dot.close {
    background: #ff5f56;
}

.cli-dot.minimize {
    background: #ffbd2e;
}

.cli-dot.expand {
    background: #27c93f;
}

.cli-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cli-hint {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}

.cli-body {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: #e0e0e0;
}

.cli-output {
    flex: 1;
    overflow-y: auto;
    line-height: 1.5;
    padding-right: 0.5rem;
}

.cli-banner {
    color: var(--accent);
    font-size: 0.7rem;
    line-height: 1.1;
    white-space: pre;
    margin-bottom: 0.75rem;
}

.cli-welcome {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

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

.cli-cmd-highlight {
    color: var(--accent);
    font-weight: 600;
}

.cli-input-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cli-prompt-symbol {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

#cliInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ===== Keyframe Animations ===== */
@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

@keyframes laserScan {
    0% {
        top: 0%;
        opacity: 0.8;
    }

    50% {
        top: 95%;
        opacity: 1;
    }

    100% {
        top: 0%;
        opacity: 0.8;
    }
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-badge {
    position: relative;
    animation: badgePulse 3s infinite;
}

.timeline-dot {
    animation: dotPulse 2.5s infinite;
}

.scanner-laser {
    animation: laserScan 2.5s ease-in-out infinite;
}

.reveal-on-scroll {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-fluid), transform 0.7s var(--ease-fluid), filter 0.7s var(--ease-fluid);
    will-change: opacity, transform, filter;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    filter: blur(6px);
    transform: translateX(-35px);
    transition: opacity 0.7s var(--ease-fluid), transform 0.7s var(--ease-fluid), filter 0.7s var(--ease-fluid);
    will-change: opacity, transform, filter;
}

.reveal-slide-left.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.94) translateY(20px);
    transition: opacity 0.8s var(--ease-fluid), transform 0.8s var(--ease-fluid), filter 0.8s var(--ease-fluid);
    will-change: opacity, transform, filter;
}

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

/* ===== Contact Section Styling ===== */
.contact {
    padding: 6rem 3rem;
    max-width: 850px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-inset);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fluid);
}

.contact-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.contact-btn.primary {
    background: var(--accent);
    color: #050505;
    font-weight: 600;
}

.contact-btn.primary:hover {
    background: #00e077;
    color: #050505;
}

/* Staggered Grid & List Item Delays */
.about-card:nth-child(1) {
    transition-delay: 0ms;
}

.about-card:nth-child(2) {
    transition-delay: 90ms;
}

.about-card:nth-child(3) {
    transition-delay: 180ms;
}

.about-card:nth-child(4) {
    transition-delay: 270ms;
}

.about-card:nth-child(5) {
    transition-delay: 360ms;
}

.timeline-item:nth-child(1) {
    transition-delay: 0ms;
}

.timeline-item:nth-child(2) {
    transition-delay: 120ms;
}

.project-row:nth-child(1) {
    transition-delay: 0ms;
}

.project-row:nth-child(2) {
    transition-delay: 80ms;
}

.project-row:nth-child(3) {
    transition-delay: 160ms;
}

.project-row:nth-child(4) {
    transition-delay: 240ms;
}

.skill-block:nth-child(1) {
    transition-delay: 0ms;
}

.skill-block:nth-child(2) {
    transition-delay: 100ms;
}

.skill-block:nth-child(3) {
    transition-delay: 200ms;
}

.learning-card:nth-child(1) {
    transition-delay: 0ms;
}

.learning-card:nth-child(2) {
    transition-delay: 100ms;
}

.learning-card:nth-child(3) {
    transition-delay: 200ms;
}

.learning-card:nth-child(4) {
    transition-delay: 300ms;
}

.achievement-item:nth-child(1) {
    transition-delay: 0ms;
}

.achievement-item:nth-child(2) {
    transition-delay: 120ms;
}

.contact-btn:nth-child(1) {
    transition-delay: 0ms;
}

.contact-btn:nth-child(2) {
    transition-delay: 80ms;
}

.contact-btn:nth-child(3) {
    transition-delay: 160ms;
}

.contact-btn:nth-child(4) {
    transition-delay: 240ms;
}

.about-card,
.learning-card,
.achievement-item,
.blog-card,
.project-row,
.skill-block,
.timeline-item,
.contact-btn {
    transition: var(--transition-fluid);
}

.about-card:hover,
.learning-card:hover,
.achievement-item:hover,
.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.08);
}

.hero-badge,
.floating-badge {
    animation: badgePulse 3.5s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
        border-color: var(--border);
    }

    100% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.35);
        border-color: var(--accent);
    }
}

.link-pill.primary,
.header-cta {
    position: relative;
    overflow: hidden;
}

.link-pill.primary::after,
.header-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.link-pill.primary:hover::after,
.header-cta:hover::after {
    left: 100%;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-badge,
    .floating-badge {
        animation: none !important;
    }

    .about-card:hover,
    .learning-card:hover,
    .achievement-item:hover,
    .blog-card:hover,
    .link-pill:hover,
    .filter-btn:hover {
        transform: none !important;
    }
}

/* ===== High-End Visual Design: Doppelrand (Double-Bezel) Architecture ===== */
.doppelrand-shell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: var(--radius-outer);
    transition: var(--transition-fluid);
}

.doppelrand-shell:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.04);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.doppelrand-core {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-inset);
    border-radius: calc(var(--radius-outer) - 6px);
    padding: 1.75rem;
    height: 100%;
}

/* ===== Button-in-Button Island CTA Architecture ===== */
.btn-island {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1.4rem;
    background: var(--accent);
    color: #050505;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fluid);
}

.btn-island:hover {
    background: #00e077;
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.35);
}

.btn-island:active {
    transform: scale(0.97);
}

.btn-icon-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-fluid);
}

.btn-island:hover .btn-icon-bubble {
    transform: translate(2px, -2px) scale(1.1);
    background: rgba(5, 5, 5, 0.25);
}

/* ===== Cyber-Green Glowing Custom Cursor ===== */
@media (pointer: fine) {
    body {
        cursor: none;
    }

    a,
    button,
    input,
    textarea,
    select,
    .project-row,
    .about-card,
    .learning-card,
    .achievement-item,
    .blog-card,
    .link-pill,
    .filter-btn,
    .prompt-chip,
    .sample-btn {
        cursor: none !important;
    }
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 255, 136, 0.6);
    background: rgba(0, 255, 136, 0.06);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.35);
    transition: width 0.3s var(--ease-fluid), height 0.3s var(--ease-fluid), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(1px);
}

/* Hover Expansion State */
.custom-cursor-follower.hovered {
    width: 58px;
    height: 58px;
    background: rgba(0, 255, 136, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.6);
}

.custom-cursor-dot.hovered {
    transform: translate(-50%, -50%) scale(1.6);
    background: #ffffff;
    box-shadow: 0 0 15px #ffffff, 0 0 30px var(--accent);
}

/* Active Click Scale */
.custom-cursor-follower.active {
    transform: translate(-50%, -50%) scale(0.8);
}


/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM (Fluid Glass Architecture)
   ========================================================================== */

/* Mobile Hamburger Toggle Button */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-fluid), opacity 0.3s ease, background 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent);
}

.mobile-nav-actions {
    display: none;
}


/* Breakpoint: Tablet & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5.5vw, 3.2rem);
    }

    .hero-scroll-indicator {
        display: none;
    }

    .floating-badge.top-right {
        top: -12px;
        right: 10px;
    }

    .floating-badge.bottom-left {
        bottom: -10px;
        left: 10px;
    }
}


/* Breakpoint: Navigation & Mobile Drawer (<= 900px) */
@media (max-width: 900px) {
    .header {
        width: calc(100% - 1.5rem);
        top: 0.75rem;
        padding: 0.65rem 1.25rem;
        border-radius: 40px;
    }

    .header-actions {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(8, 8, 8, 0.96);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-fluid), visibility 0.4s ease;
        padding: 2rem 1.5rem;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav a {
        font-size: 1.35rem;
        font-weight: 600;
        color: var(--text);
        transform: translateY(15px);
        transition: transform 0.4s var(--ease-fluid), color 0.3s ease;
        padding: 0.4rem 1rem;
    }

    .nav.active a {
        transform: translateY(0);
    }

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
        margin-top: 1.25rem;
        width: 100%;
        max-width: 280px;
        border-top: 1px solid var(--border-hairline);
        padding-top: 1.25rem;
    }

    .mobile-nav-actions .cmd-k-btn,
    .mobile-nav-actions .header-cta {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
        display: inline-flex;
        align-items: center;
    }

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

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


/* Breakpoint: Phones (<= 768px) */
@media (max-width: 768px) {
    .about,
    .experience-section,
    .projects,
    .playground,
    .skills,
    .learning,
    .achievements,
    .blog,
    .contact {
        padding: 2rem 1.25rem !important;
    }

    .hero {
        padding: 95px 1.25rem 2rem !important;
    }

    .hero-grid {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-links {
        gap: 0.6rem;
    }

    .link-pill,
    .btn-island {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 44px;
        font-size: 0.88rem;
    }

    .hero-tech-pills {
        gap: 0.4rem;
    }

    .tech-pill {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .terminal-body {
        padding: 1rem 1.1rem;
        font-size: 0.8rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .indent-1 {
        padding-left: 0.75rem;
    }

    .indent-2 {
        padding-left: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .timeline-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

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

    .project-filters,
    .filter-btn-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .project-filters::-webkit-scrollbar,
    .filter-btn-container::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 42px;
        padding: 0.45rem 1.1rem;
    }

    .contact {
        padding: 2rem 1.25rem;
        max-width: 100%;
    }

    .contact-links {
        flex-direction: column;
        width: 100%;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important;
        min-height: 48px;
    }

    .form-submit {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    .article-wrapper {
        padding: 85px 1.25rem 3rem !important;
    }

    .article-title {
        font-size: clamp(1.6rem, 6.5vw, 2.4rem);
    }

    .article-subtitle {
        font-size: 0.98rem;
    }

    .article-container pre,
    .article-container table {
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        font-size: 0.82rem;
    }
}


/* Breakpoint: Small Mobile Phones (<= 540px) */
@media (max-width: 540px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card.main {
        grid-column: span 1;
        grid-row: span 1;
        padding: 1.25rem;
    }

    .about-card.main h2 {
        font-size: 1.25rem;
    }

    .stat-glass-card {
        padding: 4px;
    }

    .stat-card-inner {
        padding: 1.15rem;
    }

    .stat-big {
        font-size: 1.9rem;
    }

    .terminal-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .floating-badge {
        position: relative;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        display: inline-block;
        margin-bottom: 0.5rem;
        margin-right: 0.5rem;
        font-size: 0.78rem;
    }

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

    #cliModalOverlay,
    #cmdPaletteOverlay {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .cli-container,
    .cmd-palette {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 85vh;
        overflow-y: auto;
    }

    .cli-input-line input,
    .cmd-search-input {
        font-size: 16px !important;
    }
}