/* =====================================================
   PROSPER TECH — Portfolio Stylesheet
   Author: Prosper Tech Studio
   ===================================================== */

/* ---------- 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;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea { font: inherit; color: inherit; }

/* ---------- THEME TOKENS (DARK DEFAULT) ---------- */
:root, body.dark-mode {
  --bg: #05060f;
  --bg-2: #0a0d1f;
  --surface: rgba(20, 24, 48, 0.55);
  --surface-2: rgba(30, 35, 65, 0.55);
  --border: rgba(140, 160, 255, 0.12);
  --border-strong: rgba(140, 160, 255, 0.25);
  --text: #e7eaf6;
  --text-muted: #a3a8c3;
  --text-dim: #6e7494;
  --primary: #6366f1;
  --primary-2: #a855f7;
  --accent: #22d3ee;
  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,.15), rgba(168,85,247,.15));
  --shadow-glow: 0 10px 40px -10px rgba(99, 102, 241, .5);
  --shadow-card: 0 20px 60px -20px rgba(0,0,0,.6);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
}

body.light-mode {
  --bg: #f6f7fc;
  --bg-2: #ffffff;
  --surface: rgba(255,255,255,.7);
  --surface-2: rgba(255,255,255,.85);
  --border: rgba(20, 24, 80, 0.1);
  --border-strong: rgba(20, 24, 80, 0.2);
  --text: #0e1130;
  --text-muted: #4b5174;
  --text-dim: #7a809e;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.section { padding: 120px 0; position: relative; z-index: 2; }
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--grad-soft);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -10px rgba(99,102,241,.7); }
.btn-outline {
  border-color: var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- BACKGROUND DECOR ---------- */
.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .4;
  z-index: 0;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: #6366f1; top: -140px; left: -120px; }
.orb-2 { width: 520px; height: 520px; background: #a855f7; top: 40%; right: -160px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #22d3ee; bottom: -120px; left: 30%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.08); }
}

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: radial-gradient(circle at center, #0a0d1f 0%, #05060f 70%);
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; padding: 0 24px; max-width: 480px; width: 100%; }
.preloader-logo {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800;
  color: #fff; margin-bottom: 36px;
}
.logo-mark {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff; font-weight: 800;
  position: relative;
  box-shadow: var(--shadow-glow);
}
.logo-mark.sm { width: 36px; height: 36px; border-radius: 10px; font-size: .95rem; }
.logo-mark i {
  position: absolute; right: -6px; bottom: -6px;
  font-size: .7rem; background: #fff; color: var(--primary);
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
}
.preloader-bar-wrap {
  width: 100%; height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 999px; overflow: hidden; margin-bottom: 20px;
}
.preloader-bar {
  height: 100%; width: 0%;
  background: var(--grad);
  border-radius: 999px;
  transition: width .15s linear;
  box-shadow: 0 0 18px rgba(99,102,241,.6);
}
.preloader-counter {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.03em; line-height: 1;
}
.preloader-tag { color: var(--text-muted); margin-top: 14px; font-size: .9rem; letter-spacing: .15em; text-transform: uppercase; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .3s ease;
  background: rgba(5, 6, 15, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(5, 6, 15, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.25rem;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .92rem; font-weight: 500;
  color: var(--text-muted);
  transition: all .3s ease;
  position: relative;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); background: var(--grad-soft); border: 1px solid var(--border-strong); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .3s ease;
  color: var(--text);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(20deg); }
.hamburger {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s ease, opacity .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;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .35;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,15,.4) 0%, rgba(5,6,15,.85) 60%, var(--bg) 100%);
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 64px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: .85rem; color: var(--text-muted);
  background: var(--surface);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.typed-wrap { display: inline-flex; align-items: baseline; }
.typed { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { color: var(--accent); margin-left: 4px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
}
.lede strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 48px;
}
.hero-meta {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 36px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-meta span { font-size: .85rem; color: var(--text-muted); }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.profile-ring {
  position: relative;
  width: min(420px, 85vw); aspect-ratio: 1;
  display: grid; place-items: center;
}
.profile-glow {
  position: absolute; inset: -30px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #22d3ee, #6366f1, #a855f7, #22d3ee);
  filter: blur(40px); opacity: .5;
  animation: rotate 12s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.profile-img {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px -10px rgba(0,0,0,.6);
}
.profile-img img { width: 100%; height: 100%; object-fit: cover; }
.floating-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow-card);
  animation: floatChip 6s ease-in-out infinite;
}
.floating-chip i { color: var(--accent); font-size: 1.1rem; }
.chip-1 { top: 10%; left: -10%; animation-delay: 0s; }
.chip-2 { top: 18%; right: -10%; animation-delay: -1.5s; }
.chip-3 { bottom: 18%; left: -14%; animation-delay: -3s; }
.chip-4 { bottom: 10%; right: -8%; animation-delay: -4.5s; }
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 32px;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  display: grid; place-items: start center;
  padding-top: 6px;
  z-index: 3;
}
.scroll-cue span {
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--text);
  animation: scrollCue 2s ease infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(-2px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}
.about-img img { aspect-ratio: 4/5; object-fit: cover; transition: transform .8s ease; }
.about-img:hover img { transform: scale(1.05); }
.badge-experience {
  position: absolute; bottom: 24px; right: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.badge-experience .num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge-experience .lbl { font-size: .8rem; color: var(--text-muted); line-height: 1.2; }

.about-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.25;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-list { margin: 24px 0 28px; display: grid; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.about-list i { color: var(--accent); }
.about-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 28px;
}
.about-info span:first-child { color: var(--text-dim); margin-right: 6px; }
.status-on { color: #22c55e; font-weight: 600; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- STATS ---------- */
.stats-section { padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.stat { text-align: center; padding: 12px; }
.stat i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.stat .counter, .stat .plus {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat p { color: var(--text-muted); font-size: .9rem; margin-top: 6px; }

/* ---------- SKILLS ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.skill-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0;
  transition: opacity .4s ease;
}
.skill-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.skill-card:hover::before { opacity: 1; }
.skill-card > * { position: relative; z-index: 1; }
.skill-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.skill-head i {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 1.3rem;
}
.skill-head h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.3rem; }
.skill-list { display: grid; gap: 18px; }
.skill-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.skill-item span:first-child { color: var(--text); font-weight: 500; font-size: .92rem; }
.skill-item span:nth-child(2) { color: var(--accent); font-weight: 600; font-size: .85rem; }
.skill-item .bar {
  grid-column: 1 / -1;
  width: 100%; height: 6px;
  background: rgba(255,255,255,.05);
  border-radius: 999px; overflow: hidden;
}
.skill-item .bar > div {
  width: 0;
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 1.5s cubic-bezier(.2,.8,.2,1);
}

/* Marquee */
.tech-marquee {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 50px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-track i { font-size: 1.6rem; color: var(--accent); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- PROJECTS ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 500; font-size: .9rem;
  transition: all .3s ease;
  backdrop-filter: blur(10px);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .4s ease;
  display: flex; flex-direction: column;
  animation: fadeUp .6s ease both;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.project-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.project-card:hover .project-img img { transform: scale(1.1); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,6,15,.95) 100%);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 16px;
  opacity: 0; transition: opacity .3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay .icon-btn {
  width: 42px; height: 42px;
  background: var(--grad);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: transform .3s ease;
}
.project-overlay .icon-btn:hover { transform: scale(1.1) rotate(15deg); }
.project-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-cat {
  font-size: .75rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 8px;
}
.project-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 10px;
}
.project-body p { color: var(--text-muted); font-size: .92rem; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.project-tags span {
  padding: 4px 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .72rem;
  color: var(--text);
}
.project-actions { display: flex; gap: 10px; margin-top: auto; }
.project-actions .btn { padding: 10px 18px; font-size: .85rem; flex: 1; justify-content: center; }
.project-card.hide { display: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- VIDEO SHOWCASE ---------- */
.video-showcase {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
  margin: 60px 0;
}
.video-showcase video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,.85), rgba(168,85,247,.6), rgba(5,6,15,.85));
  z-index: 1;
}
.video-content { z-index: 2; }
.video-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800;
  color: #fff; margin: 16px 0 18px;
}
.video-content p { color: rgba(255,255,255,.85); max-width: 580px; margin: 0 auto 32px; font-size: 1.05rem; }
.play-btn { margin: 0 auto; }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute;
  bottom: -50%; right: -50%;
  width: 200px; height: 200px;
  background: var(--grad);
  filter: blur(80px);
  opacity: 0; transition: opacity .4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.service-card:hover::after { opacity: .25; }
.service-card > * { position: relative; z-index: 1; }
.service-icon {
  width: 64px; height: 64px;
  background: var(--grad);
  border-radius: 18px;
  display: grid; place-items: center;
  color: #fff; font-size: 1.6rem;
  margin-bottom: 22px;
  box-shadow: var(--shadow-glow);
  transition: transform .4s ease;
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-6deg); }
.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 12px;
}
.service-card p { color: var(--text-muted); margin-bottom: 20px; font-size: .95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: .9rem;
  transition: gap .3s ease;
}
.card-link:hover { gap: 14px; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-slider {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 56px;
}
.testimonial-track {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
}
.testimonial-slide {
  min-width: 100%;
  transition: transform .6s ease;
  padding: 8px;
}
.testimonial-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 48px;
  backdrop-filter: blur(14px);
}
.testimonial-card .quote {
  font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
}
.testimonial-meta { display: flex; align-items: center; gap: 14px; }
.testimonial-meta img {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}
.testimonial-meta strong { display: block; }
.testimonial-meta span { color: var(--text-muted); font-size: .85rem; }
.slider-btn {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  transition: all .3s ease;
  z-index: 2;
}
.slider-btn:hover { background: var(--grad); border-color: transparent; color: #fff; }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: all .3s ease;
}
.slider-dots button.active { background: var(--grad); width: 28px; border-radius: 999px; }

/* ---------- BLOG ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .4s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.blog-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.blog-card:hover .blog-img img { transform: scale(1.08); }
.blog-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px;
  background: var(--grad);
  color: #fff;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px;
}
.blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: .8rem; color: var(--text-dim); margin-bottom: 12px; }
.blog-meta i { margin-right: 4px; }
.blog-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}
.blog-body p { color: var(--text-muted); font-size: .92rem; margin-bottom: 18px; flex: 1; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
}
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }
.contact-list { display: grid; gap: 18px; margin-bottom: 32px; }
.contact-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-list i {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--grad);
  border-radius: 12px;
  color: #fff;
  flex-shrink: 0;
}
.contact-list strong { display: block; font-size: .8rem; color: var(--text-dim); font-weight: 500; }
.contact-list span { font-weight: 500; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: all .3s ease;
}
.social-row a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-3px); }

.contact-form {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: .85rem; font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .3s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34,211,238,.1);
  background: rgba(255,255,255,.05);
}
.field .error { display: block; color: #f87171; font-size: .8rem; margin-top: 6px; min-height: 16px; }
.form-status { margin-top: 16px; text-align: center; font-weight: 500; min-height: 20px; }
.form-status.success { color: #22c55e; }
.form-status.error { color: #f87171; }

/* ---------- FOOTER ---------- */
.footer {
  position: relative; z-index: 2;
  background: rgba(5, 6, 15, 0.85);
  border-top: 1px solid var(--border);
  padding: 80px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-col p { color: var(--text-muted); font-size: .92rem; margin: 16px 0 20px; }
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col ul a { color: var(--text-muted); transition: color .3s ease; font-size: .92rem; }
.footer-col ul a:hover { color: var(--accent); }
.newsletter-form {
  display: flex; gap: 8px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-top: 14px;
}
.newsletter-form input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 10px 16px; font-size: .9rem;
}
.newsletter-form button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.newsletter-form button:hover { transform: scale(1.05); }
.newsletter-status { display: block; margin-top: 8px; font-size: .8rem; color: #22c55e; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-dim); font-size: .85rem;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  animation: fadeIn .3s ease;
}
.modal-card {
  position: relative;
  width: 100%; max-width: 760px; max-height: 90vh;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden auto;
  box-shadow: var(--shadow-card);
  animation: slideUp .4s cubic-bezier(.2,.8,.2,1);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--grad); }
.modal-body img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.modal-body .modal-content { padding: 32px; }
.modal-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem; font-weight: 700; margin-bottom: 12px;
}
.modal-body .project-tags { margin: 14px 0; }
.modal-body p { color: var(--text-muted); margin-bottom: 16px; }
.modal-body ul { display: grid; gap: 8px; margin-bottom: 24px; }
.modal-body ul li { display: flex; gap: 10px; color: var(--text-muted); }
.modal-body ul li i { color: var(--accent); margin-top: 4px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .profile-ring { width: 280px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .skills-grid, .services-grid, .blog-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hide-sm { display: none; }
  .nav-links {
    position: fixed; top: 70px; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch;
    padding: 16px;
    background: rgba(5,6,15,.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transform: translateY(-20px);
    opacity: 0; pointer-events: none;
    transition: all .3s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 14px 18px; }
  .hamburger { display: flex; }
  .skills-grid, .services-grid, .blog-grid, .projects-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 28px 22px; }
  .testimonial-slider { padding: 0; }
  .slider-btn.prev { left: -8px; }
  .slider-btn.next { right: -8px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .preloader-counter { font-size: 2.6rem; }
}
