/* --- VARIABLES: Design system --- */
:root {
    color-scheme: dark;
    /* ── Base palette ─────────────────────────────────── */
    --bg-color:       #080c08;
    --surface-color:  #0e1410;
    --surface-2:      #131a14;
    --glass:          rgba(14, 20, 16, 0.75);
    --glass-hover:    rgba(19, 26, 20, 0.82);

    /* ── Typography ───────────────────────────────────── */
    --text-primary:   #e8ede8;
    --text-secondary: #7a8c7a;
    --text-muted:     #4a5a4a;

    /* ── Accent (neon lime, used precisely) ───────────── */
    --accent-color:   #ccff00;
    --accent-dim:     rgba(204, 255, 0, 0.6);
    --accent-glow:    rgba(204, 255, 0, 0.18);
    --accent-subtle:  rgba(204, 255, 0, 0.06);

    /* ── Atmospheric gradient blob colors ─────────────── */
    --atm-emerald:    rgba(16, 185, 129, 0.14);
    --atm-teal:       rgba(20, 184, 166, 0.10);
    --atm-lime:       rgba(132, 204, 22, 0.12);

    /* ── Navigation ───────────────────────────────────── */
    --nav-bg:         rgba(8, 12, 8, 0.88);
    --nav-border:     rgba(255, 255, 255, 0.07);
    --nav-text:       #e8ede8;

    /* ── Fonts ────────────────────────────────────────── */
    --font-code:      'Fira Code', monospace;
    --font-body:      'DM Sans', sans-serif;
    --font-display:   'Playfair Display', serif;

    /* ── Easing & Duration ────────────────────────────── */
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-cinematic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dur-fast: 0.18s;
    --dur-mid:  0.35s;
    --dur-slow: 0.65s;
}

/* --- LIGHT THEME (Warm Editorial) --- */
[data-theme="light"] {
    --bg-color:      #f5f2eb;
    --surface-color: #eae6dc;
    --surface-2:     #dedad0;
    /* Darker text for high contrast on warm ivory — WCAG AAA on bg */
    --text-primary:  #0c0f0a;
    --text-secondary: #353d30;
    --text-muted:    #5c6458;

    --accent-color:  #1a5c00;
    --accent-dim:    rgba(26, 92, 0, 0.65);
    --accent-glow:   rgba(26, 92, 0, 0.14);
    --accent-subtle: rgba(26, 92, 0, 0.06);

    --atm-emerald:   rgba(16, 140, 80, 0.07);
    --atm-teal:      rgba(20, 130, 120, 0.05);
    --atm-lime:      rgba(80, 140, 10, 0.06);

    --nav-bg:        rgba(245, 242, 235, 0.94);
    --nav-border:    rgba(12, 15, 10, 0.12);
    --nav-text:      #0c0f0a;

    --glass:         rgba(239, 236, 228, 0.70);
    --glass-hover:   rgba(230, 226, 216, 0.78);
    color-scheme: light;
}

/* --- GLOBAL RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-optical-sizing: auto;
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C%2Ffilter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C%2Fsvg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* --- VANTA BACKGROUND --- */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-code);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

/* Global 'a' tags */
a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

section {
    padding: 80px 0;
}

/* --- COMPONENTS: The "Card" Look --- */
.card, .project-item, .skill-box {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nav-border);
    padding: 2rem;
    border-radius: 4px;
    transition:
        transform var(--dur-mid) var(--ease-out-expo),
        box-shadow var(--dur-mid) ease,
        background var(--dur-mid) ease,
        border-color var(--dur-mid) ease;
    position: relative;
    overflow: hidden;
}

.card:hover, .project-item:hover {
    transform: translateY(-6px);
    background: var(--glass-hover);
    border-color: rgba(204, 255, 0, 0.2);
    box-shadow:
        0 0 0 1px rgba(204, 255, 0, 0.18),
        0 12px 40px -8px rgba(0, 0, 0, 0.7),
        0 0 30px -10px rgba(204, 255, 0, 0.10);
}

.card::before, .project-item::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), rgba(204, 255, 0, 0.3) 50%, transparent);
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.card:hover::before, .project-item:hover::before {
    transform: scaleX(1);
}

/* --- BUTTONS: Neon Style --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-code);
    font-weight: bold;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* --- SUPER SAIYAN BUTTON & MODE --- */
.btn-saiyan {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid #ffdd00;
    color: #ffdd00;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border-radius: 0;
    line-height: normal;
}

.btn-saiyan:hover {
    background: #ffdd00;
    color: #000;
    box-shadow: 0 0 25px rgba(255, 221, 0, 0.8);
}

.saiyan-mode {
    background: linear-gradient(135deg, #ffdd00, #ffaa00) !important;
    box-shadow: 0 0 50px rgba(255, 221, 0, 0.6) !important;
    transition: all 0.5s ease;
}

/* --- NAVIGATION: 3-column layout --- */
nav {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    /* Break out of .container to span full viewport width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 18px calc(50vw - 50% + 40px);
}

/* Brand: left column */
.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-brand-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nav-text);
    letter-spacing: 0.5px;
    border-bottom: none;
    transition: color 0.3s ease;
}

.nav-brand-name:hover {
    background: none;
    box-shadow: none;
    color: var(--accent-color);
}

.nav-brand-tagline {
    font-family: var(--font-code);
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Links: center column */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    color: var(--nav-text);
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    position: relative;
    border-bottom: none;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 14px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    background: none;
    box-shadow: none;
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: calc(100% - 28px);
}

.nav-links a.active {
    color: var(--accent-color);
    font-weight: bold;
}

.nav-links a.active::after {
    width: calc(100% - 28px);
}

/* Controls: right column (aligned right) */
.nav-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

/* --- THEME TOGGLE BUTTON --- */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 12px;
    cursor: pointer;
    font-family: var(--font-code);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- HAMBURGER MENU TOGGLE (Mobile only) --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 12px;
    cursor: pointer;
    font-family: var(--font-code);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
}

.menu-toggle:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- SECTION HEADINGS: Hybrid style --- */
.section-label {
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    display: block;
    margin-bottom: 8px;
    opacity: 0.9;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* --- PAGE HERO (inner pages: blog, projects, cv) --- */
.page-hero {
    padding: 60px 0 50px;
    border-left: 3px solid var(--accent-color);
    padding-left: 40px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: -30px;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 80% at 0% 50%, var(--atm-emerald) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 90% 20%, var(--atm-teal) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-left,
.page-hero-meta {
    position: relative;
    z-index: 1;
}

/* --- ATMOSPHERIC SECTION DIVIDERS --- */
section + section {
    position: relative;
}

section + section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--nav-border) 20%,
        rgba(204, 255, 0, 0.08) 50%,
        var(--nav-border) 80%,
        transparent 100%
    );
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.page-hero-label {
    font-family: var(--font-code);
    font-size: 0.88rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    display: block;
    margin-bottom: 16px;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 0.95;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.page-hero-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
}

.page-hero-meta {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nav-border);
    padding: 28px;
    min-width: 260px;
    flex-shrink: 0;
}

.page-hero-meta-label {
    font-family: var(--font-code);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    display: block;
    margin-bottom: 12px;
}

.page-hero-meta-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.page-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    border-top: 1px solid var(--nav-border);
    padding-top: 16px;
}

.page-hero-stat-label {
    font-family: var(--font-code);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.page-hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-primary);
}

/* --- HERO SECTION LAYOUT --- */
#hero {
    padding: 0; /* override section padding — panels control their own spacing */
    position: relative;
    isolation: isolate;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Left text panel */
.hero-panel-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 32px 48px 0;
}

/* Right photo panel */
.hero-panel-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0 48px 32px;
}

/* Large display name */
.hero-display-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Rectangular photo frame with corner accents */
.video-frame-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

/* Corner accents */
.video-frame-wrapper::before,
.video-frame-wrapper::after {
    content: '+';
    position: absolute;
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--accent-color);
    z-index: 3;
    line-height: 1;
}

.video-frame-wrapper::before {
    top: -8px;
    left: -8px;
}

.video-frame-wrapper::after {
    bottom: -8px;
    right: -8px;
}

.video-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 0;
    padding: 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--accent-color);
    box-shadow:
        4px 4px 0 var(--accent-color),
        0 0 60px rgba(204, 255, 0, 0.06),
        0 20px 60px rgba(0, 0, 0, 0.6);
    display: grid;
    overflow: hidden;
    position: relative;
}

/* Stack video and GIF in the same grid cell */
.video-frame video,
.video-frame img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    background-color: var(--bg-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-frame video.active,
.video-frame img.active {
    opacity: 1;
}

.video-frame img.active {
    filter: brightness(0.92) saturate(1.1) contrast(1.05);
    transition: filter 0.5s var(--ease-cinematic);
}

.video-frame:hover img.active {
    filter: brightness(0.88) saturate(0.85) contrast(1.12);
}

/* Profile link */
.profile-link {
    display: block;
    width: 100%;
    text-decoration: none;
    border-bottom: none;
}

.profile-link:hover {
    background: none;
    box-shadow: none;
}

.profile-hover-overlay {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.profile-hover-overlay span {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-link:hover .profile-hover-overlay {
    opacity: 1;
}

.saiyan-btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- CONTACT EMAIL LINK GLOW --- */
#contact a[href^="mailto"] {
    font-family: var(--font-code);
    font-size: 1.1rem;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(204, 255, 0, 0.3);
    transition:
        border-color var(--dur-mid) ease,
        text-shadow var(--dur-mid) ease;
    letter-spacing: 0.3px;
}

#contact a[href^="mailto"]:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: none;
    box-shadow: none;
    text-shadow: 0 0 20px var(--accent-glow);
}

/* --- CONTACT SOCIAL ICONS --- */
.social-links {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.social-icon:hover {
    background: none;
    box-shadow: none;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.social-icon svg {
    width: 36px;
    height: 36px;
    fill: white;
}

[data-theme="light"] .social-icon svg {
    fill: #1a1f16;
}

/* --- LIGHT THEME: Tag overrides --- */
[data-theme="light"] .tag {
    background: rgba(61, 122, 0, 0.06);
    border-color: rgba(61, 122, 0, 0.25);
}

[data-theme="light"] .tag-ml {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .tag-nlp {
    color: #0d7346;
    background: rgba(13, 115, 70, 0.08);
    border-color: rgba(13, 115, 70, 0.25);
}

[data-theme="light"] .tag-analytics {
    color: #b45309;
    background: rgba(180, 83, 9, 0.08);
    border-color: rgba(180, 83, 9, 0.25);
}

[data-theme="light"] .tag-engineering {
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.08);
    border-color: rgba(29, 78, 216, 0.25);
}

[data-theme="light"] .tag-cloud {
    color: #0e7490;
    background: rgba(14, 116, 144, 0.08);
    border-color: rgba(14, 116, 144, 0.25);
}

/* --- LIGHT THEME: Ghost project card --- */
[data-theme="light"] .proj-card-ghost {
    border-color: rgba(61, 122, 0, 0.25);
}

/* --- LIGHT THEME: Hero text readability --- */
[data-theme="light"] .hero-display-name {
    color: #111410;
    text-shadow: 0 1px 4px rgba(248, 246, 240, 0.8);
}

[data-theme="light"] .section-label {
    text-shadow: 0 1px 3px rgba(248, 246, 240, 0.9);
}

[data-theme="light"] .hero-subtitle {
    color: #3a4238;
    text-shadow: 0 1px 3px rgba(248, 246, 240, 0.9);
}

/* --- FOOTER STATUS BAR --- */
.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
    display: inline-block;
    animation: blink 2s infinite;
}

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

/* --- GRID SYSTEM --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tag styling */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 0;
    background: rgba(204, 255, 0, 0.05);
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid rgba(204, 255, 0, 0.25);
    font-family: var(--font-code);
    letter-spacing: 0.5px;
}

/* Skill tag category colors */
.tag-ml {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
    margin-bottom: 4px;
    color: #c084fc;
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.tag-nlp {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
    margin-bottom: 4px;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.tag-analytics {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
    margin-bottom: 4px;
    color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.tag-engineering {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
    margin-bottom: 4px;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.tag-cloud {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
    margin-bottom: 4px;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.card-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 6px;
}

.card-header a {
    color: var(--text-primary);
    border-bottom: none;
}

.card-header a:hover {
    color: var(--accent-color);
    background: none;
    box-shadow: none;
}

/* --- PROJECTS: compact ls-style list --- */
.proj-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.2rem;
}

.proj-card {
    padding: 0.85rem 1.1rem !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.proj-card-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 0.75rem 1.1rem;
    border: 1px dashed rgba(204, 255, 0, 0.2);
    border-radius: 0;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.proj-card-ghost:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: none;
    box-shadow: 0 0 12px var(--accent-glow);
}

.proj-card-ghost .proj-prompt {
    opacity: 0.4;
}

.proj-card-ghost:hover .proj-prompt {
    opacity: 1;
}

.proj-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.proj-header .card-header {
    margin-bottom: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proj-prompt {
    color: var(--accent-color);
    opacity: 0.5;
    font-size: 0.8rem;
}

.proj-header .btn-link {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-family: var(--font-code);
    color: var(--accent-color);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    white-space: nowrap;
}

.proj-header .btn-link:hover {
    border-bottom-color: var(--accent-color);
    background: none;
    box-shadow: none;
    color: var(--accent-color);
}

.proj-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.proj-card .card-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
}

.proj-stat {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 2px 5px;
    border: 1px solid var(--nav-border);
    border-radius: 3px;
}

/* --- TIMELINE (Experience) --- */
.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--nav-border);
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.job-date {
    font-family: var(--font-code);
    color: var(--accent-color);
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 5px;
}

.timeline-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 6px;
}

.timeline-item ul li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-align: left;
}

.timeline-item ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-family: var(--font-code);
}

/* --- BLOG CARD GRID: 2-col, borderless --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 40px;
}

/* All cards: borderless, transparent — text flows under image */
.blog-card {
    background: none;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.blog-card::after {
    display: none;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    border-bottom: none;
}

.blog-card-link:hover {
    background: none;
    box-shadow: none;
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--glass);
    flex-shrink: 0;
    position: relative;
    border-radius: 2px;
}

.blog-card-img--empty {
    background: linear-gradient(135deg, var(--surface-color), var(--bg-color));
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    filter: grayscale(30%);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

/* Category tag overlay on blog images */
.blog-card-tag-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: var(--bg-color);
    font-family: var(--font-code);
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    z-index: 1;
}

.blog-card-body {
    padding: 0;
    padding-top: 0.75rem;
    flex: 1;
}

.blog-date {
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.blog-title {
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Terminal window */
.terminal-window {
    background: var(--glass) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nav-border) !important;
    border-radius: 5px;
    box-shadow: 0 0 5px var(--accent-glow);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.terminal-window #blog-list a {
    color: var(--text-primary);
}

.terminal-window #blog-list p, .terminal-window #blog-list div > span {
    color: var(--text-secondary);
}

/* --- RESPONSIVE DESIGN (MOBILE & TABLET) --- */
@media (max-width: 900px) {

    .container {
        padding: 0 20px;
        width: 100%;
    }

    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* --- NAV: hamburger layout --- */
    nav {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 12px calc(50vw - 50% + 20px);
        flex-wrap: wrap;
    }

    .nav-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .nav-controls {
        grid-column: 2;
        grid-row: 1;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
        padding: 12px 0 4px 0;
        border-top: 1px solid var(--nav-border);
        margin-top: 10px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin-right: 0;
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .nav-links a::after {
        left: 0;
    }

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

    /* --- HERO: stack vertically --- */
    .hero-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .hero-panel-right {
        order: -1;
        padding: 32px 0 16px 0;
    }

    .hero-panel-left {
        padding: 16px 0 48px 0;
    }

    .video-frame-wrapper {
        max-width: 260px;
    }

    .hero-display-name {
        font-size: 2.5rem;
    }

    /* --- PAGE HERO: stack --- */
    .page-hero {
        grid-template-columns: 1fr;
        padding-left: 24px;
    }

    .page-hero-meta {
        min-width: unset;
        width: 100%;
    }

    .page-hero-title {
        font-size: 2.5rem;
    }

    /* --- BLOG GRID: single column --- */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* --- SECTION TITLE --- */
    .section-title {
        font-size: 2rem;
    }

    /* --- TIMELINE --- */
    .timeline,
    .timeline-item,
    .timeline-item h3,
    .timeline-item p,
    .timeline-item .job-date {
        text-align: left;
    }

    .timeline-item {
        padding-left: 20px;
    }

    /* --- FOOTER --- */
    .status-bar {
        justify-content: center;
    }
}

/* --- EXTRA SMALL SCREENS (≤ 480px) --- */
@media (max-width: 480px) {

    .container {
        padding: 0 16px;
    }

    nav {
        padding: 12px calc(50vw - 50% + 16px);
    }

    .hero-display-name {
        font-size: 1.8rem;
    }

    .video-frame-wrapper {
        max-width: 220px;
    }

    .btn-saiyan {
        font-size: 0.8rem;
        padding: 10px 14px;
        letter-spacing: 0.5px;
    }

    .btn {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .page-hero {
        padding-left: 16px;
    }

    .page-hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }
}
