/* ==========================================================================
   Siraj ul Haq - portfolio theme
   Dark by default, light via [data-theme="light"] on <html>.
   ========================================================================== */

:root {
    --bg: #07070d;
    --bg-2: #0d0d17;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #eceaf6;
    --muted: #9a98ad;
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --accent-3: #f472b6;
    --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    --grad-soft: linear-gradient(120deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .12));
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
    --radius: 22px;
    --radius-sm: 14px;
    --nav-h: 76px;
    --font-head: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f6f5fb;
    --bg-2: #eeecf7;
    --surface: rgba(255, 255, 255, .7);
    --surface-2: #ffffff;
    --border: rgba(20, 16, 50, .08);
    --border-strong: rgba(20, 16, 50, .16);
    --text: #16142b;
    --muted: #5d5a75;
    --accent: #7c3aed;
    --accent-2: #0891b2;
    --shadow: 0 30px 70px -35px rgba(40, 20, 90, .35);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: clip; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 120px 0; position: relative; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Background decoration ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-decor .blob {
    position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
    filter: blur(110px); opacity: .28; animation: drift 26s var(--ease) infinite alternate;
}
.bg-decor .b1 { background: var(--accent); top: -18vmax; left: -12vmax; }
.bg-decor .b2 { background: var(--accent-2); bottom: -22vmax; right: -14vmax; animation-delay: -8s; }
.bg-decor .b3 { background: var(--accent-3); top: 40%; left: 45%; width: 26vmax; height: 26vmax; opacity: .12; animation-delay: -15s; }
[data-theme="light"] .bg-decor .blob { opacity: .16; }
.bg-decor .grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
    opacity: .55;
}
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vmax, 6vmax) scale(1.12); }
    100% { transform: translate(-4vmax, 10vmax) scale(.95); }
}

/* Cursor spotlight + dot */
.spotlight {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .09), transparent 45%);
}
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; translate: -50% -50%; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent-2); }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid rgba(139, 92, 246, .55); transition: width .25s, height .25s, background .25s, border-color .25s; }
.cursor-ring.hover { width: 64px; height: 64px; background: rgba(139, 92, 246, .1); border-color: transparent; }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* Preloader & progress */
.preloader {
    position: fixed; inset: 0; z-index: 10000; background: var(--bg);
    display: grid; place-items: center; transition: opacity .6s, visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .logo-mark { width: 64px; height: 64px; font-size: 1.5rem; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .6; } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 1001; }

/* ---------- Buttons & chips ---------- */
.btn {
    --pad: 14px 26px;
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
    font: 600 15px/1 var(--font-body); cursor: pointer;
    transition: transform .35s var(--ease), box-shadow .35s, background .35s, border-color .35s;
    will-change: transform;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 36px -12px rgba(139, 92, 246, .7); }
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(34, 211, 238, .6); }
.btn-ghost { border-color: var(--border-strong); background: var(--surface); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { --pad: 10px 18px; font-size: 14px; }

.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--muted);
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-body);
    text-transform: uppercase; letter-spacing: .18em; color: var(--accent-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.3rem); }

.glass {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
    display: flex; align-items: center; transition: background .35s, border-color .35s, height .35s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px); border-color: var(--border); height: 66px; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 18px/1 var(--font-head); }
.logo-mark {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--grad); color: #fff; font: 700 14px/1 var(--font-head); letter-spacing: -.03em;
}
.brand-logo { height: 42px; width: auto; max-width: 190px; object-fit: contain; }
.nav.scrolled .brand-logo { height: 36px; }
.brand-logo.logo-light { display: none; }
[data-theme="light"] .brand-logo.logo-dark { display: none; }
[data-theme="light"] .brand-logo.logo-light { display: block; }
.preloader-logo { max-height: 70px; max-width: 220px; animation: pulse 1.2s ease-in-out infinite; }
@media (max-width: 600px) { .brand-logo { height: 34px; max-width: 150px; } }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 6px; }
.nav-links a { display: block; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 17px; transition: border-color .25s, transform .25s;
}
.icon-btn:hover { border-color: var(--accent); transform: rotate(-12deg); }
.menu-toggle { display: none; }
@media (max-width: 960px) {
    .menu-toggle { display: grid; }
    .nav-links {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 82vw); flex-direction: column; padding: 100px 24px 24px;
        background: var(--bg-2); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .45s var(--ease);
    }
    .nav-links a { font-size: 18px; padding: 12px 16px; }
    body.menu-open .nav-links { transform: none; }
    .nav-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { min-height: min(100vh, 1000px); display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); font-weight: 700; margin-bottom: .3em; }
.hero h1 .hello { display: block; font-size: .42em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: .35em; }
.typed-line { font: 600 clamp(1.25rem, 2.6vw, 1.9rem)/1.3 var(--font-head); margin-bottom: 26px; min-height: 1.3em; }
.typed-line .caret { display: inline-block; width: 3px; height: 1em; background: var(--accent-2); margin-left: 4px; vertical-align: -.12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-intro { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 18px; transition: all .3s var(--ease); }
.socials a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-4px); }

.hero-visual { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1 / 1.1; }
.portrait {
    position: absolute; inset: 0; border-radius: 42% 58% 62% 38% / 45% 42% 58% 55%; overflow: hidden;
    background: var(--grad); padding: 5px; animation: morph 12s ease-in-out infinite;
}
.portrait-inner { width: 100%; height: 100%; border-radius: inherit; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { font: 700 7rem/1 var(--font-head); }
.emblem { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 0 12%; }
.emblem-mark { font: 700 6.2rem/1 "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: -.06em; }
.emblem-caption {
    font: 600 12.5px/1.4 var(--font-body); letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
    padding-top: 16px; border-top: 1px solid var(--border-strong);
}
@keyframes morph {
    0%, 100% { border-radius: 42% 58% 62% 38% / 45% 42% 58% 55%; }
    33% { border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%; }
    66% { border-radius: 38% 62% 52% 48% / 40% 45% 55% 60%; }
}
.orbit { position: absolute; inset: -34px; border: 1px dashed var(--border-strong); border-radius: 50%; animation: spin 40s linear infinite; }
.orbit span { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-2); top: 50%; left: -6px; box-shadow: 0 0 18px var(--accent-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
    background: color-mix(in srgb, var(--bg-2) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(14px);
    box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; animation: bob 6s ease-in-out infinite;
}
.float-card i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-2); font-size: 18px; }
.float-card b { display: block; font: 700 15px/1.2 var(--font-head); }
.float-card.fc1 { top: 8%; left: -18%; }
.float-card.fc2 { bottom: 12%; right: -16%; animation-delay: -3s; }
.float-card.fc3 { bottom: -4%; left: 4%; animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-14px); } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-grid > :first-child { order: 2; }
    .hero-intro { margin-inline: auto; }
    .hero-cta, .socials { justify-content: center; }
    .hero-visual { width: min(300px, 76vw); }
    .float-card.fc1 { left: -12%; } .float-card.fc2 { right: -12%; }
    .float-card.fc3, .scroll-hint { display: none; }
}
@media (max-width: 600px) {
    .hero { padding-top: calc(var(--nav-h) + 30px); }
    .hero-grid { gap: 44px; }
    .hero-visual { width: 210px; }
    .portrait .initials { font-size: 4.2rem; }
    .emblem { gap: 10px; }
    .emblem-mark { font-size: 3.6rem; }
    .emblem-caption { font-size: 9.5px; letter-spacing: .2em; padding-top: 10px; }
    .orbit { inset: -22px; }
    .float-card { padding: 8px 12px; font-size: 11.5px; gap: 8px; }
    .float-card i { width: 30px; height: 30px; font-size: 15px; }
    .float-card b { font-size: 13px; }
    .float-card.fc1 { top: 2%; left: -30%; }
    .float-card.fc2 { bottom: 4%; right: -30%; }
    .brand > span:last-child { font-size: 16px; }
    .nav-actions { gap: 6px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); padding: 22px 0; overflow: hidden; background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 12px; font: 600 1.15rem/1 var(--font-head); color: var(--muted); white-space: nowrap; }
.marquee-item i { font-size: 1.6rem; }
.marquee-item .sep { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-text p { color: var(--muted); font-size: 1.06rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { padding: 30px 26px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: var(--grad); opacity: .1; filter: blur(20px); }
.stat .num { font: 700 clamp(2.4rem, 4vw, 3.2rem)/1 var(--font-head); margin-bottom: 8px; }
.stat .label { color: var(--muted); font-size: 14.5px; }
.about-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0 34px; }
.about-meta div { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.about-meta i { color: var(--accent-2); font-size: 18px; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 520px) { .about-meta { grid-template-columns: 1fr; } }

/* ---------- Cards (services / skills) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card {
    position: relative; padding: 36px 30px; overflow: hidden; transition: transform .5s var(--ease), border-color .4s;
    transform-style: preserve-3d;
}
.card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 50%), rgba(139, 92, 246, .16), transparent 45%);
}
.card:hover { border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card-icon {
    width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px;
    background: var(--grad-soft); border: 1px solid var(--border); font-size: 26px; color: var(--accent-2);
    transition: transform .5s var(--ease), background .4s, color .4s;
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--grad); color: #fff; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .index { position: absolute; top: 26px; right: 28px; font: 700 14px/1 var(--font-head); color: var(--border-strong); }

.skills-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.tab-btn {
    padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
    font: 500 14.5px/1 var(--font-body); cursor: pointer; transition: all .3s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.skills-panel { display: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.skills-panel.active { display: grid; animation: fadeUp .6s var(--ease); }
.skill { padding: 22px 24px; }
.skill-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.skill-name { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.skill-name i { font-size: 26px; }
.skill-name .fallback { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-2); font: 700 13px/1 var(--font-head); }
.skill-pct { font: 600 14px/1 var(--font-head); color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; }
.project { overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), opacity .4s, border-color .4s; }
.project.hide { display: none; }
.project:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-soft); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project:hover .project-media img { transform: scale(1.07); }
.project-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font: 700 3.2rem/1 var(--font-head); color: rgba(255, 255, 255, .85); background: var(--grad); }
.project-media .placeholder small { display: block; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-top: 10px; text-align: center; }
.project-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(180deg, transparent, rgba(7, 7, 13, .8)); opacity: 0; transition: opacity .4s;
}
.project:hover .project-overlay { opacity: 1; }
.project-overlay a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; font-size: 19px; transform: translateY(16px); transition: transform .45s var(--ease), background .3s; }
.project:hover .project-overlay a { transform: none; }
.project-overlay a:hover { background: var(--accent-2); }
.badge-featured { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 7, 13, .7); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 600; }
.project-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.project-body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.project-body h3 a:hover { color: var(--accent-2); }
.project-body p { color: var(--muted); font-size: 15px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 5px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
@media (max-width: 420px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.timeline-grid.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.timeline-title { display: flex; align-items: center; gap: 14px; font-size: 1.5rem; margin-bottom: 32px; }
.timeline-title i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 20px; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
.tl-item { position: relative; padding: 24px 26px; margin-bottom: 22px; }
.tl-item::before {
    content: ""; position: absolute; left: -34px; top: 30px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--bg); border: 3px solid var(--accent-2); box-shadow: 0 0 0 5px rgba(34, 211, 238, .12);
}
.tl-period { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--grad-soft); color: var(--accent-2); margin-bottom: 12px; }
.tl-item h4 { font-size: 1.15rem; margin-bottom: 4px; }
.tl-org { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.tl-item ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.tl-item li { margin-bottom: 4px; }
.tl-item li::marker { color: var(--accent); }
@media (max-width: 960px) { .timeline-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.slider { position: relative; max-width: 860px; margin-inline: auto; }
.slides { overflow: hidden; border-radius: var(--radius); }
.slides-track { display: flex; transition: transform .8s var(--ease); }
.slide { flex: 0 0 100%; padding: 54px 56px; text-align: center; }
.slide .quote-icon { font-size: 44px; line-height: 1; margin-bottom: 18px; display: inline-block; }
.slide blockquote { margin: 0 0 30px; font: 500 clamp(1.1rem, 2.2vw, 1.4rem)/1.6 var(--font-head); }
.stars { color: #fbbf24; margin-bottom: 20px; letter-spacing: 3px; }
.person { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.person img, .person .avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.person .avatar { display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 18px/1 var(--font-head); }
.person b { display: block; font-family: var(--font-head); }
.person small { color: var(--muted); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; background: var(--border-strong); cursor: pointer; transition: all .35s; padding: 0; }
.dots button.active { width: 30px; background: var(--grad); }
@media (max-width: 600px) { .slide { padding: 38px 24px; } }

/* ---------- CTA + Contact ---------- */
.cta-band {
    position: relative; overflow: hidden; padding: 70px 60px; border-radius: 32px; text-align: center;
    background: var(--grad); color: #fff;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band::before { top: -140px; left: -80px; }
.cta-band::after { bottom: -160px; right: -60px; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); position: relative; }
.cta-band p { opacity: .9; max-width: 560px; margin: 0 auto 30px; position: relative; }
.cta-band .btn { background: #fff; color: #111; position: relative; }
@media (max-width: 600px) { .cta-band { padding: 50px 24px; } }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-item { display: flex; gap: 18px; align-items: center; padding: 22px 24px; transition: transform .4s var(--ease), border-color .4s; }
.info-item:hover { transform: translateX(6px); border-color: var(--border-strong); }
.info-item i { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-2); font-size: 21px; }
.info-item small { display: block; color: var(--muted); font-size: 13px; }
.info-item b { font-weight: 600; word-break: break-word; }
.contact-form { padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea {
    width: 100%; padding: 22px 18px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font: 400 15px/1.5 var(--font-body); outline: none; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label { position: absolute; left: 18px; top: 16px; color: var(--muted); font-size: 15px; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 11.5px; color: var(--accent-2); letter-spacing: .04em; }
.field .error { color: #f87171; font-size: 13px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.alert-ok { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .3); color: #4ade80; margin-bottom: 20px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } .contact-form { padding: 26px 20px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 50px; height: 50px; border-radius: 50%; border: 0;
    display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 20px; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .4s var(--ease); box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .8);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.wa-float { position: fixed; left: 24px; bottom: 24px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 26px; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .8); transition: transform .3s; }
.wa-float:hover { transform: scale(1.1); }

/* ---------- Project page ---------- */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 50px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent-2); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.project-cover { border-radius: 28px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 16 / 8; background: var(--grad); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; margin-top: 60px; align-items: start; }
.prose { color: var(--muted); font-size: 1.06rem; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent-2); }
.meta-card { padding: 30px; position: sticky; top: calc(var(--nav-h) + 20px); }
.meta-card dl { margin: 0 0 24px; }
.meta-card dt { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meta-card dd { margin: 0 0 18px; font-weight: 600; }
.meta-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
@media (max-width: 960px) { .project-layout { grid-template-columns: 1fr; } .meta-card { position: static; } }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.9); }
[data-reveal].in { opacity: 1; transform: none; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.loaded .split-word > span { transform: none; }
/* background-clip:text does not reach transformed children, so each word carries the gradient itself */
.grad-text .split-word > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
