/* ============================================================
   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: Violet (default) */
html[data-theme="violet"] {
  --p: #7c5cf0;
  --p2: #4f6ef2;
  --p-soft: rgba(124,92,240,.14);
  --glow1: rgba(124,92,240,.35);
  --glow2: rgba(79,110,242,.25);
}

/* 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; align-items: center; overflow: hidden;
  padding: 130px 0 90px;
}
.hero #particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.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);} }
.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: 110px 0; position: relative; }
.about, .services, .achievements, .education { background: var(--bg2); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.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; }

/* ===================== 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: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--p), var(--p2), transparent);
  opacity: .35;
}
.t-item { position: relative; width: 50%; padding: 0 44px 54px; }
.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: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--p);
  box-shadow: 0 0 0 5px var(--p-soft), 0 0 18px var(--glow1);
  z-index: 2;
}
.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; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.t-card:hover { transform: translateY(-5px); border-color: var(--p); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.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: 26px; bottom: 26px; z-index: 300;
  width: 50px; height: 50px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; font-size: 1.2rem;
  box-shadow: 0 12px 30px var(--glow1);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ===================== 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; }

/* ===================== 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: 12px; transform: none; }
  .t-item { width: 100%; left: 0 !important; padding: 0 0 40px 44px; text-align: left !important; }
  .t-dot { left: 4px !important; right: auto !important; }
}

@media (max-width: 620px) {
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .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; }
  .hero-quick { flex-direction: column; gap: 10px; }
}
