/* ==========================================================================
   Yash Pouranik — Zeno Rocha Inspired Minimalist Theme
   ========================================================================== */

:root {
    --bg-body: #08070b;
    --bg-card: #15141b;          /* Sleek premium slate-grey/charcoal */
    --border-card: #22212a;      /* Muted elegant border */
    --bg-card-hover: #1c1b24;    /* Slightly lighter on hover */
    --border-card-hover: #31303d; /* More visible border on hover */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page-specific Selection Colors (Zeno Rocha touch) */
::selection {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.page-about ::selection {
    background: rgba(236, 72, 153, 0.3);
    color: #ffffff;
}

.page-projects ::selection {
    background: rgba(0, 242, 254, 0.25);
    color: #ffffff;
}

.page-articles ::selection {
    background: rgba(249, 115, 22, 0.3);
    color: #ffffff;
}

.devlog-body ::selection {
    background: rgba(129, 140, 248, 0.3);
    color: #ffffff;
}

.page-project-detail ::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

.page-videos ::selection {
    background: rgba(255, 62, 62, 0.3);
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #08070b;
    color: #a1a1aa;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

kbd {
    background-color: #151419;
    border: 1px solid #27272a;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8em;
    color: #e4e4e7;
}

/* --- 2. Header & Navbar (Zeno Rocha Style) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
    height: 70px;
}

.nav-logo {
    font-family: "Cal Sans", "Inter", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-logo:hover {
    background: #18171c;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #71717a;
    padding: 8px 12px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    text-decoration: none;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 1px;
    background: #ffffff;
}

.nav-command-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-command-btn:hover {
    color: #ffffff;
    background: #18171c;
}

/* --- 3. Main Container & Hero --- */
.main-index, .main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

.index-header {
    margin-top: 60px;
    margin-bottom: 60px;
    text-align: left;
}

h1 {
    font-family: "Cal Sans", "Inter", sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-bio {
    font-size: 1.15rem;
    color: #a1a1aa;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero-bio strong {
    color: #ffffff;
    font-weight: 600;
}

.hero-bio a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    color: #71717a;
    margin-top: 24px;
}

.meta-separator {
    color: #27272a;
    user-select: none;
}

.hero-resume-link {
    color: #e4e4e7;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.hero-resume-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.visitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.visitor-badge strong {
    color: #ffffff;
}

.visitor-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
}

/* --- 4. Proof Bar (Zeno Style Metrics Strip) --- */
.proof-bar-section {
    margin-bottom: 60px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    border-top: 1px solid #18171c;
    border-bottom: 1px solid #18171c;
    padding: 20px 0;
}

.proof-card {
    text-align: left;
}

.proof-number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #ffffff;
    line-height: 1.2;
}

.proof-label {
    font-size: 0.75rem;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- 5. Project Controls & Interactive Filter Bar --- */
.project-page-header {
    margin-bottom: 32px;
}

.project-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    background: #121117;
    border: 1px solid #1f1e26;
    color: #71717a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.filter-pill:hover {
    color: #ffffff;
    border-color: #3f3e46;
}

.filter-pill.active {
    background: #1c1b24;
    border-color: #52525b;
    color: #ffffff;
    font-weight: 600;
}

.project-search-wrap {
    width: 100%;
}

#project-search {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

#project-search:focus {
    outline: none;
    border-color: #3f3e46;
}

#project-search::placeholder {
    color: #52525b;
}

.no-projects-found {
    text-align: center;
    padding: 40px 20px;
    color: #71717a;
}

/* --- 6. Sections & Content --- */
.home-section, .about-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #71717a;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.view-all-link {
    font-size: 0.85rem;
    color: #71717a;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Zeno-style Project List / Grid */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.project-card:hover {
    border-color: var(--border-card-hover);
    background: var(--bg-card-hover);
    text-decoration: none;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: #71717a;
    margin-bottom: 8px;
}

.project-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card-category {
    color: #e4e4e7;
    font-weight: 500;
}

.project-card-badge {
    background: #181720;
    border: 1px solid #292834;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
}

.project-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.project-card-tagline {
    font-size: 0.92rem;
    color: #71717a;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Bullet list on cards — short, scannable */
.project-bullets {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-bullets li {
    font-size: 0.88rem;
    color: #a1a1aa;
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.project-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #52525b;
}

/* Stack tag pills */
.project-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.stack-tag {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #71717a;
    background: #0d0c12;
    border: 1px solid #1c1b24;
    border-radius: 4px;
    padding: 2px 8px;
}

/* Card action row */
.project-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #18171c;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-detail {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.btn-detail:hover {
    text-decoration: underline;
}

.project-secondary-links {
    display: flex;
    gap: 14px;
}

.project-secondary-links a {
    font-size: 0.82rem;
    color: #71717a;
}

.project-secondary-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Index home card — smaller bullet + tag variant */
.project-bullets-sm {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-bullets-sm li {
    font-size: 0.83rem;
    color: #71717a;
    padding-left: 12px;
    position: relative;
    line-height: 1.5;
}

.project-bullets-sm li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #3f3e46;
}

.project-stack-tags-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.stack-tag-sm {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: #52525b;
}

.stack-tag-sm:not(:last-child)::after {
    content: ' ·';
    margin-left: 2px;
}

/* Standalone Projects on /projects */
.project-card.standalone {
    background: var(--bg-card);
}

.project-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.project-card-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.card-arrow {
    color: #ffffff;
    transition: transform 0.2s ease;
    font-size: 0.9rem;
}

.project-card:hover .card-arrow {
    transform: translateX(4px);
}

/* Services / Focus Grid */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #18171c;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-item p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* Articles Section */
.article-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.article-card:hover {
    border-color: var(--border-card-hover);
    text-decoration: none;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: #71717a;
    margin-bottom: 6px;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.article-card-description {
    font-size: 0.92rem;
    color: #a1a1aa;
    margin-bottom: 10px;
}

.article-card-link {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
}

/* Timeline */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-left: 1px solid #1e1d24;
    padding-left: 20px;
    margin-left: 4px;
}

.achievement-item {
    position: relative;
}

.achievement-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #71717a;
}

.achievement-item:hover::before {
    background: #ffffff;
}

.achievement-year {
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: #71717a;
    margin-bottom: 2px;
}

.achievement-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.achievement-content p {
    font-size: 0.93rem;
    color: #a1a1aa;
}

/* Contact CTA */
.email-btn {
    display: inline-block;
    border: 1px solid #27272a;
    color: #ffffff;
    background: var(--bg-card-hover);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.email-btn:hover {
    background: #1c1b24;
    border-color: #3f3e46;
    text-decoration: none;
    color: #ffffff;
}

/* --- 7. About Page Layout --- */
.page-title {
    font-family: "Cal Sans", "Inter", sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    display: inline-block;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page-specific title gradients */
.index-header h1 {
    display: inline-block;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, #ffffff, #a1a1aa);
}

.page-about .page-title {
    background-image: linear-gradient(to right, #ec4899, #8b5cf6);
}

.page-projects .page-title {
    background-image: linear-gradient(to right, #00f2fe, #4facfe);
}

.page-articles .page-title {
    background-image: linear-gradient(to right, #f97316, #ec4899);
}

.devlog-body .page-title {
    background-image: linear-gradient(to right, #818cf8, #c084fc);
}

.page-videos .page-title {
    background-image: linear-gradient(to right, #ff3e3e, #ff8a00);
}

.page-project-detail .detail-title {
    display: inline-block;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, #6366f1, #06b6d4);
}

.page-description {
    font-size: 1.05rem;
    color: #a1a1aa;
    margin-bottom: 30px;
}

.about-lead {
    font-size: 1.1rem;
    color: #e4e4e7;
    line-height: 1.7;
    margin-bottom: 16px;
}

.section-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #18171c;
}

.tech-category-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-category h4 {
    font-size: 0.88rem;
    color: #71717a;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}

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

.tech-badge {
    background: #121117;
    border: 1px solid #1f1e26;
    color: #e4e4e7;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.experience-card, .education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.experience-role {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.experience-company {
    color: #a1a1aa;
    font-size: 0.92rem;
}

.experience-duration {
    color: #71717a;
    font-size: 0.83rem;
    font-family: 'JetBrains Mono', monospace;
}

.experience-bullets {
    color: #a1a1aa;
    margin-left: 20px;
    font-size: 0.93rem;
}

.experience-bullets li {
    margin-bottom: 6px;
}

.social-links-page {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-links-page a {
    color: #a1a1aa;
    font-size: 0.92rem;
}

.social-links-page a:hover {
    color: #ffffff;
}

/* --- 8. Footer --- */
.footer-content {
    max-width: 800px;
    margin: 80px auto 0 auto;
    padding: 24px 20px;
    border-top: 1px solid #18171c;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-inner {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-brand, .footer-meta {
    display: none;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #71717a;
    font-size: 0.9375rem;
    text-transform: lowercase;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* --- 9. Command Palette (Raycast-style) --- */
.cmd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.cmd-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cmd-modal {
    width: 100%;
    max-width: 580px;
    background: #0d0c12;
    border: 1px solid #1e1d28;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.03);
    transform: translateY(-8px) scale(0.98);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.cmd-overlay.open .cmd-modal {
    transform: translateY(0) scale(1);
}

/* Search bar */
.cmd-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #1a1920;
}

.cmd-search-icon {
    color: #52525b;
    flex-shrink: 0;
}

.cmd-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.cmd-input:focus { outline: none; }

.cmd-input::placeholder { color: #52525b; }

.cmd-esc-key {
    background: #181720;
    border: 1px solid #27262f;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    color: #71717a;
    flex-shrink: 0;
}

/* Results */
.cmd-results {
    max-height: 340px;
    overflow-y: auto;
    padding: 6px 0;
}

.cmd-results::-webkit-scrollbar { width: 4px; }
.cmd-results::-webkit-scrollbar-track { background: transparent; }
.cmd-results::-webkit-scrollbar-thumb { background: #2a2933; border-radius: 2px; }

.cmd-group-label {
    padding: 10px 16px 4px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #52525b;
    font-family: 'Inter', sans-serif;
    user-select: none;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    cursor: pointer;
    border-radius: 6px;
    margin: 1px 6px;
    transition: background 0.1s ease;
}

.cmd-item.selected,
.cmd-item:hover {
    background: #18172080;
}

.cmd-item.selected { background: #1c1b26; }

.cmd-item-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.cmd-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e4e4e7;
}

.cmd-item.selected .cmd-item-name {
    color: #ffffff;
}

.cmd-item-hint {
    font-size: 0.77rem;
    color: #52525b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmd-item.selected .cmd-item-hint {
    color: #71717a;
}

.cmd-item-hotkey {
    background: transparent;
    border: 1px solid #27262f;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: #52525b;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}

.cmd-item.selected .cmd-item-hotkey {
    border-color: #3a3848;
    color: #a1a1aa;
}

.cmd-empty {
    text-align: center;
    padding: 32px 16px;
    color: #52525b;
    font-size: 0.9rem;
}

/* Footer hint bar */
.cmd-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-top: 1px solid #16151e;
    background: #09080d;
}

.cmd-footer-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #3f3e48;
}

.cmd-footer-hint kbd {
    background: #181720;
    border: 1px solid #27262f;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #52525b;
}

.cmd-footer-hint span {
    color: #3f3e48;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 2000;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- 10. Devlog Clean Editorial Layout (No Card Boxes, Generous Gaps) --- */
.devlog-container {
    max-width: 800px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

.devlog-header {
    border-bottom: 1px solid #18171c;
    padding-bottom: 30px;
    margin-bottom: 60px;
}

.devlog-kicker {
    font-size: 0.8rem;
    color: #71717a;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 8px;
}

.devlog-last-updated {
    display: block;
    margin-top: 12px;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: #3f3e46;
}

.devlog-article-stream {
    display: flex;
    flex-direction: column;
}

.devlog-post {
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
    border: none;
}

.devlog-meta {
    margin-bottom: 8px;
}

.entry-date {
    font-family: 'JetBrains Mono', monospace;
    color: #71717a;
    font-size: 0.82rem;
}

.devlog-post-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 28px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.devlog-content-block {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.devlog-sub-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.devlog-sub-section p {
    color: #a1a1aa;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

.code-block {
    background: #09080c;
    border: 1px solid #1c1b24;
    border-radius: 8px;
    padding: 18px;
    margin-top: 8px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.86rem;
    color: #e4e4e7;
    line-height: 1.6;
}

.devlog-sub-section.takeaway-box {
    border-left: 2px solid #ffffff;
    padding-left: 16px;
    margin-top: 8px;
}

.takeaway-text {
    color: #ffffff !important;
    font-weight: 500;
}

.devlog-post-divider {
    border: none;
    border-top: 1px solid #18171c;
    margin: 60px 0;
}

/* Responsive */
/* ─── Project Detail Page ─────────────────────────────────────────── */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', monospace;
    color: #71717a;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: #71717a;
}

.breadcrumb a:hover {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb-sep {
    color: #3f3e46;
}

.breadcrumb-current {
    color: #a1a1aa;
}

.detail-article {
    max-width: 680px;
}

/* Header */
.detail-header {
    margin-bottom: 40px;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.detail-category {
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.detail-year {
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: #52525b;
}

.detail-badge {
    font-size: 0.75rem;
    background: #181720;
    border: 1px solid #292834;
    color: #e4e4e7;
    padding: 2px 10px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
}

.detail-title {
    font-family: "Cal Sans", "Inter", sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.detail-tagline {
    font-size: 1.05rem;
    color: #71717a;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Link row */
.detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #1e1d26;
    color: #a1a1aa;
    background: var(--bg-card);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.detail-link:hover {
    border-color: #3f3e46;
    color: #ffffff;
    text-decoration: none;
}

.detail-link--primary {
    border-color: #3f3e46;
    color: #ffffff;
    background: #18172080;
}

/* Divider */
.detail-rule {
    border: none;
    border-top: 1px solid #18171c;
    margin: 0 0 48px 0;
}

/* Body sections */
.detail-body {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.detail-section {}

.detail-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #52525b;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 16px;
}

.detail-prose {
    font-size: 1rem;
    color: #a1a1aa;
    line-height: 1.75;
}

/* Achievement bullets */
.detail-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-bullets li {
    font-size: 0.96rem;
    color: #a1a1aa;
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
}

.detail-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3f3e46;
}

/* Stack tags */
.detail-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-stack-tag {
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', monospace;
    color: #a1a1aa;
    background: #0d0c12;
    border: 1px solid #1c1b24;
    border-radius: 5px;
    padding: 4px 12px;
}

/* Footer nav */
.detail-footer-nav {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #18171c;
}

.detail-back {
    font-size: 0.88rem;
    color: #71717a;
}

.detail-back:hover {
    color: #ffffff;
    text-decoration: none;
}

/* --- 11. Videos & Demos --- */
.video-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-card {
    display: flex;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    text-decoration: none;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 220px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-card);
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail-img {
    transform: scale(1.03);
}

.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.video-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.video-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.video-card:hover .video-card-title {
    color: #ffffff;
}

.video-card-description {
    font-size: 0.92rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 12px;
}

.video-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: #52525b;
}

.video-watch-link {
    color: #a1a1aa;
    font-weight: 600;
    transition: color 0.2s ease;
}

.video-card:hover .video-watch-link {
    color: #ffffff;
}

@media (max-width: 768px) {

    .navbar, .main-index, .main-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-bio {
        font-size: 1rem;
    }

    .devlog-post-title {
        font-size: 1.4rem;
    }

    .video-card {
        flex-direction: column;
        gap: 16px;
    }

    .video-thumbnail-wrapper {
        width: 100%;
    }
}
