/* ─── Intro Screen ──────────────────────────────────────── */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: none;
}

@keyframes introExit {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.12); }
}

.intro-overlay.intro-exiting {
    animation: introExit 0.8s ease-in forwards;
    pointer-events: none;
}

.intro-spiral {
    position: absolute;
    width: 520px;
    height: 520px;
    animation: spiralAppear 1s cubic-bezier(0.2, 0, 0.3, 1) forwards;
}

@keyframes spiralAppear {
    from { transform: rotate(-120deg) scale(0); opacity: 0; }
    to   { transform: rotate(0deg) scale(1);    opacity: 1; }
}

.spiral-arm {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.spiral-arm-1 {
    background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--accent-rgb),0.75) 35deg, transparent 70deg, transparent);
    animation: spinCW 2.8s linear infinite;
}

.spiral-arm-2 {
    background: conic-gradient(from 120deg, transparent 0deg, rgba(var(--accent-rgb),0.5) 35deg, transparent 70deg, transparent);
    animation: spinCCW 3.5s linear infinite;
}

.spiral-arm-3 {
    background: conic-gradient(from 240deg, transparent 0deg, rgba(var(--accent-rgb),0.3) 35deg, transparent 70deg, transparent);
    animation: spinCW 4.2s linear infinite;
}

@keyframes spinCW  { to { transform: rotate( 360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

.intro-rings {
    position: absolute;
    width: 520px;
    height: 520px;
}

.intro-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ringPop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) forwards;
}

.intro-ring-1 { width: 90px;  height: 90px;  border: 2px solid rgba(var(--accent-rgb),0.9); animation-delay: 0.3s; }
.intro-ring-2 { width: 190px; height: 190px; border: 1px solid rgba(var(--accent-rgb),0.6); animation-delay: 0.5s; }
.intro-ring-3 { width: 310px; height: 310px; border: 1px solid rgba(var(--accent-rgb),0.35); animation-delay: 0.7s; }
.intro-ring-4 { width: 460px; height: 460px; border: 1px solid rgba(var(--accent-rgb),0.15); animation-delay: 0.9s; }

@keyframes ringPop {
    from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.intro-content {
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    animation: contentAppear 0.9s ease-out 1.1s forwards;
}

@keyframes contentAppear {
    from { opacity: 0; transform: scale(0.85) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.intro-glow-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 24px var(--accent), 0 0 60px rgba(var(--accent-rgb),0.6);
    animation: glowPulse 1s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from { box-shadow: 0 0 20px var(--accent), 0 0 50px rgba(var(--accent-rgb),0.5); }
    to   { box-shadow: 0 0 40px var(--accent), 0 0 90px rgba(var(--accent-rgb),0.8); }
}

.intro-name {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.intro-tagline {
    font-size: 12px;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
}
/* ─────────────────────────────────────────────────────────── */
:root {
    /* Cor principal */
    --accent:        #F4845F;
    --accent-dark:   #E0693D;
    --accent-darker: #C5572B;
    --accent-rgb:    244, 132, 95; 

    /* Fundo e texto */
    --bg:  #000;
    --fg:  #fff;

    /* Tipografia */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* ─────────────────────────────────────────────────────────── */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Brand Gradient */
.gradient-bg {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-darker) 50%, #000 100%);
}

.accent-purple {
    color: var(--accent);
}

.bg-purple {
    background: var(--accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 24px 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.status-badge {
    background: rgba(var(--accent-rgb), 0.15);
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    position: relative;
}

.hero-tag {
    display: inline-block;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
}
.hero-title-pre {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 2px;
    margin-top: 20px;
}
.hero-title-pre:first-child { margin-top: 0; }
.hero-title-big {
    font-size: clamp(52px, 9vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    display: block;
}
.hero-title-accent {
    color: var(--accent);
}
.hero-title-outline {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.85);
    color: transparent;
    paint-order: stroke fill;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    font-weight: 300;
}

.hero-meta {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
}

/* Section */
.section {
    padding: 60px 0;
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}

.section-header {
    margin-bottom: 48px;
}

.section-tag {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 800px;
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card */
.card {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    background: #111;
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--accent-rgb), 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--accent);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 17px;
}

.card-list {
    list-style: none;
    margin-top: 16px;
}

.card-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.card-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -46px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid #000;
}

.timeline-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 17px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.tech-tag {
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.tech-tag:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: var(--accent);
}

/* NL Photos Stack */
.nl-photos-panel {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px 20px 16px;
}

.nl-photo-stack {
    position: relative;
    height: 240px;
}

.nl-photo {
    position: absolute;
    width: 150px;
    height: 195px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.38), 0 6px 20px rgba(0,0,0,0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.nl-photo:hover {
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.75), 0 10px 36px rgba(0,0,0,0.8);
    z-index: 10 !important;
}

.nl-photo-1 { left: 0px;   top: 24px; rotate: -5deg; z-index: 1; }
.nl-photo-2 { left: 105px; top:  6px; rotate:  3deg; z-index: 2; }
.nl-photo-3 { left: 210px; top: 20px; rotate: -2deg; z-index: 3; }
.nl-photo-4 { left: 315px; top:  8px; rotate:  4deg; z-index: 4; }

.nl-photos-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 10px;
    font-style: italic;
}

/* What Drives Me Section */
.drives-section {
    background: transparent;
}

.drives-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.narrative-block {
    margin-bottom: 48px;
}

.narrative-block:last-of-type {
    margin-bottom: 0;
}

.narrative-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.narrative-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.interest-list {
    margin: 48px 0;
}

.interest-row {
    display: grid;
    grid-template-columns: 48px 1fr 1.2fr;
    gap: 32px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: padding-left 0.3s ease;
    cursor: default;
}

.interest-row:first-child {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.interest-row:hover {
    padding-left: 10px;
}

.interest-row-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.interest-row-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.interest-row:hover .interest-row-title {
    color: var(--accent);
}

.interest-row-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .interest-row {
        grid-template-columns: 36px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 16px;
    }
    .interest-row-desc {
        grid-column: 2;
        font-size: 13px;
    }
}

.drives-quote {
    font-style: italic;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-top: 48px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 48px;
    border: 1px solid rgba(244,132,95,0.18);
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 0%, rgba(244,132,95,0.07) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 100%, rgba(244,132,95,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
    letter-spacing: -1px;
}

.cta-description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

/* Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(244,132,95,0.55);
    background: rgba(244,132,95,0.06);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(244,132,95,0.15);
}

.contact-card-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.15);
}

.contact-card-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
}

.contact-card-value {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    text-align: center;
    line-height: 1.4;
}

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

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
    text-align: center;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Tabs */
.tabs-container {
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    background: #000;
    z-index: 100;
    padding-top: 20px;
}

.tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.tab {
    padding: 16px 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* CV Section Styles */
.cv-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    margin-bottom: 40px;
}

.cv-name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-title {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.cv-contact {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.cv-contact a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.cv-contact a:hover {
    color: var(--accent);
}

.cv-section {
    margin-bottom: 48px;
}

.cv-section-title {
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 8px;
    position: relative;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
}

.cv-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.6s ease;
}

.cv-section:hover .cv-section-title::after {
    width: 100%;
}

/* Timeline */
.cv-timeline {
    position: relative;
    padding-left: 32px;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.3;
}

.cv-timeline .cv-item {
    position: relative;
    margin-left: 0;
}

.cv-timeline .cv-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-timeline .cv-item:hover::before {
    transform: scale(1.5);
    box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.9);
}

/* cv-item base */
.cv-item {
    margin-bottom: 32px;
    border-radius: 8px;
    padding: 4px 8px;
    margin-left: -8px;
    transition: background 0.25s ease;
}

.cv-item:hover {
    background: rgba(255,255,255,0.03);
}

/* CV tab animations — triggered when tab becomes active */
@keyframes cvSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

.tab-content.active .cv-header {
    animation: cvFadeUp 0.5s ease both;
}

.tab-content.active .cv-section {
    animation: cvFadeUp 0.5s ease both;
}

.tab-content.active .cv-section:nth-child(2) { animation-delay: 0.05s; }
.tab-content.active .cv-section:nth-child(3) { animation-delay: 0.12s; }
.tab-content.active .cv-section:nth-child(4) { animation-delay: 0.19s; }
.tab-content.active .cv-section:nth-child(5) { animation-delay: 0.26s; }
.tab-content.active .cv-section:nth-child(6) { animation-delay: 0.33s; }
.tab-content.active .cv-section:nth-child(7) { animation-delay: 0.40s; }
.tab-content.active .cv-section:nth-child(8) { animation-delay: 0.47s; }

.tab-content.active .cv-item {
    animation: cvSlideIn 0.45s ease both;
}

.tab-content.active .cv-section:nth-child(2) .cv-item:nth-child(1) { animation-delay: 0.10s; }
.tab-content.active .cv-section:nth-child(3) .cv-item:nth-child(1) { animation-delay: 0.17s; }
.tab-content.active .cv-section:nth-child(3) .cv-item:nth-child(2) { animation-delay: 0.24s; }
.tab-content.active .cv-section:nth-child(3) .cv-item:nth-child(3) { animation-delay: 0.31s; }
.tab-content.active .cv-section:nth-child(4) .cv-item:nth-child(1) { animation-delay: 0.24s; }
.tab-content.active .cv-section:nth-child(4) .cv-item:nth-child(2) { animation-delay: 0.31s; }
.tab-content.active .cv-section:nth-child(4) .cv-item:nth-child(3) { animation-delay: 0.38s; }
.tab-content.active .cv-section:nth-child(5) .cv-item:nth-child(1) { animation-delay: 0.31s; }
.tab-content.active .cv-section:nth-child(6) .cv-item:nth-child(1) { animation-delay: 0.38s; }

.tab-content.active .skill-category {
    animation: cvFadeUp 0.4s ease both;
}

.tab-content.active .cv-section:nth-child(5) .skill-category:nth-child(1) { animation-delay: 0.28s; }
.tab-content.active .cv-section:nth-child(5) .skill-category:nth-child(2) { animation-delay: 0.35s; }
.tab-content.active .cv-section:nth-child(5) .skill-category:nth-child(3) { animation-delay: 0.42s; }
.tab-content.active .cv-section:nth-child(5) .skill-category:nth-child(4) { animation-delay: 0.49s; }
.tab-content.active .cv-section:nth-child(6) .skill-category:nth-child(1) { animation-delay: 0.35s; }
.tab-content.active .cv-section:nth-child(6) .skill-category:nth-child(2) { animation-delay: 0.42s; }

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-item-title {
    font-size: 18px;
    font-weight: 600;
}

.cv-item-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.cv-item-subtitle {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.cv-item-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 17px;
}

/* Image Integration Styles */
.profile-image-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
}

.profile-image-wrapper::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-darker));
    opacity: 0.4;
    filter: blur(12px);
    z-index: 0;
}

.profile-image {
    position: relative;
    z-index: 1;
    display: block;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.4), inset 0 0 20px rgba(var(--accent-rgb), 0.1);
}

.experience-image {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    margin-top: 20px;
    display: block;
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.15), inset 0 0 20px rgba(var(--accent-rgb), 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.experience-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, transparent 50%, rgba(var(--accent-rgb), 0.05) 100%);
    pointer-events: none;
}

.experience-image-container {
    position: relative;
    margin-top: 24px;
}

.experience-image-container::before {
    content: "";
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0%, transparent 50%, rgba(var(--accent-rgb), 0.1) 100%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-image-container:hover::before {
    opacity: 1;
}

.experience-image-container.image-right {
    float: right;
    margin-left: 24px;
    margin-top: 0;
    width: 280px;
}

.experience-image-container.image-right .experience-image {
    max-width: 100%;
}

.experience-image:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 12px 48px rgba(var(--accent-rgb), 0.25), inset 0 0 20px rgba(var(--accent-rgb), 0.08);
    transform: translateY(-4px);
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px;
}

.skill-category {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 20px;
}

.skill-category-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent);
}

.skill-category-items {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.metric-card {
    text-align: center;
    padding: 24px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 2px solid var(--accent);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.2), 0 0 0 1px rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Map Section */
.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.map-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-card {
    background: rgba(5, 5, 10, 0.9);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 16px;
    overflow: hidden;
}

.map-visual {
    position: relative;
    width: 100%;
}

.route-svg {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes drawRoute {
    from { stroke-dashoffset: 600; }
    to { stroke-dashoffset: 0; }
}

.route-path-animated {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawRoute 2.2s ease-out 0.8s forwards;
}

.map-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(var(--accent-rgb), 0.2);
}

.fact-card {
    padding: 20px 24px;
}

.fact-card:first-child {
    border-right: 1px solid rgba(var(--accent-rgb), 0.2);
}

.fact-title {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.fact-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
}

.countdown-inline {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 16px 0;
}

.countdown-inline-label {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.countdown-inline-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* Chatbot */
.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    max-height: calc(100vh - 48px);
}

/* Disc FAB button */
.chat-fab {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    padding: 0;
    flex-shrink: 0;
}

.chat-fab-disc {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #080808;
    border: 1.5px solid rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.5), 0 8px 32px rgba(0,0,0,0.7);
    animation: discGlow 3s ease-in-out infinite;
}

@keyframes discGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--accent-rgb),0.4), 0 8px 24px rgba(0,0,0,0.6); }
    50%       { box-shadow: 0 0 40px rgba(var(--accent-rgb),0.8), 0 8px 32px rgba(0,0,0,0.7); }
}

.chat-fab-arm {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.chat-fab-arm-1 {
    background: conic-gradient(from 0deg, transparent, rgba(var(--accent-rgb),0.9) 35deg, transparent 70deg, transparent);
    animation: spinCW 2s linear infinite;
}

.chat-fab-arm-2 {
    background: conic-gradient(from 120deg, transparent, rgba(var(--accent-rgb),0.6) 35deg, transparent 70deg, transparent);
    animation: spinCCW 2.8s linear infinite;
}

.chat-fab-arm-3 {
    background: conic-gradient(from 240deg, transparent, rgba(var(--accent-rgb),0.35) 35deg, transparent 70deg, transparent);
    animation: spinCW 3.6s linear infinite;
}

.chat-fab-text {
    position: absolute;
    inset: 0;
    width: 110px;
    height: 110px;
    animation: spinCW 28s linear infinite;
    pointer-events: none;
}

.chat-fab-center {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.chat-fab:hover .chat-fab-disc {
    box-shadow: 0 0 50px rgba(var(--accent-rgb),0.9), 0 10px 40px rgba(0,0,0,0.8);
}

.chat-panel {
    width: 300px;
    height: 420px;
    display: flex;
    flex-direction: column;
    background: rgba(12, 12, 12, 0.97);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--accent-rgb), 0.2);
    animation: panelSlideIn 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.2) forwards;
    transform-origin: bottom right;
    position: relative;
}

.chat-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    cursor: nwse-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 0 8px 0;
    opacity: 0.35;
    transition: opacity 0.2s;
    z-index: 10;
}

.chat-resize-handle:hover { opacity: 0.9; }

.chat-resize-dots {
    width: 10px;
    height: 10px;
    background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
    background-size: 4px 4px;
}

@keyframes panelSlideIn {
    from { opacity: 0; transform: scale(0.6) translateY(30px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: rgba(var(--accent-rgb), 0.12);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.chat-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 3px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.9);
}

.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.chat-message {
    display: flex;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.chat-message.bot .chat-bubble {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    color: #f7f7f7;
}

.chat-message.user .chat-bubble {
    background: var(--accent);
    color: #fff;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    background: rgba(var(--accent-rgb), 0.7);
    border-radius: 50%;
    animation: typingDot 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 18px 18px;
}

.chat-quick button {
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.08);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-quick button:hover {
    background: rgba(var(--accent-rgb), 0.18);
}

.chat-input-row {
    display: flex;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(var(--accent-rgb), 0.14);
}

.chat-input-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 999px;
    color: #fff;
    padding: 12px 16px;
    outline: none;
    font-size: 14px;
}

.chat-input-row button {
    background: var(--accent);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(var(--accent-rgb),0.6), 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-row button:hover {
    transform: scale(1.12) rotate(15deg);
    box-shadow: 0 0 28px rgba(var(--accent-rgb),0.9), 0 6px 20px rgba(0,0,0,0.5);
}

.chat-input-row button:active {
    transform: scale(0.95) rotate(15deg);
}

/* ─── Custom Cursor ─────────────────────────────────────── */
#cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    transform: translate(-200px, -200px);
    box-shadow: 0 0 10px var(--accent), 0 0 28px rgba(var(--accent-rgb),0.5);
}

#cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1.5px solid rgba(var(--accent-rgb),0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    will-change: transform;
    transform: translate(-200px, -200px);
}

.cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    will-change: transform;
    transform: translate(-200px, -200px);
    opacity: 0;
}

@media (hover: none) {
    #cursor-dot, #cursor-ring, .cursor-trail { display: none; }
}
/* ─────────────────────────────────────────────────────────── */

/* ─── Scroll Reveal ─────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}
/* ─────────────────────────────────────────────────────────── */

/* ─── Project Modal ─────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-card {
    background: #0c0c0c;
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 20px;
    padding: 48px;
    max-width: 580px;
    width: 100%;
    position: relative;
    animation: modalSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.1) forwards;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 60px rgba(var(--accent-rgb), 0.08);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--accent); }

.modal-tag {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 28px;
}

.modal-divider {
    height: 1px;
    background: rgba(var(--accent-rgb), 0.2);
    margin-bottom: 28px;
}

.modal-body {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    line-height: 1.85;
    margin-bottom: 28px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid rgba(244,132,95,0.4);
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-github-link:hover {
    background: rgba(244,132,95,0.08);
    border-color: var(--accent);
}

.project-num {
    font-size: 52px;
    font-weight: 800;
    color: rgba(var(--accent-rgb), 0.12);
    line-height: 1;
    margin-bottom: 12px;
}

.project-card { cursor: pointer; }

.project-cta {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 16px;
    transition: letter-spacing 0.3s ease;
}

.project-card:hover .project-cta { letter-spacing: 3px; }

@media (max-width: 768px) {
    .modal-card { padding: 32px 24px; }
    .modal-title { font-size: 20px; }
}
/* ─────────────────────────────────────────────────────────── */

/* ─── Capabilities Carousel ──────────────────────────────── */
.caps-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.caps-track-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.caps-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.caps-slide {
    flex: 0 0 100%;
    width: 100%;
}

.caps-slide .card {
    margin: 0;
    border-radius: 16px;
}

.caps-arrow {
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.25s, transform 0.2s;
    padding: 0;
    user-select: none;
}

.caps-arrow:hover {
    color: var(--accent);
    transform: scale(1.2);
}

.caps-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.caps-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.25);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.caps-dot.active {
    background: var(--accent);
    transform: scale(1.5);
}

@media (max-width: 768px) {
    .caps-arrow { width: 40px; height: 40px; font-size: 18px; }
}
/* ─────────────────────────────────────────────────────────── */

/* ─── Flip Cards ─────────────────────────────────────────── */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: 260px;
}

.flip-card:hover { transform: none !important; }

.flip-inner {
    position: relative;
    width: 100%;
    min-height: 260px;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flip-front {
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.3s, border-color 0.3s;
}

.flip-card:not(.flipped):hover .flip-front {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.5);
}

.flip-back {
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    transform: rotateY(180deg);
    justify-content: center;
}

.flip-front .card-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
    background: rgba(var(--accent-rgb), 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 4px;
}

.flip-hint {
    font-size: 11px;
    color: rgba(var(--accent-rgb), 0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

.flip-back-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* ─────────────────────────────────────────────────────────── */

/* ─── Grain Overlay ─────────────────────────────────────── */
#grain {
    position: fixed;
    inset: -200px;
    z-index: 9996;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/></filter><rect width='256' height='256' filter='url(%23n)'/></svg>");
    background-repeat: repeat;
    background-size: 256px;
    animation: grainMove 0.6s steps(1) infinite;
}

@keyframes grainMove {
    0%   { transform: translate(0px,   0px);  }
    10%  { transform: translate(-5px, -10px); }
    20%  { transform: translate(-15px,  5px); }
    30%  { transform: translate(7px,  -25px); }
    40%  { transform: translate(-5px,  25px); }
    50%  { transform: translate(-15px, 10px); }
    60%  { transform: translate(15px,   0px); }
    70%  { transform: translate(0px,   15px); }
    80%  { transform: translate(3px,  -10px); }
    90%  { transform: translate(-10px, 10px); }
    100% { transform: translate(10px,   5px); }
}
/* ─────────────────────────────────────────────────────────── */

/* ─── Word Reveal ────────────────────────────────────────── */
.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-word.reveal-word-in {
    opacity: 1;
    transform: translateY(0);
}
/* ─────────────────────────────────────────────────────────── */

/* ─── Typewriter Cursor ──────────────────────────────────── */
.tw-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: middle;
    animation: twBlink 0.75s step-end infinite;
}

@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
/* ─────────────────────────────────────────────────────────── */

/* Responsive */
@media (max-width: 900px) {
    .map-grid { grid-template-columns: 1fr; }
    .nl-photo-stack { height: 160px; }
    .nl-photo { width: 95px; height: 125px; }
    .nl-photo-1 { left: 0px;   top: 18px; }
    .nl-photo-2 { left: 65px;  top:  4px; }
    .nl-photo-3 { left: 130px; top: 16px; }
    .nl-photo-4 { left: 195px; top:  6px; }
}

@media (max-width: 768px) {
    .hero-title-big { font-size: clamp(36px, 8vw, 60px); }
    .hero-subtitle { font-size: 17px; }
    .hero { padding: 48px 0 36px; }
    .hero-meta { gap: 20px; }

    .section-title { font-size: 26px; }
    .section-description { font-size: 16px; }
    .section { padding: 40px 0; }

    .cta-title { font-size: 22px; }
    .cta-section { padding: 40px 20px; }

    .timeline { padding-left: 24px; }
    .timeline-item:before { left: -30px; }

    .cv-name { font-size: 32px; }
    .cv-title { font-size: 16px; }
    .cv-contact { gap: 14px; }

    .tab { padding: 12px 16px; font-size: 13px; }

    .grid-2 { grid-template-columns: 1fr; }
    .cv-grid { grid-template-columns: 1fr; }
    .interest-grid { grid-template-columns: 1fr; }

    .experience-image-container.image-right {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-top: 16px;
    }

    .metrics { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .metric-value { font-size: 24px; }

    .btn { padding: 14px 20px; font-size: 14px; }
    .btn-group { flex-direction: column; align-items: stretch; }
    .btn-group .btn { justify-content: center; }

    .chat-widget {
        right: 12px;
        bottom: 12px;
    }

    .chat-panel { max-width: calc(100vw - 24px); }

    .chat-messages { max-height: none; }

    .header-content { gap: 12px; }
    .logo { font-size: 18px; }
    .status-badge { font-size: 12px; padding: 6px 12px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title-big { font-size: 34px; }
    .hero-subtitle { font-size: 15px; }
    .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric-card { padding: 16px; }
    .metric-value { font-size: 20px; }
    .card { padding: 20px; }
    .section-title { font-size: 22px; }
    .tabs { gap: 0; }
    .tab { padding: 10px 12px; font-size: 12px; }
    .cv-name { font-size: 26px; }
    .chat-quick { gap: 6px; }
    .chat-quick button { font-size: 11px; padding: 6px 10px; }
}
