/* ============================================================
   MOHSIN BILAL — Portfolio
   Cinematic Finance Portfolio | 6 Themes
   ============================================================ */

:root {
  --bg: #0b0b14;
  --bg2: #10101c;
  --card: rgba(255,255,255,.04);
  --card2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.09);
  --text: #f4f4f8;
  --muted: #a0a0b3;
  --navbg: rgba(10,10,18,.72);
  --shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* Theme: Steel (Sky Blue) */
html[data-theme="steel"] {
  --p: #38bdf8;
  --p2: #7dd3fc;
  --p-soft: rgba(56,189,248,.14);
  --glow1: rgba(56,189,248,.35);
  --glow2: rgba(125,211,252,.22);
}

/* Theme: Ocean */
html[data-theme="ocean"] {
  --p: #0ea5e9;
  --p2: #2dd4bf;
  --p-soft: rgba(14,165,233,.14);
  --glow1: rgba(14,165,233,.35);
  --glow2: rgba(45,212,191,.22);
}

/* Theme: Sunset */
html[data-theme="sunset"] {
  --p: #f97316;
  --p2: #ef4444;
  --p-soft: rgba(249,115,22,.14);
  --glow1: rgba(249,115,22,.35);
  --glow2: rgba(239,68,68,.22);
}

/* Theme: Emerald */
html[data-theme="emerald"] {
  --p: #10b981;
  --p2: #84cc16;
  --p-soft: rgba(16,185,129,.14);
  --glow1: rgba(16,185,129,.35);
  --glow2: rgba(132,204,22,.22);
}

/* Theme: Gold */
html[data-theme="gold"] {
  --p: #eab308;
  --p2: #d97706;
  --p-soft: rgba(234,179,8,.14);
  --glow1: rgba(234,179,8,.32);
  --glow2: rgba(217,119,6,.22);
}

/* Theme: Zinc */
html[data-theme="zinc"] {
  --p: #a1a1aa;
  --p2: #f4f4f5;
  --p-soft: rgba(161,161,170,.14);
  --glow1: rgba(161,161,170,.22);
  --glow2: rgba(244,244,245,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  transition: background .6s ease, color .6s ease;
}

body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

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

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--p), var(--p2)); border-radius: 8px; }

.gradient-text {
  background: linear-gradient(100deg, var(--p), var(--p2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===================== PRELOADER ===================== */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { animation: pulseGlow 1.4s ease-in-out infinite; }
.preloader-logo svg { filter: drop-shadow(0 0 22px var(--glow1)); }
.preloader-text {
  margin-top: 16px; font-size: 1.5rem; font-weight: 800; letter-spacing: .35em;
  background: linear-gradient(100deg, var(--p), var(--p2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.preloader-sub { color: var(--muted); font-size: .82rem; margin-top: 6px; letter-spacing: .2em; }
.preloader-bar {
  width: 240px; height: 4px; margin: 20px auto 0; border-radius: 4px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--p), var(--p2));
  animation: loadbar 1.6s ease forwards;
}
@keyframes loadbar { to { width: 100%; } }
@keyframes pulseGlow {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: .85; }
}

/* ===================== NAVBAR ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: var(--navbg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.nav.hidden-nav { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--p), var(--p2));
  display: grid; place-items: center; font-weight: 800; color: #fff;
  box-shadow: 0 6px 22px var(--glow1);
  transition: transform .3s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand-text span { color: var(--p); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 14px; border-radius: 10px; font-size: .9rem; color: var(--muted);
  transition: color .25s ease, background .25s ease; position: relative; font-weight: 500;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--card2); }
.nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--p), var(--p2));
}
.book-cta {
  margin-left: 10px; padding: 10px 18px; border-radius: 12px; font-weight: 600;
  color: #fff !important;
  background: linear-gradient(120deg, var(--p), var(--p2));
  box-shadow: 0 8px 26px var(--glow1);
}
.book-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--glow1); }

.nav-tools { display: flex; align-items: center; gap: 12px; }

/* theme switcher */
.theme-wrap { position: relative; }
.theme-btn {
  width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: transform .25s ease, border-color .25s ease;
}
.theme-btn:hover { transform: rotate(20deg); border-color: var(--p); }
.theme-swatch {
  position: absolute; top: 6px; left: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--p2));
  box-shadow: 0 0 10px var(--glow1);
}
.theme-pop {
  position: absolute; top: 54px; right: 0; width: 230px; padding: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  backdrop-filter: blur(20px); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  transform-origin: top right;
}
.theme-pop.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.theme-pop-title { font-size: .78rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: transparent; border: 1px solid transparent; color: var(--text);
  font-size: .82rem; cursor: pointer; font-family: inherit;
  transition: background .2s ease, border-color .2s ease;
}
.theme-item:hover { background: var(--card2); border-color: var(--border); }
.theme-item i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.theme-item.active { border-color: var(--p); background: var(--p-soft); }

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

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  padding: 110px 0 70px;
}
.hero #particles, #particles {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; animation: floatGlow 8s ease-in-out infinite alternate; }
.hero-glow.g1 { width: 480px; height: 480px; top: -120px; left: -100px; background: var(--glow1); }
.hero-glow.g2 { width: 420px; height: 420px; bottom: -100px; right: -80px; background: var(--glow2); animation-delay: 2s; }
@keyframes floatGlow { from { transform: translateY(0) scale(1);} to { transform: translateY(40px) scale(1.12);} }

/* 3D INTRO STAGE */
.intro-3d-stage {
  min-height: 75vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
  padding: 30px 20px;
  z-index: 2;
}

.intro-flip-board {
  width: min(820px, 92vw);
  height: 200px;
  perspective: 1200px;
  cursor: pointer;
  z-index: 10;
  margin: 20px 0;
}

.flip-board-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  transform: rotateX(15deg) rotateY(-5deg);
}

.intro-flip-board.flipped .flip-board-inner {
  transform: rotateX(0deg) rotateY(180deg);
}

.flip-board-front, .flip-board-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), inset 0 0 25px rgba(255,255,255,0.05);
}

.flip-board-front {
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.9), rgba(10, 10, 24, 0.95));
  border-color: rgba(124, 92, 240, 0.4);
}

.flip-board-front h2 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 60px var(--p);
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
}

.flip-board-back {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(10, 10, 24, 0.95));
  border-color: rgba(16, 185, 129, 0.5);
  transform: rotateY(180deg);
}

.flip-board-back h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(120deg, #FFFFFF, var(--p));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.flip-board-back p {
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
}

/* Floating Skills Cloud */
.floating-skills-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.cloud-chip {
  position: absolute;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  animation: floatCloud 6s ease-in-out infinite alternate;
}

.c-1 { top: 12%; left: 12%; animation-delay: 0s; color: #64B5F6; }
.c-2 { top: 18%; right: 14%; animation-delay: 1.2s; color: #81C784; }
.c-3 { bottom: 22%; left: 8%; animation-delay: 2.4s; color: #FFB74D; }
.c-4 { bottom: 18%; right: 10%; animation-delay: 3.6s; color: #38bdf8; }
.c-5 { top: 48%; left: 4%; animation-delay: 4.8s; color: #4DD0E1; }
.c-6 { top: 48%; right: 4%; animation-delay: 1.8s; color: #FFD54F; }
.c-7 { top: 8%; left: 45%; animation-delay: 0.6s; color: #A5D6A7; }
.c-8 { bottom: 10%; left: 42%; animation-delay: 3s; color: #7dd3fc; }

@keyframes floatCloud {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
  100% { transform: translateY(8px) rotate(-2deg); }
}

.intro-scroll-hint {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hint-arrow {
  font-size: 1.3rem;
  color: var(--p);
  animation: bounceDown 1.8s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(8px); opacity: 1; }
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: gridMove 18s linear infinite;
}
@keyframes gridMove { from { background-position: 0 0, 0 0; } to { background-position: 0 60px, 60px 0; } }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 100px; font-size: .8rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  margin-bottom: 22px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; position: relative; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #22c55e; animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1;} 100% { transform: scale(1.5); opacity: 0;} }

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.08; font-weight: 800; }
.hero h1 .hi { display: block; font-size: 1.15rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-bottom: 8px; font-family: 'Sora', sans-serif; }
.hero h1 .name { font-family: 'Playfair Display', serif; }
.hero-role { font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 700; margin: 18px 0 16px; min-height: 2.2em; color: var(--p); }
.cursor { display: inline-block; margin-left: 3px; animation: blink 1s step-end infinite; color: var(--p2); }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc { color: var(--muted); max-width: 560px; font-size: 1.02rem; }
.hero-desc strong { color: var(--text); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  position: relative; overflow: hidden;
}
.btn svg { flex: none; }
.btn-primary {
  background: linear-gradient(120deg, var(--p), var(--p2)); color: #fff;
  box-shadow: 0 10px 34px var(--glow1);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px var(--glow1); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28), transparent 70%);
  transform: translateX(-100%); transition: transform .6s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--p); color: var(--p); transform: translateY(-3px); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--p); box-shadow: 0 8px 26px var(--glow1); }
.btn-wa { background: linear-gradient(120deg,#25d366,#128c7e); color:#fff; box-shadow: 0 10px 30px rgba(37,211,102,.3); }
.btn-wa:hover { transform: translateY(-3px); }
.btn-block { width: 100%; }

.hero-quick { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.q-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.q-item .q-ico { color: var(--p); font-weight: 700; }

/* hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.portrait-frame { position: relative; width: min(360px, 88%); aspect-ratio: 1; }
.portrait {
  position: absolute; inset: 8%; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px var(--glow1);
  animation: breathe 6s ease-in-out infinite;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes breathe { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.portrait-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px dashed var(--p); opacity: .5;
  animation: spin 26s linear infinite;
}
.ring-1 { inset: 0; }
.ring-2 { inset: -8%; border-color: var(--p2); animation-duration: 40s; animation-direction: reverse; opacity: .3; }
.ring-3 { inset: 4%; border-style: solid; border-width: 1px; opacity: .18; animation-duration: 60s; }
@keyframes spin { to { transform: rotate(360deg); } }

.p-card {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(12px); padding: 11px 15px; border-radius: 14px;
  box-shadow: var(--shadow); animation: floatCard 4.5s ease-in-out infinite;
  z-index: 3;
}
.p-card b { display: block; font-size: .86rem; }
.p-card small { color: var(--muted); font-size: .68rem; }
.mini-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--p), var(--p2));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem;
}
.p-card-top { top: 2%; right: -8%; animation-delay: .4s; }
.p-card-right { right: -16%; bottom: 24%; animation-delay: 1.4s; }
.p-card-left { left: -14%; bottom: 8%; animation-delay: 2.2s; }
@keyframes floatCard { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.hero-wave { position: absolute; bottom: -4px; left: 0; right: 0; z-index: 3; }
.hero-wave svg { width: 100%; height: 54px; }
.hero-wave path { fill: var(--bg); transition: fill .6s ease; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  text-align: center; color: var(--muted); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
}
.mouse { width: 24px; height: 38px; border: 2px solid var(--border); border-radius: 14px; margin: 8px auto 0; position: relative; }
.wheel { width: 4px; height: 8px; border-radius: 4px; background: var(--p); position: absolute; left: 50%; top: 7px; transform: translateX(-50%); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0);} 100% { opacity: 0; transform: translate(-50%, 14px);} }

/* ===================== MARQUEE ===================== */
.marquee {
  overflow: hidden; padding: 22px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg2); position: relative; z-index: 2;
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span {
  font-weight: 700; font-size: 1.05rem; color: var(--muted); white-space: nowrap;
  display: flex; align-items: center; gap: 12px; letter-spacing: .04em;
}
.marquee-track span::before { content: '◆'; color: var(--p); font-size: .6rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================== SECTION BASE ===================== */
.section { padding: 65px 0; position: relative; }
.about, .services, .achievements, .education { background: var(--bg2); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sec-kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--p); border: 1px solid var(--border); background: var(--card);
  padding: 7px 18px; border-radius: 100px; margin-bottom: 18px;
}
.sec-title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; line-height: 1.15; }
.sec-sub { color: var(--muted); margin-top: 14px; }

/* ===================== ABOUT ===================== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-photo { position: relative; }
.about-img-frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/4.6;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.about-img-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%);
}
.about-exp-badge {
  position: absolute; right: -14px; top: 26px; z-index: 2;
  background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff;
  padding: 14px 18px; border-radius: 16px; text-align: center; box-shadow: 0 14px 34px var(--glow1);
  animation: floatCard 5s ease-in-out infinite;
}
.about-exp-badge b { font-size: 1.5rem; display: block; }
.about-exp-badge span { font-size: .66rem; letter-spacing: .06em; }
.about-langs {
  position: absolute; bottom: 24px; left: 24px; z-index: 2;
  display: flex; gap: 8px;
}
.about-langs span {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff;
}
.about-content h3 { font-size: 1.6rem; margin-bottom: 18px; }
.about-content p { color: var(--muted); margin-bottom: 16px; }
.about-content p strong { color: var(--text); }
.about-facts { display: grid; gap: 12px; margin: 22px 0 28px; }
.about-facts li {
  display: flex; gap: 10px; align-items: flex-start; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); padding: 13px 16px; border-radius: 13px;
}
.about-facts li span { color: var(--p); font-size: 1.1rem; }
.about-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================== FINANCIAL FLOWCHART ===================== */
.flow-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(7, 13, 30, 0.98));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flowchart-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .flowchart-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

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

.flow-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px 18px;
  position: relative;
  text-align: center;
  backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.flow-step-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--p);
  box-shadow: 0 16px 40px var(--glow1);
  background: rgba(255, 255, 255, 0.08);
}

.step-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--p);
  background: var(--p-soft);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 14px;
}

.flow-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin: 0 auto 14px auto;
  box-shadow: 0 10px 25px var(--glow1);
}

.flow-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.flow-step-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.flow-arrow {
  position: absolute;
  right: -12px;
  top: 45%;
  font-size: 1.1rem;
  color: var(--p);
  z-index: 10;
}

@media (max-width: 1024px) {
  .flow-arrow { display: none; }
}

/* ===================== STATS ===================== */
.stats {
  background: linear-gradient(135deg, var(--p-soft), transparent);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 70px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; }
.stat { text-align: center; position: relative; }
.stat .stat-num {
  display: inline-block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  background: linear-gradient(100deg, var(--p), var(--p2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .plus { font-size: 1.6rem; font-weight: 800; color: var(--p2); }
.stat p { color: var(--muted); font-size: .8rem; margin-top: 6px; letter-spacing: .04em; }

/* ===================== SKILLS ===================== */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 44px; margin-bottom: 70px; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .92rem; font-weight: 600; }
.skill-top b { color: var(--p); }
.bar {
  height: 9px; border-radius: 6px; background: rgba(255,255,255,.07);
  overflow: hidden; position: relative;
}
.bar i {
  display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--p), var(--p2));
  box-shadow: 0 0 16px var(--glow1);
  transition: width 1.4s cubic-bezier(.25,1,.3,1);
}

.tools { text-align: center; }
.tools-title { font-size: 1.35rem; margin-bottom: 26px; }
.tools-list { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tool-chip {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  font-weight: 600; font-size: .9rem;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  animation: chipIn .6s both; animation-delay: var(--tl);
}
.tool-chip:hover {
  transform: translateY(-5px); border-color: var(--p);
  box-shadow: 0 12px 30px var(--glow1);
}
@keyframes chipIn { from { opacity: 0; transform: translateY(16px) scale(.92);} to { opacity: 1; transform: translateY(0) scale(1);} }
.tool-logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
}

/* ===================== SERVICES ===================== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 60px; }
.service {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 24px; position: relative; overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.service::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--p), var(--p2));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service:hover { transform: translateY(-8px); border-color: var(--p); box-shadow: 0 22px 50px rgba(0,0,0,.4), 0 0 0 1px var(--p-soft); }
.service:hover::before { transform: scaleX(1); }
.s-ico {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px;
  background: var(--p-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 1.5rem; color: var(--p);
  transition: transform .3s ease;
}
.service:hover .s-ico { transform: rotate(-8deg) scale(1.1); }
.service h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .86rem; margin-bottom: 18px; }
.book-link { color: var(--p); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.book-link:hover { gap: 10px; }

.freelance-banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: linear-gradient(120deg, var(--p-soft), var(--card));
  border: 1px solid var(--border); border-radius: 24px; padding: 34px 38px;
  position: relative; overflow: hidden;
}
.freelance-banner::before {
  content: 'WORLDWIDE'; position: absolute; right: -20px; bottom: -34px;
  font-size: 5.4rem; font-weight: 800; color: rgba(255,255,255,.035); letter-spacing: .06em; white-space: nowrap;
}
.fb-icon {
  width: 78px; height: 78px; border-radius: 22px; flex: none;
  background: linear-gradient(135deg, var(--p), var(--p2));
  display: grid; place-items: center; font-size: 2.1rem;
  box-shadow: 0 16px 40px var(--glow1); animation: floatCard 5s ease-in-out infinite;
}
.freelance-banner h3 { font-size: 1.4rem; margin-bottom: 8px; }
.freelance-banner p { color: var(--muted); font-size: .94rem; max-width: 640px; }

/* ===================== EXPERIENCE TIMELINE ===================== */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.t-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  z-index: 1;
}

/* Glowing Scroll Progress Line */
.t-line-progress {
  position: absolute; left: 50%; top: 0; height: 0%; width: 4px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--p), var(--p2), #38bdf8, #eab308);
  box-shadow: 0 0 15px var(--p), 0 0 25px var(--glow1);
  border-radius: 4px;
  z-index: 2;
  transition: height 0.08s linear;
}

/* Glowing Pulse Tip at bottom of light line */
.t-line-progress::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 24px var(--p), 0 0 35px var(--p2);
  animation: pulseTip 1.2s ease-in-out infinite alternate;
}

@keyframes pulseTip {
  from { transform: translateX(-50%) scale(0.9); box-shadow: 0 0 10px #ffffff, 0 0 20px var(--p); }
  to   { transform: translateX(-50%) scale(1.3); box-shadow: 0 0 18px #ffffff, 0 0 32px var(--p2), 0 0 45px var(--p); }
}

.t-item { 
  position: relative; 
  width: 50%; 
  padding: 0 44px 22px; 
  perspective: 1000px;
}
.t-item:nth-child(odd) { left: 0; text-align: right; }
.t-item:nth-child(even) { left: 50%; text-align: left; }

.t-dot {
  position: absolute; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--border);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
  z-index: 3;
  transition: all 0.4s ease;
}

.t-dot.active-dot {
  border-color: var(--p);
  background: #ffffff;
  box-shadow: 0 0 0 6px var(--p-soft), 0 0 25px var(--glow1), 0 0 35px var(--p);
  transform: scale(1.25);
}
.t-item:nth-child(odd) .t-dot { right: -7.5px; }
.t-item:nth-child(even) .t-dot { left: -7.5px; }
.t-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px 26px; 
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease, border-color .3s ease, box-shadow .3s ease;
  opacity: 0;
}

.t-item:nth-child(odd) .t-card {
  transform: rotateY(-35deg) translateX(-50px) scale(0.9);
}

.t-item:nth-child(even) .t-card {
  transform: rotateY(35deg) translateX(50px) scale(0.9);
}

.t-item.in .t-card {
  opacity: 1;
  transform: rotateY(0deg) translateX(0) scale(1);
}

.t-card:hover { transform: translateY(-6px) scale(1.02) !important; border-color: var(--p); box-shadow: 0 20px 45px rgba(0,0,0,.5); }
.t-card.current-role {
  border-color: var(--p);
  background: linear-gradient(135deg, var(--p-soft), var(--card));
  box-shadow: 0 16px 44px var(--glow1);
}
.t-card.current-role .t-period {
  color: #fff;
  background: linear-gradient(120deg, var(--p), var(--p2));
  border-color: transparent;
}
.t-card.current-role .t-period::before {
  content: '● ';
  animation: pulse 1.6s ease-out infinite;
}
.t-period {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  color: var(--p); background: var(--p-soft); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 12px;
}
.t-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.t-org { color: var(--p2); font-size: .84rem; font-weight: 600; display: block; margin-bottom: 10px; }
.t-card p { color: var(--muted); font-size: .86rem; }
.t-list { display: grid; gap: 7px; margin-top: 8px; }
.t-list li {
  color: var(--muted); font-size: .84rem; position: relative; padding-left: 18px; line-height: 1.5;
}
.t-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--p), var(--p2));
}

/* ===================== ACHIEVEMENTS ===================== */
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ach {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; text-align: center; position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.ach:hover { transform: translateY(-6px); border-color: var(--p); }
.ach::after {
  content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%;
  background: var(--glow1); filter: blur(46px); top: -30px; right: -30px; opacity: .4;
}
.ach-num { font-size: 2.4rem; font-weight: 800; font-family: 'Playfair Display', serif; display: block; margin-bottom: 10px; }
.ach p { color: var(--muted); font-size: .9rem; }

/* ===================== EDUCATION ===================== */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.edu {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 28px; text-align: center; transition: transform .3s ease, border-color .3s ease;
}
.edu:hover { transform: translateY(-6px); border-color: var(--p); }
.edu-ico {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px;
  background: var(--p-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 1.7rem;
}
.edu h3 { font-size: 1.15rem; margin-bottom: 6px; }
.edu span { color: var(--p); font-size: .84rem; font-weight: 600; display: block; margin-bottom: 12px; }
.edu p { color: var(--muted); font-size: .88rem; }

/* ===================== BOOKING ===================== */
.booking-wrap {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px;
  background: var(--card); border: 1px solid var(--border); border-radius: 26px;
  padding: 40px; box-shadow: var(--shadow);
}
.booking-form { display: grid; gap: 18px; }
.booking-form label { font-size: .86rem; font-weight: 600; color: var(--muted); display: block; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; margin-top: 8px; padding: 13px 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: .92rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: none; border-color: var(--p); box-shadow: 0 0 0 4px var(--p-soft);
}
.booking-form select option { background: var(--bg); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-actions { margin-top: 6px; }
.form-note { text-align: center; color: var(--muted); font-size: .78rem; }

.booking-side { display: flex; flex-direction: column; gap: 20px; }
.b-why {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
}
.b-why h3 { font-size: 1.1rem; margin-bottom: 16px; }
.b-why ul { display: grid; gap: 11px; }
.b-why li { color: var(--muted); font-size: .88rem; }
.b-contact { display: grid; gap: 12px; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.c-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 24px; text-align: center;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.c-card:hover { transform: translateY(-6px); border-color: var(--p); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.c-ico {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
  background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff;
  display: grid; place-items: center; font-size: 1.35rem; font-weight: 700;
  box-shadow: 0 12px 30px var(--glow1);
}
.c-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.c-card p { color: var(--muted); font-size: .86rem; word-break: break-word; }

/* ===================== FOOTER ===================== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 34px; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 18px; }
.f-brand { display: flex; align-items: center; gap: 14px; }
.f-brand b { display: block; font-size: 1.1rem; }
.f-brand small { color: var(--muted); }
.f-quote { color: var(--muted); font-style: italic; font-size: .95rem; max-width: 560px; }
.f-social { display: flex; gap: 12px; }
.f-social a {
  width: 44px; height: 44px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.f-social a:hover { transform: translateY(-4px); background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; }
.f-copy { color: var(--muted); font-size: .8rem; }

/* ===================== TO TOP ===================== */
.to-top {
  position: fixed;
  right: 32px;
  bottom: 100px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 10px 30px var(--glow1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s, box-shadow .3s ease, background .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 15px 40px var(--glow1), 0 0 20px var(--p);
  border-color: #ffffff;
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

/* ===================== EXECUTIVE FINANCE CHARTS ===================== */
.finance-charts-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.charts-dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  margin-top: 36px;
}

@media (max-width: 992px) {
  .charts-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(16px);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.chart-card:hover {
  transform: translateY(-6px);
  border-color: var(--p);
  box-shadow: 0 20px 45px var(--glow1);
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.chart-card-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.chart-card-header p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 4px;
}

.badge-growth {
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(124, 92, 240, 0.15);
  color: var(--p);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

.svg-chart-container {
  width: 100%;
  padding: 10px 0;
}

.finance-trend-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0 6px;
}

.kpi-bars-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.kpi-bar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.kpi-info b {
  color: var(--p);
}

.kpi-progress {
  height: 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.kpi-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--p), var(--p2));
  box-shadow: 0 0 12px var(--glow1);
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== FINANCE DASHBOARD & ACCOUNTS CHARTS ===================== */
.finance-kpi-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.fin-summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.fin-summary-card:hover {
  transform: translateY(-4px);
  border-color: var(--p);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px var(--glow1);
}

.fin-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.fin-label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
  display: block;
}

.fin-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0;
}

.fin-trend {
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-block;
}

.fin-trend.positive { color: #10b981; }

.fin-subtext {
  font-size: 0.74rem;
  color: var(--muted);
}

.chart-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.c-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.c-tab:hover { color: #fff; }
.c-tab.active {
  background: var(--p);
  color: #fff;
  box-shadow: 0 2px 10px var(--glow1);
}

.chart-legend-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.dot-legend {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Donut Chart Layout */
.donut-chart-flex {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.donut-svg-container {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  margin: 0 auto;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.d-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.d-sub {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

.donut-breakdown-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
}

.donut-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

.d-color {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.d-title {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.donut-item b {
  font-size: 0.8rem;
  color: #ffffff;
}

/* VAT Bar Chart */
.vat-bar-chart {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 160px;
  margin-top: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.vat-q-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.vat-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
}

.v-bar {
  width: 20px;
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height 0.8s ease;
  display: flex;
  justify-content: center;
}

.out-vat {
  background: linear-gradient(180deg, #0ea5e9, rgba(14,165,233,0.3));
  box-shadow: 0 0 10px rgba(14,165,233,0.4);
}

.in-vat {
  background: linear-gradient(180deg, #10b981, rgba(16,185,129,0.3));
  box-shadow: 0 0 10px rgba(16,185,129,0.4);
}

.v-val {
  position: absolute;
  top: -18px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.v-q-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { order: -1; }
  .p-card-top { right: 2%; }
  .p-card-right { right: -4%; }
  .p-card-left { left: -4%; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px;
    background: var(--navbg); backdrop-filter: blur(20px);
    padding: 20px; border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .4s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { width: 100%; text-align: center; padding: 14px; font-size: 1rem; }
  .book-cta { margin: 12px 0 0; width: 100%; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-img-frame { max-width: 380px; margin: 0 auto; }
  .booking-wrap { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .freelance-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .t-line { left: 18px; transform: none; }
  .t-item { width: 100%; left: 0 !important; padding: 0 0 18px 45px; text-align: left !important; }
  .t-dot { left: 10px !important; right: auto !important; }
  .t-item:nth-child(odd) .t-card,
  .t-item:nth-child(even) .t-card {
    transform: translateY(24px) scale(0.96);
  }
  .t-item.in .t-card {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 620px) {
  .section { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .p-card { padding: 8px 11px; }
  .p-card-right { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-quick { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .container { width: 94%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .stat .stat-num { font-size: 1.65rem; }
  .stat p { font-size: 0.74rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .about-facts li { font-size: 0.8rem; padding: 10px 12px; }
  .freelance-banner { padding: 22px 18px; }
  .modal-content, .hire-modal { padding: 24px 18px; }
}
