/* =========================================================
   Hikmatullah - Portfolio
   Modern dark theme · glassmorphism · gradient mesh
   ========================================================= */

:root {
    --bg: #07070b;
    --bg-2: #0c0c14;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #ececf1;
    --text-dim: #a8a8b3;
    --text-muted: #6b6b78;

    --primary: #6366f1;          /* indigo (was violet) */
    --primary-2: #7c5cff;
    --accent: #06b6d4;           /* electric cyan */
    --accent-2: #3b82f6;         /* electric blue (was pink) */

    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-text: linear-gradient(120deg, #93c5fd, #818cf8 50%, #06b6d4);

    --radius: 18px;
    --radius-lg: 28px;
    --shadow-lg: 0 30px 80px -20px rgba(124, 92, 255, 0.35);

    --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Layout */
.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section { padding: 72px 0; }

.section-head {
    margin-bottom: 44px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.9;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: var(--text);
}

/* =========================================================
   Background - gradient mesh + grid + orbs
   ========================================================= */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 8%, rgba(99, 102, 241, 0.12), transparent 42%),
        radial-gradient(circle at 82% 88%, rgba(6, 182, 212, 0.08), transparent 45%),
        var(--bg);
}

/* Background video */
.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
}

/* Tinted overlay so text stays readable over the video */
.bg-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(7, 7, 11, 0.55), rgba(7, 7, 11, 0.85) 70%),
        linear-gradient(180deg, rgba(7, 7, 11, 0.4), rgba(7, 7, 11, 0.7));
}

/* On mobile, save battery - hide the video, keep gradient + orbs */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .bg-video { display: none; }
    .bg-video-overlay { display: none; }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.16;
    animation: orbFloat 24s ease-in-out infinite;
}

.orb-1 { width: 480px; height: 480px; background: #6366f1; top: -120px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: #3b82f6; top: 40%; right: -100px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #06b6d4; bottom: -80px; left: 30%; animation-delay: -12s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 60px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* =========================================================
   Loader - minimal
   ========================================================= */
/* Without JS nothing would ever remove this overlay, leaving a blank page. */
html:not(.js) .loader { display: none !important; }

.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.done { opacity: 0; visibility: hidden; }

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.loader-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: var(--surface);
    animation: loaderPulse 1.4s ease-in-out infinite;
}
.loader-bar {
    width: 180px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar-fill {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-3px); }
}
@keyframes loaderSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}
@media (max-width: 480px) {
    .loader-mark { width: 56px; height: 56px; font-size: 1.6rem; }
    .loader-bar { width: 150px; }
}

/* =========================================================
   Header / Nav
   ========================================================= */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s var(--ease);
    padding: 18px 0;
}
header.scrolled {
    padding: 10px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 7, 11, 0.7);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
}
.logo-dot { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}
.nav-link {
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--surface-2);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 92, 255, 0.5);
}
.nav-cta i { transition: transform 0.3s var(--ease); }
.nav-cta:hover i { transform: translateX(3px); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-cta { display: none; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 5%;
        right: 5%;
        flex-direction: column;
        padding: 24px;
        border-radius: 20px;
        background: rgba(12, 12, 20, 0.95);
        backdrop-filter: blur(24px);
        border: 1px solid var(--border);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: all 0.3s var(--ease);
    }
    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-link { padding: 12px 18px; text-align: center; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s var(--ease);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(124, 92, 255, 0.55);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn i { transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.status-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-bottom: 28px;
    line-height: 1.05;
}
.hero-title .line {
    display: block;
    overflow: hidden;
}
.hero-title .line > span {
    display: inline-block;
}
.js .hero-title .line > span {
    transform: translateY(110%);
    transition: transform 0.9s var(--ease);
}
.js .reveal-line.visible > span {
    transform: translateY(0);
}
.line:nth-child(2) > span { transition-delay: 0.1s; }
.line:nth-child(3) > span { transition-delay: 0.2s; }

.typed { color: var(--accent); }
.caret {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s steps(1) infinite;
    margin-left: 2px;
    font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 40px;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-socials {
    display: flex;
    gap: 14px;
}
.hero-socials a {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.3s var(--ease);
}
.hero-socials a:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--surface-2);
    transform: translateY(-3px);
}

/* Hero image - clean framed profile */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.image-wrap {
    position: relative;
    width: min(400px, 80%);
    aspect-ratio: 1;
}
/* Soft single-accent glow behind the photo */
.image-wrap::before {
    content: '';
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.28), transparent 70%);
    filter: blur(45px);
    z-index: 0;
}
.image-frame {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(160deg, var(--border-strong), rgba(99, 102, 241, 0.55));
    z-index: 1;
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-2);
    display: block;
}
/* Live status badge */
.image-status {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(7, 7, 11, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.status-pulse {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.6s infinite;
}
.status-text { letter-spacing: 0.02em; }

@media (max-width: 768px) {
    .image-wrap { width: min(280px, 72%); }
    .image-status { font-size: 0.7rem; padding: 6px 12px; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: grid;
    place-items: start center;
    padding-top: 6px;
}
.wheel {
    width: 3px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 3px;
    animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-content { order: 2; }
    .hero-image { order: 1; }
    .hero-badge, .hero-btns, .hero-socials { justify-content: center; }
    .hero-btns { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .scroll-indicator { display: none; }
    .float-chip { font-size: 0.75rem; padding: 8px 12px; }
    .chip-1 { left: 0; }
    .chip-2 { right: 0; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
    overflow: hidden;
    padding: 22px 0;
    border-block: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    position: relative;
    z-index: 2;
}
.marquee-track {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    width: max-content;
}
.marquee-track span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* =========================================================
   About
   ========================================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 90px;
}

.about-image {
    position: relative;
}
.about-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}
.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.about-image:hover .about-image-frame img { transform: scale(1.05); }

.about-experience {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: rgba(12, 12, 20, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-lg);
}
.exp-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.about-experience > span:nth-child(2) {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
}
.exp-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-left: 12px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.about-text strong { color: var(--text); }

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.skill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s var(--ease);
}
.skill i { color: var(--accent); }
.skill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: var(--surface-2);
}
.skill.primary {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(244, 114, 182, 0.12));
    border-color: rgba(124, 92, 255, 0.45);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(124, 92, 255, 0.18);
}
.skill.primary i { color: #fff; }
.skill.primary:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(124, 92, 255, 0.32);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}
.stat {
    text-align: center;
    position: relative;
}
.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}
.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: inline-block;
}
.stat > span:nth-child(2) {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
}
.stat-label {
    display: block;
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .about-experience { right: 10px; bottom: -20px; padding: 16px 20px; }
    .exp-num { font-size: 2.2rem; }
    .stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
    .stat:nth-child(2)::after { display: none; }
}

/* =========================================================
   Featured Portfolio
   ========================================================= */
.portfolio-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 36px;
    margin-bottom: 30px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.portfolio-featured > * {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.featured-info h3,
.featured-info > p,
.featured-info .tag,
.featured-points li,
.role-value,
.role-label {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.tech-pills { max-width: 100%; overflow: hidden; }
.portfolio-featured.reverse {
    grid-template-columns: 1fr 1.1fr;
}
.portfolio-featured.reverse > .featured-info { order: 1; }
.portfolio-featured.reverse > .featured-collage { order: 2; }
.portfolio-featured.reverse::before {
    top: auto; right: auto;
    bottom: -150px; left: -150px;
    background: var(--gradient-2);
}
.portfolio-featured + .portfolio-featured { margin-top: 0; }
.portfolio-grid { margin-top: 50px; }
.portfolio-featured::before {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 400px; height: 400px;
    background: var(--gradient-1);
    filter: blur(120px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.featured-collage {
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    aspect-ratio: 4 / 3;
}
.collage-side { display: contents; }

.collage-main,
.collage-thumb {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #0f3460 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.collage-main {
    grid-row: span 2;
}
.collage-main img,
.collage-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s var(--ease);
}
.collage-main:hover,
.collage-thumb:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124, 92, 255, 0.35);
    z-index: 3;
}
.collage-main:hover img,
.collage-thumb:hover img { transform: scale(1.06); }

.collage-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(7, 7, 11, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.05em;
}
.collage-tag i { color: var(--accent); font-size: 0.7rem; }

@media (max-width: 600px) {
    .featured-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        aspect-ratio: auto;
    }
    .collage-main { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
    .collage-thumb { aspect-ratio: 4/3; }
    .collage-side {
        display: contents;
    }
}

/* ---- Stacked collage variant (Call Agent) ---- */
.featured-collage.stack {
    display: block;
    aspect-ratio: 4 / 3;
    perspective: 1200px;
}
.collage-stack-item {
    position: absolute;
    width: 78%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #0f3460 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), z-index 0s 0.3s;
}
.collage-stack-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}
.collage-stack-item.s1 {
    top: 0; left: 0;
    transform: rotate(-5deg);
    z-index: 1;
}
.collage-stack-item.s2 {
    top: 18%; left: 22%;
    transform: rotate(2deg);
    z-index: 2;
}
.collage-stack-item.s3 {
    bottom: 0; left: 8%;
    transform: rotate(-2deg);
    z-index: 3;
}

/* Two-image variant - balanced offset so it doesn't look lopsided */
.featured-collage.stack.two .collage-stack-item.s1 {
    top: 0; left: 4%;
    transform: rotate(-4deg);
}
.featured-collage.stack.two .collage-stack-item.s3 {
    bottom: 0; right: 4%; left: auto;
    transform: rotate(3deg);
}
.collage-stack-item:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.04);
    box-shadow: 0 24px 60px rgba(124, 92, 255, 0.5);
    z-index: 10;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), z-index 0s;
}

@media (max-width: 600px) {
    .featured-collage.stack {
        display: flex;
        flex-direction: column;
        gap: 14px;
        aspect-ratio: auto;
    }
    .collage-stack-item {
        position: relative;
        width: 100%;
        transform: none !important;
        top: auto; left: auto; bottom: auto;
    }
}

/* ---- Phone mockup (Chaman Bazar) ---- */
.featured-collage.phone-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    position: relative;
    perspective: 1400px;
}
.phone-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 65%);
    filter: blur(60px);
    z-index: 0;
}
.phone {
    position: relative;
    width: min(280px, 80%);
    aspect-ratio: 9 / 19;
    background: linear-gradient(145deg, #16161f, #0a0a12);
    border-radius: 38px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: rotate(-3deg);
    transition: transform 0.6s var(--ease);
    z-index: 1;
}
.phone:hover { transform: rotate(0deg) translateY(-6px); }

.phone-notch {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 22px;
    background: #050507;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #0c0c14, #14142a);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 32px 14px 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 14px;
    padding: 0 4px;
}
.phone-status i { margin-left: 4px; font-size: 0.6rem; }

.phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-app-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gradient-1);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.phone-app-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}
.phone-app-sub {
    font-size: 0.62rem;
    color: var(--text-muted);
}

.phone-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border-left: 2px solid var(--accent);
}
.phone-item.flag {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
.pi-emoji { font-size: 1rem; }
.pi-body { flex: 1; min-width: 0; }
.pi-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
}
.pi-unit {
    font-size: 0.58rem;
    color: var(--text-muted);
}
.pi-price {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.phone-item.flag .pi-price { color: #ef4444; }
.phone-item.flag .pi-price i { font-size: 0.55rem; }

.phone-report {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

/* (mobile phone-mockup rules consolidated in the comprehensive mobile pass below) */

/* ---- Role split (Chaman Bazar - co-founder credit) ---- */
.role-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 22px;
}
.role {
    padding: 14px 16px;
    background: rgba(124, 92, 255, 0.06);
    border: 1px solid rgba(124, 92, 255, 0.2);
    border-radius: 12px;
}
.role-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}
.role-value {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}
@media (max-width: 700px) {
    .role-split { grid-template-columns: 1fr; }
}

/* ---- Tech pills (Call Agent) ---- */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s var(--ease);
}
.tech-pill i { color: var(--accent); font-size: 0.75rem; }
.tech-pill:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .portfolio-featured.reverse > .featured-info { order: 2; }
    .portfolio-featured.reverse > .featured-collage { order: 1; }
}

.featured-badge {
    position: absolute;
    top: 16px; left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(7, 7, 11, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.05em;
    z-index: 2;
}
.featured-badge i { color: #fbbf24; }

.featured-info h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin: 12px 0 16px;
    color: var(--text);
}
.featured-info > p {
    color: var(--text-dim);
    margin-bottom: 22px;
    font-size: 1rem;
}

.featured-points {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.featured-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.featured-points i {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.18);
    color: var(--primary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.featured-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.featured-links .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .portfolio-featured,
    .portfolio-featured.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }
    /* Force collage above info on mobile for both layouts */
    .portfolio-featured > .featured-collage,
    .portfolio-featured.reverse > .featured-collage { order: 1 !important; }
    .portfolio-featured > .featured-info,
    .portfolio-featured.reverse > .featured-info { order: 2 !important; }

    /* Stack collage - give it real height on mobile */
    .featured-collage.stack {
        display: block;
        height: auto;
        min-height: 300px;
        aspect-ratio: auto;
        padding-bottom: 80px; /* room for the rotated cards */
    }
    .featured-collage.stack .collage-stack-item {
        width: 78%;
        position: absolute;
    }

    /* Phone mockup - perfectly centered, sized to fit the phone */
    .featured-collage.phone-mockup {
        aspect-ratio: auto;
        min-height: 460px;
        padding: 20px 0;
    }
    .featured-collage.phone-mockup .phone {
        width: 200px;
        max-width: 60%;
        transform: rotate(0);
    }
    .featured-collage.phone-mockup .phone-glow {
        inset: 15%;
    }

    /* Standard 3-image grid collage - keep as 2x2 grid */
    .featured-collage:not(.stack):not(.phone-mockup) {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        aspect-ratio: auto;
    }
    .featured-collage:not(.stack):not(.phone-mockup) .collage-main {
        grid-column: span 2;
        grid-row: auto;
        aspect-ratio: 16/10;
    }

    /* Tags + headings sized down */
    .featured-info { min-width: 0; max-width: 100%; }
    .featured-info .tag {
        font-size: 0.7rem;
        white-space: normal;
        line-height: 1.5;
    }
    .featured-info h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .featured-info > p {
        font-size: 0.95rem;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }
    /* Keep tech pills on a single line each but wrap container */
    .tech-pills {
        max-width: 100%;
        overflow: visible;
    }
    .tech-pill {
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    /* Buttons full width on mobile */
    .featured-links {
        flex-direction: column;
        gap: 10px;
    }
    .featured-links .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }

    /* Tech pills wrap freely */
    .tech-pills { gap: 6px; }
    .tech-pill { font-size: 0.7rem; padding: 5px 10px; white-space: nowrap; }

    /* Featured points */
    .featured-points li { font-size: 0.88rem; }

    /* Role split (Chaman Bazar) - single column on mobile */
    .role-split { grid-template-columns: 1fr; gap: 10px; }
}

/* Smaller phones - final tweaks */
@media (max-width: 480px) {
    .portfolio-featured,
    .portfolio-featured.reverse {
        padding: 18px;
        gap: 24px;
        border-radius: 18px;
    }
    .featured-info h3 { font-size: 1.1rem; }
    .featured-info > p { font-size: 0.9rem; }
    .featured-collage.stack { min-height: 260px; padding-bottom: 70px; }
    .featured-collage.stack .collage-stack-item { width: 82%; }
    .featured-collage.phone-mockup { min-height: 420px; padding: 12px 0; }
    .featured-collage.phone-mockup .phone { width: 180px; max-width: 70%; }
    .featured-collage.phone-mockup .phone-screen { padding: 28px 10px 10px; }
    .pi-name { font-size: 0.68rem; }
    .pi-price { font-size: 0.68rem; }
    .phone-app-title { font-size: 0.78rem; }
    .phone-report { font-size: 0.65rem; padding: 8px; }
    .featured-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        top: 10px; left: 10px;
    }
}

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.portfolio-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.5s var(--ease), border-color 0.3s var(--ease), box-shadow 0.5s var(--ease);
    transform-style: preserve-3d;
    will-change: transform;
}
.portfolio-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.portfolio-item:hover .portfolio-img img { transform: scale(1.08); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 7, 11, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.overlay-btn {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    background: var(--gradient-1);
    border-radius: 50%;
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.4s var(--ease);
}
.portfolio-item:hover .overlay-btn { transform: translateY(0); }

.portfolio-info {
    padding: 26px;
}
.tag {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text);
}
.portfolio-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.portfolio-link:hover {
    color: var(--accent);
    gap: 14px;
}

/* =========================================================
   Services / Certificates
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.service-item {
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: -1;
}
.service-item:hover {
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px; height: 64px;
    display: grid;
    place-items: center;
    background: var(--gradient-1);
    border-radius: 16px;
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px rgba(124, 92, 255, 0.35);
    transition: transform 0.4s var(--ease);
}
.service-item:hover .service-icon { transform: rotate(-8deg) scale(1.05); }

.cert-issuer {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

a.service-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
}
.service-item p {
    color: var(--text-dim);
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================================================
   CTA / Contact
   ========================================================= */
.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: var(--gradient-1);
    filter: blur(120px);
    opacity: 0.25;
    z-index: -1;
}
.cta-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 18px 0 18px;
    color: var(--text);
}
.cta-card p {
    color: var(--text-dim);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-socials {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 36px;
}
.cta-socials a {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.3s var(--ease);
}
.cta-socials a:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--surface-2);
    transform: translateY(-3px);
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text);
}
.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.back-top {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    transition: transform 0.3s var(--ease);
}
.back-top:hover { transform: translateY(-4px); }

/* =========================================================
   Reveal animations
   ========================================================= */
.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Beauty pass - noise texture, refined gradients, glow
   ========================================================= */

/* Subtle film grain over the whole page for premium feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Animated shimmer border on featured cards */
.portfolio-featured {
    position: relative;
}
.portfolio-featured::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, rgba(124, 92, 255, 0.5), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
}
.portfolio-featured:hover::after { opacity: 1; }

/* Section title - animated underline accent */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
    opacity: 0.7;
}

/* Polished link hover */
.portfolio-link, .service-link {
    transition: all 0.3s var(--ease);
}

/* Better focus visibility for keyboard users */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* =========================================================
   Mobile responsive - comprehensive pass
   ========================================================= */

/* Tablet (≤ 1024px) - tighten spacing */
@media (max-width: 1024px) {
    .section { padding: 60px 0; }
    .section-head { margin-bottom: 38px; }
    .hero-container { gap: 50px; }
    .image-wrap { width: min(380px, 80%); }
    .float-chip { font-size: 0.78rem; padding: 8px 14px; }
}

/* Tablet portrait / large phone (≤ 768px) */
@media (max-width: 768px) {
    body { font-size: 0.95rem; }
    .container { width: 92%; padding: 0 16px; }
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 32px; }
    .eyebrow { font-size: 0.78rem; }

    /* Hero */
    .hero { padding: 110px 0 50px; min-height: auto; }
    .hero-title { font-size: clamp(2.2rem, 9vw, 3.4rem); margin-bottom: 22px; }
    .hero-desc { font-size: 1rem; margin-bottom: 30px; }
    .hero-badge { font-size: 0.78rem; padding: 7px 14px; }
    .hero-btns { gap: 10px; margin-bottom: 30px; }
    .hero-btns .btn { padding: 12px 22px; font-size: 0.9rem; }
    .hero-socials a { width: 40px; height: 40px; }
    .image-wrap { width: min(280px, 75%); }
    .image-ring { inset: -14px; }
    .image-glow { inset: -28px; }
    .float-chip { font-size: 0.7rem; padding: 6px 12px; }
    .chip-1 { top: 5%; left: -2%; }
    .chip-2 { top: 45%; right: -5%; }
    .chip-3 { bottom: 5%; left: 5%; }

    /* Marquee - slower & smaller */
    .marquee { padding: 22px 0; }
    .marquee-track { animation-duration: 50s; gap: 36px; }
    .marquee-track span { font-size: 1.2rem; }
    .marquee-track span:nth-child(even) { font-size: 0.85rem; }

    /* Featured cards */
    .portfolio-featured {
        padding: 22px;
        gap: 28px !important;
        margin-bottom: 24px;
    }
    .portfolio-featured.reverse > .featured-info { order: 2; }
    .portfolio-featured.reverse > .featured-collage { order: 1; }
    .featured-info h3 { font-size: 1.35rem; line-height: 1.25; }
    .featured-info > p { font-size: 0.95rem; }
    .tech-pills { gap: 6px; margin-bottom: 18px; }
    .tech-pill { font-size: 0.72rem; padding: 5px 10px; }
    .featured-points li { font-size: 0.88rem; }
    .featured-links { gap: 10px; }
    .featured-links .btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        justify-content: center;
        padding: 11px 16px;
        font-size: 0.85rem;
    }
    .featured-links .btn span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .featured-badge { font-size: 0.68rem; padding: 5px 11px; top: 12px; left: 12px; }

    /* Stack collage - tighter on mobile */
    .featured-collage.stack {
        aspect-ratio: 1.1 / 1;
        min-height: 280px;
    }
    .collage-stack-item { width: 82%; }

    /* Phone mockup - center, no rotation */
    .phone { transform: rotate(0); width: min(220px, 65%); }
    .phone:hover { transform: translateY(-4px); }
    .featured-collage.phone-mockup { aspect-ratio: 1; }

    /* Stats */
    .stats { padding: 22px; gap: 14px; }
    .stat-num { font-size: 2.2rem; }
    .stat-label { font-size: 0.78rem; }

    /* Skills */
    .skill { font-size: 0.82rem; padding: 8px 14px; }

    /* About */
    .about-content { gap: 32px; margin-bottom: 60px; }
    .about-experience { padding: 14px 18px; bottom: -16px; right: 8px; }
    .exp-num { font-size: 2rem; }
    .about-experience > span:nth-child(2) { font-size: 1.4rem; }
    .exp-label { font-size: 0.75rem; margin-left: 8px; }
    .about-text p { font-size: 0.98rem; }

    /* Services / certificates */
    .service-item { padding: 30px 22px; }
    .service-icon { width: 54px; height: 54px; font-size: 1.3rem; margin-bottom: 18px; }
    .service-item h3 { font-size: 1.1rem; }
    .service-item p { font-size: 0.88rem; }

    /* CTA */
    .cta-card { padding: 50px 24px; }
    .cta-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    .cta-card p { font-size: 0.95rem; }

    /* Footer */
    .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
    .copyright { font-size: 0.82rem; }
}

/* Small phones (≤ 480px) - final polish */
@media (max-width: 480px) {
    .container { width: 94%; padding: 0 12px; }
    .section { padding: 44px 0; }

    .logo-text { display: none; }
    .logo-mark { width: 32px; height: 32px; font-size: 0.95rem; }

    .hero { padding: 100px 0 40px; }
    .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
    .hero-badge { font-size: 0.72rem; padding: 6px 12px; line-height: 1.4; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .hero-socials { justify-content: center; }

    .image-wrap { width: min(240px, 80%); }
    .float-chip { display: none; }

    .portfolio-featured { padding: 18px; border-radius: 20px; }
    .featured-info h3 { font-size: 1.2rem; }
    .featured-links .btn { flex: 1 1 100%; }

    .role-split { gap: 10px; }
    .role { padding: 12px 14px; }

    .featured-collage.stack { min-height: 240px; }
    .collage-stack-item { width: 85%; }

    .stats { grid-template-columns: 1fr 1fr; padding: 18px; gap: 16px 8px; }
    .stat-num { font-size: 1.8rem; }
    .stat:not(:last-child)::after { display: none; }

    .skills { gap: 8px; }
    .skill { font-size: 0.78rem; padding: 7px 12px; }

    .cta-card { padding: 40px 20px; border-radius: 20px; }

    .section-title { font-size: 1.8rem; }
}

/* Hide custom cursor entirely on touch - already handled but enforce */
@media (hover: none) {
    body { cursor: auto !important; }
    /* Keep tap targets generous */
    .nav-link { padding: 14px 18px; }
    .btn { padding: 14px 22px; }
}

/* =========================================================
   Theme toggle button
   ========================================================= */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    transform: scale(1.05);
}
.theme-toggle i {
    position: absolute;
    font-size: 0.95rem;
    transition: transform 0.45s var(--ease), opacity 0.3s ease;
}
/* Default (dark mode) - show moon, hide sun */
.theme-toggle .sun-icon { transform: translateY(120%) rotate(60deg); opacity: 0; }
.theme-toggle .moon-icon { transform: translateY(0) rotate(0); opacity: 1; color: #c4b5fd; }
/* Light mode - show sun, hide moon */
:root[data-theme="light"] .theme-toggle .sun-icon {
    transform: translateY(0) rotate(0); opacity: 1; color: #f59e0b;
}
:root[data-theme="light"] .theme-toggle .moon-icon {
    transform: translateY(-120%) rotate(-60deg); opacity: 0;
}

@media (max-width: 900px) {
    .theme-toggle { width: 38px; height: 38px; }
}

/* =========================================================
   Light theme - premium engineering aesthetic (Linear / Vercel / Stripe)
   ========================================================= */
:root[data-theme="light"] {
    /* Cool, near-white surfaces - not creamy */
    --bg: #fafbfd;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f6fa;
    --border: rgba(15, 18, 32, 0.08);
    --border-strong: rgba(15, 18, 32, 0.14);
    /* Strong, cool slate text */
    --text: #0b0d17;
    --text-dim: #3a3f52;
    --text-muted: #6b7184;
    --shadow-lg: 0 24px 60px -18px rgba(15, 18, 32, 0.18);
    /* Tighter accents - drop the pink dominance */
    --gradient-1: linear-gradient(135deg, #5b4bff 0%, #7c5cff 50%, #22d3ee 100%);
    --gradient-text: linear-gradient(120deg, #5b4bff, #7c5cff 50%, #22d3ee);
}

/* Background - minimal grid + 2 cool blobs (no pink, no candy) */
:root[data-theme="light"] .bg-gradient {
    background:
        radial-gradient(circle at 80% 0%, rgba(91, 75, 255, 0.07), transparent 45%),
        radial-gradient(circle at 0% 90%, rgba(34, 211, 238, 0.06), transparent 45%),
        var(--bg);
}
:root[data-theme="light"] .orb { display: none; }
:root[data-theme="light"] .grid-overlay {
    background-image:
        linear-gradient(rgba(15, 18, 32, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 18, 32, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
}
:root[data-theme="light"] .bg-video,
:root[data-theme="light"] .bg-video-overlay { display: none; }
:root[data-theme="light"] body::before { opacity: 0.02; }

/* Header - visibly themed indigo / cyan gradient (not white) */
:root[data-theme="light"] header {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.12) 0%,
        rgba(59, 130, 246, 0.10) 50%,
        rgba(6, 182, 212, 0.12) 100%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 6px 24px -10px rgba(99, 102, 241, 0.18);
}
:root[data-theme="light"] header.scrolled {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.18) 0%,
        rgba(59, 130, 246, 0.14) 50%,
        rgba(6, 182, 212, 0.18) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 28px -10px rgba(99, 102, 241, 0.25);
}
/* Glowing accent line at the very bottom of the header */
:root[data-theme="light"] header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.6) 25%,
        rgba(6, 182, 212, 0.8) 50%,
        rgba(99, 102, 241, 0.6) 75%,
        transparent 100%);
    opacity: 0.85;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}
:root[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow:
        0 1px 3px rgba(15, 18, 32, 0.04),
        0 0 0 1px rgba(99, 102, 241, 0.04) inset;
}
:root[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(99, 102, 241, 0.18);
    box-shadow: 0 1px 2px rgba(15, 18, 32, 0.06);
}
:root[data-theme="light"] .theme-toggle:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.4);
}
/* Logo mark in light mode keeps its gradient - looks great */
:root[data-theme="light"] .logo {
    color: var(--text);
}
:root[data-theme="light"] .logo-dot {
    color: #06b6d4;
}
:root[data-theme="light"] .nav-link { color: var(--text-dim); }
:root[data-theme="light"] .nav-link:hover,
:root[data-theme="light"] .nav-link.active {
    color: var(--text);
    background: rgba(124, 92, 255, 0.08);
}
:root[data-theme="light"] .menu-toggle span { background: var(--text); }

/* Mobile nav drawer */
:root[data-theme="light"] .nav-links.active {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--border-strong);
}

/* Hero */
:root[data-theme="light"] .hero-badge {
    background: var(--bg-2);
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(15, 18, 32, 0.05);
}
:root[data-theme="light"] .hero-desc strong { color: var(--text); }
:root[data-theme="light"] .hero-socials a {
    background: var(--bg-2);
    border-color: var(--border);
    color: var(--text-dim);
    box-shadow: 0 1px 2px rgba(15, 18, 32, 0.05);
}
:root[data-theme="light"] .hero-socials a:hover {
    background: #5b4bff;
    color: #fff;
    border-color: #5b4bff;
}
:root[data-theme="light"] .float-chip {
    background: var(--bg-2);
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: 0 6px 18px -4px rgba(15, 18, 32, 0.12);
}
:root[data-theme="light"] .image-status {
    background: var(--bg-2);
    color: var(--text);
    border-color: var(--border-strong);
}
:root[data-theme="light"] .dashed-ring { border-color: rgba(15, 18, 32, 0.14); }

/* Marquee */
:root[data-theme="light"] .marquee {
    background: var(--surface-2);
    border-block-color: var(--border);
}
:root[data-theme="light"] .marquee-track span { color: var(--text-dim); }
:root[data-theme="light"] .marquee-track span:nth-child(even) { color: #5b4bff; }

/* Buttons */
:root[data-theme="light"] .btn-ghost {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    border-color: var(--border-strong);
}
:root[data-theme="light"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary);
}

/* Cards - solid white, sharp borders, soft cool shadow */
:root[data-theme="light"] .portfolio-featured,
:root[data-theme="light"] .portfolio-item,
:root[data-theme="light"] .service-item,
:root[data-theme="light"] .stats,
:root[data-theme="light"] .cta-card {
    background: var(--bg-2);
    border-color: var(--border);
    box-shadow:
        0 1px 0 rgba(15, 18, 32, 0.04),
        0 12px 36px -12px rgba(15, 18, 32, 0.12);
    backdrop-filter: none;
}
:root[data-theme="light"] .portfolio-featured:hover,
:root[data-theme="light"] .portfolio-item:hover,
:root[data-theme="light"] .service-item:hover {
    border-color: rgba(91, 75, 255, 0.35);
    box-shadow:
        0 1px 0 rgba(15, 18, 32, 0.04),
        0 24px 48px -16px rgba(91, 75, 255, 0.18);
}
:root[data-theme="light"] .portfolio-featured::before {
    opacity: 0.12;
    filter: blur(80px);
}
:root[data-theme="light"] .skill {
    background: var(--bg-2);
    border-color: var(--border);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(15, 18, 32, 0.04);
}
:root[data-theme="light"] .skill:hover {
    background: var(--surface-2);
    border-color: rgba(91, 75, 255, 0.4);
}
:root[data-theme="light"] .skill.primary {
    background: linear-gradient(135deg, #5b4bff, #7c5cff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(91, 75, 255, 0.28);
}
:root[data-theme="light"] .skill.primary i { color: #fff; }
:root[data-theme="light"] .tech-pill {
    background: rgba(91, 75, 255, 0.06);
    border-color: rgba(91, 75, 255, 0.18);
    color: var(--text);
}
:root[data-theme="light"] .tech-pill i { color: #5b4bff; }
:root[data-theme="light"] .tech-pill:hover {
    background: rgba(91, 75, 255, 0.1);
    border-color: rgba(91, 75, 255, 0.35);
}

/* About */
:root[data-theme="light"] .about-experience {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border-strong);
}

/* Tags / eyebrows / role-split */
:root[data-theme="light"] .role {
    background: rgba(124, 92, 255, 0.06);
    border-color: rgba(124, 92, 255, 0.18);
}

/* Featured badge + tag */
:root[data-theme="light"] .featured-badge {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}
:root[data-theme="light"] .collage-tag {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}

/* Phone mockup - keep dark since it represents a phone screen */
/* (no overrides needed) */

/* =========================================================
   Profile picture - minimalist clean for light mode
   No conic gradient, no spinning rings, no orbiting particles.
   Just a clean dark slate frame with a soft single-tone glow.
   ========================================================= */
:root[data-theme="light"] .image-frame {
    background: linear-gradient(145deg, #0b0d17 0%, #1a1f3a 100%);
    box-shadow:
        0 24px 60px -16px rgba(15, 18, 32, 0.28),
        0 0 0 1px rgba(15, 18, 32, 0.06);
    padding: 5px;
}
:root[data-theme="light"] .image-frame::before {
    display: none;
}
/* Single subtle glow under the image - no rainbow */
:root[data-theme="light"] .aura-1 {
    background: radial-gradient(circle at 50% 50%, #6366f1, transparent 65%);
    opacity: 0.12;
    inset: -40px;
}
:root[data-theme="light"] .aura-2,
:root[data-theme="light"] .aura-3 { display: none; }

/* Hide all the rotating decorations on light mode */
:root[data-theme="light"] .conic-ring,
:root[data-theme="light"] .dashed-ring,
:root[data-theme="light"] .orbit,
:root[data-theme="light"] .frame-shine {
    display: none;
}

/* Portfolio grid items */
:root[data-theme="light"] .portfolio-info {
    background: var(--bg-2);
    color: var(--text);
}
:root[data-theme="light"] .portfolio-info h3 { color: var(--text); }

/* Form / contact */
:root[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
}

/* Footer */
:root[data-theme="light"] footer { border-top-color: var(--border); }
:root[data-theme="light"] .footer-brand { color: var(--text); }

/* Scrollbar */
:root[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-2); }

/* Scroll indicator */
:root[data-theme="light"] .mouse { border-color: var(--text-muted); }

/* Loader (only matters if user reloads in light mode) */
:root[data-theme="light"] .loader { background: var(--bg); }
:root[data-theme="light"] .loader-bar { background: rgba(15, 23, 42, 0.1); }

/* Cursor */

/* Smooth theme transition (fallback when View Transitions unavailable) */
html { transition: background-color 0.4s ease, color 0.4s ease; }
body, header, .portfolio-featured, .portfolio-item, .service-item,
.stats, .cta-card, .skill, .tech-pill, .nav-links, .hero-badge {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* =========================================================
   Theme switch - circular ripple via View Transitions API
   ========================================================= */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

@keyframes theme-ripple-in {
    from { clip-path: circle(0% at var(--ripple-x, 50%) var(--ripple-y, 50%)); }
    to   { clip-path: circle(150% at var(--ripple-x, 50%) var(--ripple-y, 50%)); }
}

/* =========================================================
   Experience timeline
   ========================================================= */
.section-sub {
    margin: 12px auto 0;
    color: var(--text-dim);
    font-size: 1.02rem;
    max-width: 52ch;
}

.timeline {
    position: relative;
    margin-top: 0;
    padding-left: 34px;
}
/* The spine */
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--primary) 0%,
        var(--accent) 45%,
        transparent 100%
    );
    opacity: 0.55;
}

.timeline-item {
    position: relative;
    padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.12);
}
.timeline-item:first-child .timeline-dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.16);
}

.timeline-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.timeline-item:hover .timeline-body {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.timeline-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 18px;
}
.timeline-role {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.timeline-period {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    white-space: nowrap;
}

.timeline-org {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}
.timeline-org i { font-size: 0.72em; margin-left: 3px; }
.timeline-org[href]:hover { text-decoration: underline; }
.timeline-org-plain { color: var(--text-dim); }

.timeline-points {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.timeline-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 9px;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.65;
}
.timeline-points li:last-child { margin-bottom: 0; }
.timeline-points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.75;
}
.timeline-points strong { color: var(--text); font-weight: 600; }

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.timeline-tags span {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .timeline { padding-left: 26px; }
    .timeline::before { left: 5px; }
    .timeline-dot { left: -26px; width: 13px; height: 13px; }
    .timeline-body { padding: 20px 18px; }
    .timeline-role { font-size: 1.08rem; }
    .timeline-top { gap: 4px; }
    .timeline-period { white-space: normal; }
}
