/* ═══════════════════════════════════════════════════
   THE LONE DEBUGGER
   Western landscape · Apple Liquid Glass · Terminal
   ═══════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
    /* Liquid glass fills */
    --glass-dark:      rgba(9, 5, 20, 0.40);
    --glass-dark-2:    rgba(9, 5, 20, 0.50);
    --glass-dark-3:    rgba(9, 5, 20, 0.58);
    --glass-border:    rgba(255, 255, 255, 0.14);
    --glass-top:       rgba(255, 255, 255, 0.42);
    --glass-specular:  rgba(255, 255, 255, 0.30);
    --glass-shine:     rgba(255, 255, 255, 0.08);

    /* Terminal text palette (cool vs warm bg = great contrast) */
    --text:       rgba(235, 228, 215, 0.93);
    --text-dim:   rgba(183, 191, 195, 0.949);
    --text-faint: rgba(130, 120, 105, 0.40);

    /* Cool terminal colors (contrast against warm landscape) */
    --cyan:       #4dd9ff;
    --aqua:       #5eecd5;
    --green:      #44ffaa;
    --yellow:     #ffe566;
    --red:        #ff5f57;

    /* Warm accents (echo the landscape) */
    --amber:      #ffab45;
    --terra:      #e07040;
    --sand:       #d4a96a;

    /* Glow */
    --glow-cyan:  0 0 22px rgba(77, 217, 255, 0.38), 0 0 8px rgba(77, 217, 255, 0.22);
    --glow-amber: 0 0 22px rgba(255, 171, 69, 0.38);
    --glow-green: 0 0 16px rgba(68, 255, 170, 0.40);
    --glow-sm:    0 0 8px rgba(77, 217, 255, 0.45);

    --radius:    14px;
    --radius-sm: 8px;
    --font:      'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --speed:     0.24s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font); font-size: 14px; line-height: 1.7;
        color: var(--text); background: #0b041a; overflow-x: hidden; }
a     { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════
   BACKGROUND / LANDSCAPE
══════════════════════════════════════ */

.landscape-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.landscape-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: brightness(0.55);
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Subtle scanlines */
.scanline-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.035) 2px,
        rgba(0, 0, 0, 0.035) 4px
    );
}

/* Edge darkening vignette */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.60) 100%);
}

/* Warm dust particles */
#particle-container {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.dust {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%,
        rgba(255, 210, 110, 0.95) 0%,
        rgba(255, 155, 45, 0.45) 45%,
        transparent 100%);
    animation: dust-rise linear infinite;
}

@keyframes dust-rise {
    0%   { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; }
    12%  { opacity: var(--peak, 0.55); }
    80%  { opacity: calc(var(--peak, 0.55) * 0.4); }
    100% { transform: translateY(-75vh) translateX(var(--drift, 40px)) scale(1.2); opacity: 0; }
}

/* ══════════════════════════════════════
   APPLE LIQUID GLASS — base mixin
   Applied to: terminal windows, glass panels, nav
══════════════════════════════════════ */

.terminal-window,
.glass-panel {
    position: relative;
    /* Very transparent dark fill — landscape bleeds through beautifully */
    background: var(--glass-dark);
    /* The core effect: heavy blur + saturation = glass picks up landscape colors */
    backdrop-filter: blur(54px) saturate(188%) brightness(0.80);
    -webkit-backdrop-filter: blur(54px) saturate(188%) brightness(0.80);
    border-radius: var(--radius);
    /* Key: TOP border is bright (specular), sides are dim */
    border: 1px solid var(--glass-border);
    border-top-color: var(--glass-top);
    /* Inner specular line at very top = signature Liquid Glass effect */
    box-shadow:
        inset 0 1.5px 0 var(--glass-specular),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 1px 0 0 rgba(255, 255, 255, 0.04),
        0 28px 64px rgba(0, 0, 0, 0.48),
        0 6px 22px rgba(0, 0, 0, 0.30),
        0 0 0 0.5px rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* Inner shine gradient — upper half of every glass panel */
.terminal-window::before,
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 52%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.025) 42%,
        transparent 100%
    );
    border-radius: var(--radius) var(--radius) 0 0;
    pointer-events: none;
    z-index: 1;
}

/* ══════════════════════════════════════
   TERMINAL CHROME
══════════════════════════════════════ */

.terminal-titlebar {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.04);
    padding: 11px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.terminal-dots { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.terminal-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}
.dot-red    { background: #ff5f57; box-shadow: 0 0 7px rgba(255, 95, 87,  0.75); }
.dot-yellow { background: #febc2e; box-shadow: 0 0 7px rgba(254, 188, 46, 0.75); }
.dot-green  { background: #28c840; box-shadow: 0 0 7px rgba(40,  200, 64, 0.75); }

.terminal-title-text {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.07em;
    flex: 1;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.terminal-body {
    position: relative;
    z-index: 2;
    padding: 18px 22px;
    font-size: 13px;
    line-height: 1.88;
}

/* Terminal syntax tokens */
.t-comment  { color: rgba(140, 168, 200, 0.58); font-style: italic; }
.t-key      { color: var(--aqua); }
.t-op       { color: var(--text-dim); }
.t-string   { color: var(--yellow); }
.t-array    { color: var(--cyan); }
.t-cyan     { color: var(--cyan); }
.t-prompt   { color: var(--amber); font-weight: 700; }
.t-cursor   { color: var(--green); animation: blink 1.1s step-end infinite; }
.t-blank    { height: 8px; display: block; }

.t-line    { display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px; }
.t-output  { color: var(--green); opacity: 0.85; padding-left: 14px; display: block; }
.t-command { color: var(--text); }

/* Hero terminal line types */
.term-heading {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}
.term-text  { color: var(--text-dim); line-height: 1.85; }
.term-label { color: var(--amber); font-weight: 500; margin-top: 2px; }
.term-item  { color: var(--text-dim); padding-left: 4px; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */

.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8, 4, 18, 0.38);
    backdrop-filter: blur(50px) saturate(190%) brightness(0.82);
    -webkit-backdrop-filter: blur(50px) saturate(190%) brightness(0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    border-top: none;
    /* Specular at the very bottom edge of nav */
    box-shadow:
        inset 0 -1.5px 0 rgba(255, 255, 255, 0.06),
        0 6px 28px rgba(0, 0, 0, 0.35);
    transition: box-shadow var(--speed) var(--ease);
}
.glass-nav::before { display: none; }

.glass-nav.scrolled {
    box-shadow:
        inset 0 -1.5px 0 rgba(255, 255, 255, 0.10),
        0 8px 40px rgba(0, 0, 0, 0.50);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 36px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.logo-main {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 0 24px rgba(255, 171, 69, 0.55), 0 1px 6px rgba(0,0,0,0.8);
}
.logo-cursor {
    color: var(--amber);
    font-size: 13px;
    animation: blink 1.1s step-end infinite;
    text-shadow: var(--glow-amber);
}

/* Nav links */
.nav-links { display: flex; gap: 26px; flex: 1; }
.nav-link {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    position: relative;
    transition: color var(--speed) var(--ease);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--amber);
    box-shadow: 0 0 6px var(--amber);
    transition: width var(--speed) var(--ease);
}
.nav-link:hover { color: var(--amber); }
.nav-link:hover::after { width: 100%; }

/* Status indicator */
.nav-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--green);
    text-shadow: 0 0 10px rgba(68, 255, 170, 0.5);
}
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--green); }
    50%       { opacity: 0.45; box-shadow: 0 0 3px var(--green); }
}

/* ══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════ */

.hero-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 52px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 28px 64px;
}

/* Hero text side */
.hero-eyebrow {
    font-size: 12px;
    color: var(--amber);
    letter-spacing: 0.14em;
    margin-bottom: 18px;
    opacity: 0.82;
    text-shadow: 0 0 16px rgba(255,171,69,0.4), 0 1px 4px rgba(0,0,0,0.7);
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 5.4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}

.title-prefix {
    display: block;
    font-size: 0.42em;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 4px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* Glitch text effect */
.glitch-text {
    color: var(--text);
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.glitch-text.accent {
    color: var(--amber);
    text-shadow: var(--glow-amber), 0 2px 8px rgba(0,0,0,0.6);
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; opacity: 0;
}
.glitch-text::before {
    color: var(--red);
    animation: glitch-a 5s steps(2, end) infinite;
}
.glitch-text::after {
    color: var(--cyan);
    animation: glitch-b 5s steps(2, end) infinite;
}

@keyframes glitch-a {
    0%, 88%, 100% { opacity: 0; clip-path: none; transform: none; }
    89% { opacity: 0.80; clip-path: inset(42% 0 44% 0); transform: translate(-4px,  1px); }
    91% { opacity: 0.80; clip-path: inset(88% 0  4% 0); transform: translate( 4px, -1px); }
    93% { opacity: 0; }
}
@keyframes glitch-b {
    0%, 88%, 100% { opacity: 0; clip-path: none; transform: none; }
    90% { opacity: 0.70; clip-path: inset(56% 0 28% 0); transform: translate( 5px, -1px); }
    92% { opacity: 0.70; clip-path: inset(22% 0 64% 0); transform: translate(-5px,  1px); }
    94% { opacity: 0; }
}

.hero-sub {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 26px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.55;
    text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
}
.hero-tag {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--amber);
    background: rgba(255, 171, 69, 0.08);
    border: 1px solid rgba(255, 171, 69, 0.22);
    border-radius: 4px;
    padding: 3px 10px;
    text-shadow: 0 0 12px rgba(255,171,69,0.3);
    backdrop-filter: blur(10px);
}

.hero-actions { display: flex; gap: 14px; align-items: center; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: rgba(255, 171, 69, 0.14);
    border: 1px solid rgba(255, 171, 69, 0.45);
    border-top-color: rgba(255, 171, 69, 0.65);
    border-radius: var(--radius-sm);
    color: var(--amber);
    font-family: var(--font);
    font-size: 13px;
    letter-spacing: 0.06em;
    cursor: pointer;
    backdrop-filter: blur(30px);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 171, 69, 0.30),
        var(--glow-amber),
        0 6px 20px rgba(0,0,0,0.3);
    transition: all var(--speed) var(--ease);
}
.btn-primary:hover {
    background: rgba(255, 171, 69, 0.24);
    box-shadow: inset 0 1.5px 0 rgba(255,171,69,0.4),
                0 0 32px rgba(255,171,69,0.5),
                0 0 64px rgba(255,171,69,0.18),
                0 8px 24px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top-color: rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 13px;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.14);
    transition: all var(--speed) var(--ease);
    cursor: pointer;
}
.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

/* ── Hero terminal ── */
.hero-terminal { font-size: 13px; min-height: 280px; }
.hero-terminal .terminal-body { min-height: 220px; }

/* ── Hero about column ── */
.hero-about {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    align-items: start;
}

/* Smaller profile pic in the hero context */
.hero-about .profile-pic {
    width: 140px;
    height: 140px;
}

.about-terminal {
    font-size: 13px;
}

.about-terminal .terminal-body {
    padding: 16px 20px;
}

/* ── HUD ── */
.hud-element {
    position: absolute;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--text-faint);
    line-height: 1.95;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.hud-br { bottom: 36px; right: 28px; text-align: right; }
.hud-line { display: flex; gap: 6px; justify-content: flex-end; }
.hud-val  { color: var(--text-dim); }

/* ══════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════ */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 28px;
    position: relative;
    z-index: 10;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 40px;
}
.section-prompt {
    font-size: 13px;
    color: var(--amber);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-shadow: var(--glow-amber), 0 1px 6px rgba(0,0,0,0.8);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255,171,69,0.28), transparent);
}

/* ══════════════════════════════════════
   COOL STUFF
══════════════════════════════════════ */

.cool-section {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.15), transparent);
}

/* Tabs */
.cool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.cool-tab {
    font-family: var(--font);
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 8px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-top-color: rgba(255,255,255,0.22);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    cursor: pointer;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.10);
    transition: all var(--speed) var(--ease);
}
.cool-tab:hover {
    border-color: rgba(255,171,69,0.30);
    color: var(--amber);
}
.cool-tab.active {
    background: rgba(255,171,69,0.10);
    border-color: rgba(255,171,69,0.38);
    border-top-color: rgba(255,171,69,0.62);
    color: var(--amber);
    box-shadow: inset 0 1.5px 0 rgba(255,171,69,0.26), 0 0 16px rgba(255,171,69,0.08);
}

/* Language badge in titlebar */
.cool-lang-badge {
    margin-left: auto;
    font-size: 10px;
    color: var(--aqua);
    letter-spacing: 0.12em;
    background: rgba(94,236,213,0.07);
    border: 1px solid rgba(94,236,213,0.18);
    border-top-color: rgba(94,236,213,0.34);
    border-radius: 4px;
    padding: 2px 9px;
    text-shadow: 0 0 10px rgba(94,236,213,0.28);
}

/* Code terminal */
.cool-terminal { margin-bottom: 14px; }

.cool-code-wrap {
    display: flex;
    overflow-y: auto;
    max-height: 400px;
    scroll-behavior: smooth;
    position: relative;
    z-index: 2;
}

.cool-line-nums {
    flex-shrink: 0;
    padding: 16px 14px 16px 18px;
    border-right: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-faint);
    user-select: none;
    background: rgba(0,0,0,0.12);
    text-align: right;
}

.code-line-num {
    display: block;
    min-width: 22px;
}

.cool-code-body {
    flex: 1;
    padding: 16px 24px;
    font-size: 13px;
    line-height: 1.75;
    font-family: var(--font);
    white-space: pre;
    overflow-x: auto;
}

.code-line {
    display: block;
    white-space: pre;
    min-height: 1.75em;
}

/* Syntax tokens */
.code-kw  { color: var(--amber); font-weight: 500; }
.code-str { color: var(--green); }
.code-num { color: var(--cyan); }
.code-comment { color: rgba(140,168,200,0.48); font-style: italic; }

/* Summary panel */
.cool-summary { }

.cool-summary-text {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--text-dim);
    margin-bottom: 0;
}

/* Shared tag styles (used by cool stuff + blog grid) */
.post-tags-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.post-tag {
    font-size: 11px;
    color: rgba(77, 217, 255, 0.75);
    background: rgba(77, 217, 255, 0.06);
    border: 1px solid rgba(77, 217, 255, 0.15);
    border-top-color: rgba(77, 217, 255, 0.28);
    border-radius: 4px;
    padding: 2px 9px;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
}

/* ══════════════════════════════════════
   BLOG GRID
══════════════════════════════════════ */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(342px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.post-card {
    cursor: pointer;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
                border-top-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.post-card:hover {
    transform: translateY(-5px) scale(1.006);
    background: var(--glass-dark-2);
    border-top-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 32px 72px rgba(0, 0, 0, 0.55),
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 48px rgba(255, 171, 69, 0.10);
}

.post-card-body {
    position: relative;
    z-index: 2;
    padding: 22px 24px;
}
.card-prompt {
    font-size: 11px;
    color: var(--text-faint);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-cmd { color: var(--text-dim); }
.card-prompt .t-prompt { color: var(--amber); }

.card-category {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aqua);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(94,236,213,0.3);
}
.card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.42;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.card-excerpt {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.78;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 14px;
}
.card-date, .card-read { font-size: 11px; color: var(--text-faint); }

/* Load more */
.load-more-container { text-align: center; }
.btn-terminal {
    font-family: var(--font);
    font-size: 13px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top-color: rgba(255, 255, 255, 0.26);
    border-radius: var(--radius-sm);
    padding: 13px 30px;
    cursor: pointer;
    transition: all var(--speed) var(--ease);
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(30px);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.14);
}
.btn-terminal:hover {
    border-color: rgba(255, 171, 69, 0.40);
    border-top-color: rgba(255, 171, 69, 0.60);
    color: var(--amber);
    box-shadow: inset 0 1.5px 0 rgba(255,171,69,0.28), var(--glow-amber);
}
.btn-prompt { color: var(--amber); }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */

.about-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* Profile picture column */
.profile-pic-col {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1.5px dashed rgba(255, 255, 255, 0.20);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-faint);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-pic:hover {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.24),
        0 8px 40px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(255, 171, 69, 0.08);
}

/* When a real image is added it fills the circle */
.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-pic-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    text-transform: uppercase;
}

.about-body { font-size: 13px; }
.about-body p { margin-bottom: 3px; }

.about-greeting {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.about-text {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.92;
    font-family: var(--font);
}

/* Skills panel */
.skills-panel {
    padding: 26px 28px;
    height: 100%;
}

.skills-title {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 26px;
    font-weight: 600;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.skills-title .t-prompt { color: var(--amber); margin-right: 6px; }

.skill-group { margin-bottom: 22px; position: relative; z-index: 2; }
.skill-group:last-child { margin-bottom: 0; }

.skill-label {
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    margin-bottom: 9px;
    text-transform: uppercase;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
    font-size: 12px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-top-color: rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
    transition: all var(--speed) var(--ease);
    cursor: default;
}
.skill-tag:hover {
    color: var(--amber);
    border-color: rgba(255, 171, 69, 0.30);
    border-top-color: rgba(255, 171, 69, 0.50);
    background: rgba(255, 171, 69, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,171,69,0.22), 0 0 14px rgba(255,171,69,0.15);
}

/* ══════════════════════════════════════
   CERTIFICATIONS
══════════════════════════════════════ */

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.cert-card {
    transition: transform var(--speed) var(--ease),
                border-top-color var(--speed) var(--ease),
                background var(--speed) var(--ease);
}
.cert-card:hover {
    transform: translateY(-4px);
    background: var(--glass-dark-2);
    border-top-color: rgba(255,255,255,0.50);
}

.cert-body {
    position: relative;
    z-index: 2;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

/* Badge image or placeholder */
.cert-badge-wrap {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.cert-badge-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.cert-badge-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 1.5px dashed rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: border-color var(--speed) var(--ease);
}
.cert-card:hover .cert-badge-placeholder {
    border-color: rgba(255,171,69,0.28);
}

.cert-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.cert-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.cert-issuer {
    font-size: 11px;
    color: var(--aqua);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(94,236,213,0.25);
}

.cert-date {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--amber);
    letter-spacing: 0.06em;
    text-shadow: 0 0 10px rgba(255,171,69,0.3);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    margin-top: 6px;
    transition: border-color var(--speed) var(--ease), text-shadow var(--speed) var(--ease);
}
.cert-link:hover {
    border-bottom-color: var(--amber);
    text-shadow: var(--glow-amber);
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */

.contact-terminal .terminal-body { padding: 28px 32px; }
.contact-intro {
    color: var(--text-dim);
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.8;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-top-color: rgba(255,255,255,0.22);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.12);
    transition: all var(--speed) var(--ease);
    position: relative;
    z-index: 2;
    text-decoration: none;
}
.contact-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
    border-top-color: rgba(255,255,255,0.42);
    box-shadow:
        inset 0 1.5px 0 rgba(255,255,255,0.22),
        0 8px 28px rgba(0,0,0,0.30);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.90);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.18));
    transition: filter var(--speed) var(--ease), color var(--speed) var(--ease);
}
.contact-card-icon svg {
    width: 22px;
    height: 22px;
}
.contact-card:hover .contact-card-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.38));
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.contact-card-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.90);
    letter-spacing: 0.02em;
    transition: color var(--speed) var(--ease);
}
.contact-card:hover .contact-card-name { color: #ffffff; }

.contact-card-handle {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--speed) var(--ease);
}
.contact-card:hover .contact-card-handle { color: var(--text-dim); }

.contact-card-arrow {
    font-size: 14px;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    transition: color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.contact-card:hover .contact-card-arrow {
    color: rgba(255,255,255,0.70);
    transform: translateX(3px);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */

.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 44px 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(30px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    text-shadow: 0 0 24px rgba(255,171,69,0.20), 0 1px 6px rgba(0,0,0,0.6);
}
.footer-meta { font-size: 12px; color: var(--text-faint); }
.footer-copy { font-size: 11px; color: var(--text-faint); opacity: 0.65; }

/* ══════════════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════════════ */

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

@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

.fade-up { animation: fade-up 0.5s var(--ease) both; }

/* ══════════════════════════════════════
   HAMBURGER / MOBILE NAV
══════════════════════════════════════ */

.nav-hamburger {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    border-top-color: rgba(255,255,255,0.26);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1;
    backdrop-filter: blur(20px);
    transition: all var(--speed) var(--ease);
    flex-shrink: 0;
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.12);
}
.nav-hamburger:hover {
    border-color: rgba(255,171,69,0.40);
    border-top-color: rgba(255,171,69,0.60);
    color: var(--amber);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    z-index: 99;
    background: rgba(8, 4, 18, 0.94);
    backdrop-filter: blur(44px) saturate(180%);
    -webkit-backdrop-filter: blur(44px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    padding: 10px 28px 18px;
    flex-direction: column;
    gap: 0;
}
.mobile-nav.open { display: flex; }

.mobile-nav-link {
    display: block;
    padding: 14px 0;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color var(--speed) var(--ease), padding-left var(--speed) var(--ease);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--amber); padding-left: 6px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 88px;
        gap: 36px;
    }
    .hero-terminal { display: none; }

    /* Keep about visible but switch to tighter side-by-side */
    .hero-about {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 18px;
    }
    .hero-about .profile-pic {
        width: 110px;
        height: 110px;
    }

    .hud-element { display: none; }
    .about-grid  { grid-template-columns: 1fr; }
    .profile-pic-col { justify-content: flex-start; }
    .cool-code-wrap { max-height: 320px; }
}

@media (max-width: 600px) {
    /* Nav */
    .nav-links     { display: none; }
    .nav-status    { display: none; }
    .nav-hamburger { display: flex; align-items: center; justify-content: center; }
    .nav-inner     { gap: 0; justify-content: space-between; }

    /* Hero */
    .hero-section  { padding: 78px 20px 48px; gap: 28px; }
    .hero-title    { font-size: 2.8rem; }
    .hero-sub      { font-size: 15px; }
    .hero-actions  { flex-wrap: wrap; gap: 10px; }
    .btn-primary,
    .btn-ghost     { width: 100%; justify-content: center; }

    /* About panel — stack vertically on small phones */
    .hero-about {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hero-about .profile-pic {
        width: 88px;
        height: 88px;
        margin: 0 auto;
    }

    /* Sections */
    .section-container { padding: 56px 20px; }
    .posts-grid        { grid-template-columns: 1fr; }

    /* Cool stuff */
    .cool-code-wrap { max-height: 260px; }
    .cool-code-body { font-size: 12px; padding: 12px 16px; }
    .cool-line-nums { font-size: 12px; padding: 12px 10px 12px 14px; }

    /* Post cards */
    .post-card-body { padding: 18px 20px; }
}
