/* --- 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 (Lavender Purple) ─────────────────────── */
    --accent-color: #d8b4fc;
    --accent-dim: rgba(216, 180, 252, 0.6);
    --accent-glow: rgba(216, 180, 252, 0.18);
    --accent-subtle: rgba(216, 180, 252, 0.06);

    /* ── Atmospheric gradient blob colors ─────────────── */
    --atm-violet: rgba(139, 92, 246, 0.14);
    --atm-purple: rgba(168, 85, 247, 0.10);
    --atm-lavender: rgba(196, 132, 252, 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: #6d28d9;
    --accent-dim: rgba(109, 40, 217, 0.65);
    --accent-glow: rgba(109, 40, 217, 0.14);
    --accent-subtle: rgba(109, 40, 217, 0.06);

    --atm-violet: rgba(109, 40, 217, 0.07);
    --atm-purple: rgba(139, 92, 246, 0.05);
    --atm-lavender: rgba(167, 139, 250, 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;
}

/* Light Theme overrides for Activity Heatmap */
[data-theme="light"] .heatmap-cell.level-empty { background-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .heatmap-cell.level-1 { background-color: rgba(109, 40, 217, 0.25); }
[data-theme="light"] .heatmap-cell.level-2 { background-color: rgba(109, 40, 217, 0.60); }
[data-theme="light"] .heatmap-cell.level-3 { background-color: rgba(109, 40, 217, 1); }

/* --- 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;
}

/* --- 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(216, 180, 252, 0.2);
    box-shadow:
        0 0 0 1px rgba(216, 180, 252, 0.18),
        0 12px 40px -8px rgba(0, 0, 0, 0.7),
        0 0 30px -10px rgba(216, 180, 252, 0.10);
}

.card::before,
.project-item::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), rgba(216, 180, 252, 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);
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    position: relative;
    display: inline-flex;
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 10px;
    cursor: pointer;
    font-family: var(--font-code);
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    line-height: 1;
    min-width: 54px;
    text-align: center;
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 14px var(--accent-glow);
    font-family: var(--font-code);
    font-size: 0.85rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.lang-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--text-color);
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.lang-option:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.lang-option.active {
    color: var(--accent-color);
}

.lang-option.active::before {
    content: '>';
    position: absolute;
    margin-left: -12px;
    color: var(--accent-color);
}

.lang-option.active:hover {
    color: var(--bg-color);
}

.lang-option .lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 15px;
    line-height: 1;
}

.lang-option .lang-flag-svg,
.lang-flag-svg {
    width: 100%;
    height: 100%;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    box-sizing: border-box;
}

[data-theme="dark"] .lang-option .lang-flag-svg,
[data-theme="dark"] .lang-flag-svg {
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-option .lang-name {
    font-size: 0.85rem;
}

/* RTL support for Arabic greeting in the typewriter */
#typewriter[dir="rtl"] {
    direction: rtl;
    unicode-bidi: embed;
}

@media (max-width: 768px) {
    .lang-menu {
        right: 0;
        min-width: 160px;
    }
}

/* --- 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-violet) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 90% 20%, var(--atm-purple) 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(216, 180, 252, 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: minmax(0, 1fr) clamp(190px, 34vw, 380px);
    gap: clamp(8px, 1.4vw, 16px);
    max-width: 1280px;
    margin: 0 auto;
    align-items: end;
}

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

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

/* 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: clamp(190px, 34vw, 380px);
}

/* 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: 9 / 16;
    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(216, 180, 252, 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(216, 180, 252, 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);
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    display: none;  /* Hidden by default — JS explicitly shows it on real loads only */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

#splash-screen.visible {
    display: flex;
}

#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    width: 120px;
    height: auto;
    animation: glitch 1.8s infinite;
}

@keyframes glitch {
    0% { filter: none; transform: translate(0, 0) rotate(0deg); }
    20% { filter: drop-shadow(2px 0 red) drop-shadow(-2px 0 cyan); transform: translate(-2px, 2px) rotate(-1deg); }
    40% { filter: drop-shadow(-2px 0 lime) drop-shadow(2px 0 magenta); transform: translate(2px, -2px) rotate(1deg); }
    60% { filter: none; transform: translate(0, 0) rotate(0deg); }
    80% { filter: drop-shadow(1px 0 orange) drop-shadow(-1px 0 violet); transform: translate(-1px, 1px) rotate(-0.5deg); }
    100% { filter: none; transform: translate(0, 0) rotate(0deg); }
}

/* End of splash styles */
.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;
}

.status-indicator.sleep {
    background-color: #ff4444; /* Red */
    box-shadow: 0 0 6px #ff4444;
}

@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(216, 180, 252, 0.05);
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid rgba(216, 180, 252, 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(216, 180, 252, 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-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.timeline-text {
    flex: 1;
    min-width: 0;
}

.timeline-logo {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    color: var(--text-primary);
}

.company-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.job-header {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.job-title {
    margin: 0;
}

.company-meta {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.company-link {
    color: inherit;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.company-link:hover,
.company-link:focus-visible {
    color: var(--accent-color);
}

.company-note {
    margin-left: 6px;
    font-size: 0.8rem;
    font-family: var(--font-code);
    color: var(--accent-color);
}

.timeline-item .card-desc {
    margin-top: 12px;
    margin-bottom: 10px;
}

.job-achievements {
    font-size: 0.9rem;
    line-height: 1.6;
}

.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);
}

@media (max-width: 640px) {
    .timeline-content {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .timeline-logo {
        width: 140px;
    }

    .job-header {
        align-items: flex-start;
    }

    .company-meta {
        font-size: 0.88rem;
    }
}

/* --- ACTIVITIES & ACHIEVEMENTS: Overrides --- */
#contributions::before {
    display: none !important;
}

#contributions {
    padding-top: 0;
    padding-bottom: 36px;
}

#certifications {
    padding-top: 36px;
    padding-bottom: 36px;
}

#interests {
    padding-top: 36px;
    padding-bottom: 36px;
    margin-bottom: 60px;
}

/* -- HEATMAP -- */
.activity-heatmap {
    background: var(--glass);
    border: 1px solid var(--nav-border);
    padding: 24px;
    border-radius: 4px;
    overflow-x: auto;
    margin-top: 1.8rem;
}

.heatmap-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.heatmap-tabs, .heatmap-years {
    display: flex;
    gap: 8px;
}

.heatmap-tab, .heatmap-year {
    background: transparent;
    border: 1px solid var(--nav-border);
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 0.8rem;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.heatmap-tab:hover, .heatmap-year:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.heatmap-tab.active, .heatmap-year.active {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
    font-weight: 600;
}

.heatmap-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.heatmap-container::-webkit-scrollbar {
    height: 6px;
}
.heatmap-container::-webkit-scrollbar-thumb {
    background: var(--nav-border);
    border-radius: 3px;
}

.month-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.month-label {
    font-family: var(--font-code);
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    height: 16px;
    line-height: 16px;
}

.month-grid {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    grid-auto-columns: 12px;
    grid-auto-flow: column;
    gap: 4px;
}

.heatmap-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.05); /* empty */
    transition: all 0.2s;
}

.heatmap-cell.level-out-of-range { visibility: hidden; pointer-events: none; }
.heatmap-cell.level-empty { background-color: rgba(255, 255, 255, 0.05); }
.heatmap-cell.level-1 { background-color: rgba(216, 180, 252, 0.25); }
.heatmap-cell.level-2 { background-color: rgba(216, 180, 252, 0.55); }
.heatmap-cell.level-3 { background-color: rgba(216, 180, 252, 0.9); }
.heatmap-cell.level-loading { animation: pulse 1.5s infinite; }

.heatmap-cell:not(.level-empty):hover {
    box-shadow: 0 0 8px var(--accent-glow);
    transform: scale(1.2);
    z-index: 2;
}

.heatmap-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-top: 1px dashed var(--nav-border);
    padding-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.heatmap-status {
    color: var(--accent-color);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 6px;
}

.heatmap-error {
    color: #ff5f56;
    font-family: var(--font-code);
}

/* -- CERTIFICATIONS -- */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 1.8rem;
}

.cert-card {
    background: var(--glass);
    border: 1px solid var(--nav-border);
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.cert-cats .tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 4px;
    margin-bottom: 4px;
    color: var(--accent-color);
    background: rgba(216, 180, 252, 0.1);
    border: 1px solid rgba(216, 180, 252, 0.3);
    font-family: var(--font-code);
}

.cert-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--text-primary);
}

.cert-meta {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cert-sep {
    color: var(--accent-dim);
}

.cert-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-top: 1px dashed var(--nav-border);
    padding-top: 12px;
}

/* -- INTERESTS -- */
.interest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 1.8rem;
}

.interest-tile {
    background: var(--glass);
    border: 1px solid var(--nav-border);
    padding: 16px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.interest-tile:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
    transform: translateY(-4px);
}

.interest-prefix {
    color: var(--accent-color);
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.interest-label {
    font-family: var(--font-code);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.interest-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Terminal window (cleanup from old blog) */
.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;
}

/* --- 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: title + image row, then full-width code block --- */
    .hero-layout {
        grid-template-columns: minmax(0, 1fr) clamp(150px, 34vw, 260px);
        gap: 6px;
        align-items: start;
    }

    .hero-panel-left,
    .hero-panel-right {
        display: contents;
    }

    .hero-panel-left>.section-label {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
    }

    .hero-panel-left>.hero-display-name {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 8px;
    }

    .hero-panel-right>.video-frame-wrapper {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
    }

    .hero-panel-left>.code-box {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .hero-panel-left>.hero-subtitle {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .video-frame-wrapper {
        max-width: clamp(150px, 34vw, 260px);
    }

    /* Tablet: 3/4 portrait ratio, mid-body crop */
    .video-frame {
        aspect-ratio: 3 / 4;
    }

    .video-frame video,
    .video-frame img {
        object-position: 50% 50%;
    }

    .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;
    }

    /* --- CERT GRID: single column --- */
    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* --- INTEREST GRID: double column --- */
    .interest-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* --- 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;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr) clamp(118px, 36vw, 156px);
        gap: 8px;
    }

    .hero-panel-left>.hero-display-name {
        margin-bottom: 4px;
    }

    .video-frame-wrapper {
        max-width: clamp(118px, 36vw, 156px);
    }

    /* Mobile: 3/4 portrait ratio, mid-body crop — matches tablet */
    .video-frame {
        aspect-ratio: 3 / 4;
    }

    .video-frame video,
    .video-frame img {
        object-position: 50% 50%;
    }

    .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;
    }
}


/* ═══════════════════════════════════════════════════════════
   PROJECTS — EDITORIAL V1 CARDS (new /projects grid)
   Replaces the legacy .proj-list / .proj-card styles for
   repos rendered inside #repo-grid.
   ═══════════════════════════════════════════════════════════ */

/* Grid: 2-col on desktop, 1-col on mobile (handled below) */
#repo-grid.proj-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    flex-direction: initial;
}

.v1-card {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nav-border);
    padding: 28px 26px 24px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition:
        transform var(--dur-mid) var(--ease-out-expo),
        border-color var(--dur-mid) ease,
        box-shadow var(--dur-mid) ease;
}

.v1-card:hover {
    transform: translateY(-4px);
    background: var(--glass-hover);
    border-color: var(--accent-dim);
    box-shadow:
        0 0 0 1px var(--accent-glow),
        0 12px 40px -10px rgba(0, 0, 0, 0.65),
        0 0 30px -12px var(--accent-glow);
}

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

.v1-card:hover::before {
    transform: scaleX(1);
}

.v1-corner {
    position: absolute;
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--accent-color);
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

.v1-corner-tl {
    top: -7px;
    left: -7px;
}

.v1-corner-br {
    bottom: -7px;
    right: -7px;
}

.v1-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.v1-cats {
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.4;
}

.v1-cats-sep {
    color: var(--accent-dim);
    opacity: 0.6;
}

.v1-links {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.v1-link {
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--text-primary);
    border: 1px solid var(--nav-border);
    border-bottom: 1px solid var(--nav-border);
    padding: 4px 10px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.v1-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    box-shadow: 0 0 12px var(--accent-glow);
}

.v1-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin: 4px 0 0;
}

.v1-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    text-wrap: pretty;
}

.v1-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    padding-top: 4px;
}

/* Mobile: single column + slightly tighter type */
@media (max-width: 900px) {
    #repo-grid.proj-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .v1-title {
        font-size: 1.55rem;
    }

    .v1-card {
        padding: 24px 22px 20px;
    }
}