/* ═══ MODERN PORTFOLIO DESIGN SYSTEM ═══ */

:root {
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* Transition Timings */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Light Theme Palette - Sleek Pro Designer */
    --bg-primary: #FAFAFA; /* Zinc 50 */
    --bg-secondary: #F4F4F5; /* Zinc 100 */
    --bg-tertiary: #E4E4E7; /* Zinc 200 */
    --fg-primary: #18181B; /* Zinc 900 */
    --fg-secondary: #3F3F46; /* Zinc 700 */
    --fg-muted: #71717A; /* Zinc 500 */
    --border-color: rgba(24, 24, 27, 0.08);

    --accent-gradient: linear-gradient(135deg, #4F46E5, #0EA5E9); /* Indigo to Sky */
    --accent-color: #4F46E5; /* Indigo 600 */
    --accent-fg: #ffffff; /* High contrast white */
    --accent-glow: rgba(79, 70, 229, 0.2);

    --nav-bg: rgba(250, 250, 250, 0.85);
    --card-shadow: 0 12px 32px rgba(24, 24, 27, 0.06), 0 2px 6px rgba(24, 24, 27, 0.02);
    --glow-blob-1: rgba(79, 70, 229, 0.08);
    --glow-blob-2: rgba(14, 165, 233, 0.12);
    --glow-blob-3: rgba(168, 85, 247, 0.08);
    --grid-color: rgba(24, 24, 27, 0.03);
}

[data-theme="dark"] {
    /* Dark Theme Palette - Sleek Pro Designer */
    --bg-primary: #09090B; /* Zinc 950 */
    --bg-secondary: #18181B; /* Zinc 900 */
    --bg-tertiary: #27272A; /* Zinc 800 */
    --fg-primary: #FAFAFA; /* Zinc 50 */
    --fg-secondary: #D4D4D8; /* Zinc 300 */
    --fg-muted: #A1A1AA; /* Zinc 400 */
    --border-color: rgba(250, 250, 250, 0.1);

    --accent-gradient: linear-gradient(135deg, #818CF8, #38BDF8);
    --accent-color: #818CF8; /* Indigo 400 */
    --accent-fg: #09090B; /* High contrast dark */
    --accent-glow: rgba(129, 140, 248, 0.25);

    --nav-bg: rgba(9, 9, 11, 0.85);
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
    --glow-blob-1: rgba(129, 140, 248, 0.1);
    --glow-blob-2: rgba(56, 189, 248, 0.12);
    --glow-blob-3: rgba(192, 132, 252, 0.08);
    --grid-color: rgba(250, 250, 250, 0.02);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 190, 145, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(207, 235, 255, 0.2) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--fg-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 190, 145, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(207, 235, 255, 0.05) 0px, transparent 50%);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fg-muted);
}

/* ── Background Decoration ── */
#bg-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}

/* ── Theme View Transition Configuration ── */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-new(root) {
    z-index: 9999;
}

::view-transition-old(root) {
    z-index: 1;
}

.glow-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.8;
}

.blob-1 {
    top: -10%;
    right: 10%;
    width: 45vw;
    height: 45vw;
    background-color: var(--glow-blob-1);
    animation: liquid-drift-1 25s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: -10%;
    left: -5%;
    width: 45vw;
    height: 45vw;
    background-color: var(--glow-blob-2);
    animation: liquid-drift-2 30s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    top: 40%;
    left: 45%;
    width: 35vw;
    height: 35vw;
    background-color: var(--glow-blob-3);
    animation: liquid-drift-3 28s infinite ease-in-out;
}

@keyframes liquid-drift-1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    33% {
        transform: translate(5%, 8%) scale(1.08) rotate(120deg);
        border-radius: 40% 60% 50% 50% / 40% 40% 60% 60%;
    }
    66% {
        transform: translate(-5%, 4%) scale(0.95) rotate(240deg);
        border-radius: 60% 40% 60% 40% / 50% 60% 40% 50%;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
}

@keyframes liquid-drift-2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    50% {
        transform: translate(-8%, -5%) scale(1.12) rotate(-180deg);
        border-radius: 60% 30% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(-360deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
}

@keyframes liquid-drift-3 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    50% {
        transform: translate(10%, -10%) scale(0.85) rotate(180deg);
        border-radius: 35% 65% 45% 55% / 55% 45% 55% 45%;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-smooth), border-color var(--transition-smooth), padding 0.3s;
}

nav.scrolled {
    padding: 0.9rem 5%;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--fg-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--fg-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-gradient);
    transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--fg-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ── Theme Switcher ── */
#theme-toggle {
    width: 50px;
    height: 26px;
    border-radius: 13px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

#theme-toggle:hover {
    border-color: var(--fg-muted);
}

.toggle-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 6px;
    font-size: 10px;
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--fg-primary);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left var(--transition-bounce), background var(--transition-smooth);
}

[data-theme="dark"] .toggle-thumb {
    left: 26px;
}

/* ── Mobile Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fg-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Drawer ── */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg-primary);
    padding: 8rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-drawer .nav-links a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* ── Layout & Typography ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--fg-primary);
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
    background: var(--fg-primary);
    color: var(--bg-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--fg-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--fg-primary);
    background: var(--bg-tertiary);
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    padding: 7rem 5% 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--fg-primary);
    margin-bottom: 2rem;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--fg-primary);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

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

.hero-desc {
    font-size: 1.05rem;
    color: var(--fg-secondary);
    max-width: 55ch;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--fg-primary);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--fg-muted);
    font-weight: 500;
    margin-top: 0.35rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hero Right: Tech Console */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-console {
    width: 100%;
    max-width: 440px;
    background: #0f131a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: var(--font-code);
    font-size: 0.8rem;
    position: relative;
}

.console-header {
    background: #161b24;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.console-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.console-dots span:nth-child(1) {
    background-color: #ef4444;
}

.console-dots span:nth-child(2) {
    background-color: #f59e0b;
}

.console-dots span:nth-child(3) {
    background-color: #10b981;
}

.console-title {
    font-size: 0.7rem;
    color: #64748b;
}

.console-body {
    padding: 1.5rem;
    color: #cbd5e1;
    line-height: 1.6;
    overflow-x: auto;
}

.console-body .code-line {
    margin-bottom: 0.4rem;
}

.code-keyword {
    color: #f43f5e;
}

.code-property {
    color: #38bdf8;
}

.code-value {
    color: #34d399;
}

.code-comment {
    color: #64748b;
}

.console-prompt-line {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
}

.prompt-symbol {
    color: #10b981;
    font-weight: 700;
}

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

@keyframes console-cursor-blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.console-output {
    color: #38bdf8;
}

/* ── Experience Timeline ── */
.timeline-container {
    position: relative;
    padding-left: 2.5rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 7.5px;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: var(--border-color);
}

.exp-item {
    position: relative;
    margin-bottom: 4.5rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

.exp-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    left: calc(-2.5rem + 3px);
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    z-index: 2;
}

.exp-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.exp-date {
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-color);
}

.exp-company {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--fg-primary);
}

.exp-loc {
    font-size: 0.75rem;
    color: var(--fg-muted);
}

.exp-content {
    display: flex;
    flex-direction: column;
}

.exp-role {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--fg-primary);
    margin-bottom: 0.75rem;
}

.exp-desc {
    color: var(--fg-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.exp-bullets {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.exp-bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--fg-secondary);
}

.exp-bullets li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-code);
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--fg-secondary);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tag:hover {
    border-color: var(--accent-color);
    color: var(--fg-primary);
}

/* ── Skills Grid ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.skill-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.2rem;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-bounce), border-color var(--transition-fast);
}

.skill-group:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

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

.skill-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.skill-group-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fg-primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--fg-primary);
    font-weight: 500;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.skill-chip:hover {
    border-color: var(--accent-color);
    background: var(--bg-secondary);
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

/* ── Education Timeline ── */
.edu-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.edu-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.2rem;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    transition: transform var(--transition-bounce), border-color var(--transition-fast);
}

.edu-card:hover {
    transform: scale(1.01);
    border-color: var(--accent-color);
}

.edu-badge {
    align-self: flex-start;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--accent-color);
    text-align: center;
    font-weight: 500;
}

.edu-degree {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg-primary);
    margin-bottom: 0.25rem;
}

.edu-school {
    font-size: 0.9rem;
    color: var(--fg-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.edu-details {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── Certifications Grid ── */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Hide 4th card onwards on the main page grid */
#cert-grid .cert-card:nth-child(n+4) {
    display: none;
}

.cert-actions {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Larger modal for All Certifications list */
.cert-modal--large {
    max-width: 960px !important;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

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

@media (max-width: 992px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
    .all-certs-grid {
        grid-template-columns: 1fr;
    }
}

.cert-card {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    cursor: pointer;
    user-select: none;
    transition: transform var(--transition-bounce), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cert-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.cert-num {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.6;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg-primary);
    margin: 0.75rem 0 0.25rem;
    line-height: 1.4;
}

.cert-issuer {
    font-size: 0.75rem;
    color: var(--fg-muted);
}

.cert-status {
    align-self: flex-start;
    font-family: var(--font-code);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

/* ── Certificate Thumbnails (small images in card) ── */
.cert-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cert-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.cert-thumb:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

/* ── Certificate Modal ── */
.cert-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#cert-modal-overlay {
    z-index: 10000; /* Stack above the all-certs-modal-overlay */
}

.cert-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cert-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 560px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.cert-modal-overlay.active .cert-modal {
    transform: translateY(0) scale(1);
}

.cert-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--fg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cert-modal-close:hover {
    border-color: var(--accent-color);
    color: var(--fg-primary);
}

.cert-modal-num {
    font-family: var(--font-code);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.cert-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg-primary);
    margin-bottom: 0.25rem;
}

.cert-modal-issuer {
    font-size: 0.9rem;
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
}

.cert-modal-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-modal-images img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}



/* ── Projects Grid ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-bounce), border-color var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.project-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-gradient);
    filter: blur(80px);
    opacity: 0;
    top: -50px;
    right: -50px;
    border-radius: 50%;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.project-card:hover .project-glow {
    opacity: 0.4;
}

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

.project-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg-primary);
    line-height: 1.4;
}

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

.project-bullets {
    list-style: none;
    font-size: 0.85rem;
    color: var(--fg-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.project-bullets li {
    position: relative;
    padding-left: 1rem;
}

.project-bullets li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

/* ── Contact Section ── */
.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.contact-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--fg-primary);
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.contact-tagline {
    color: var(--fg-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 35ch;
}

.contact-cta-group {
    display: flex;
    gap: 1rem;
}

.contact-cta-group .btn {
    padding: 0.9rem 2.2rem;
}

.btn-icon {
    margin-left: 0.5rem;
    font-size: 1rem;
}

.contact-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-info-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.2rem;
}

.contact-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-family: var(--font-code);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-muted);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg-primary);
    text-decoration: none;
}

.hover-underline:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.social-links-inline {
    display: flex;
    gap: 1rem;
    margin-top: 0.4rem;
}

.social-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--fg-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.social-item:hover {
    color: var(--fg-primary);
}

.social-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-social {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--fg-muted);
}

/* ── Lazy Loading Skeleton & Reveal Styling ── */
.lazy-section-placeholder {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.skeleton-loader {
    width: 100%;
    max-width: 1200px;
    padding: 0 5%;
}

.skeleton-header {
    height: 32px;
    width: 250px;
    background: var(--border-color);
    border-radius: 6px;
    margin-bottom: 2rem;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-body {
    height: 200px;
    width: 100%;
    background: var(--border-color);
    border-radius: 12px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.5;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Responsive Styling ── */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 9rem;
        gap: 3rem;
    }

    .tech-console {
        max-width: 100%;
    }

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

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

@media (max-width: 768px) {
    .nav-menu-wrapper {
        display: none;
    }

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

    .mobile-drawer .nav-links {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .edu-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cert-card {
        width: 100%;
    }

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

    .contact-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 3rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cert-card {
        width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-stats {
        gap: 2rem;
    }

    .console-body {
        padding: 1.1rem;
    }

    .tech-console {
        font-size: 0.72rem;
    }
}

/* ── Back to Top Button ── */
#back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 6.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--fg-primary);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--bg-primary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ── Grouped Experience Timeline (LinkedIn-style) ── */
.exp-company-group {
    position: relative;
    margin-bottom: 4.5rem;
}

.exp-company-header {
    position: relative;
    padding-left: 0;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
}

.exp-company-logo {
    position: absolute;
    left: -52px;
    /* Centers logo exactly on the vertical line (timeline axis is at -32px, logo width is 40px, so left = -32 - 20 = -52px) */
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px var(--accent-glow);
    z-index: 2;
}

.exp-company-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.exp-company-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--fg-primary);
}

.exp-company-duration {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--fg-muted);
    font-weight: 500;
}

.exp-sub-timeline {
    position: relative;
    padding-left: 0;
}

.exp-sub-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.exp-sub-item:last-child {
    margin-bottom: 1.5rem;
}

.exp-sub-dot {
    position: absolute;
    left: -36px;
    /* Timeline axis is at -32px. Dot is 8px wide, so left = -32 - 4 = -36px */
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    z-index: 2;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.exp-sub-content {
    display: flex;
    flex-direction: column;
}

.exp-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-sub-role {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--fg-primary);
}

.exp-sub-meta {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
}

@media (max-width: 480px) {
    .exp-company-logo {
        width: 32px;
        height: 32px;
        left: -48px;
        font-size: 1.1rem;
    }
}

/* ── Company Name Link Styles ── */
a.exp-company-name,
a.exp-company {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast), opacity var(--transition-fast);
    cursor: pointer;
}

a.exp-company-name:hover {
    color: var(--accent-color);
    opacity: 0.9;
}

a.exp-company:hover {
    color: var(--accent-color);
    opacity: 0.9;
}

/* clickable project card wrappers */
a.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
a.project-card-link:hover {
    text-decoration: none;
}
.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

/* ── Chatbot Widget ── */
#chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    font-family: var(--font-body);
}

/* Floating Action Button */
#chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--fg-primary);
    color: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(74, 74, 74, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

#chatbot-toggle:hover {
    transform: scale(1.05) translateY(-2px);
    background: var(--accent-color);
}

#chatbot-toggle .close-icon {
    display: none;
    width: 20px;
    height: 20px;
    transition: transform var(--transition-smooth);
}

#chatbot-toggle:hover .close-icon {
    transform: rotate(90deg);
}

#chatbot-widget.chatbot-closed #chatbot-window {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
}

#chatbot-toggle .void-svg {
    width: 32px;
    height: 32px;
    transition: transform var(--transition-bounce);
}

#chatbot-toggle:hover .void-svg {
    transform: scale(1.1);
}

/* Cosmic Spin and Pulse Animations for the Void SVG */
#chatbot-toggle .void-svg circle:nth-child(2) {
    animation: void-spin 18s linear infinite;
    transform-origin: center;
}

#chatbot-toggle .void-svg circle:nth-child(3) {
    animation: void-pulse 3.5s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes void-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes void-pulse {
    0% { transform: scale(0.94); opacity: 0.7; }
    100% { transform: scale(1.06); opacity: 1; }
}

#chatbot-widget:not(.chatbot-closed) #chatbot-toggle .void-svg {
    display: none;
}

#chatbot-widget:not(.chatbot-closed) #chatbot-toggle .close-icon {
    display: block;
}

/* Chat Window */
#chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 540px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom right;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.chatbot-header {
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    font-size: 1.25rem;
}

.chatbot-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chatbot-header-text h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fg-primary);
    line-height: 1.2;
}

.chatbot-header-text span {
    margin: 0;
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 600;
    line-height: 1.2;
}

.chatbot-header-limit {
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(74, 74, 74, 0.05);
    color: var(--fg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.chatbot-chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-msg {
    display: flex;
    max-width: 80%;
}

.chatbot-msg.user {
    align-self: flex-end;
}

.chatbot-msg.assistant {
    align-self: flex-start;
}

.chatbot-msg.system {
    align-self: center;
    max-width: 90%;
}

.chatbot-msg .msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--fg-primary);
}

.chatbot-msg.user .msg-bubble {
    background: var(--accent-color);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chatbot-msg.assistant .msg-bubble {
    background: var(--bg-tertiary);
    border-bottom-left-radius: 2px;
}

.chatbot-msg.system .msg-bubble {
    background: transparent;
    color: var(--fg-muted);
    font-size: 0.75rem;
    text-align: center;
    font-style: italic;
    padding: 0.25rem;
}

.chatbot-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#chatbot-input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--fg-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

#chatbot-input:focus {
    border-color: var(--accent-color);
}

#chatbot-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--accent-fg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

#chatbot-send-btn:hover {
    background: var(--accent-color);
}

#chatbot-send-btn:disabled,
#chatbot-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Typing Indicator Animation */
.chatbot-msg.typing .msg-bubble {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 1rem;
}

.chatbot-msg.typing .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fg-secondary);
    animation: typing-dot 1.4s infinite both;
}

.chatbot-msg.typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-msg.typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
    #chatbot-window {
        width: calc(100vw - 2rem);
        height: 480px;
        bottom: 70px;
    }
}

/* ── Chatbot Onboarding Overlay & Blur ── */
.chatbot-onboarding-overlay {
    position: absolute;
    inset: 0;
    top: 57px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 10;
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

[data-theme="dark"] .chatbot-onboarding-overlay {
    background: rgba(21, 18, 16, 0.7);
}

.onboarding-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(29, 28, 26, 0.08);
    width: 100%;
    max-width: 280px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.onboarding-card h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg-primary);
}

.onboarding-card p {
    font-size: 0.8rem;
    color: var(--fg-secondary);
    line-height: 1.4;
}

#onboarding-name-input {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--fg-primary);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

#onboarding-name-input:focus {
    border-color: var(--accent-color);
}

#onboarding-submit-btn {
    background: var(--accent-color);
    color: var(--accent-fg);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

#onboarding-submit-btn:hover {
    background: var(--fg-primary);
    transform: translateY(-1px);
}

/* Hide the chat content under the overlay without expensive blurs */
#chatbot-window.onboarding-active .chatbot-chat-content {
    opacity: 0;
    pointer-events: none;
}

/* Hide onboarding overlay when not active */
#chatbot-window:not(.onboarding-active) .chatbot-onboarding-overlay {
    opacity: 0;
    pointer-events: none;
}
