/* ═══════════════════════════════════════════════════════════
   MAYANK RAIKWAR — PORTFOLIO  |  styles.css
   Dark UI #09090b · Glassmorphism · Purple/Blue gradient
   Poppins + Inter · Fully responsive · Hostinger-ready
═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #09090b;
  color: #e4e4e7;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: none; border: none; background: none; font: inherit; }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #a855f7, #7c3aed, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Glass / Panel ── */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.25rem;
}
.glass-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Custom Cursor ── */
#cursor-dot {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 8px; height: 8px; border-radius: 50%;
  background: #a855f7;
  transform: translate(-50%,-50%);
  transition: transform .1s ease;
}
#cursor-ring {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(168,85,247,.5);
  transform: translate(-50%,-50%);
  transition: transform .15s ease, width .2s ease, height .2s ease, opacity .2s ease;
}

/* ════════════════════════════════════════════════════════
   LOADING SCREEN
════════════════════════════════════════════════════════ */
#loading-screen {
  position: fixed; inset: 0; z-index: 9000;
  background: #09090b;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease;
}
#loading-screen.exit { opacity: 0; pointer-events: none; }

.loading-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.loading-glow {
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(ellipse, rgba(124,58,237,.22) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulseGlow {
  0%,100% { transform: scale(1);   opacity: .7; }
  50%      { transform: scale(1.12); opacity: 1;  }
}

#loading-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  white-space: nowrap;
  min-height: 1.2em;
}
#loading-cursor {
  display: inline-block;
  color: #a855f7;
  animation: blink .75s step-start infinite;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.loading-bar-wrap {
  width: min(320px, 80vw);
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
#loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #3b82f6);
  border-radius: 99px;
  transition: width .06s linear;
}
#loading-pct {
  font-family: 'Poppins', monospace;
  font-size: .75rem;
  letter-spacing: .18em;
  color: rgba(168,85,247,.8);
}

/* ════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  background: rgba(9,9,11,.8);
  border-bottom: 1px solid rgba(255,255,255,0);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .3s, background .3s;
}
#navbar.scrolled {
  border-color: rgba(255,255,255,.07);
  background: rgba(9,9,11,.92);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .65rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem; font-weight: 700;
}
.nav-logo-badge {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg,#7c3aed,#3b82f6);
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: #fff;
}
.nav-dot { color: #a855f7; }
#desktop-nav {
  display: none;
  gap: .25rem; align-items: center;
}
@media(min-width:900px){ #desktop-nav { display: flex; } }

.nav-link {
  padding: .5rem .85rem; border-radius: .5rem;
  font-size: .9rem; color: #a1a1aa;
  transition: color .2s, background .2s;
}
.nav-link:hover,.nav-link.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta {
  margin-left: .5rem; padding: .5rem 1.1rem; border-radius: .5rem;
  background: linear-gradient(135deg,#7c3aed,#3b82f6);
  color: #fff; font-size: .875rem; font-weight: 600;
  transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); }
.menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: .5rem;
  color: #fff;
}
@media(min-width:900px){ .menu-btn { display: none; } }
#mobile-nav {
  display: none;
  flex-direction: column;
  padding: .75rem 1.5rem 1rem;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(9,9,11,.95);
  gap: .25rem;
}
#mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: .75rem 1rem; border-radius: .5rem;
  font-size: .95rem; color: #a1a1aa;
  transition: color .2s, background .2s;
}
.mobile-nav-link:hover,.mobile-nav-link.active { color: #fff; background: rgba(255,255,255,.06); }

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
#home {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
#three-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.dot-pattern {
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.hero-dot-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .4;
}
.hero-glow-1 {
  position: absolute; z-index: 0;
  top: -20%; left: -15%;
  width: 60%; height: 70%;
  background: radial-gradient(ellipse, rgba(124,58,237,.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute; z-index: 0;
  bottom: -20%; right: -10%;
  width: 55%; height: 65%;
  background: radial-gradient(ellipse, rgba(59,130,246,.15) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px; z-index: 1;
  background: linear-gradient(to bottom, transparent, #09090b);
  pointer-events: none;
}

.hero-content {
  flex: 1; z-index: 2; position: relative;
  max-width: 1280px; width: 100%;
  margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center;
  padding-top: 72px;
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 4rem 0 5rem;
}
/* Two-column layout only when viewport is wide enough for both text + 440px orbit */
@media(min-width:1100px) {
  .hero-grid {
    /* Give orbit column enough space: text gets more, orbit gets 440px min */
    grid-template-columns: 1fr minmax(440px, 1fr);
    gap: 3rem;
    padding: 0;
  }
}

/* Mobile: orbit pehle, text baad me */
@media (max-width: 1099px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    padding: 0px;
    gap: 0px;
  }

  .hero-orbit-wrap {
    order: -1;
  }

      .orbit-scene {
        transform: scale(0.8) !important;
    }

}

/* ── Hero Text ── */
.hero-text { display: flex; flex-direction: column; gap: 1.5rem; }
.avail-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .9rem .4rem .6rem;
  border-radius: 99px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  font-size: .825rem; font-weight: 500; color: #86efac;
  width: fit-content;
}
.avail-dot { position: relative; width: 14px; height: 14px; }
.avail-dot-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid rgba(34,197,94,.4);
  animation: pingRing 2s ease-out infinite;
}
.avail-dot-core {
  position: absolute; inset: 2px; border-radius: 50%;
  background: #22c55e;
}
@keyframes pingRing {
  0%    { transform: scale(1);    opacity: .8; }
  80%   { transform: scale(1.9);  opacity: 0;  }
  100%  { transform: scale(1.9);  opacity: 0;  }
}

.hero-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800; line-height: 1.1; color: #fff;
}
.typewriter-row {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  font-weight: 600; color: #a1a1aa;
  min-height: 2em;
}
.typewriter-cursor {
  display: inline-block; width: 2px; height: 1.2em;
  background: #a855f7;
  margin-left: 3px; vertical-align: text-bottom;
  animation: blink .9s step-start infinite;
}
.hero-desc {
  font-size: 1rem; line-height: 1.7;
  color: #71717a; max-width: 500px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-primary {
  padding: .8rem 1.75rem; border-radius: .625rem;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #fff; font-weight: 600; font-size: .95rem;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(124,58,237,.35);
}
.btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,.5); }
.btn-primary span { display: flex; align-items: center; gap: .5rem; }
.btn-secondary {
  padding: .8rem 1.75rem; border-radius: .625rem;
  border: 1px solid rgba(255,255,255,.15);
  color: #e4e4e7; font-weight: 600; font-size: .95rem;
  background: rgba(255,255,255,.04);
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-secondary:hover {
  border-color: rgba(168,85,247,.5);
  background: rgba(168,85,247,.08);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════
   HERO ORBIT — NO overflow:hidden, NO scale hacks
   Orbit is always 440×440. Parent NEVER clips it.
   On desktop (≥1100px): right column, orbit centered.
   On mobile/tablet:     single column, orbit centered.
════════════════════════════════════════════════════════ */
.hero-orbit-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  /* CRITICAL: overflow must be visible — never clip orbit or badges */
  overflow: visible;
  /* Give the wrapper enough height to show the full scene */
  min-height: 440px;
  width: 100%;
}

/* ── Orbit scene: 440×440 on desktop, scales down on small screens ── */
.orbit-scene {
  position: relative;
  width: 440px;
  height: 440px;
  /* flex-shrink:0 keeps layout from squishing the element */
  flex-shrink: 0;
  /* overflow visible so badges at the orbit edge are never clipped */
  overflow: visible;
  /* transform-origin center ensures scale stays perfectly centered */
  transform-origin: center center;
}

/* ── Responsive orbit scaling (no negative margins, correct wrapper height) ── */
/* 768 – 1099 px : tablet portrait / small desktop */
@media(max-width:1099px) and (min-width:768px) {
  .orbit-scene    { transform: scale(0.85); }
  .hero-orbit-wrap{ min-height: 374px; }   /* 440 × 0.85 */
}
/* 480 – 767 px : large phone / tablet portrait */
@media(max-width:767px) and (min-width:480px) {
  .orbit-scene    { transform: scale(0.75); }
  .hero-orbit-wrap{ min-height: 330px; }   /* 440 × 0.75 */
}
/* < 480 px : small phone */
@media(max-width:479px) {
  .orbit-scene    { transform: scale(0.65); }
  .hero-orbit-wrap{ min-height: 274px; }   /* 440 × 0.62 */
}

/* ── L0: Ambient glow blob ── */
.orbit-glow-blob {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124,58,237,.28) 0%, rgba(59,130,246,.14) 60%, transparent 100%);
  filter: blur(48px);
  transition: filter .4s ease, opacity .4s ease;
}
.orbit-scene:hover .orbit-glow-blob {
  filter: blur(36px);
  opacity: 1.3;
}

/* ── L1: Outer dashed ring (rotates CW 80s via CSS) ── */
.orbit-ring-outer {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.06);
  animation: ringCW 80s linear infinite;
  transition: border-color .4s ease;
}
.orbit-scene:hover .orbit-ring-outer {
  border-color: rgba(255,255,255,0.12);
}

/* ── L2: Orbit-path guide ring (static, diameter = ORBIT_R×2 = 316px) ── */
.orbit-ring-path {
  position: absolute;
  /* center it: (440 - 316)/2 = 62px each side */
  top: 62px; left: 62px;
  width: 316px; height: 316px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color .4s ease;
}
.orbit-scene:hover .orbit-ring-path {
  border-color: rgba(255,255,255,0.13);
}

/* ── L3: Inner dashed ring (rotates CCW 18s via CSS) ── */
.orbit-ring-inner-spin {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  border: 1px dashed rgba(124,58,237,0.25);
  animation: ringCCW 18s linear infinite;
  transition: border-color .4s ease;
}
.orbit-scene:hover .orbit-ring-inner-spin {
  border-color: rgba(124,58,237,0.5);
}

/* ── L4: Center glass disc ── */
.orbit-center-disc {
  position: absolute;
  inset: 37%;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
}
.orbit-center-text {
  font-family: 'Poppins', monospace;
  font-size: 1rem; font-weight: 700;
  animation: textPulse 3s ease-in-out infinite;
}
@keyframes textPulse { 0%,100%{opacity:.75} 50%{opacity:1} }

/* ── L5: Inner dot carrier (CCW 10s) ── */
.orbit-inner-dot-carrier {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  animation: ringCCW 10s linear infinite;
}
.orbit-inner-dot {
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 12px 3px rgba(168,85,247,.6);
}

/* ── L6: Orbit dot carrier (CW 39s) ── */
.orbit-outer-dot-carrier {
  position: absolute;
  top: 62px; left: 62px;
  width: 316px; height: 316px;
  border-radius: 50%;
  animation: ringCW 39s linear infinite;
}
.orbit-outer-dot {
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 14px 4px rgba(59,130,246,.55);
}

/* ════════════════════════════════════════════════════════
   L7: ORBIT BADGE SYSTEM
   Math:  orbit-badge-wrap sits at top:50% left:50% (w=0,h=0)
          keyframe: rotate(θ₀) translateX(158px)  — moves wrap to orbit point
          badge:    rotate(−θ₀) translate(−50%,−50%) — centers badge, stays upright
   Angles: 0=−90°, 1=−18°, 2=54°, 3=126°, 4=198°  (72° spacing, CW)
════════════════════════════════════════════════════════ */
.orbit-badge-wrap {
  position: absolute;
  top: 50%; left: 60%;
  width: 0; height: 0;          /* zero-size anchor at orbit center */
  pointer-events: none;
}

/* ── Orbit keyframes: rotate(θ₀) translateX(158px) → rotate(θ₀+360°) translateX(158px) ── */
@keyframes orbit-0 {
  from { transform: rotate(-90deg) translateX(100px); }
  to   { transform: rotate(270deg) translateX(100px); }
}
@keyframes orbit-1 {
  from { transform: rotate(-18deg) translateX(100px); }
  to   { transform: rotate(342deg) translateX(100px); }
}
@keyframes orbit-2 {
  from { transform: rotate(54deg) translateX(100px); }
  to   { transform: rotate(414deg) translateX(100px); }
}
@keyframes orbit-3 {
  from { transform: rotate(126deg) translateX(100px); }
  to   { transform: rotate(486deg) translateX(100px); }
}
@keyframes orbit-4 {
  from { transform: rotate(198deg) translateX(100px); }
  to   { transform: rotate(558deg) translateX(100px); }
}

/* Apply orbit animation to each wrap */
.orbit-wrap-0 { animation: orbit-0 26s linear infinite; }
.orbit-wrap-1 { animation: orbit-1 26s linear infinite; }
.orbit-wrap-2 { animation: orbit-2 26s linear infinite; }
.orbit-wrap-3 { animation: orbit-3 26s linear infinite; }
.orbit-wrap-4 { animation: orbit-4 26s linear infinite; }

/* ── Counter-rotation keyframes: rotate(−θ₀) translate(−50%,−50%)
       Sequence of transforms (CSS right-to-left):
         1st applied: translate(−50%,−50%)  → centers badge on anchor
         2nd applied: rotate(−θ₀)           → spins around orbit point (keeps badge upright)
       Result: badge center is always at the orbit point, badge text stays readable ── */
@keyframes counter-0 {
  from { transform: rotate(90deg)   translate(-50%, -50%); }
  to   { transform: rotate(-270deg) translate(-50%, -50%); }
}
@keyframes counter-1 {
  from { transform: rotate(18deg)   translate(-50%, -50%); }
  to   { transform: rotate(-342deg) translate(-50%, -50%); }
}
@keyframes counter-2 {
  from { transform: rotate(-54deg)  translate(-50%, -50%); }
  to   { transform: rotate(-414deg) translate(-50%, -50%); }
}
@keyframes counter-3 {
  from { transform: rotate(-126deg) translate(-50%, -50%); }
  to   { transform: rotate(-486deg) translate(-50%, -50%); }
}
@keyframes counter-4 {
  from { transform: rotate(-198deg) translate(-50%, -50%); }
  to   { transform: rotate(-558deg) translate(-50%, -50%); }
}

/* Apply counter-rotation to each badge */
.orbit-counter-0 { animation: counter-0 26s linear infinite; }
.orbit-counter-1 { animation: counter-1 26s linear infinite; }
.orbit-counter-2 { animation: counter-2 26s linear infinite; }
.orbit-counter-3 { animation: counter-3 26s linear infinite; }
.orbit-counter-4 { animation: counter-4 26s linear infinite; }

/* ── Badge pill ── */
.orbit-badge {
  position: absolute;
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .65rem .35rem .45rem;
  background: rgba(15,15,20,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
  white-space: nowrap;
  /* NOTE: hover applies only to glow on .orbit-scene — no transform here */
  transition: border-color .3s ease;
}
.orbit-badge:hover {
  border-color: rgba(255,255,255,0.25);
}
.orbit-badge-icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: .6rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.orbit-badge-icon.sm { font-size: .52rem; }
.orbit-badge-label {
  font-size: .72rem; font-weight: 600; color: #e4e4e7;
  padding-right: .2rem;
}

/* ── Shared CSS ring animations ── */
@keyframes ringCW  { from{transform:rotate(0deg)}   to{transform:rotate(360deg)}  }
@keyframes ringCCW { from{transform:rotate(0deg)}   to{transform:rotate(-360deg)} }

/* ── Hover: boost background glow & ring on orbit-scene hover ──
   Badges do NOT move — only bg elements respond ── */
.orbit-glow-blob, .orbit-ring-outer, .orbit-ring-path, .orbit-ring-inner-spin {
  transition: border-color .4s ease, filter .4s ease, opacity .4s ease;
}

/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  cursor: pointer; opacity: .6;
  transition: opacity .2s;
  animation: float 2.4s ease-in-out infinite;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-text { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: #71717a; }
.scroll-mouse {
  width: 22px; height: 34px; border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 5px;
}
.scroll-dot {
  width: 4px; height: 8px; border-radius: 2px;
  background: rgba(255,255,255,.4);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@keyframes float { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-6px)} }

/* ════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.animate-in.from-left  { transform: translateX(-30px); }
.animate-in.from-right { transform: translateX(30px); }
.animate-in.from-scale { transform: scale(.95); opacity: 0; }
.animate-in.visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════════════════
   SECTIONS
════════════════════════════════════════════════════════ */
.section { padding: 6rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-heading { text-align: center; margin-bottom: 4rem; }
.section-heading.left { text-align: left; }
.section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: #a855f7; margin-bottom: .75rem; display: block;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; color: #fff; line-height: 1.15;
}
.section-divider {
  width: 64px; height: 4px; border-radius: 2px; margin-top: 1rem;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
}
.section-heading.left .section-divider { margin-left: 0; }
.section-heading:not(.left) .section-divider { margin: 1rem auto 0; }

/* ════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3.5rem; align-items: start;
}
@media(min-width:900px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-bio { color: #a1a1aa; line-height: 1.85; font-size: 1rem; margin-bottom: 2rem; }
.skills-title {
  font-family: 'Poppins', sans-serif;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #71717a; margin-bottom: 1rem;
}
.skills-wrap { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.skill-pill {
  padding: .35rem .85rem; border-radius: 99px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .8rem; color: #d4d4d8;
  transition: border-color .2s, background .2s;
}
.skill-pill:hover { border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.06); }

.feat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.feat-card {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem; border-radius: .75rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.feat-icon {
  width: 42px; height: 42px; border-radius: .5rem;
  background: linear-gradient(135deg,rgba(124,58,237,.2),rgba(59,130,246,.2));
  display: grid; place-items: center; flex-shrink: 0;
  color: #a855f7;
}
.feat-title { font-weight: 600; font-size: .9rem; color: #e4e4e7; }
.feat-desc  { font-size: .8rem; color: #71717a; margin-top: .1rem; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  position: relative; overflow: hidden;
  padding: 2rem 1.5rem; text-align: center;
  transition: transform .3s ease, border-color .3s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.25); }
.stat-card-inner {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(59,130,246,.06));
  opacity: 0; transition: opacity .3s ease;
}
.stat-card:hover .stat-card-inner { opacity: 1; }
.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg,#a855f7,#3b82f6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .82rem; color: #71717a; margin-top: .4rem; font-weight: 500; }

/* ════════════════════════════════════════════════════════
   PORTFOLIO
════════════════════════════════════════════════════════ */
.portfolio-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media(min-width:640px)  { .portfolio-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .portfolio-grid { grid-template-columns: repeat(3,1fr); } }

.project-card {
  cursor: none; overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168,85,247,.25);
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 32px rgba(124,58,237,.12);
}
.project-banner {
  position: relative; height: 160px; overflow: hidden;
}
.project-banner-bg {
  position: absolute; inset: 0;
  transition: transform .5s ease;
}
.project-card:hover .project-banner-bg { transform: scale(1.06); }
.project-banner::before {
  content: '';
  position: absolute; inset: -20%; left: auto; right: -20%;
  width: 60%; height: 60%; top: -10%;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  z-index: 1; pointer-events: none;
}
.project-banner::after {
  content: '';
  position: absolute;
  bottom: -24px; left: 15%;
  width: 48px; height: 48px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 8px;
  transform: rotate(18deg);
  z-index: 1; pointer-events: none;
}
.project-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5) 100%);
  z-index: 1;
}
.project-category-badge {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  padding: .25rem .65rem; border-radius: 99px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  font-size: .7rem; font-weight: 600; color: #fff;
  letter-spacing: .06em;
}
.project-body { padding: 1.25rem 1.25rem 1rem; }
.project-title { font-family:'Poppins',sans-serif; font-size:1.05rem; font-weight:700; color:#fff; margin-bottom:.4rem; }
.project-desc  { font-size:.82rem; color:#71717a; line-height:1.6; margin-bottom:1rem; }
.project-footer { display:flex; align-items:center; justify-content:space-between; }
.project-tags   { display:flex; flex-wrap:wrap; gap:.4rem; }
.project-tag    { padding:.2rem .55rem; border-radius:99px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.07); font-size:.7rem; color:#a1a1aa; }
.project-arrow  {
  width:32px; height:32px; border-radius:8px;
  background:rgba(168,85,247,.1); border:1px solid rgba(168,85,247,.2);
  display:grid; place-items:center; flex-shrink:0;
  color:#a855f7; transition:background .2s, transform .2s;
}
.project-card:hover .project-arrow { background:rgba(168,85,247,.2); transform:translate(2px,-2px); }

/* ── Portfolio Modal ── */
#modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
#modal-overlay.open { display: flex; }
#modal-box {
  background: #18181b; border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.25rem; padding: 2rem;
  max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from{transform:scale(.95);opacity:0} to{transform:scale(1);opacity:1} }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.07); color: #e4e4e7;
  display: grid; place-items: center;
  transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,.15); }
.modal-category { font-size:.75rem; font-weight:600; letter-spacing:.15em; text-transform:uppercase; color:#a855f7; margin-bottom:.5rem; }
.modal-title    { font-family:'Poppins',sans-serif; font-size:1.5rem; font-weight:800; color:#fff; margin-bottom:1rem; }
.modal-desc     { color:#a1a1aa; line-height:1.75; margin-bottom:1.5rem; }
.modal-tech-title { font-size:.72rem; font-weight:600; letter-spacing:.15em; text-transform:uppercase; color:#71717a; margin-bottom:.75rem; }
.modal-tech-chips { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.5rem; }
.modal-chip { padding:.3rem .75rem; border-radius:99px; background:rgba(124,58,237,.12); border:1px solid rgba(124,58,237,.2); font-size:.78rem; color:#c4b5fd; }
.modal-live-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: .6rem;
  background: linear-gradient(135deg,#7c3aed,#3b82f6);
  color: #fff; font-weight: 600; font-size: .9rem;
  transition: opacity .2s, transform .2s;
}
.modal-live-btn:hover { opacity: .85; transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════ */
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media(min-width:640px)  { .services-grid { grid-template-columns: repeat(2,1fr); } }

.service-card {
  position: relative; overflow: hidden; padding: 2rem;
  cursor: pointer;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 12px 40px rgba(124,58,237,.18);
}
.service-card:focus-visible {
  outline: 2px solid rgba(168,85,247,.7);
  outline-offset: 3px;
}
.service-top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover .service-top-bar { transform: scaleX(1); }
.service-num {
  font-family:'Poppins',sans-serif; font-size:3rem; font-weight:900;
  color:rgba(255,255,255,.04); line-height:1; margin-bottom:.5rem;
}
.service-icon-wrap {
  width:52px; height:52px; border-radius:.75rem;
  background:linear-gradient(135deg,rgba(124,58,237,.18),rgba(59,130,246,.14));
  display:grid; place-items:center; margin-bottom:1rem;
  color:#a855f7;
}
.service-title { font-family:'Poppins',sans-serif; font-size:1.1rem; font-weight:700; color:#fff; margin-bottom:.6rem; }
.service-desc  { font-size:.875rem; color:#71717a; line-height:1.7; margin-bottom:1.5rem; }
.service-link  { display:flex; align-items:center; gap:.35rem; font-size:.82rem; font-weight:600; color:#a855f7; transition:gap .2s; }
.service-card:hover .service-link { gap:.6rem; }

/* ════════════════════════════════════════════════════════
   SERVICE MODAL
════════════════════════════════════════════════════════ */
#service-modal-overlay {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
}
#service-modal-overlay.open { display: flex; }

#service-modal-box {
  background: #18181b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.5rem;
  padding: 0;
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}

/* Gradient top band */
.svc-modal-header {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg,rgba(124,58,237,.14),rgba(59,130,246,.08));
  border-bottom: 1px solid rgba(255,255,255,.07);
  border-radius: 1.5rem 1.5rem 0 0;
}
.svc-modal-num {
  font-family:'Poppins',sans-serif;
  font-size:2.5rem; font-weight:900; line-height:1;
  background:linear-gradient(135deg,rgba(168,85,247,.35),rgba(59,130,246,.35));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  min-width:2.5rem;
}
.svc-modal-icon-wrap {
  width:54px; height:54px; border-radius:.875rem; flex-shrink:0;
  background:linear-gradient(135deg,rgba(124,58,237,.25),rgba(59,130,246,.2));
  border:1px solid rgba(255,255,255,.1);
  display:grid; place-items:center; color:#a855f7;
}
.svc-modal-label {
  font-size:.7rem; font-weight:700; letter-spacing:.2em;
  text-transform:uppercase; color:#71717a; margin-bottom:.3rem;
}
.svc-modal-title {
  font-family:'Poppins',sans-serif;
  font-size:1.35rem; font-weight:800; color:#fff;
}

/* Body */
.svc-modal-desc {
  color:#a1a1aa; line-height:1.8; font-size:.95rem;
  padding: 1.5rem 2rem .75rem;
}
.svc-modal-features-title {
  font-size:.7rem; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:#71717a;
  padding: 0 2rem .6rem;
}
.svc-modal-features {
  list-style:none; padding:0 2rem 1.25rem; margin:0;
  display:flex; flex-direction:column; gap:.55rem;
}
.svc-modal-features li {
  display:flex; align-items:flex-start; gap:.75rem;
  font-size:.9rem; color:#d4d4d8; line-height:1.55;
}
.svc-modal-features li::before {
  content:'';
  display:block; flex-shrink:0;
  width:18px; height:18px; margin-top:2px;
  border-radius:50%;
  background:linear-gradient(135deg,#7c3aed,#3b82f6);
  /* checkmark via clip-path */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.svc-modal-tech-title {
  font-size:.7rem; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:#71717a;
  padding: 0 2rem .6rem;
}
.svc-modal-chips {
  display:flex; flex-wrap:wrap; gap:.5rem;
  padding:0 2rem 1.75rem;
}
.svc-modal-chip {
  padding:.3rem .8rem; border-radius:99px;
  background:rgba(124,58,237,.1);
  border:1px solid rgba(124,58,237,.22);
  font-size:.78rem; color:#c4b5fd; font-weight:500;
}
.svc-modal-cta {
  display:flex; align-items:center; justify-content:center; gap:.5rem;
  width:calc(100% - 4rem); margin: 0 2rem 2rem;
  padding:.85rem; border-radius:.75rem;
  background:linear-gradient(135deg,#7c3aed,#3b82f6);
  color:#fff; font-weight:700; font-size:.95rem; font-family:inherit;
  transition:opacity .2s, transform .2s;
  box-shadow:0 4px 20px rgba(124,58,237,.4);
}
.svc-modal-cta:hover { opacity:.88; transform:translateY(-1px); }


/* ════════════════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════════════════ */
.testi-glow {
  position:absolute; top:-60px; right:-60px; width:400px; height:400px;
  background:radial-gradient(ellipse,rgba(124,58,237,.12),transparent 70%);
  border-radius:50%; pointer-events:none;
}
.testi-carousel { overflow:hidden; margin-bottom:2rem; max-width: 700px;   /* 👈 width control */
  margin: 30px auto;     /* 👈 center */ }
.testi-track {
  display: flex;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.testi-slide { min-width:100%; padding: 0 .5rem; }
.testi-card {
  border-radius:1.25rem; padding:2.5rem;
  position:relative; overflow:hidden;
}
.testi-quote-icon {
  color:rgba(168,85,247,.15); margin-bottom:1.25rem;
}
.testi-stars { display:flex; gap:.25rem; margin-bottom:1.25rem; }
.testi-star  { fill:#f59e0b; stroke:none; }
.testi-text  { font-size:.975rem; line-height:1.8; color:#a1a1aa; margin-bottom:1.75rem; font-style:italic; }
.testi-author{ display:flex; align-items:center; gap:1rem; }
.testi-avatar{
  width:44px; height:44px; border-radius:50%;
  background:linear-gradient(135deg,#7c3aed,#3b82f6);
  display:grid; place-items:center;
  font-family:'Poppins',sans-serif; font-size:.75rem; font-weight:700; color:#fff;
}
.testi-name { font-weight:600; color:#e4e4e7; font-size:.9rem; }
.testi-role { font-size:.78rem; color:#71717a; margin-top:.15rem; }
.testi-controls {
  display:flex; align-items:center; justify-content:center; gap:1rem;
}
.testi-btn {
  width:40px; height:40px; border-radius:.5rem;
  border:1px solid rgba(255,255,255,.1);
  color:#e4e4e7; display:grid; place-items:center;
  background:rgba(255,255,255,.04);
  transition:border-color .2s, background .2s;
}
.testi-btn:hover { border-color:rgba(168,85,247,.4); background:rgba(168,85,247,.08); }
.testi-dots  { display:flex; gap:.5rem; }
.testi-dot   { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.15); cursor:pointer; transition:background .3s, transform .3s; }
.testi-dot.active { background:#a855f7; transform:scale(1.25); }

/* ════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════ */
.contact-grid {
  display:grid; grid-template-columns:1fr; gap:3rem;
}
@media(min-width:900px){ .contact-grid{ grid-template-columns:1fr 1fr; } }

.contact-heading { font-family:'Poppins',sans-serif; font-size:1.8rem; font-weight:800; color:#fff; margin-bottom:.75rem; }
.contact-sub     { color:#71717a; line-height:1.75; margin-bottom:2rem; }
.contact-info-items { display:flex; flex-direction:column; gap:1.25rem; margin-bottom:2rem; }
.contact-item    { display:flex; align-items:flex-start; gap:1rem; }
.contact-item-icon {
  width:44px; height:44px; border-radius:.625rem; flex-shrink:0;
  background:linear-gradient(135deg,rgba(124,58,237,.15),rgba(59,130,246,.12));
  border:1px solid rgba(255,255,255,.07);
  display:grid; place-items:center; color:#a855f7;
}
.contact-item-label { font-size:.75rem; color:#71717a; font-weight:500; margin-bottom:.15rem; }
.contact-item-value { color:#e4e4e7; font-weight:500; transition:color .2s; }
a.contact-item-value:hover { color:#a855f7; }
.social-label { font-size:.75rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:#71717a; margin-bottom:.75rem; }
.social-links { display:flex; gap:.75rem; }
.social-btn {
  width:40px; height:40px; border-radius:.5rem;
  border:1px solid rgba(255,255,255,.1); color:#e4e4e7;
  display:grid; place-items:center;
  background:rgba(255,255,255,.04);
  transition:border-color .2s, background .2s, color .2s, transform .2s;
}
.social-btn:hover { border-color:rgba(168,85,247,.4); background:rgba(168,85,247,.1); color:#a855f7; transform:translateY(-2px); }

/* ── Contact Form ── */
.form-space { display:flex; flex-direction:column; gap:1.25rem; }
.form-row   { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
@media(max-width:480px){ .form-row{ grid-template-columns:1fr; } }
.form-group { display:flex; flex-direction:column; gap:.45rem; }
.form-label { font-size:.8rem; font-weight:600; color:#a1a1aa; letter-spacing:.04em; }
.form-input {
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:.625rem; padding:.75rem 1rem;
  color:#e4e4e7; font-size:.9rem; font-family:inherit;
  width:100%; resize:vertical;
  transition:border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color:#52525b; }
.form-input:focus {
  outline:none;
  border-color:rgba(168,85,247,.5);
  box-shadow:0 0 0 3px rgba(168,85,247,.1);
}
.form-submit {
  width:100%; padding:.85rem; border-radius:.625rem;
  background:linear-gradient(135deg,#7c3aed,#3b82f6);
  color:#fff; font-weight:600; font-size:.95rem; font-family:inherit;
  transition:opacity .2s, transform .2s;
}
.form-submit:hover { opacity:.88; transform:translateY(-1px); }
.form-success {
  display:none; padding:.75rem 1rem; border-radius:.5rem;
  background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.2);
  color:#86efac; font-size:.875rem; text-align:center;
}
.form-success.show { display:block; }

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
footer { border-top:1px solid rgba(255,255,255,.07); }
.footer-top-line {
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(124,58,237,.4),rgba(59,130,246,.4),transparent);
}
.footer-inner {
  max-width:1280px; margin:0 auto; padding:2rem 1.5rem;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem;
}
.footer-copy    { font-size:.875rem; font-weight:600; color:#e4e4e7; }
.footer-tagline { font-size:.78rem; color:#52525b; margin-top:.2rem; }
.footer-links   { display:flex; gap:1.5rem; }
.footer-link    { font-size:.85rem; color:#71717a; transition:color .2s; }
.footer-link:hover { color:#a855f7; }
.back-top {
  width:36px; height:36px; border-radius:.5rem;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04); color:#e4e4e7;
  display:grid; place-items:center;
  transition:border-color .2s, background .2s, transform .2s;
}
.back-top:hover { border-color:rgba(168,85,247,.4); background:rgba(168,85,247,.1); transform:translateY(-2px); }
