/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
    --navy: #0A192F;
    --navy-mid: #112240;
    --navy-light: #1A3A5C;
    --cyan: #64FFDA;
    --cyan-dim: rgba(100, 255, 218, 0.12);
    --cyan-glow: rgba(100, 255, 218, 0.25);
    --slate: #8892A4;
    --slate-light: #CCD6F6;
    --white: #E6F1FF;
    --red-alert: #FF4C6A;
    --purple: #C792EA;
    --blue: #82AAFF;
    --green: #28CA41;
    --orange: #F78C6C;

    --font-sans: 'DM Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(100, 255, 218, 0.15);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--navy);
    color: var(--slate-light);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--cyan);
    color: var(--navy);
}

/* scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--navy);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.text-cyan {
    color: var(--cyan) !important;
}

.text-slate {
    color: var(--slate) !important;
}

.text-white-soft {
    color: var(--white);
}

/* ═══════════════════════════════════════════════
   GRID OVERLAY (subtle background pattern)
═══════════════════════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════
   NAVBAR — GLASSMORPHISM ON SCROLL
═══════════════════════════════════════════════ */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.4rem 0;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: rgba(100, 255, 218, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--white) !important;
    letter-spacing: 0.04em;
}

.navbar-brand .brand-accent {
    color: var(--cyan);
}

.nav-link {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--slate) !important;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem !important;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    right: 50%;
    height: 1px;
    background: var(--cyan);
    transition: left var(--transition), right var(--transition);
}

.nav-link:hover {
    color: var(--cyan) !important;
}

.nav-link:hover::after {
    left: 1rem;
    right: 1rem;
}

.btn-nav-cta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: var(--radius-sm);
    padding: 0.45rem 1.2rem;
    background: transparent;
    transition: var(--transition);
    letter-spacing: 0.06em;
}

.btn-nav-cta:hover {
    background: var(--cyan-dim);
    box-shadow: var(--shadow-glow);
    color: var(--cyan);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

/* Radial glow behind hero */
#hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--cyan);
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--cyan);
    position: relative;
    display: inline-block;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--slate-light);
    font-style: italic;
    font-weight: 300;
    border-left: 2px solid var(--cyan);
    padding-left: 1.2rem;
    margin: 1.8rem 0;
    max-width: 520px;
}

.hero-description {
    color: var(--slate);
    font-size: 1rem;
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.btn-primary-custom {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--cyan);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 2rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background: #a0ffe9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 255, 218, 0.3);
    color: var(--navy);
}

.btn-secondary-custom {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: transparent;
    color: var(--slate-light);
    border: 1px solid rgba(204, 214, 246, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.75rem 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(204, 214, 246, 0.1);
}

.stat-item {}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--cyan);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--slate);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

/* Hero visual: floating card */
.hero-visual {
    position: relative;
}

.hero-schema-card {
    background: var(--navy-mid);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    position: relative;
    overflow: hidden;
}

.hero-schema-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.schema-dot-row {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.schema-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #FF5F57;
}

.dot-yellow {
    background: #FFBD2E;
}

.dot-green {
    background: #28CA41;
}

.schema-line {
    color: var(--slate);
    margin: 0.25rem 0;
    line-height: 1.5;
}

.schema-line .kw {
    color: #C792EA;
}

.schema-line .str {
    color: #C3E88D;
}

.schema-line .num {
    color: #F78C6C;
}

.schema-line .fn {
    color: #82AAFF;
}

.schema-line .cyan {
    color: var(--cyan);
}

.schema-line .comment {
    color: #546E7A;
    font-style: italic;
}

/* Floating badge */
.float-badge {
    position: absolute;
    background: var(--navy-mid);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--cyan);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 4s ease-in-out infinite;
}

.float-badge-1 {
    top: -20px;
    right: 20px;
    animation-delay: 0s;
}

.float-badge-2 {
    bottom: -20px;
    left: 10px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ═══════════════════════════════════════════════
   SECTION COMMON
═══════════════════════════════════════════════ */
section {
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(100, 255, 218, 0.2);
    max-width: 200px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--slate);
    max-width: 520px;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   SERVICE CARDS
═══════════════════════════════════════════════ */
#services {
    padding: 7rem 0;
}

.service-card {
    background: var(--navy-mid);
    border: 1px solid rgba(204, 214, 246, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan-dim) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.5s ease;
}

.service-card:hover .service-card-top-line {
    width: 100%;
}

.service-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.icon-cyan {
    background: var(--cyan-dim);
    color: var(--cyan);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.icon-blue {
    background: rgba(130, 170, 255, 0.1);
    color: #82AAFF;
    border: 1px solid rgba(130, 170, 255, 0.2);
}

.icon-green {
    background: rgba(40, 202, 65, 0.1);
    color: #28CA41;
    border: 1px solid rgba(40, 202, 65, 0.2);
}

.icon-purple {
    background: rgba(199, 146, 234, 0.1);
    color: #C792EA;
    border: 1px solid rgba(199, 146, 234, 0.2);
}

.icon-orange {
    background: rgba(247, 140, 108, 0.1);
    color: #F78C6C;
    border: 1px solid rgba(247, 140, 108, 0.2);
}

.icon-red {
    background: rgba(255, 76, 106, 0.1);
    color: var(--red-alert);
    border: 1px solid rgba(255, 76, 106, 0.2);
}

.service-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.service-card-desc {
    font-size: 0.88rem;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.service-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cyan);
    background: var(--cyan-dim);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 4px;
    padding: 0.15rem 0.55rem;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════
   TERMINAL WIDGET
═══════════════════════════════════════════════ */
#terminal-section {
    padding: 7rem 0;
    background: var(--navy-mid);
    border-top: 1px solid rgba(204, 214, 246, 0.06);
    border-bottom: 1px solid rgba(204, 214, 246, 0.06);
}

.terminal-wrap {
    background: #020c18;
    border: 1px solid rgba(100, 255, 218, 0.18);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    max-width: 700px;
}

.terminal-bar {
    background: #0d1b2a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 0.4rem;
}

.t-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-bar-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--slate);
    letter-spacing: 0.06em;
}

.terminal-body {
    padding: 1.4rem 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 2;
    height: 340px;
    overflow-y: auto;
    color: var(--slate-light);
}

.t-line {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.t-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.t-prompt {
    color: var(--cyan);
    user-select: none;
}

.t-cmd {
    color: var(--white);
}

.t-ok {
    color: #28CA41;
    font-weight: 500;
}

.t-warn {
    color: #FFBD2E;
}

.t-err {
    color: var(--red-alert);
}

.t-info {
    color: var(--slate);
    padding-left: 1rem;
}

.t-data {
    color: #82AAFF;
    padding-left: 1rem;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--cyan);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Restart button */
.btn-terminal {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--slate);
    border: 1px solid rgba(204, 214, 246, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.4rem 1rem;
    background: transparent;
    transition: var(--transition);
    letter-spacing: 0.06em;
}

.btn-terminal:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ═══════════════════════════════════════════════
   PROCESS / HOW I WORK
═══════════════════════════════════════════════ */
#process {
    padding: 7rem 0;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: -18px;
    width: 1px;
    background: linear-gradient(180deg, rgba(100, 255, 218, 0.3), transparent);
}

.step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan);
    background: var(--navy);
    position: relative;
    z-index: 1;
}

.step-content-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.step-content-desc {
    font-size: 0.88rem;
    color: var(--slate);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   TESTIMONIAL / QUOTE
═══════════════════════════════════════════════ */
.quote-card {
    background: var(--navy-mid);
    border-left: 3px solid var(--cyan);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 2rem 2rem 2rem 2.5rem;
    position: relative;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 5rem;
    color: var(--cyan);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 1.05rem;
    color: var(--slate-light);
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.quote-author {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan);
    letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════
   TECH STACK / BADGE CLUSTER
═══════════════════════════════════════════════ */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--slate-light);
    background: var(--navy-mid);
    border: 1px solid rgba(204, 214, 246, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.9rem;
    transition: var(--transition);
}

.tech-badge:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: var(--shadow-glow);
}

.tech-badge i {
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════ */
#cta {
    padding: 7rem 0;
    text-align: center;
    position: relative;
}

#cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.2rem;
}

.cta-sub {
    color: var(--slate);
    max-width: 420px;
    margin: 0 auto 2.5rem;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
    background: #060F1B;
    border-top: 1px solid rgba(204, 214, 246, 0.06);
    padding: 2.5rem 0;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--white);
}

.footer-logo span {
    color: var(--cyan);
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--slate);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--slate);
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════
   STATUS INDICATOR
═══════════════════════════════════════════════ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #28CA41;
    background: rgba(40, 202, 65, 0.08);
    border: 1px solid rgba(40, 202, 65, 0.2);
    border-radius: 30px;
    padding: 0.3rem 0.8rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28CA41;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(40, 202, 65, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(40, 202, 65, 0);
    }
}

/* ═══════════════════════════════════════════════
   UTILITIES & ANIMATIONS
═══════════════════════════════════════════════ */
.divider {
    border: none;
    border-top: 1px solid rgba(204, 214, 246, 0.07);
    margin: 0;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-d1 {
    transition-delay: 0.1s;
}

.reveal-d2 {
    transition-delay: 0.2s;
}

.reveal-d3 {
    transition-delay: 0.3s;
}

.reveal-d4 {
    transition-delay: 0.4s;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    #mainNav.scrolled {
        padding: 0.6rem 0;
    }
}

/* ═══════════════════════════════════════════════
   CV PAGE HERO — compact identity header
═══════════════════════════════════════════════ */
#cv-hero {
  padding: 7rem 0 4rem;
}

.cv-identity {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cv-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(100,255,218,0.3);
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--cyan);
  flex-shrink: 0;
  position: relative;
}
.cv-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(100,255,218,0.15);
}

.cv-name-block h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.3rem;
  color: var(--white);
}

.cv-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.cv-role-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(100,255,218,0.2);
  border-radius: 50px;
  padding: 0.2rem 0.8rem;
  letter-spacing: 0.05em;
}

.cv-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(204,214,246,0.08);
}
.cv-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate);
  text-decoration: none;
  transition: color var(--transition);
}
.cv-contact-item:hover { color: var(--cyan); }
.cv-contact-item i { color: var(--cyan); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════
   AVAILABILITY CARD
═══════════════════════════════════════════════ */
#availability {
  padding: 2rem 0 5rem;
}

.avail-card {
  background: var(--navy-mid);
  border: 1px solid rgba(100,255,218,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.avail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 70%);
}
.avail-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(100,255,218,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.avail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .avail-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .avail-grid { grid-template-columns: 1fr; }
}

.avail-item-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}
.avail-item-value {
  font-size: 0.92rem;
  color: var(--white);
  font-weight: 500;
}
.avail-item-value .dot-green { color: var(--green); }
.avail-item-value .dot-cyan { color: var(--cyan); }

/* ═══════════════════════════════════════════════
   CAREER TIMELINE
═══════════════════════════════════════════════ */
#timeline {
  padding: 6rem 0;
}

.timeline-wrap {
  position: relative;
  padding-left: 2.5rem;
}

/* Vertical line */
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), rgba(100,255,218,0.05));
}

.timeline-entry {
  position: relative;
  margin-bottom: 3.5rem;
}
.timeline-entry:last-child { margin-bottom: 0; }

/* Dot on the line */
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--navy);
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 2;
}
.timeline-entry:hover .timeline-dot {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(100,255,218,0.5);
}
.timeline-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(100,255,218,0.15);
}
.timeline-dot.active::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(100,255,218,0.3);
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}

.timeline-card {
  background: var(--navy-mid);
  border: 1px solid rgba(204,214,246,0.08);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.5s ease;
}
.timeline-entry:hover .timeline-card {
  border-color: rgba(100,255,218,0.2);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}
.timeline-entry:hover .timeline-card::before { width: 100%; }

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.tl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.tl-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(100,255,218,0.15);
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.tl-company {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tl-company i { font-size: 0.75rem; }

.tl-desc {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

/* KPI pills — the numbers that stop the eye */
.tl-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tl-kpi {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.kpi-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(100,255,218,0.2); }
.kpi-blue { background: rgba(130,170,255,0.1); color: var(--blue); border: 1px solid rgba(130,170,255,0.2); }
.kpi-green { background: rgba(40,202,65,0.1); color: var(--green); border: 1px solid rgba(40,202,65,0.2); }
.kpi-purple { background: rgba(199,146,234,0.1); color: var(--purple); border: 1px solid rgba(199,146,234,0.2); }
.kpi-orange { background: rgba(247,140,108,0.1); color: var(--orange); border: 1px solid rgba(247,140,108,0.2); }

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tl-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--slate);
  background: rgba(136,146,164,0.1);
  border: 1px solid rgba(136,146,164,0.15);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  letter-spacing: 0.03em;
}

/* Phase marker */
.timeline-phase {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.timeline-phase::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(136,146,164,0.15);
}
.timeline-phase:first-of-type { margin-top: 0; }

/* Evolution arrow between phases */
.phase-arrow {
  text-align: center;
  padding: 1rem 0;
  position: relative;
  left: -2.5rem;
  width: calc(100% + 2.5rem);
}
.phase-arrow-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(100,255,218,0.2);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
}

/* ═══════════════════════════════════════════════
   SKILLS SECTION
═══════════════════════════════════════════════ */
#skills-section {
  padding: 6rem 0;
  background: var(--navy-mid);
  border-top: 1px solid rgba(204,214,246,0.06);
  border-bottom: 1px solid rgba(204,214,246,0.06);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-group-card {
  background: var(--navy);
  border: 1px solid rgba(204,214,246,0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-group-card:hover {
  border-color: rgba(100,255,218,0.2);
  box-shadow: var(--shadow-card);
}
.skill-group-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}
.skill-group-card:hover::before { opacity: 1; }
.sgc-cyan::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.sgc-blue::before { background: linear-gradient(90deg, var(--blue), transparent); }
.sgc-purple::before { background: linear-gradient(90deg, var(--purple), transparent); }
.sgc-green::before { background: linear-gradient(90deg, var(--green), transparent); }
.sgc-orange::before { background: linear-gradient(90deg, var(--orange), transparent); }

.skill-group-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.sgi-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(100,255,218,0.2); }
.sgi-blue { background: rgba(130,170,255,0.1); color: var(--blue); border: 1px solid rgba(130,170,255,0.2); }
.sgi-purple { background: rgba(199,146,234,0.1); color: var(--purple); border: 1px solid rgba(199,146,234,0.2); }
.sgi-green { background: rgba(40,202,65,0.1); color: var(--green); border: 1px solid rgba(40,202,65,0.2); }
.sgi-orange { background: rgba(247,140,108,0.1); color: var(--orange); border: 1px solid rgba(247,140,108,0.2); }

.skill-group-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.skill-bar-wrap {
  margin-bottom: 0.8rem;
}
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-bottom: 0.3rem;
}
.skill-bar-label span:last-child {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate);
}
.skill-bar-track {
  height: 4px;
  background: #1e2c45; /* Changed from rgba to prevent mobile inversion */
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.fill-cyan { background: linear-gradient(90deg, var(--cyan), rgba(100,255,218,0.5)); }
.fill-blue { background: linear-gradient(90deg, var(--blue), rgba(130,170,255,0.5)); }
.fill-purple { background: linear-gradient(90deg, var(--purple), rgba(199,146,234,0.5)); }
.fill-green { background: linear-gradient(90deg, var(--green), rgba(40,202,65,0.5)); }
.fill-orange { background: linear-gradient(90deg, var(--orange), rgba(247,140,108,0.5)); }

/* Soft skills tags */
.soft-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.soft-tag {
  font-size: 0.78rem;
  color: var(--slate-light);
  background: #112240; /* Changed from rgba */
  border: 1px solid #1A3A5C; /* Changed from rgba */
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
}

/* Languages */
.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
}
.lang-name { color: var(--slate-light); }
.lang-dots { display: flex; gap: 4px; }
.lang-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(100,255,218,0.3);
}
.lang-dot.filled { background: var(--cyan); border-color: var(--cyan); }

/* ═══════════════════════════════════════════════
   EDUCATION SECTION
═══════════════════════════════════════════════ */
#education {
  padding: 6rem 0;
}

.edu-card {
  background: var(--navy-mid);
  border: 1px solid rgba(204,214,246,0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--cyan);
  opacity: 0.3;
  transition: opacity var(--transition);
}
.edu-card:hover { border-color: rgba(100,255,218,0.2); }
.edu-card:hover::before { opacity: 1; }

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.edu-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.edu-institution {
  font-size: 0.82rem;
  color: var(--cyan);
  opacity: 0.8;
}
.edu-desc {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 0.5rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   REFERENCE SECTION
═══════════════════════════════════════════════ */
#references {
  padding: 4rem 0 6rem;
}

.ref-card {
  background: var(--navy-mid);
  border: 1px solid rgba(204,214,246,0.08);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.ref-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 20px;
  font-size: 6rem;
  color: rgba(100,255,218,0.05);
  font-family: Georgia, serif;
  line-height: 1;
}
.ref-card:hover { border-color: rgba(100,255,218,0.2); box-shadow: var(--shadow-card); }

.ref-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.ref-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.ref-contacts a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--slate);
  text-decoration: none;
  margin-bottom: 0.3rem;
  transition: color var(--transition);
}
.ref-contacts a:hover { color: var(--cyan); }
.ref-contacts i { color: var(--cyan); font-size: 0.8rem; }

/* ═══════════════════════════════════════════════
   DOWNLOAD CTA BANNER
═══════════════════════════════════════════════ */
#cv-download {
  padding: 5rem 0;
  background: var(--navy-mid);
  border-top: 1px solid rgba(204,214,246,0.06);
}

.download-banner {
  background: linear-gradient(135deg, rgba(100,255,218,0.06) 0%, transparent 60%);
  border: 1px solid rgba(100,255,218,0.15);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(100,255,218,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.download-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}
.download-banner p {
  color: var(--slate);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}

.mono { font-family: var(--font-mono); font-size: 0.85em; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 576px) {
  .cv-contact-bar { gap: 1rem; }
  .avail-card { padding: 1.5rem; }
  .timeline-card { padding: 1.2rem 1.4rem; }
}

/* Mobile Navbar Expansion Fix */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--navy-mid);
    border: 1px solid rgba(100,255,218,0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-card);
    z-index: 1000;
  }
  .navbar-nav .nav-link {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  .btn-nav-cta {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
  }
}
