/* Self-hosted fonts: no render-blocking third-party CSS and no visitor IP sent to Google before consent. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: dark;
    --bg-main: #000000;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(15, 15, 15, 0.6);
    --bg-card-hover: rgba(25, 25, 25, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    /* #8b8b94 keeps muted text >= 4.5:1 (WCAG AA) on the black and card backgrounds. */
    --text-muted: #8b8b94;
    --focus-ring: #c4b5fd;
    --mobile-header-height: 72px;

    --accent-glow: #8b5cf6;
    /* Vercel Purple / Agentic */
    --accent-glow-cyan: #06b6d4;

    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Custom Scrollbar for a premium feeling */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-glow) var(--bg-main);
}

/* Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-glow), var(--accent-glow-cyan));
    border-radius: 99px;
    border: 1px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-glow-cyan);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

/* Accessibility: visible keyboard focus, skip link, screen-reader-only text */
:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Sections and <main> receive programmatic focus for screen readers; no ring needed there. */
[tabindex="-1"]:focus {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a {
    color: inherit;
}

/* Stunning Vercel/Linear Style Background Grid + Glow */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -10;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.04"/%3E%3C/svg%3E');
    pointer-events: none;
}

.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -9;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -8;
    opacity: 0.15;
    pointer-events: none;
    /* Promote to its own compositor layer so the expensive blur is cached as a
       texture and the parallax transform is a cheap composite, not a repaint. */
    will-change: transform;
}

.orb-primary {
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: var(--accent-glow);
}

.orb-secondary {
    bottom: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--accent-glow-cyan);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* Add padding for smaller screens so it doesn't touch the edges */
@media (max-width: 1650px) {
    .app-container {
        padding: 0 1.5rem;
    }
}

/* Sleek Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    width: 320px;
    height: 100vh;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 10, 0.5) 100%);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

/* Right Navigation Sidebar */
.right-sidebar {
    position: sticky;
    top: 0;
    width: 280px;
    height: 100vh;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-subtle);
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 10, 0.5) 100%);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.right-sidebar .nav-header {
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

/* QR Code Contact Box */
.qr-contact-box {
    margin-top: auto;
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.qr-header svg {
    color: var(--accent-glow-cyan);
}

.qr-wrapper {
    background: #0a0a0a;
    border: 1px solid var(--border-subtle);
    padding: 16px;
    border-radius: 12px;
    display: inline-block;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.qr-wrapper:hover {
    transform: translateY(-5px);
    border-color: var(--accent-glow);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.15);
}

.qr-image {
    width: 120px;
    height: 120px;
    display: block;
    border-radius: 6px;
    opacity: 0.9;
}

.qr-wrapper:hover .qr-image {
    opacity: 1;
}

.qr-hint {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.qr-wrapper:hover + .qr-hint {
    color: var(--accent-glow-cyan);
    opacity: 1;
}

.qr-action-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-glow-cyan);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.qr-wrapper:hover .qr-action-label {
    opacity: 1;
    color: #fff;
}

.qr-wrapper a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
}


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

.profile-avatar {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    margin: 2.5rem 0 1rem 0;
    /* Creates space between the role and the button */
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-glow-cyan));
    position: relative;
    display: block;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-glow-cyan));
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.profile-avatar:hover::before {
    opacity: 0.8;
}

.profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    /* Slightly tighter than parent's 16px */
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--bg-main);
    padding: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    color: #a78bfa;
    margin-bottom: 1.5rem;
    background: rgba(167, 139, 250, 0.1);
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.1);
}

.pulse {
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    box-shadow: 0 0 10px #a78bfa;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.name {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.role-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.profile-avatar picture {
    display: block;
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link svg {
    opacity: 0.7;
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.nav-link.active svg {
    opacity: 1;
    color: #a78bfa;
}

/* Socials at bottom of sidebar */
.social-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-btn:hover {
    color: #fff;
}

/* Main Content Area */
.content {
    flex-grow: 1;
    padding: 3rem 5rem;
    max-width: 1100px;
}

.content-section {
    margin-bottom: 8rem;
    scroll-margin-top: 4rem;
}

.section-heading {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-heading h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

.heading-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--border-subtle) 0%, transparent 100%);
}

/* Refined Premium Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lead-text {
    font-size: 1.35rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.lead-text strong {
    font-weight: 500;
    color: #a78bfa;
}

.description-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Tags styling */
.tag {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: inline-block;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.tag.tech-tag {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.05);
    border-color: rgba(167, 139, 250, 0.15);
}

.tag.code-tag {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.05);
    border-color: rgba(244, 114, 182, 0.15);
}

.tag.data-tag {
    color: #34d399;
    background: rgba(52, 211, 153, 0.05);
    border-color: rgba(52, 211, 153, 0.15);
}

.tag.cloud-tag {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.15);
}

.tag.sec-tag {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.15);
}

.tag.qa-tag {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.05);
    border-color: rgba(251, 113, 133, 0.15);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.skill-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
}

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

/* Timeline V2 - Linear Style */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--border-subtle) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 4rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--text-muted);
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-item:hover .timeline-dot {
    border-color: #a78bfa;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.header-row h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.date-badge {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-row {
    gap: 1rem;
}

.job-title {
    font-size: 1rem;
    color: #a78bfa;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.job-desc {
    list-style: none;
    margin-bottom: 1.5rem;
}

.job-desc li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.job-desc li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.stack-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

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

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.project-icon svg {
    display: block;
}

.project-card .job-desc {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.project-card .job-desc li {
    font-size: 0.85rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #fff;
}

.project-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Education */
.ed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.ed-list,
.cert-list {
    list-style: none;
}

.ed-list li,
.cert-list>li {
    position: relative;
    margin-bottom: 1.5rem;
}

.ed-list li:last-child,
.cert-list>li:last-child {
    margin-bottom: 0;
}

.ed-list strong,
.cert-list strong {
    display: block;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.ed-list span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cert-list ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.cert-list ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-list ul li::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* Forms */
.styled-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label .required {
    color: #f43f5e;
}

.form-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(10, 10, 10, 0.8);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Turnstile (flexible size) is a fixed 65px tall and fills its container's width,
   so the submit button shares the row as an equal column at the same height. */
.form-footer {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 1rem;
}

.turnstile-wrapper {
    flex: 1 1 0;
    min-width: 300px;
    min-height: 65px;
}

.cf-turnstile,
.cf-turnstile iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* The widget's iframe is inline inside Turnstile's shadow DOM; line-height 0 (inherited
   through the shadow boundary) removes the ~8px text gap under it so it is exactly 65px. */
.cf-turnstile {
    line-height: 0;
}

.submit-btn {
    flex: 1 1 0;
    min-height: 65px;
    padding: 12px 28px;
    cursor: pointer;
}

.form-status {
    font-size: 0.9rem;
    display: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Field-level validation error */
.field-error {
    font-size: 0.78rem;
    color: #f43f5e;
    margin-top: 5px;
    display: none;
    animation: fadeInDown 0.2s ease;
}

.field-error.visible {
    display: block;
}

.form-input.invalid {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Primary Button */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 100%;
}

.btn-primary:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-primary svg {
    color: #a78bfa;
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translateY(1px);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.contact-intro {
    margin-bottom: 2rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Compact Layout for Shorter Viewports (e.g. Laptops) */
@media (min-width: 1201px) and (max-height: 850px) {
    .sidebar {
        padding: 2rem 2.5rem 1rem 2.5rem; /* Increased top padding, kept bottom small */
    }

    .right-sidebar {
        padding: 2rem 2.5rem 1rem 2.5rem;
    }
    
    .profile-section {
        margin-bottom: 0.5rem;
    }
    
    .profile-avatar {
        max-width: 220px; /* Keep full desktop width */
        margin: 0.75rem 0 0.5rem 0; /* Compress vertical margin */
    }
    
    .profile-avatar::before {
        inset: -4px;
        filter: blur(12px);
    }
    
    .status-badge {
        margin-bottom: 0.5rem;
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .name {
        font-size: 2.25rem; /* Keep full desktop font size */
        margin-bottom: 0.25rem;
    }
    
    .role {
        font-size: 1rem; /* Keep full desktop font size */
        margin-bottom: 0.5rem;
    }
    
    .profile-section .btn-primary {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-top: 0.5rem !important;
    }
    
    .right-sidebar .nav-header {
        margin-bottom: 0.5rem;
    }
    
    .nav-links {
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.95rem; /* Full desktop font size */
        gap: 10px;
    }
    
    .nav-link svg {
        width: 18px;
        height: 18px;
    }
    
    .qr-contact-box {
        padding-top: 0.75rem;
    }
    
    .qr-header {
        margin-bottom: 0.5rem;
        font-size: 0.7rem;
    }
    
    .qr-wrapper {
        padding: 8px;
        border-radius: 8px;
    }
    
    .qr-image {
        width: 100px;
        height: 100px;
    }
    
    .qr-action-label {
        font-size: 0.6rem;
        margin-bottom: 2px;
    }
    
    .qr-hint {
        margin-top: 0.25rem;
        font-size: 0.6rem;
    }
    
    .social-links {
        padding-top: 0.75rem;
        gap: 0.25rem;
    }
    
    .social-btn {
        padding: 4px 0;
        font-size: 0.8rem;
    }
}

/* Mobile Header (Hidden by default) */
.mobile-header {
    display: none;
}

@media (max-width: 1200px) {
    .app-container {
        flex-direction: column;
        padding: 0; /* Reset padding for mobile layout */
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.5rem;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--border-subtle);
        position: sticky;
        top: 0;
        height: var(--mobile-header-height);
        /* Stay above the off-canvas menu so the toggle doubles as its close button. */
        z-index: 110;
    }

    .content-section {
        scroll-margin-top: calc(var(--mobile-header-height) + 1.5rem);
    }

    .mobile-title {
        font-weight: 600;
        font-size: 1.1rem;
        font-family: var(--font-mono);
        color: var(--text-primary);
        text-decoration: none;
    }

    #mobile-menu-btn {
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        width: 44px;
        height: 44px;
        margin-right: -0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    #mobile-menu-btn .icon-close {
        display: none;
    }

    #mobile-menu-btn[aria-expanded="true"] .icon-open {
        display: none;
    }

    #mobile-menu-btn[aria-expanded="true"] .icon-close {
        display: block;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 95;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

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

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        margin-top: 2rem;
    }

    .profile-avatar {
        max-width: 180px;
    }

    .right-sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 280px;
        height: 100vh;
        /* dvh excludes the mobile browser's address bar, which 100vh hides content behind. */
        height: 100dvh;
        /* Top padding clears the sticky header, whose toggle doubles as the close button. */
        padding: calc(var(--mobile-header-height) + 1.25rem) 1.5rem 1.5rem;
        border-left: 1px solid var(--border-subtle);
        background: #080808;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        z-index: 100;
        overflow-y: auto;
        /* visibility keeps the closed menu out of the tab order and the accessibility tree. */
        visibility: hidden;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
    }

    .right-sidebar.open {
        right: 0;
        visibility: visible;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
    }

    .right-sidebar .nav-header {
        margin-bottom: 1rem;
    }

    .qr-contact-box {
        padding-top: 1.5rem;
    }

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

    .content {
        padding: 2rem;
    }
}

/* Touch devices (phones/tablets) can dial directly, and can't scan a QR shown on their
   own screen: swap the QR for a compact tap-to-call button so the menu fits the screen. */
@media (max-width: 1200px) and (pointer: coarse) {
    .qr-contact-box {
        align-items: stretch;
    }

    .qr-wrapper {
        padding: 0;
        width: 100%;
    }

    .qr-wrapper:hover {
        transform: none;
    }

    .qr-wrapper a {
        justify-content: center;
        min-height: 48px;
        padding: 0.75rem 1rem;
    }

    .qr-action-label {
        margin: 0;
        font-size: 0.8rem;
        opacity: 1;
    }

    .qr-image,
    .qr-hint {
        display: none;
    }
}

/* Mobile & Tablet Specific Form Fixes */
@media (max-width: 768px) {
    .content {
        padding: 2rem 1.25rem;
    }

    .content-section {
        margin-bottom: 5rem;
    }

    .card {
        padding: 1.75rem 1.25rem;
    }

    .lead-text {
        font-size: 1.2rem;
    }

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

    .timeline {
        padding-left: 1.75rem;
    }

    .timeline-dot {
        left: -1.75rem;
    }

    /* Stack company and dates instead of squeezing both onto one line. */
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .date-badge {
        white-space: normal;
    }

    /* 16px inputs stop iOS Safari from zooming in on focus. */
    .form-input {
        font-size: 16px;
    }

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

    .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    /* Full-width widget and button on phones, lined up with the inputs above. */
    .turnstile-wrapper,
    .submit-btn {
        flex: none;
        width: 100%;
    }

    /* Turnstile needs at least 300px, so give the contact card a little more room. */
    #contact .card {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 380px) {
    .content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #contact .card {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Below ~345px there is no room for the 300px widget: let it shrink rather than overflow. */
@media (max-width: 344px) {
    .turnstile-wrapper {
        min-width: 0;
        overflow: hidden;
    }

    .cf-turnstile {
        transform: scale(0.9);
        transform-origin: left center;
    }
}

/* Cookie Consent: floating card at the bottom. It overlays the page instead of pushing it
   down, so it never causes a layout shift (CLS) or squeezes the sticky sidebars. */
.cookie-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    z-index: 9999;
    width: min(720px, calc(100% - 2rem));
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1rem 1rem 1.5rem;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 1rem);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
}

.cookie-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.cookie-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-title-text {
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cookie-content p:not(.cookie-title) {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.cookie-actions .cookie-btn {
    width: auto;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cookie-toast {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
        padding: 1rem;
        bottom: 0.75rem;
    }

    .cookie-actions {
        margin-left: 0;
    }

    .cookie-actions .cookie-btn {
        flex: 1;
    }

    /* The card spans the width on phones, so keep back-to-top out of its way. */
    body.cookie-banner-active .back-to-top {
        opacity: 0;
        visibility: hidden;
    }
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.back-to-top:hover {
    background: rgba(25, 25, 25, 0.8);
    border-color: var(--accent-glow);
    color: var(--accent-glow);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke-dasharray: 138.23; /* 2 * PI * r (22) */
    stroke-dashoffset: 138.23;
    filter: drop-shadow(0 0 2px var(--accent-glow));
    will-change: stroke-dashoffset;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 1024px) {
    .profile-avatar {
        margin: auto;
    }
}

/* Premium Footer Styles */
.app-footer {
    margin-top: 8rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    font-weight: 500;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399, 0 0 20px rgba(52, 211, 153, 0.4);
    position: relative;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    
    .app-footer {
        margin-top: 4rem;
        padding: 2rem 0;
    }
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--accent-glow-cyan);
    border-bottom-color: var(--accent-glow-cyan);
}

/* AI Assistant Chat UI */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    background: #050505;
    width: 100%;
}
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.message {
    display: flex;
    gap: 1rem;
    max-width: 85%;
}
.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    flex-shrink: 0;
}
.ai-message .message-avatar {
    background: transparent;
    border: none;
}
.message-content {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ededed;
}
.user-message .message-content {
    background: rgba(139, 92, 246, 0.25);
    border: none;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}
.ai-message .message-content {
    border-bottom-left-radius: 4px;
}
.chat-input-area {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
}
.chat-input-wrapper {
    display: flex;
    flex: 1;
    align-items: center;
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0 0.25rem 0 0;
    overflow: hidden;
}
#chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #ededed;
    padding: 1.1rem 1.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}
#chat-input::placeholder {
    color: var(--text-muted);
}
.chat-input-wrapper:focus-within {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}
/* The wrapper draws the focus ring, so the bare input doesn't need its own. */
#chat-input:focus-visible {
    outline: none;
}
.chat-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}
.chat-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: #fff;
}
.chat-status-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
}
.chat-badge {
    background: rgba(255, 255, 255, 0.05);
    color: #a78bfa;
    border: none;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.chat-footer-muted {
    color: var(--text-muted);
}
.chat-footer-model {
    color: var(--text-secondary);
    font-weight: 500;
}
#chat-send-btn {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border-radius: 6px;
    margin: 4px;
}
#chat-send-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}
#chat-send-btn:disabled {
    color: #374151;
    background: transparent;
    cursor: not-allowed;
}
.chat-footer {
    text-align: center;
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    font-size: 0.75rem;
}
.typing-indicator {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    min-height: 24px;
    color: #d4d4d8;
}
.thinking-spinner {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(167, 139, 250, 0.2);
    border-top-color: #a78bfa;
    border-right-color: var(--accent-glow-cyan);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
    animation: spin 0.8s linear infinite;
}
.thinking-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}
.thinking-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: -0.4rem;
}
.thinking-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #a78bfa;
    animation: thinking-pulse 1.2s infinite ease-in-out;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.15s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes thinking-pulse {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30% { transform: translateY(-3px); opacity: 1; }
}

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

.message-content {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.message-content.rich {
    white-space: normal;
}

.message-content.rich p {
    margin: 0;
}

.message-content.rich > * + p,
.message-content.rich > * + ul {
    margin-top: 0.6rem;
}

.message-content.rich ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.message-content.rich li + li {
    margin-top: 0.35rem;
}

.message-content.rich li::marker {
    color: #a78bfa;
}

.message-content.rich strong {
    color: #ffffff;
}

@media (max-width: 768px) {
    .chat-container {
        height: min(600px, 75vh);
    }

    .chat-header {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .chat-messages {
        padding: 1rem;
        gap: 1rem;
    }

    .message {
        max-width: 100%;
        gap: 0.625rem;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
    }

    #chat-input {
        font-size: 16px;
        padding: 0.9rem 1rem;
    }
}

/* Respect the OS "reduce motion" setting across the whole page. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .animate-up {
        opacity: 1;
        transform: none;
    }

    .pulse,
    .thinking-spinner,
    .thinking-dots span {
        animation: none !important;
    }
}
