@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --blue-deep: #0d4f96;
    --blue-mid: #1371cf;
    --blue-light: #378ADD;
    --blue-pale: #e8f1fb;
    --ink: #1a1f2e;
    --ink-soft: #3d4560;
    --ink-muted: #6b7490;
    --surface: #ffffff;
    --surface-alt: #f5f7fc;
    --border: #e2e8f5;
    --accent-warm: #e8a020;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── UTILITY CLASSES ──────────────────────────────────────── */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.25s, all 0.25s;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(13,79,150,0.08);
}

.label-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-mid);
}

.text-soft {
    color: var(--ink-soft);
}

.text-muted {
    color: var(--ink-muted);
    font-weight: 300;
}

.divider-bottom {
    border-bottom: 1px solid var(--border);
}

.divider-top {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* ─── NAVIGATION ───────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(13, 79, 150, 0.1);
}

#navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

#navbar .logo {
    display: flex;
    align-items: center;
}

.nav-brand {
    font-weight: 700;
    color: var(--blue-mid);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

#navbar .logo img {
    height: 68px;
    width: auto;
    display: block;
}

#navbar ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

#navbar a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

#navbar a:hover {
    color: var(--blue-mid);
    background: var(--blue-pale);
}

#navbar .nav-cta {
    background: var(--blue-mid);
    color: white !important;
    padding: 0.45rem 1.2rem;
    border-radius: 6px;
}

#navbar .nav-cta:hover {
    background: var(--blue-deep) !important;
    color: white !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--ink-soft);
    transition: 0.3s;
    transform-origin: center;
}

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

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

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

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
    min-height: 68vh;
    display: flex;
    align-items: flex-start;
    padding: 104px 2rem 64px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, transparent 0%, var(--surface) 50%, var(--surface-alt) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Geometric grid background */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3csvg width='52' height='45' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='hex' x='0' y='0' width='52' height='45' patternUnits='userSpaceOnUse'%3e%3cpolygon points='26,7.5 41,16.25 41,33.75 26,42.5 11,33.75 11,16.25' fill='none' stroke='%231371cf' stroke-width='1.05' opacity='0.32'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23hex)'/%3e%3c/svg%3e");
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 90% 88% at 60% 48%, black 56%, transparent 100%);
}

/* Blue accent blob */
.hero-bg::after {
    content: '';
    position: absolute;
    top: -18%;
    right: -10%;
    width: 460px;
    height: 460px;
    background: radial-gradient(ellipse at center, rgba(19,113,207,0.06) 0%, transparent 68%);
    border-radius: 50%;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    animation: fadeUp 0.8s ease both;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-banner-logo {
    margin-bottom: 2rem;
    width: min(450px, 100%);
    padding: 0;
    position: relative;
    align-self: flex-start;
    transform: translateY(-10px);
}

.hero-banner-logo::before {
    content: '';
    position: absolute;
    inset: 8% 4%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 40%, rgba(247, 250, 255, 0.28) 64%, rgba(255, 255, 255, 0) 82%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}

.hero-banner-logo img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 22px rgba(255,255,255,0.72)) drop-shadow(0 10px 24px rgba(13,79,150,0.10));
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: #126a11;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(69, 201, 97, 0.42);
    border-radius: 20px;
    border: 1px solid rgba(69, 201, 97, 0.62);
    box-shadow: 0 6px 16px rgba(69, 201, 97, 0.14);
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #45c961;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--blue-mid);
    position: relative;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-light), var(--blue-pale));
    border-radius: 2px;
}

.hero-cloud-highlight {
    color: var(--blue-mid);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--ink-muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 480px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue-mid);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(19,113,207,0.3);
}

.btn-primary:hover {
    background: var(--blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(19,113,207,0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-soft);
    background: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: all 0.25s;
}

.btn-secondary:hover {
    border-color: var(--blue-light);
    color: var(--blue-mid);
    background: var(--blue-pale);
}

/* Hero right - floating stats card */
.hero-right {
    animation: fadeUp 0.8s 0.2s ease both;
    position: relative;
}

.hero-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(13, 79, 150, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-mid), var(--blue-light), var(--accent-warm));
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
    padding: 1.2rem;
    background: var(--surface-alt);
    border-radius: 10px;
}

.stat-number {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--blue-mid);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--ink-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-stack {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.hero-stack-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    background: var(--blue-pale);
    color: var(--blue-deep);
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid rgba(19,113,207,0.12);
}

/* ─── SECTION BASE ──────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--blue-mid);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--blue-mid);
    border-radius: 1px;
}

section h2 {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 0;
}

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

.section-intro {
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.75;
    max-width: 600px;
    margin-top: 1rem;
    font-weight: 300;
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about {
    background: var(--surface-alt);
    position: relative;
    overflow: hidden;
    margin-top: -120px;
    padding-top: 120px;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-text-block p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.about-text-block p:last-child {
    margin-bottom: 0;
}

.about-avatar {
    font-size: 4rem;
    margin: 1rem 0;
    text-align: center;
}

.profile-image {
    float: right;
    width: 200px;
    height: 200px;
    background: var(--blue-pale);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    margin: 0.75rem 0 0.6rem 1.5rem;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.value-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.25s;
}

.value-item:hover {
    border-color: var(--blue-light);
    box-shadow: 0 8px 24px rgba(19,113,207,0.08);
    transform: translateX(4px);
}

.value-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--blue-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.value-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.value-text p {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* ─── SKILLS ────────────────────────────────────────────────── */
.skills {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

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

.skill-group {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.25s, all 0.25s;
}

.skill-group:hover {
    box-shadow: 0 8px 30px rgba(13,79,150,0.08);
}

.skill-group h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-mid);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--blue-pale);
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    min-width: 6px;
    background: var(--blue-light);
    border-radius: 50%;
}

/* ─── SERVICES ──────────────────────────────────────────── */
.services {
    background: var(--surface-alt);
}

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

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-mid), var(--blue-light));
    opacity: 0;
    transition: opacity 0.25s;
}

.service-card:hover {
    border-color: var(--blue-light);
    box-shadow: 0 10px 30px rgba(19,113,207,0.1);
    transform: translateY(-3px);
}

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

.service-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-tags li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: var(--blue-pale);
    color: var(--blue-deep);
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid rgba(19,113,207,0.12);
}

/* ─── EXPERIENCE ────────────────────────────────────────────── */
.experience {
    background: white;
    position: relative;
}

.experience-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: start;
}

.experience-sidebar {
    position: sticky;
    top: 100px;
}

.experience-sidebar h2 {
    margin-bottom: 1.5rem;
}

.exp-tagline {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.7;
    font-weight: 300;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 3rem;
}

.exp-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.exp-item:last-child::before {
    display: none;
}

.exp-item::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--blue-mid);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--blue-mid);
}

.exp-period {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--blue-mid);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.exp-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.exp-item p {
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.75;
    font-weight: 300;
}

/* ─── CONTACT ───────────────────────────────────────────────── */
.contact {
    background: var(--ink);
    color: white;
    padding: 88px 0 62px;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(19,113,207,0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(55,138,221,0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.contact .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-left h2 {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.contact-left p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    font-weight: 300;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: space-between;
    padding: 1.2rem 1.35rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.contact-link:hover {
    background: linear-gradient(135deg, rgba(19,113,207,0.22), rgba(55,138,221,0.12));
    border-color: rgba(55,138,221,0.55);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(4, 10, 24, 0.35);
}

.contact-link:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
}

.contact-link-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.16);
    flex-shrink: 0;
}

.contact-link-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    opacity: 0.92;
}

.contact-link-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.contact-link-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    font-family: 'JetBrains Mono', monospace;
}

.contact-link-value {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contact-link--email {
    background: linear-gradient(135deg, rgba(19,113,207,0.28), rgba(55,138,221,0.18));
    border-color: rgba(55,138,221,0.45);
}

.contact-link--email:hover {
    background: linear-gradient(135deg, rgba(19,113,207,0.38), rgba(55,138,221,0.22));
    border-color: rgba(55,138,221,0.72);
}

.contact-link--email .contact-link-icon {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
}

.contact-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.contact-checklist li {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 300;
}

.contact-checklist li::before {
    content: '✓';
    color: var(--blue-light);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-contact-cta {
    display: inline-flex;
    align-items: center;
    background: var(--blue-mid);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(19,113,207,0.4);
}

.btn-contact-cta:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(19,113,207,0.5);
}

/* ─── TERMS PAGE ───────────────────────────────────────────── */
.terms-hero {
    background: var(--ink);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3csvg width='52' height='45' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='hex' x='0' y='0' width='52' height='45' patternUnits='userSpaceOnUse'%3e%3cpolygon points='26,7.5 41,16.25 41,33.75 26,42.5 11,33.75 11,16.25' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.04'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23hex)'/%3e%3c/svg%3e");
}

.terms-hero .container {
    position: relative;
    z-index: 1;
}

.terms-hero .section-label {
    color: var(--blue-light);
}

.terms-hero .section-label::before {
    background: var(--blue-light);
}

.terms-hero h1 {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0.5rem 0 1rem;
}

.terms-hero-meta {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    font-family: 'JetBrains Mono', monospace;
}

.terms-body {
    background: var(--surface-alt);
    padding: 60px 0 100px;
}

.terms-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}

.terms-toc {
    position: sticky;
    top: 80px;
}

.terms-toc-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.terms-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.terms-toc ol li a {
    display: block;
    font-size: 0.83rem;
    color: var(--ink-muted);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-left: 2px solid var(--border);
    transition: all 0.2s;
    line-height: 1.4;
}

.terms-toc ol li a:hover {
    color: var(--blue-mid);
    border-left-color: var(--blue-mid);
    background: var(--blue-pale);
}

.terms-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.terms-disclaimer {
    background: linear-gradient(135deg, #fff8e6 0%, #fef3d0 100%);
    border-bottom: 1px solid #f0d070;
    padding: 1.5rem 2.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.terms-disclaimer-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.terms-disclaimer p {
    font-size: 0.88rem;
    color: #7a5a00;
    line-height: 1.65;
    margin: 0;
}

.terms-disclaimer strong {
    color: #5a4000;
}

.terms-inner {
    padding: 2.5rem;
}

.terms-intro {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    font-weight: 300;
}

.terms-def-intro {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.terms-article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 90px;
}

.terms-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-article-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.terms-article-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--blue-light);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.terms-article h2 {
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin: 0;
}

.terms-clauses {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terms-clauses > li {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.8;
    font-weight: 300;
}

.terms-clause-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--blue-mid);
    min-width: 1.8rem;
    padding-top: 0.35rem;
    flex-shrink: 0;
}

.terms-definitions {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.terms-def-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.terms-def-item:last-child {
    border-bottom: none;
}

.terms-def-term {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    padding: 1rem 1.25rem;
    background: var(--surface-alt);
    border-right: 1px solid var(--border);
}

.terms-def-desc {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.75;
    padding: 1rem 1.25rem;
    font-weight: 300;
}

.terms-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.83rem;
    color: var(--ink-muted);
    font-family: 'JetBrains Mono', monospace;
}

.terms-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.terms-back:hover {
    color: white;
}

.terms-lang-switch {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 1rem;
}

.terms-lang-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.terms-lang-link:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.08);
}

.terms-lang-link-active {
    color: #ffffff;
    border-color: var(--blue-light);
    background: rgba(55,138,221,0.25);
}

.terms-floating-lang {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 10px;
    background: rgba(17,21,32,0.92);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.terms-floating-lang .terms-lang-link {
    color: rgba(255,255,255,0.78);
    border-color: rgba(255,255,255,0.24);
    padding: 0.35rem 0.6rem;
}

.terms-floating-lang .terms-lang-link:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}

.terms-floating-lang .terms-lang-link-active {
    background: rgba(55,138,221,0.45);
    border-color: rgba(55,138,221,0.95);
}

.terms-floating-lang button.terms-lang-link {
    cursor: pointer;
    background: none;
    line-height: inherit;
}

.terms-lang-switch button.terms-lang-link {
    cursor: pointer;
    background: none;
    line-height: inherit;
    font: inherit;
}

@media (max-width: 900px) {
    .terms-layout {
        grid-template-columns: 1fr;
    }
    .terms-toc {
        position: static;
        display: none;
    }
    .terms-inner {
        padding: 1.5rem;
    }
    .terms-disclaimer {
        padding: 1.25rem 1.5rem;
    }
    .terms-def-item {
        grid-template-columns: 1fr;
    }
    .terms-def-term {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.5rem;
    }
    .terms-lang-switch {
        display: flex;
    }
    .terms-floating-lang {
        right: 0.75rem;
        bottom: 0.75rem;
    }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
    background: #111520;
    padding: 2.5rem 2rem;    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.03em;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem 4rem;
    align-items: center;
}

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

.footer-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.06em;
}

.footer-tagline {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
}

.footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.78rem;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.8);
}

.footer-meta {
    text-align: right;
}

.footer-meta p + p {
    margin-top: 0.4rem;
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero .container,
    .about-inner,
    .experience-inner,
    .contact .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-right {
        display: none;
    }

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

    .experience-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 92px 1rem 40px;
    }

    .hero::after {
        height: 24px;
    }

    .hero-bg::before {
        opacity: 0.46;
        mask-image: radial-gradient(ellipse 98% 82% at 50% 24%, black 52%, transparent 100%);
    }

    .hero-bg::after {
        top: -26%;
        right: -24%;
        width: 280px;
        height: 280px;
        background: radial-gradient(ellipse at center, rgba(19,113,207,0.05) 0%, transparent 72%);
    }

    .about {
        margin-top: 0;
        padding-top: 70px;
    }

    .hamburger {
        display: flex;
    }
    #navbar ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        border-bottom: 1px solid var(--border);
    }
    #navbar ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    #navbar li {
        width: 100%;
        text-align: center;
    }
    #navbar a {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
        display: block;
    }
    #navbar .nav-cta {
        margin: 0.25rem 1.5rem;
        border-radius: 6px;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    section {
        padding: 70px 0;
    }

    .contact-link {
        padding: 1rem 1.1rem;
        gap: 0.9rem;
    }

    .contact-link-value {
        font-size: 0.9rem;
    }

    .contact {
        padding: 72px 0 46px;
    }

    .contact .container {
        gap: 2.25rem;
    }

    .profile-image {
        width: 160px;
        height: 160px;
        margin: 0.5rem 0 0.35rem 1rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-meta {
        text-align: center;
    }

    .footer-tagline,
    .footer-meta p,
    .footer-links a {
        line-height: 1.5;
    }
}
