/* ==========================================================================
   DIGITAL ATELIER — Premium Portfolio Design System
   Riyanshi Verma | AI Developer & Data Science Student
   ========================================================================== */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Syne:wght@700;800&family=Instrument+Serif:ital@0;1&family=Caveat:wght@600;700&family=Dancing+Script:wght@600;700&family=Alex+Brush&family=Great+Vibes&display=swap');

:root {
    /* ── Warm-Cyber Color Palette ── */
    --bg-deep: #060810;
    --bg-dark: #0A0E1A;
    --bg-surface: #0F1424;
    --bg-card: rgba(15, 20, 40, 0.55);
    --bg-card-hover: rgba(20, 28, 55, 0.7);

    --border: rgba(255, 255, 255, 0.06);
    --border-warm: rgba(247, 178, 103, 0.15);
    --border-violet: rgba(139, 92, 246, 0.2);

    --gold: #F7B267;
    --gold-rgb: 247, 178, 103;
    --violet: #8B5CF6;
    --violet-rgb: 139, 92, 246;
    --rose: #EC4899;
    --rose-rgb: 236, 72, 153;
    --cyan: #06B6D4;
    --cyan-rgb: 6, 182, 212;
    --emerald: #10B981;

    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0;
    --text-tertiary: #94A3B8;

    /* ── Gradients ── */
    --grad-hero: linear-gradient(135deg, var(--gold) 0%, var(--rose) 50%, var(--violet) 100%);
    --grad-warm: linear-gradient(135deg, var(--gold) 0%, var(--rose) 100%);
    --grad-cool: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
    --grad-glass: linear-gradient(135deg, rgba(var(--gold-rgb), 0.08) 0%, rgba(var(--violet-rgb), 0.08) 100%);
    --grad-shimmer: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.05) 50%, transparent 75%);

    /* ── Fonts ── */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-hand: 'Caveat', cursive, sans-serif;
    --font-cursive: 'Great Vibes', 'Alex Brush', cursive, sans-serif;

    /* ── Layout ── */
    --max-w: 1240px;
    --nav-h: 76px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* ── Shadows & Glows ── */
    --shadow-card: 0 4px 24px -4px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px -8px rgba(0, 0, 0, 0.6);
    --glow-gold: 0 0 30px rgba(var(--gold-rgb), 0.25);
    --glow-violet: 0 0 30px rgba(var(--violet-rgb), 0.25);
    --glow-rose: 0 0 30px rgba(var(--rose-rgb), 0.2);

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.2s var(--ease-out);
    --t-normal: 0.4s var(--ease-out);
    --t-slow: 0.6s var(--ease-out);

    /* ── Custom Input Variables ── */
    --input-bg: rgba(6, 8, 16, 0.45);
    --input-bg-focus: rgba(6, 8, 16, 0.75);
    --input-border: rgba(255, 255, 255, 0.08);
    --label-bg: #0F1424;
    /* blends with var(--bg-surface) */
}

/* ---------- Theme Overrides ---------- */
html[data-theme="matrix"] {
    --gold: #22C55E;
    --gold-rgb: 34, 197, 94;
    --violet: #84CC16;
    --violet-rgb: 132, 204, 22;
    --rose: #14B8A6;
    --rose-rgb: 20, 184, 166;
    --border-warm: rgba(34, 197, 94, 0.15);
    --border-violet: rgba(132, 204, 22, 0.2);
}

html[data-theme="deepspace"] {
    --gold: #F472B6;
    --gold-rgb: 244, 114, 182;
    --violet: #06B6D4;
    --violet-rgb: 6, 182, 212;
    --rose: #A78BFA;
    --rose-rgb: 167, 139, 250;
    --border-warm: rgba(244, 114, 182, 0.15);
    --border-violet: rgba(6, 182, 212, 0.2);
}

html[data-theme="mono"] {
    --gold: #F8FAFC;
    --gold-rgb: 248, 250, 252;
    --violet: #64748B;
    --violet-rgb: 100, 116, 139;
    --rose: #CBD5E1;
    --rose-rgb: 203, 213, 225;
    --border-warm: rgba(248, 250, 252, 0.15);
    --border-violet: rgba(100, 116, 139, 0.2);
}

html[data-theme="light"] {
    --bg-deep: #F8FAFC;
    --bg-dark: #FFFFFF;
    --bg-surface: #E2E8F0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);

    --border: rgba(15, 23, 42, 0.08);
    --border-warm: rgba(180, 83, 9, 0.2);
    --border-violet: rgba(67, 56, 202, 0.25);

    --gold: #B45309;
    /* Deep Amber */
    --gold-rgb: 180, 83, 9;
    --violet: #4338CA;
    /* Deep Indigo */
    --violet-rgb: 67, 56, 202;
    --rose: #BE185D;
    /* Deep Pink */
    --rose-rgb: 190, 24, 93;
    --cyan: #0369A1;
    /* Deep Sky Blue */
    --cyan-rgb: 3, 105, 161;
    --emerald: #047857;

    --text-primary: #020617;
    /* slate-955 */
    --text-secondary: #0F172A;
    /* slate-900 */
    --text-tertiary: #334155;
    /* slate-700 */

    --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 10px 30px rgba(15, 23, 42, 0.15);
    --glow-gold: 0 0 30px rgba(180, 83, 9, 0.12);
    --glow-violet: 0 0 30px rgba(67, 56, 202, 0.12);
    --glow-rose: 0 0 30px rgba(190, 24, 93, 0.12);

    /* ── Light Theme Custom Input Variables ── */
    --input-bg: rgba(15, 23, 42, 0.04);
    --input-bg-focus: #FFFFFF;
    --input-border: rgba(15, 23, 42, 0.12);
    --label-bg: #FFFFFF;
    /* matches var(--bg-dark) */
}



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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-deep);
}

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

/* ── Ambient Mouse Glow (controlled via JS) ── */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--violet-rgb), 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease, top 0.3s ease;
    will-change: left, top;
}

/* ── Canvas Background ── */
#neural-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

main {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    position: relative;
    padding: 7rem 0;
    z-index: 2;
}

/* ── Scroll Reveal Utility ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--t-fast);
}

.gradient-text {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-cool {
    background: var(--grad-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section Headers ── */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--grad-warm);
}

.section-tag::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--grad-warm);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 1rem auto 0;
}

/* ── Glass Card ── */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-normal);
    position: relative;
    overflow: hidden;
}

.card-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-shimmer);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity var(--t-normal);
    pointer-events: none;
}

.card-glass:hover {
    border-color: rgba(var(--gold-rgb), 0.2);
    box-shadow: var(--shadow-hover);
}

.card-glass:hover::before {
    opacity: 1;
    animation: shimmer 2s ease infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Buttons ── */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--t-normal);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--grad-warm);
    color: var(--bg-deep);
    box-shadow: 0 4px 20px -4px rgba(var(--gold-rgb), 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px -4px rgba(var(--gold-rgb), 0.5);
}

.btn-primary:hover::after {
    opacity: 1;
    animation: shimmer 1s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(var(--violet-rgb), 0.08);
    border-color: rgba(var(--violet-rgb), 0.4);
    transform: translateY(-3px);
    box-shadow: var(--glow-violet);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-outline:hover {
    background: rgba(var(--gold-rgb), 0.06);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.15);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

.icon {
    display: inline-block;
    fill: currentColor;
    flex-shrink: 0;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(6, 8, 16, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--t-normal), box-shadow var(--t-normal);
}

.navbar.scrolled {
    background: rgba(6, 8, 16, 0.92);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    justify-self: start;
}

.logo-symbol {
    font-family: var(--font-mono);
    color: var(--gold);
    font-weight: 700;
}

.logo-text {
    color: var(--text-primary);
}

.logo .highlight {
    color: var(--gold);
    text-shadow: 0 0 12px rgba(var(--gold-rgb), 0.4);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    justify-self: center;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-warm);
    border-radius: 2px;
    transition: width var(--t-normal);
}

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

.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-self: end;
}

.nav-btn-text {
    display: none;
}

.nav-actions a.desktop-only,
.nav-actions .btn-outline {
    padding: 0.45rem;
    width: 34px;
    height: 34px;
    justify-content: center;
}

.nav-actions a.desktop-only {
    margin-left: 0.25rem !important;
}

.nav-actions .cmd-trigger {
    width: auto;
    padding: 0.45rem 0.75rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--t-normal);
    transform-origin: center;
}

/* ==========================================================================
   HERO SECTION — Split Layout with Photo
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 2;
    padding-top: var(--nav-h);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - var(--nav-h));
    padding: 2rem 0;
}

.hero-left {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(var(--gold-rgb), 0.06);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    padding: 0.45rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--gold);
    animation: pulse-gold 2s infinite;
}

.hero-badge-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.12em;
}

.hero-greeting {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--gold) 0%, #FFFFFF 30%, var(--rose) 65%, var(--violet) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-shimmer 8s linear infinite;
    filter: drop-shadow(0 4px 20px rgba(var(--gold-rgb), 0.2));
}

.hero-tagline {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-typed-line {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--violet);
    margin-bottom: 2.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--violet-rgb), 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--violet-rgb), 0.12);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    font-weight: bold;
    color: var(--gold);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Hero Right — Photo Showcase ── */
.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 2.5rem;
    margin-top: 0;
}

.photo-showcase {
    position: relative;
    width: 340px;
    height: 340px;
}

.photo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 4px;
    background: var(--grad-hero);
    animation: ring-spin 8s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.photo-ring-inner {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(var(--gold-rgb), 0.15);
    animation: ring-spin-reverse 15s linear infinite;
}

.photo-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-surface);
    border: 3px solid rgba(var(--gold-rgb), 0.1);
    position: relative;
    z-index: 2;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}

/* Floating tech badges around photo */
.floating-badge {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 3;
    white-space: nowrap;
    box-shadow: var(--shadow-card);
    animation: float 4s ease-in-out infinite;
}

.floating-badge:nth-child(1) {
    top: 5%;
    left: -15%;
    animation-delay: 0s;
    color: var(--gold);
    border-color: rgba(var(--gold-rgb), 0.2);
}

.floating-badge:nth-child(2) {
    top: 25%;
    right: -20%;
    animation-delay: 0.8s;
    color: var(--violet);
    border-color: rgba(var(--violet-rgb), 0.2);
}

.floating-badge:nth-child(3) {
    bottom: 25%;
    left: -20%;
    animation-delay: 1.6s;
    color: var(--rose);
    border-color: rgba(var(--rose-rgb), 0.2);
}

.floating-badge:nth-child(4) {
    bottom: 5%;
    right: -12%;
    animation-delay: 2.4s;
    color: var(--cyan);
    border-color: rgba(var(--cyan-rgb), 0.2);
}

.floating-badge:nth-child(5) {
    top: 50%;
    left: -25%;
    animation-delay: 1.2s;
    color: var(--emerald);
    border-color: rgba(16, 185, 129, 0.2);
}

.floating-badge:nth-child(6) {
    top: -5%;
    right: 5%;
    animation-delay: 1.8s;
    color: var(--gold);
    border-color: rgba(var(--gold-rgb), 0.2);
}

.floating-badge:nth-child(7) {
    bottom: -10%;
    left: 10%;
    animation-delay: 0.5s;
    color: var(--violet);
    border-color: rgba(var(--violet-rgb), 0.2);
}

.floating-badge:nth-child(8) {
    top: 60%;
    right: -25%;
    animation-delay: 2.1s;
    color: var(--rose);
    border-color: rgba(var(--rose-rgb), 0.2);
}

/* Hero background effects */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.hero-gradient-orb.orb-1 {
    width: 500px;
    height: 500px;
    top: 5%;
    left: -5%;
    background: var(--gold);
}

.hero-gradient-orb.orb-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: -5%;
    background: var(--violet);
}

.hero-gradient-orb.orb-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 40%;
    background: var(--rose);
    opacity: 0.08;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    -webkit-mask: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
    mask: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

/* ==========================================================================
   ABOUT SECTION — Bento Grid
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-card {
    padding: 2.2rem;
}

.bento-card.span-2 {
    grid-column: span 2;
}

.bento-card.span-3 {
    grid-column: span 3;
}

/* Roles Open To Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.role-badge-card {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.4rem;
    background: rgba(15, 20, 40, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}

.role-badge-card:hover {
    background: rgba(20, 28, 55, 0.6);
    border-color: rgba(var(--gold-rgb), 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

.role-icon {
    font-size: 1.6rem;
    min-width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: rgba(var(--gold-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.3s var(--ease-out);
}

.role-badge-card:hover .role-icon {
    background: var(--grad-warm);
    color: #000;
}

.role-badge-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.role-badge-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.bento-card-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bento-card-label .label-dot {
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

.bento-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.bento-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Metric bento card */
.bento-metrics {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Terminal bento card */
.bento-terminal {
    padding: 0;
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.terminal-header .red {
    background: #FF5F56;
}

.terminal-header .yellow {
    background: #FFBD2E;
}

.terminal-header .green {
    background: #27C93F;
}

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

.terminal-body {
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --rose: #F43F5E;
    --gold: #FABD2F;
    --emerald: #10B981;
    
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: rgba(6, 8, 16, 0.95);
    color: var(--text-primary);
    overflow-x: auto;
    line-height: 1.8;
}

.terminal-body pre {
    white-space: pre;
}

/* Python syntax highlighting */
.keyword {
    color: var(--rose);
}

.class-name {
    color: var(--gold);
}

.function-name {
    color: var(--emerald);
}

.string {
    color: var(--emerald);
}

.comment {
    color: var(--text-tertiary);
    font-style: italic;
}

/* Education mini card inside bento */
.edu-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(var(--violet-rgb), 0.04);
    border: 1px solid rgba(var(--violet-rgb), 0.1);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.edu-icon {
    width: 44px;
    height: 44px;
    background: var(--grad-cool);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.edu-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.edu-details span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   SKILLS SECTION — Orbital Visualization
   ========================================================================== */
.skills-tabs-container {
    max-width: 960px;
    margin: 0 auto;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.55rem 1.5rem;
    border-radius: 100px;
    transition: all var(--t-fast);
}

.tab-btn.active {
    background: var(--grad-warm);
    color: var(--bg-deep);
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(var(--gold-rgb), 0.3);
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeSlideUp 0.5s var(--ease-out);
}

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

.skill-card {
    padding: 2rem;
}

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

.skill-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-orb {
    width: 48px;
    height: 48px;
    position: relative;
    flex-shrink: 0;
}

.skill-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--gold);
    border-right-color: var(--violet);
    animation: ring-spin 3s linear infinite;
}

.skill-orb-core {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--grad-glass);
    border: 1px solid rgba(var(--gold-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.skill-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* Skill proficiency bar — warm variant */
.skill-bar-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--grad-warm);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.3);
    transition: width 1.2s var(--ease-out);
    width: 0;
}

/* ==========================================================================
   PROJECTS SECTION — 3D Tilt Cards
   ========================================================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--t-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(var(--gold-rgb), 0.06);
    border-color: rgba(var(--gold-rgb), 0.35);
    color: var(--gold);
}

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

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.15s ease;
}

.project-card:hover {
    z-index: 5;
}

.project-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.project-header {
    margin-bottom: 1rem;
}

.project-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--rose);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.65;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    background: rgba(var(--violet-rgb), 0.06);
    border: 1px solid rgba(var(--violet-rgb), 0.12);
    color: var(--violet);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1.2rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
}

.project-link:hover {
    color: var(--text-primary);
}

/* Spotlight glow on card hover */
.card-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 0px 0px, rgba(var(--gold-rgb), 0.06), transparent 40%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.project-card:hover .card-spotlight {
    opacity: 1;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-box {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    margin-bottom: 0.75rem;
}

.contact-header p {
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-alternative {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.contact-alt-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-right: 0.25rem;
}

.contact-link-social {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all var(--t-fast);
    text-decoration: none;
}

.contact-link-social:hover {
    color: var(--gold);
    border-color: rgba(var(--gold-rgb), 0.4);
    background: rgba(var(--gold-rgb), 0.05);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.1);
}

html[data-theme="light"] .contact-link-social {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .contact-link-social:hover {
    background: rgba(var(--gold-rgb), 0.05);
    border-color: var(--gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--t-normal);
}

.input-group textarea {
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.08);
    background: var(--input-bg-focus);
}

.input-group label {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all var(--t-normal);
    font-size: 0.95rem;
}

/* Floating label */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.55rem;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--gold);
    background: var(--label-bg);
    padding: 0 0.4rem;
    border-radius: 4px;
}

/* ── Navigation Highlighting ── */
.nav-highlight-github,
.nav-highlight-linkedin,
.nav-highlight-instagram,
.nav-highlight-youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--t-fast);
    border: none;
    text-decoration: none;
}

.nav-highlight-github {
    background: #1F2328;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-highlight-github:hover {
    background: #2D333B;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transform: translateY(-1.5px);
}

.nav-highlight-linkedin {
    background: #0A66C2;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.25);
}

.nav-highlight-linkedin:hover {
    background: #004182;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.45);
    transform: translateY(-1.5px);
}

.nav-highlight-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(220, 39, 67, 0.25);
}

.nav-highlight-instagram:hover {
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.45);
    transform: translateY(-1.5px);
    opacity: 0.95;
}

.nav-highlight-youtube {
    background: #FF0000;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.25);
}

.nav-highlight-youtube:hover {
    background: #CC0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.45);
    transform: translateY(-1.5px);
}

.form-status {
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    min-height: 24px;
}

.form-status.success {
    color: var(--emerald);
}

.form-status.error {
    color: var(--rose);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border);
    background: rgba(6, 8, 16, 0.95);
    padding: 3.5rem 0 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    z-index: 10;
    position: relative;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.footer-logo .highlight {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(var(--gold-rgb), 0.3);
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--t-fast);
}

.social-link:hover {
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.08);
    border-color: rgba(var(--gold-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.15);
}

.social-link[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.social-link[aria-label="LinkedIn"]:hover {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.social-link[aria-label="GitHub"]:hover {
    background: #24292e;
    color: #ffffff;
    border-color: #24292e;
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}

.social-link[aria-label="YouTube"]:hover {
    background: #FF0000;
    color: #ffffff;
    border-color: #FF0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

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

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pulse-indicator {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
    animation: pulse-gold 1.5s infinite;
}

.footer-diag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes pulse-gold {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 16px var(--gold);
    }

    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

@keyframes blink {

    from,
    to {
        color: transparent;
    }

    50% {
        color: var(--gold);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ring-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ring-spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes float {

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

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-left {
        max-width: 100%;
        order: 2;
    }

    .hero-right {
        order: 1;
        margin-top: 1rem;
        gap: 1rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .photo-showcase {
        width: 300px;
        height: 300px;
    }

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

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

    .bento-card.span-2 {
        grid-column: span 2;
    }

    .bento-card.span-3 {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    :root {
        --nav-h: 68px;
    }

    .section {
        padding: 5rem 0;
    }

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

    .hero-name {
        font-size: 2.6rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .photo-showcase {
        width: 240px;
        height: 240px;
    }

    .floating-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }

    /* Mobile Header Layout Adjustments */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.2rem;
    }

    .desktop-only {
        display: none !important;
    }

    .nav-actions {
        margin-left: auto;
        margin-right: 1rem;
    }

    .nav-actions .btn-outline {
        padding: 0.45rem;
        width: 34px;
        height: 34px;
    }

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

    .bento-card {
        padding: 1.25rem;
    }

    .bento-card.span-2 {
        grid-column: span 1;
    }

    .bento-card.span-3 {
        grid-column: span 1;
    }

    .bento-metrics {
        flex-direction: column;
        gap: 1.2rem;
    }

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

    .skills-tabs {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius-md);
    }

    .tab-btn {
        border-radius: var(--radius-sm);
    }

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

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

    .contact-box {
        padding: 2rem;
    }

    .contact-alternative {
        flex-direction: column;
    }

    /* Mobile nav */
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-h));
        margin: 0;
        background: rgba(6, 8, 16, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--t-normal), opacity var(--t-normal);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links .nav-link {
        font-size: 1.3rem;
        font-weight: 600;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile Socials in Navigation Menu Overlay */
    .nav-mobile-socials {
        display: flex;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 60%;
        justify-content: center;
    }

    .nav-mobile-socials a {
        color: var(--text-secondary);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s var(--ease-out);
    }

    .nav-mobile-socials a:hover {
        color: var(--gold);
        background: rgba(var(--gold-rgb), 0.1);
        border-color: var(--gold);
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.8rem;
    }

    .hero-name {
        font-size: 2rem;
    }

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

    .photo-showcase {
        width: 200px;
        height: 200px;
    }

    .floating-badge:nth-child(5),
    .floating-badge:nth-child(6),
    .floating-badge:nth-child(7),
    .floating-badge:nth-child(8) {
        display: none;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 0 1.2rem;
    }
}

/* ==========================================================================
   SYSTEM BOOT PRELOADER
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    width: 320px;
}

.preloader-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.preloader-symbol {
    font-family: var(--font-mono);
    color: var(--gold);
}

.preloader-text .highlight {
    color: var(--gold);
    text-shadow: 0 0 12px rgba(var(--gold-rgb), 0.4);
}

.preloader-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: var(--grad-warm);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.5);
    transition: width 0.1s linear;
}

.preloader-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   HERO QUICK CONTACT BAR & TOOLTIPS
   ========================================================================== */
.hero-contact-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: var(--t-fast);
    position: relative;
}

.contact-item:hover {
    background: rgba(var(--gold-rgb), 0.05);
    border-color: rgba(var(--gold-rgb), 0.3);
    color: var(--text-primary);
}

.contact-icon {
    font-size: 0.95rem;
}

.copy-success-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--gold);
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.copy-success-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--gold);
}

.contact-item.copied .copy-success-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   EXPERIENCE SECTION TIMELINE
   ========================================================================== */
.experience-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold) 0%, var(--violet) 50%, var(--rose) 100%);
    opacity: 0.25;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.2rem;
    transition: transform var(--t-normal), opacity var(--t-normal);
}

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

.timeline-item:hover {
    transform: translateX(8px);
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 3px solid var(--gold);
    transform: translateX(-6px);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.6);
    z-index: 2;
    transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.timeline-item:nth-child(2) .timeline-dot {
    border-color: var(--violet);
    box-shadow: 0 0 10px rgba(var(--violet-rgb), 0.6);
}

.timeline-item:hover .timeline-dot {
    background: var(--gold);
    box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.9);
}

.timeline-item:nth-child(2):hover .timeline-dot {
    background: var(--violet);
    box-shadow: 0 0 18px rgba(var(--violet-rgb), 0.9);
}

.timeline-content {
    padding: 2.2rem;
    transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(var(--gold-rgb), 0.3);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--gold-rgb), 0.05);
}

.timeline-item:nth-child(2):hover .timeline-content {
    border-color: rgba(var(--violet-rgb), 0.3);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--violet-rgb), 0.05);
}

.timeline-header-info {
    margin-bottom: 1.2rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.timeline-item:nth-child(2) .timeline-date {
    color: var(--violet);
}

.timeline-role {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-status {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--emerald);
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-bullets {
    list-style: none;
}

.timeline-bullets li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

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

.timeline-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.timeline-item:nth-child(2) .timeline-bullets li::before {
    color: var(--violet);
}

/* Credentials Sidebar styling */
.credentials-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cred-card {
    padding: 1.8rem;
    position: relative;
}

.google-cloud-cred {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    border-color: rgba(66, 133, 244, 0.15);
}

.cred-glow-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(150px circle at top right, rgba(66, 133, 244, 0.12), transparent 60%);
    pointer-events: none;
}

.cred-card-top {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.google-cloud-badge-logo {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cred-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.cred-subtitle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    display: block;
}

.gcp-points {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
}

.cred-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.cred-btn {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.achievement-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ach-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ach-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.ach-text p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.cert-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.cert-check {
    color: var(--gold);
    font-weight: bold;
    font-size: 0.85rem;
}

.cert-list li strong {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

.cert-list li p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   SYSTEM SANDBOX SECTION (AI LAB)
   ========================================================================== */
.sandbox-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 520px;
    padding: 0;
    margin-top: 2rem;
}

.sandbox-deck {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
}

.deck-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.deck-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.sandbox-modes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.sandbox-btn {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all var(--t-fast);
}

.sandbox-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(var(--gold-rgb), 0.15);
}

.sandbox-btn.active {
    background: rgba(var(--gold-rgb), 0.05);
    border-color: rgba(var(--gold-rgb), 0.3);
}

.btn-sim-icon {
    font-size: 1.4rem;
    opacity: 0.7;
    transition: opacity var(--t-fast);
}

.sandbox-btn.active .btn-sim-icon {
    opacity: 1;
}

.btn-sim-text {
    display: flex;
    flex-direction: column;
}

.btn-sim-text strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-sim-text span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.sandbox-action {
    margin-top: 1.5rem;
}

/* Console Logger Terminal styling */
.sandbox-console {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #020306;
}

.console-header {
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-controls {
    display: flex;
    gap: 6px;
}

.console-controls .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.console-controls .red {
    background: #FF5F56;
}

.console-controls .yellow {
    background: #FFBD2E;
}

.console-controls .green {
    background: #27C93F;
}

.console-title {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.console-clear {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--t-fast);
}

.console-clear:hover {
    color: var(--gold);
}

.console-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.log-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line.system {
    color: var(--text-secondary);
}

.log-line.command {
    color: var(--gold);
}

.log-line.step {
    color: var(--text-secondary);
    padding-left: 0.8rem;
}

.log-line.success {
    color: var(--emerald);
    font-weight: 600;
    padding-left: 0.8rem;
}

.log-line.warning {
    color: var(--rose);
    font-weight: 600;
    padding-left: 0.8rem;
}

.log-line.trace {
    color: var(--violet);
    font-style: italic;
    padding-left: 1.2rem;
}

/* ==========================================================================
   PROJECT ARCHITECTURE MODAL INSPECTOR
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 3, 6, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-normal), visibility var(--t-normal);
    padding: 1.5rem;
}

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

.modal-card {
    width: 100%;
    max-width: 820px;
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--t-normal);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--t-fast);
}

.modal-close:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.modal-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--rose);
    letter-spacing: 0.15em;
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-svg-container {
    width: 100%;
    background: rgba(2, 3, 6, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
}

.modal-svg-container svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   PRINT MEDIA STYLE FOR RESUME PRINTING
   ========================================================================== */
@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 10pt;
    }

    .navbar,
    .ambient-glow,
    #neural-canvas,
    .hero-ctas,
    .hero-badge,
    .floating-badge,
    .photo-ring,
    .photo-ring-inner,
    .photo-wrapper,
    .skills-tabs,
    .project-filters,
    .btn-inspect-arch,
    .sandbox-container,
    .contact-form,
    .footer,
    .mobile-toggle {
        display: none !important;
    }

    .container {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }

    .section {
        padding: 1.5rem 0 !important;
        page-break-inside: avoid;
    }

    .hero-section {
        min-height: auto !important;
        padding-top: 0 !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        gap: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .hero-name {
        font-size: 24pt !important;
        margin-bottom: 0.2rem !important;
    }

    .hero-tagline {
        font-size: 12pt !important;
        color: #333 !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-description {
        display: none !important;
    }

    .hero-typed-line {
        display: none !important;
    }

    .hero-contact-bar {
        margin-bottom: 1.5rem !important;
        gap: 1.5rem !important;
    }

    .contact-item {
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        font-size: 10pt !important;
    }

    .contact-icon {
        display: none !important;
    }

    .experience-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .timeline-container {
        padding-left: 0 !important;
    }

    .timeline-line,
    .timeline-dot {
        display: none !important;
    }

    .timeline-content {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .timeline-item {
        margin-bottom: 1.5rem !important;
    }

    .timeline-role {
        font-size: 12pt !important;
    }

    .timeline-company {
        font-size: 10pt !important;
        color: #000 !important;
    }

    .badge-status {
        display: none !important;
    }

    .timeline-bullets li {
        font-size: 9.5pt !important;
        color: #222 !important;
        margin-bottom: 0.4rem !important;
    }

    .credentials-sidebar {
        gap: 1rem !important;
        page-break-before: always;
    }

    .cred-card {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .cred-card-top,
    .cred-glow-glow,
    .cred-btn {
        display: none !important;
    }

    .bento-card-label {
        border-bottom: 1px solid #ddd !important;
        padding-bottom: 0.2rem !important;
        margin-bottom: 0.8rem !important;
        font-size: 11pt !important;
        color: #000 !important;
    }

    .bento-card-label .label-dot {
        display: none !important;
    }

    .cert-list {
        gap: 0.5rem !important;
    }

    .cert-list li {
        gap: 0.4rem !important;
    }

    .cert-check {
        display: none !important;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .project-card {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
        page-break-inside: avoid;
    }

    .project-body {
        padding: 0 !important;
    }

    .project-label {
        font-size: 8pt !important;
        color: #555 !important;
    }

    .project-title {
        font-size: 12pt !important;
    }

    .project-description {
        font-size: 9.5pt !important;
        color: #222 !important;
        margin-bottom: 0.5rem !important;
    }

    .project-tags {
        margin-bottom: 0.5rem !important;
    }

    .tag {
        border: 1px solid #ccc !important;
        background: #f5f5f5 !important;
        color: #000 !important;
        font-size: 8pt !important;
        padding: 0.1rem 0.4rem !important;
    }

    .project-links {
        display: none !important;
    }

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

    .skill-card {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .skill-top {
        margin-bottom: 0.4rem !important;
    }

    .skill-orb {
        display: none !important;
    }

    .skill-card h4 {
        font-size: 11pt !important;
    }

    .skill-card p {
        font-size: 9.5pt !important;
        color: #222 !important;
        margin-bottom: 0 !important;
    }

    .skill-bar-track {
        display: none !important;
    }
}

/* responsive experience timeline and sandbox */
@media (max-width: 1024px) {
    .experience-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sandbox-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .sandbox-deck {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 2rem;
    }

    .sandbox-console {
        height: 380px;
    }
}

@media (max-width: 992px) {
    .timeline-container {
        padding-left: 1.2rem;
    }

    .timeline-line {
        left: 2px;
    }

    .timeline-dot {
        left: -1.2rem;
        width: 12px;
        height: 12px;
        top: 25px;
        transform: translateX(-4px);
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-role {
        font-size: 1.2rem;
    }

    .modal-card {
        padding: 2rem;
    }
}

/* ==========================================================================
   THEME SWITCHER
   ========================================================================== */
.theme-switcher {
    position: relative;
    display: inline-block;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 170px;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--t-fast), transform var(--t-fast);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.theme-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: all var(--t-fast);
}

.theme-option:hover,
.theme-option.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.theme-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* ==========================================================================
   COMMAND PALETTE
   ========================================================================== */
.cmd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cmd-kbd {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cmd-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast);
    z-index: 9999;
}

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

.cmd-palette-box {
    width: 90%;
    max-width: 580px;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform var(--t-fast);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(var(--gold-rgb), 0.05);
}

.cmd-palette-overlay.active .cmd-palette-box {
    transform: scale(1);
}

.cmd-input-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.8rem;
}

.cmd-prefix {
    font-family: var(--font-mono);
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
}

.cmd-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
}

.cmd-esc {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.cmd-results {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.cmd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--t-fast);
}

.cmd-item:hover,
.cmd-item.active {
    background: rgba(var(--gold-rgb), 0.06);
}

.cmd-name {
    font-family: var(--font-mono);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.cmd-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.cmd-footer {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(6, 8, 16, 0.5);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* ==========================================================================
   SANDBOX VISUAL FLOW MAP
   ========================================================================== */
.sandbox-flowmap {
    margin-bottom: 2rem;
    background: rgba(10, 14, 26, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.flowmap-svg {
    display: none;
    width: 100%;
    max-width: 780px;
    height: auto;
}

.flowmap-svg.active {
    display: block;
}

.flowmap-svg text {
    fill: var(--text-secondary) !important;
    font-size: 11px !important;
}

.flowmap-svg text[font-weight="600"] {
    fill: var(--text-primary) !important;
    font-size: 12px !important;
}

.flow-node {
    transition: stroke 0.3s ease, fill 0.3s ease, filter 0.3s ease;
}

.flow-node.active {
    stroke: var(--gold);
    fill: rgba(var(--gold-rgb), 0.15);
    filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.3));
}

.flow-node.active+text {
    fill: var(--text-primary) !important;
}

.flow-path {
    stroke-dasharray: 4 4;
    transition: stroke 0.3s ease;
}

.flow-path.active {
    stroke: var(--gold);
    animation: flowPulse 1s linear infinite;
}

@keyframes flowPulse {
    to {
        stroke-dashoffset: -20;
    }
}

/* ==========================================================================
   ARCHITECTURE MODAL UPGRADE
   ========================================================================== */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all var(--t-fast);
}

.modal-tab-btn:hover {
    color: var(--text-primary);
}

.modal-tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
    animation: fadeSlideUp 0.3s var(--ease-out);
}

.modal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.modal-dryrun {
    background: rgba(6, 8, 16, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
}

.dryrun-header {
    background: rgba(10, 14, 26, 0.8);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dryrun-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dryrun-header .red {
    background: #FF5F56;
}

.dryrun-header .yellow {
    background: #FFBD2E;
}

.dryrun-header .green {
    background: #27C93F;
}

.dryrun-title {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-left: 0.5rem;
}

.dryrun-body {
    padding: 1.2rem;
    height: 180px;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dryrun-input-row {
    border-top: 1px solid var(--border);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dryrun-prompt {
    color: var(--gold);
    font-weight: 700;
}

.dryrun-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .modal-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Deep System Architecture Modal Overhaul */
.modal-card.arch-modal-card {
    max-width: 1080px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 2.2rem 2.6rem;
    background: radial-gradient(circle at 10% 10%, rgba(13, 20, 38, 0.95), rgba(4, 6, 14, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.15);
}

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

.arch-circuit-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.08em;
}

.arch-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.arch-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--t-fast);
}

.arch-pill:hover {
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
}

.arch-pill .pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.arch-pill .pill-dot.gold { background: var(--gold); box-shadow: 0 0 6px rgba(247, 178, 103, 0.5); }
.arch-pill .pill-dot.cyan { background: var(--cyan); box-shadow: 0 0 6px rgba(6, 182, 212, 0.5); }
.arch-pill .pill-dot.violet { background: var(--violet); box-shadow: 0 0 6px rgba(139, 92, 246, 0.5); }
.arch-pill .pill-dot.rose { background: var(--rose); box-shadow: 0 0 6px rgba(236, 72, 153, 0.5); }

.diagram-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 12, 24, 0.8);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 0.6rem 1.2rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.diagram-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

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

.legend-color {
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.legend-color.gold { background: var(--gold); }
.legend-color.cyan { background: var(--cyan); }
.legend-color.violet { background: var(--violet); }
.legend-color.rose { background: var(--rose); }

.diagram-zoom-controls {
    display: flex;
    gap: 0.4rem;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: all var(--t-fast);
}

.zoom-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--violet);
    color: var(--text-primary);
}

.modal-svg-container {
    width: 100%;
    min-height: 420px;
    max-height: 560px;
    background: radial-gradient(ellipse at center, rgba(14, 22, 45, 0.75) 0%, rgba(4, 7, 16, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    user-select: none;
}

.modal-svg-container svg {
    width: 100%;
    min-width: 820px;
    max-width: 980px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
}

.tab-icon {
    margin-right: 4px;
    display: inline-block;
}

/* ==========================================================================
   PORTFOLIO UI/UX NUCLEAR UPGRADE STYLES
   ========================================================================== */

/* 1. Global Customizations */
::selection {
    background: rgba(var(--gold-rgb), 0.2);
    color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gold), var(--rose));
    border-radius: 5px;
    border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--rose), var(--violet));
}

/* 2. Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10000;
    pointer-events: none;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--gold) 0%, var(--rose) 50%, var(--violet) 100%);
    box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.5);
    transition: width 0.1s ease-out;
}

/* 3. Hero Stats Cards (Glassmorphic) */
.hero-stats-ticker {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 480px;
    z-index: 10;
}

.ticker-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.ticker-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--gold-rgb), 0.35);
    box-shadow: 0 10px 25px rgba(var(--gold-rgb), 0.12);
}

.ticker-val {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--grad-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(var(--gold-rgb), 0.08);
}

.ticker-lbl {
    font-size: 0.65rem;
    font-family: var(--font-display);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .hero-stats-ticker {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        gap: 0.5rem;
        max-width: 340px;
    }

    .ticker-item {
        width: 100%;
        padding: 0.4rem 0.5rem;
        gap: 0.15rem;
        border-radius: 8px;
    }

    .ticker-val {
        font-size: 1.15rem;
    }

    .ticker-lbl {
        font-size: 0.58rem;
        line-height: 1.15;
    }
}

/* 4. Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: pointer;
}

.scroll-down-indicator a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    transition: all var(--t-fast);
}

.scroll-down-indicator a:hover {
    color: var(--gold);
    border-color: rgba(var(--gold-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.2);
}

.chevron-down {
    animation: chevron-bounce 2s infinite;
}

/* 5. Back to Top FAB */
.back-to-top {
    position: fixed;
    bottom: 5.8rem;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 14, 28, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--t-fast);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--gold);
    border-color: rgba(var(--gold-rgb), 0.3);
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.25);
    transform: translateY(-3px);
}

/* 6. Section Dividers */
.section-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.05) 80%, transparent);
    margin: 4rem 0;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

/* 7. Bento Counter & Skill Upgrades */
.skill-percentage {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
}

.skill-card:hover .skill-orb-ring {
    animation: ring-spin 2s linear infinite;
}

/* 8. Projects Status & Badges */
.featured-project {
    border-color: rgba(var(--gold-rgb), 0.25) !important;
    box-shadow: 0 10px 30px -10px rgba(var(--gold-rgb), 0.1) !important;
}

.featured-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 9. Contact Ambient Glow */
.contact-section {
    position: relative;
}

.contact-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(var(--violet-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* 10. Keyframes & Animations */
@keyframes aurora-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

@keyframes chevron-bounce {

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

    40% {
        transform: translateY(-6px);
    }

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   CLASSIC LIGHT THEME OVERRIDES, SLIDER GALLERY, AND NEW BADGES
   ========================================================================== */

/* Quick theme toggle button styles */
.theme-toggle-quick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
}

html[data-theme="light"] .theme-toggle-quick .sun-icon {
    display: none !important;
}

html[data-theme="light"] .theme-toggle-quick .moon-icon {
    display: block !important;
}

/* Projects Screenshots Gallery */
.project-screenshots {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-top: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--gold-rgb), 0.2) transparent;
}

.project-screenshots::-webkit-scrollbar {
    height: 4px;
}

.project-screenshots::-webkit-scrollbar-thumb {
    background-color: rgba(var(--gold-rgb), 0.2);
    border-radius: 4px;
}

.project-screenshot-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--t-fast);
}

.project-screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Technical Skills Upgrades */
.skill-proficiency {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.1);
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.skills-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.tools-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.tool-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    transition: all var(--t-fast);
}

.tool-badge:hover {
    color: var(--gold);
    border-color: rgba(var(--gold-rgb), 0.4);
    background: rgba(var(--gold-rgb), 0.05);
}

/* Sandbox Example Queries */
.sandbox-queries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.query-pill {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--t-fast);
}

.query-pill:hover {
    color: var(--gold);
    border-color: rgba(var(--gold-rgb), 0.5);
    background: rgba(var(--gold-rgb), 0.08);
}

/* LIGHT THEME EXPLICIT OVERRIDES */
html[data-theme="light"] .card-glass {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .card-glass::before {
    display: none !important;
}

html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .timeline-line {
    background: rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .timeline-dot {
    border-color: #FFFFFF !important;
}

html[data-theme="light"] .experience-layout::before {
    background: rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .preloader {
    background: #FFFFFF !important;
}

html[data-theme="light"] .preloader-bar {
    background: rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .preloader-status {
    color: #475569 !important;
}

html[data-theme="light"] .preloader-logo .preloader-text {
    color: #0F172A !important;
}

html[data-theme="light"] .theme-dropdown {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .theme-option {
    color: #334155 !important;
}

html[data-theme="light"] .theme-option:hover {
    background: #F1F5F9 !important;
}

html[data-theme="light"] .cmd-palette-box {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="light"] .cmd-input {
    color: #0F172A !important;
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .cmd-item {
    color: #334155 !important;
    border-bottom-color: rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .cmd-item:hover,
html[data-theme="light"] .cmd-item.active {
    background: #F1F5F9 !important;
}

html[data-theme="light"] .cmd-kbd {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .cmd-name {
    color: #0F172A !important;
}

html[data-theme="light"] .cmd-desc {
    color: #64748B !important;
}

html[data-theme="light"] .console-body {
    background: #F8FAFC !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #334155 !important;
}

html[data-theme="light"] .console-header {
    background: #F1F5F9 !important;
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .console-title {
    color: #475569 !important;
}

html[data-theme="light"] .console-clear {
    background: #E2E8F0 !important;
    color: #475569 !important;
}

html[data-theme="light"] .console-clear:hover {
    background: #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] .log-line.system {
    color: #0284C7 !important;
}

html[data-theme="light"] .log-line.command {
    color: #0F172A !important;
}

html[data-theme="light"] .log-line.step {
    color: #334155 !important;
}

html[data-theme="light"] .log-line.trace {
    color: #64748B !important;
}

html[data-theme="light"] .log-line.warning {
    color: #D97706 !important;
}

html[data-theme="light"] .log-line.success {
    color: #059669 !important;
}

html[data-theme="light"] .dryrun-body {
    background: #F8FAFC !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .dryrun-input {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #0F172A !important;
}

html[data-theme="light"] .modal-content {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="light"] .modal-tab-btn {
    color: #64748B !important;
    border-bottom-color: rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .modal-tab-btn.active {
    color: var(--gold) !important;
    border-bottom-color: var(--gold) !important;
}

html[data-theme="light"] .metric-card {
    background: #F1F5F9 !important;
    border-color: rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .metric-label {
    color: #64748B !important;
}

html[data-theme="light"] .flow-node {
    fill: #FFFFFF !important;
    stroke: rgba(15, 23, 42, 0.1) !important;
}



html[data-theme="light"] .flow-path {
    stroke: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .tool-badge {
    background: rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .query-pill {
    background: rgba(15, 23, 42, 0.03) !important;
}

/* Mobile Experience Tweaks */
@media (max-width: 768px) {
    .cmd-palette-box {
        width: 95% !important;
        margin: 10px auto !important;
    }

    .hero-greeting {
        font-size: 1.1rem !important;
    }

    .hero-name {
        font-size: 2.2rem !important;
    }

    .hero-tagline {
        font-size: 1.6rem !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .footer {
        padding-bottom: 5.5rem !important;
    }

    .contact-form {
        margin-bottom: 1.5rem;
    }
}

/* --- GCP Badge & Project Metrics Styles --- */
.gcp-badge-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.25rem 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.gcp-badge-img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    transition: transform var(--t-fast);
}

.gcp-badge-img:hover {
    transform: scale(1.05);
}

.project-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    margin-bottom: 0.85rem;
}

.project-metric {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.06);
    border: 1px solid rgba(var(--gold-rgb), 0.20);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

html[data-theme="light"] .gcp-badge-showcase {
    background: rgba(15, 23, 42, 0.02) !important;
}

html[data-theme="light"] .project-metric {
    background: rgba(var(--gold-rgb), 0.08) !important;
    border-color: rgba(var(--gold-rgb), 0.3) !important;
}

/* --- Interactive Python Manifesto & Terminal Styles --- */
.manifesto-code-body {
    padding: 1rem 1.15rem !important;
    text-align: left;
}

.code-editor-wrapper {
    display: flex;
    gap: 0.85rem;
    background: rgba(4, 6, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    overflow-x: auto;
}

.code-gutter {
    display: flex;
    flex-direction: column;
    user-select: none;
    text-align: right;
    color: rgba(255, 255, 255, 0.25);
    padding-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 500;
}

.code-content {
    flex: 1;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Subtle & Distinct Python Syntax Highlighting */
.token-keyword {
    color: #818cf8; /* Muted Indigo/Violet */
    font-weight: 600;
}

.token-class {
    color: #fbbf24; /* Warm Gold */
    font-weight: 600;
}

.token-function {
    color: #34d399; /* Mint Emerald */
}

.token-self {
    color: #f472b6; /* Soft Rose */
    font-style: italic;
}

.token-property {
    color: #93c5fd; /* Soft Sky Blue */
}

.token-string {
    color: #a7f3d0; /* Soft Sage Pastel */
}

.token-var {
    color: #e2e8f0; /* Crisp Platinum */
}

.token-builtin {
    color: #38bdf8; /* Cyan */
}

/* Slide-Down Output Tray */
.manifesto-output-tray {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.35s ease, 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                margin-top 0.35s ease;
    margin-top: 0;
    background: rgba(6, 9, 20, 0.85);
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.manifesto-output-tray.active {
    max-height: 240px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1rem;
}

.manifesto-tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.85rem;
    background: rgba(12, 16, 32, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.tray-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.tray-timer {
    color: var(--text-tertiary);
    font-size: 0.65rem;
}

.manifesto-tray-lines {
    padding: 0.75rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.btn-terminal-run {
    background: rgba(var(--gold-rgb), 0.1);
    border: 1px solid rgba(var(--gold-rgb), 0.4);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--t-fast);
}

.btn-terminal-run:hover {
    background: rgba(var(--gold-rgb), 0.25);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.3);
    transform: translateY(-1px);
}

.output-line {
    line-height: 1.45;
}

.output-line.command {
    color: var(--text-secondary);
}

.output-line.system {
    color: #94a3b8;
}

.output-line.success {
    color: var(--emerald);
    font-weight: 500;
}

/* Light Theme Overrides for Manifesto */
html[data-theme="light"] .code-editor-wrapper {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="light"] .code-gutter {
    color: #94a3b8;
    border-right-color: #e2e8f0;
}

html[data-theme="light"] .token-keyword { color: #6366f1; }
html[data-theme="light"] .token-class { color: #d97706; }
html[data-theme="light"] .token-function { color: #059669; }
html[data-theme="light"] .token-self { color: #db2777; }
html[data-theme="light"] .token-property { color: #2563eb; }
html[data-theme="light"] .token-string { color: #047857; }
html[data-theme="light"] .token-var { color: #334155; }
html[data-theme="light"] .token-builtin { color: #0284c7; }

html[data-theme="light"] .manifesto-output-tray {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .manifesto-tray-header {
    background: #f1f5f9;
    border-bottom-color: #e2e8f0;
}

/* --- Project Architecture Badges / Live Visual Anchors --- */
.arch-badge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin: 1.15rem 0;
}

@media (max-width: 580px) {
    .arch-badge-grid {
        grid-template-columns: 1fr;
    }
}

.arch-badge-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    text-align: left;
    transition: all var(--t-fast);
}

.arch-badge-pill:hover {
    background: rgba(var(--gold-rgb), 0.06);
    border-color: rgba(var(--gold-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.arch-badge-pill .badge-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.arch-badge-pill .badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.arch-badge-pill .badge-text strong {
    font-size: 0.78rem;
    color: #ffffff;
    font-weight: 600;
}

.arch-badge-pill .badge-text small {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

html[data-theme="light"] .arch-badge-pill {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="light"] .arch-badge-pill:hover {
    background: #f1f5f9;
    border-color: rgba(var(--gold-rgb), 0.5);
}

html[data-theme="light"] .arch-badge-pill .badge-text strong {
    color: #0f172a;
}

/* --- Realistic Dark-Mode Browser Mockup Frame --- */
.browser-mockup-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #090d1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(var(--violet-rgb), 0.15);
    margin: 1.25rem 0 0.75rem;
    transition: transform var(--t-normal), box-shadow var(--t-normal);
}

.browser-mockup-frame:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(var(--gold-rgb), 0.2);
    border-color: rgba(var(--gold-rgb), 0.35);
}

.browser-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.9rem;
    background: rgba(14, 19, 38, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-mockup-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mockup-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.browser-mockup-address {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.22rem 0.85rem;
    border-radius: 16px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-mockup-address svg {
    color: var(--emerald);
    flex-shrink: 0;
}

.address-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-mockup-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.browser-mockup-badge .badge-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: pulseDot 2s infinite;
}

.browser-mockup-viewport {
    line-height: 0;
    overflow: hidden;
    background: #02040a;
}

.browser-mockup-viewport img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.browser-mockup-frame:hover .browser-mockup-viewport img {
    transform: scale(1.02);
}

html[data-theme="light"] .browser-mockup-frame {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .browser-mockup-header {
    background: #f1f5f9;
    border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .browser-mockup-address {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
}

/* --- Terminal Streaming Typing Effect & Blinking Cursor --- */
.terminal-cursor {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    font-family: var(--font-mono);
    margin-left: 2px;
    animation: blinkCursor 0.65s infinite;
}

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

/* Recruiter Modal Grid */
.recruiter-modal-card {
    max-width: 720px !important;
}

.recruiter-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.recruiter-col-info,
.recruiter-col-specs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recruiter-spec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.spec-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.recruiter-spec-card h4 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.recruiter-spec-card p {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.recruiter-spec-card p strong {
    color: var(--gold);
}

@media (max-width: 640px) {
    .recruiter-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PROJECT METADATA & EXPANDABLE CASE STUDY STYLES
   ========================================================================== */

.project-problem-statement {
    position: relative;
    padding-left: 0.85rem;
    border-left: 2px solid var(--rose);
    margin-bottom: 1.25rem;
    font-style: italic;
    line-height: 1.5;
}

.project-problem-statement strong {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--rose);
    display: block;
    margin-bottom: 0.2rem;
    font-style: normal;
    letter-spacing: 0.05em;
}

.project-problem-statement p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin: 0;
}

.project-what-i-built {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.project-what-i-built strong {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--violet);
    display: block;
    margin-bottom: 0.2rem;
    letter-spacing: 0.05em;
}

.project-engineering-highlight {
    background: rgba(var(--gold-rgb), 0.03);
    border: 1px solid rgba(var(--gold-rgb), 0.15);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.project-engineering-highlight strong {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.2rem;
    letter-spacing: 0.05em;
}

.project-case-study {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    transition: border-color var(--t-fast);
}

.project-case-study:hover {
    border-color: rgba(var(--violet-rgb), 0.25);
}

.case-study-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(var(--violet-rgb), 0.03);
    cursor: pointer;
    list-style: none;
    /* Hide default HTML disclosure triangle */
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

.case-study-trigger::-webkit-details-marker {
    display: none;
    /* Hide Chrome default arrow */
}

.case-study-trigger .chevron-icon {
    transition: transform var(--t-fast) ease;
    color: var(--violet);
}

.project-case-study[open] .case-study-trigger .chevron-icon {
    transform: rotate(180deg);
}

.case-study-content {
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}

.case-study-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cs-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.cs-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.cs-value {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Show More Projects styles */
#show-more-projects-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--gold-rgb), 0.03);
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    color: var(--gold);
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease-out);
}

#show-more-projects-btn:hover {
    background: rgba(var(--gold-rgb), 0.08);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.2);
    transform: translateY(-2px);
}

/* ── Light Theme Footer Overrides ── */
html[data-theme="light"] .footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

html[data-theme="light"] .footer-top {
    border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .social-link {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .social-link:hover {
    background: rgba(var(--gold-rgb), 0.05);
    border-color: var(--gold);
    color: var(--gold);
}

/* Tools & Platforms Premium Grid */
.tools-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tool-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gold, #F7B267);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold, #F7B267);
    box-shadow: 0 10px 30px -10px rgba(247, 178, 103, 0.15);
}

.tool-card:hover::before {
    opacity: 0.05;
}

.tool-card-icon {
    font-size: 1.5rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    width: 42px; height: 42px;
}

.tool-card-name {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-primary);
    z-index: 1;
}

html[data-theme="light"] .tool-card-icon {
    background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .tool-card {
    background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .tool-card:hover {
    background: #ffffff;
}

html[data-theme="light"] .query-pill {
    background: #E2E8F0 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] .btn-sim-text span {
    color: #475569 !important;
}

/* --- Mobile Polish Tweaks --- */
.mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-only {
        display: flex !important;
    }
    .hero-mobile-socials {
        justify-content: center;
        gap: 1.2rem;
        margin-top: 0.75rem;
    }
    .hero-mobile-socials .social-link {
        width: 42px;
        height: 42px;
        color: #ffffff;
        border: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    .hero-mobile-socials .social-link[aria-label="GitHub"] {
        background: #24292e;
    }
    .hero-mobile-socials .social-link[aria-label="LinkedIn"] {
        background: #0a66c2;
    }
    .hero-mobile-socials .social-link[aria-label="Instagram"] {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }
    .hero-mobile-socials .social-link[aria-label="YouTube"] {
        background: #FF0000;
    }
}

@media (max-width: 640px) {
    .sandbox-deck {
        padding: 1.25rem;
    }
    .tools-platform-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }
}

/* ==========================================================================
   UNIQUE TYPOGRAPHY & EDITORIAL STYLING ("Writing Alag")
   ========================================================================== */
.cursive-name {
    font-family: var(--font-cursive) !important;
    font-size: 5.6rem !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    word-spacing: 0.6rem !important;
    font-feature-settings: "liga" 1, "calt" 1, "dlig" 1 !important;
    font-variant-ligatures: normal !important;
    text-rendering: optimizeLegibility !important;
    padding-bottom: 0.35rem !important;
    display: inline-block !important;
    filter: drop-shadow(0 4px 20px rgba(var(--gold-rgb), 0.3));
}

@media (max-width: 640px) {
    .cursive-name {
        font-size: 3.8rem !important;
    }
}

.serif-italic-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.18em;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--gold) 0%, #FFFFFF 65%, var(--rose) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0 0.1em;
}

.handwritten-greeting {
    font-family: var(--font-hand);
    font-size: 1.65rem;
    color: var(--gold);
    margin-right: 0.4rem;
    display: inline-block;
    transform: rotate(-3deg);
    text-shadow: 0 0 12px rgba(var(--gold-rgb), 0.4);
}

.dev-annotation {
    font-family: var(--font-hand);
    font-size: 1.12rem;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(247, 178, 103, 0.08);
    border: 1px dashed rgba(247, 178, 103, 0.35);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    user-select: none;
    z-index: 5;
}

.dev-annotation:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 6px 20px rgba(247, 178, 103, 0.25);
    border-color: var(--gold);
}

.hero-photo-note {
    position: absolute;
    bottom: -16px;
    right: -12px;
    transform: rotate(3deg);
    backdrop-filter: blur(10px);
}

.section-hand-tag {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    display: block;
    transform: rotate(-1.5deg);
    text-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.3);
}

.cursive-logo {
    font-family: 'Dancing Script', 'Alex Brush', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-right: 2px;
}

.cursive-word {
    font-family: 'Dancing Script', 'Alex Brush', cursive;
    font-size: 1.25em;
    font-weight: 700;
    font-style: normal;
    background: linear-gradient(135deg, var(--gold) 0%, #FFFFFF 50%, var(--rose) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 0.15em;
    display: inline-block;
}

.cursive-subheading {
    font-family: 'Caveat', 'Dancing Script', cursive;
    font-size: 1.35rem;
    color: var(--gold);
    letter-spacing: 0.02em;
    display: inline-block;
    margin-left: 0.6rem;
    transform: rotate(-1.5deg);
    text-shadow: 0 0 10px rgba(var(--gold-rgb), 0.3);
    vertical-align: middle;
    text-transform: none !important;
}

.cursive-stamp {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cyan);
    display: inline-block;
    transform: rotate(-2deg);
    margin-left: 0.4rem;
    text-transform: none !important;
}

/* ==========================================================================
   LIGHT THEME TYPOGRAPHY & CURSIVE VISIBILITY OVERRIDES
   ========================================================================== */
html[data-theme="light"] .hero-name {
    background: linear-gradient(135deg, #78350f 0%, #b45309 35%, #be185d 70%, #4338ca 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 8px rgba(180, 83, 9, 0.2)) !important;
}

html[data-theme="light"] .cursive-word {
    background: linear-gradient(135deg, #b45309 0%, #c2410c 40%, #be185d 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    filter: drop-shadow(0 1px 2px rgba(180, 83, 9, 0.2)) !important;
}

html[data-theme="light"] .cursive-subheading {
    color: #b45309 !important; /* Deep Warm Amber */
    font-weight: 700 !important;
    text-transform: none !important;
    text-shadow: none !important;
    filter: drop-shadow(0 1px 1px rgba(180, 83, 9, 0.15)) !important;
}

html[data-theme="light"] .cursive-name {
    background: linear-gradient(135deg, #78350f 0%, #b45309 35%, #be185d 70%, #4338ca 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 10px rgba(180, 83, 9, 0.2)) !important;
}

html[data-theme="light"] .cursive-logo {
    color: #b45309 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .cursive-stamp {
    color: #0369a1 !important; /* Deep Sky Blue */
    font-weight: 700 !important;
    text-transform: none !important;
    text-shadow: none !important;
}

html[data-theme="light"] .serif-italic-accent {
    background: linear-gradient(135deg, #b45309 0%, #0f172a 50%, #be185d 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html[data-theme="light"] .handwritten-greeting {
    color: #b45309 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .section-hand-tag {
    color: #0369a1 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .dev-annotation {
    background: rgba(180, 83, 9, 0.08) !important;
    border-color: rgba(180, 83, 9, 0.45) !important;
    color: #78350f !important;
    box-shadow: 0 4px 15px rgba(180, 83, 9, 0.12) !important;
}

/* ==========================================================================
   AI PERSONA CHATBOT ("Riyanshi.ai Assistant")
   ========================================================================== */
.chatbot-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    font-family: var(--font-display);
    padding: 3px;
    border-radius: 36px;
    background: rgba(10, 14, 28, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--gold-rgb), 0.28);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--gold-rgb), 0.15);
    transition: opacity var(--t-normal), visibility var(--t-normal), transform var(--t-normal), background var(--t-normal), border-color var(--t-normal);
}

/* Hide floating chatbot whenever modals or command palette are active to prevent collision with close elements */
.modal-overlay.active ~ .chatbot-widget-container,
.cmd-palette-overlay.active ~ .chatbot-widget-container,
body.modal-open .chatbot-widget-container {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translateY(12px) scale(0.95);
}

/* When dialog is expanded, container relaxes outer border so dialog displays cleanly */
.chatbot-widget-container.dialog-open {
    z-index: 1005;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
}

/* Floating Trigger Button */
.chatbot-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(15, 20, 42, 0.92) 0%, rgba(26, 20, 52, 0.95) 100%);
    border: 1px solid rgba(var(--gold-rgb), 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(var(--gold-rgb), 0.25);
    padding: 0.6rem 1.15rem 0.6rem 0.75rem;
    border-radius: 32px;
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: all var(--t-normal);
    user-select: none;
}

.chatbot-trigger-btn:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--gold);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 35px rgba(var(--gold-rgb), 0.45);
}

.chatbot-trigger-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--rose) 50%, var(--violet) 100%);
    padding: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-trigger-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot-avatar-pulse {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--emerald);
    border: 2px solid var(--bg-deep);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    animation: pulseDot 2s infinite;
}

.chatbot-trigger-label {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.chatbot-trigger-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: -0.01em;
}

.chatbot-sparkle {
    color: var(--gold);
    font-size: 0.85rem;
}

.chatbot-trigger-sub {
    font-size: 0.68rem;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* Chatbot Dialog Box */
.chatbot-dialog {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: radial-gradient(circle at 10% 10%, rgba(18, 24, 48, 0.97), rgba(8, 12, 24, 0.98));
    border: 1px solid rgba(var(--gold-rgb), 0.35);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 45px rgba(var(--violet-rgb), 0.25);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

.chatbot-dialog.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.15rem;
    background: rgba(10, 14, 28, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.chatbot-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--gold), var(--rose), var(--violet));
    position: relative;
}

.chatbot-header-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot-header-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chatbot-badge-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    background: rgba(var(--gold-rgb), 0.15);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    padding: 0.1rem 0.45rem;
    border-radius: 12px;
    text-transform: uppercase;
}

.chatbot-header-sub {
    font-size: 0.7rem;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
}

.chatbot-status-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--emerald);
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chatbot-btn-action {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}

.chatbot-btn-action:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Chat Messages Stream */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    scroll-behavior: smooth;
}

.chat-msg {
    display: flex;
    gap: 0.65rem;
    max-width: 88%;
    animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-bubble {
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
}

.chat-msg.bot .chat-bubble {
    background: rgba(20, 28, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-top-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.25) 0%, rgba(var(--rose-rgb), 0.3) 100%);
    border: 1px solid rgba(var(--gold-rgb), 0.4);
    color: #ffffff;
    border-top-right-radius: 4px;
}

.chat-bubble a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-bubble code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: var(--gold);
}

/* Typing animation */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.4rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: bounceDot 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDot {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Suggested Chips */
.chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.3rem 0;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-display);
    transition: all var(--t-fast);
}

.chip-btn:hover {
    background: rgba(var(--gold-rgb), 0.15);
    border-color: var(--gold);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Chat Input Bar */
.chatbot-input-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.95rem;
    background: rgba(10, 14, 28, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    font-size: 0.84rem;
    color: #ffffff;
    outline: none;
    font-family: var(--font-display);
    transition: border-color var(--t-fast);
}

.chatbot-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.chatbot-input::placeholder {
    color: var(--text-tertiary);
}

.chatbot-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--rose) 100%);
    border: none;
    color: #060810;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.5);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Light Mode Overrides for Chatbot */
html[data-theme="light"] .chatbot-trigger-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(247, 178, 103, 0.7);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .chatbot-trigger-title {
    color: #0f172a;
}

html[data-theme="light"] .chatbot-dialog {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .chatbot-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .chatbot-header-title {
    color: #0f172a;
}

html[data-theme="light"] .chat-msg.bot .chat-bubble {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #e2e8f0;
}

html[data-theme="light"] .chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, #f7b267, #ec4899);
    color: #ffffff;
}

html[data-theme="light"] .chatbot-input-bar {
    background: #f8fafc;
    border-top-color: #e2e8f0;
}

html[data-theme="light"] .chatbot-input {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .chip-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

html[data-theme="light"] .chatbot-widget-container {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(var(--gold-rgb), 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 15px rgba(var(--gold-rgb), 0.1);
}

html[data-theme="light"] .chatbot-widget-container.dialog-open {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* Mobile Responsiveness for Chatbot */
@media (max-width: 640px) {
    .chatbot-widget-container {
        bottom: 24px;
        right: 24px;
        z-index: 50;
        padding: 3px;
        border-radius: 50%;
    }
    .back-to-top {
        bottom: 5.2rem;
        right: 24px;
    }
    .chatbot-trigger-label {
        display: none;
    }
    .chatbot-trigger-btn {
        padding: 0.45rem;
        border-radius: 50%;
    }
    .chatbot-dialog {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: 85vh;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
    }
}