/* ============================================================
   HOME PAGE REDESIGN — home.css
   Design: Clean Indigo + White SaaS Theme
   Matches provided design reference image
   ============================================================ */

/* ---- CSS Variables ---- */
body[data-page="home"] {
  background: #ffffff;
  color: #111827;
  overflow-x: hidden !important;
}

body[data-page="home"] main {
  overflow-x: hidden;
}

/* ============================================================
   NAVBAR OVERRIDES — Global Glass Pill Navbar
   ============================================================ */
.site-header {
  background: rgba(255,255,255,0.98) !important;
  border-bottom: 1px solid #F1F5F9 !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06) !important;
  backdrop-filter: blur(10px);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.99) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09) !important;
}

.nav-shell {
  height: 66px !important;
  padding: 0 1.5rem !important;
  position: relative !important;
}

.brand {
  font-size: 0.97rem;
  color: #111827;
  font-weight: 700;
  gap: 10px;
  letter-spacing: -0.01em;
}

.brand-mark {
  background: #111827 !important;
  background-image: none !important;
  border-radius: 10px !important;
  width: 34px !important;
  height: 34px !important;
  font-size: 0.72rem;
  color: white;
  font-weight: 900;
  box-shadow: none !important;
}

.brand small { display: none !important; }

/* ---- Pill-shaped glassmorphism nav ---- */
.nav-links {
  /* Floating pill — absolutely centred in the header */
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  /* Pill shape */
  border-radius: 999px !important;
  /* Glass effect */
  background: rgba(255,255,255,0.62) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.82) !important;
  box-shadow: 0 4px 24px rgba(15,23,42,0.08), 0 1px 3px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.90) !important;
  /* Layout */
  gap: 2px !important;
  padding: 5px 6px !important;
  transition: background .3s ease, box-shadow .3s ease !important;
  white-space: nowrap;
  z-index: 10;
}

.dark-mode .nav-links {
  background: rgba(15,23,42,0.65) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.nav-links a {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  transition: color .22s ease, background .22s ease !important;
}

.nav-links a:hover,
.nav-links a.active {
  color: #3B5BDB !important;
  background: rgba(59,91,219,0.10) !important;
  transform: none !important;
}

.dark-mode .nav-links a {
  color: #CBD5E1 !important;
}

.dark-mode .nav-links a:hover,
.dark-mode .nav-links a.active {
  color: #818CF8 !important;
  background: rgba(99,102,241,0.14) !important;
}

.icon-btn {
  background: transparent !important;
  border: 1px solid #E5E7EB !important;
  color: #374151 !important;
  border-radius: 10px !important;
  width: 38px !important;
  height: 38px !important;
}

.icon-btn:hover {
  background: #F9FAFB !important;
  box-shadow: none !important;
}

.menu-toggle {
  background: transparent !important;
  border: 1px solid #E5E7EB !important;
  color: #374151 !important;
  border-radius: 10px !important;
}

/* Replace the old CTA button in nav */
.h-nav-cta {
  background: #3B5BDB;
  color: white !important;
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
  min-height: unset !important;
}

.h-nav-cta:hover {
  background: #2F4AC7 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 22px rgba(59,91,219,0.28) !important;
  color: white !important;
}

/* Dark mode header */
.dark-mode .site-header {
  background: rgba(10,14,26,0.95) !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}

.dark-mode .brand { color: white; }
.dark-mode .icon-btn { color: #D1D5DB !important; border-color: rgba(255,255,255,0.12) !important; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.h-hero {
  background: #ffffff;
  padding: 54px 0 48px;
  position: relative;
  overflow: hidden;
}

/* ─── Particle Canvas Background ─── */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.dark-mode #hero-particles { opacity: 0.35; }

/* ─── Cursor Spotlight Glow ─── */
.cursor-spotlight {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,91,219,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  mix-blend-mode: normal;
}

.dark-mode .cursor-spotlight {
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
}

body:hover .cursor-spotlight { opacity: 1; }

@media (max-width: 900px) {
  .cursor-spotlight { display: none; }
}

/* ─── Hero content entrance stagger ─── */
.h-hero-content > * {
  opacity: 0;
  transform: translateY(28px);
  animation: heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.h-available      { animation-delay: 0.10s !important; }
.h-hero-content h1 { animation-delay: 0.22s !important; }
.h-hero-sub       { animation-delay: 0.36s !important; }
.h-hero-desc      { animation-delay: 0.46s !important; }
.h-hero-btns      { animation-delay: 0.56s !important; }
.h-stats          { animation-delay: 0.68s !important; }

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Gradient name animated shift ─── */
.h-name {
  background-size: 300% 300% !important;
  animation: nameGradientShift 5s ease infinite !important;
}

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

/* ─── Typing cursor on h-hero-sub ─── */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #3B5BDB;
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}

.dark-mode .typing-cursor { background: #818CF8; }

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.dark-mode .h-hero { background: #0A0E1A; }

.h-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Available badge */
.h-available {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.81rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 22px;
}

.dark-mode .h-available { color: #9CA3AF; }

.h-avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.22);
  animation: h-pulse-dot 2.2s ease-in-out infinite;
}

@keyframes h-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.22); }
  50% { box-shadow: 0 0 0 7px rgba(16,185,129,0.08); }
}

/* Hero heading */
.h-hero-content h1 {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem) !important;
  font-weight: 800 !important;
  line-height: 1.07 !important;
  color: #111827 !important;
  margin: 0 0 4px !important;
  letter-spacing: -0.04em !important;
}

.dark-mode .h-hero-content h1 { color: #F9FAFB !important; }

.h-name {
  display: block;
  font-size: clamp(3.8rem, 7.5vw, 6rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  background: linear-gradient(130deg, #2563EB 0%, #3B5BDB 45%, #1D4ED8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.0;
  letter-spacing: -0.055em;
}

.h-hero-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin: 18px 0 12px;
  line-height: 1.55;
}

.dark-mode .h-hero-sub { color: #D1D5DB; }

.h-hero-desc {
  font-size: 0.92rem;
  color: #6B7280;
  line-height: 1.72;
  max-width: 400px;
  margin: 0 0 26px;
}

/* Hero buttons */
.h-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.h-btn-fill {
  background: #3B5BDB;
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .26s ease, transform .26s ease, box-shadow .26s ease;
}

.h-btn-fill:hover {
  background: #2F4AC7;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(59,91,219,0.32);
  color: white;
}

.h-btn-ghost-outline {
  background: transparent;
  color: #374151;
  border: 1.5px solid #D1D5DB;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .25s, color .25s, transform .25s;
}

.h-btn-ghost-outline:hover {
  border-color: #3B5BDB;
  color: #3B5BDB;
  transform: translateY(-2px);
}

.dark-mode .h-btn-ghost-outline { color: #D1D5DB; border-color: rgba(255,255,255,0.2); }
.dark-mode .h-btn-ghost-outline:hover { border-color: #818CF8; color: #818CF8; }

/* Stats row */
.h-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.h-stat {
  text-align: center;
  padding: 13px 8px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FAFAFA;
  transition: border-color .25s, box-shadow .25s;
}

.h-stat:hover {
  border-color: #C7D2FE;
  box-shadow: 0 4px 14px rgba(59,91,219,0.08);
}

.dark-mode .h-stat { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09); }

.h-stat b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  display: block;
  letter-spacing: -0.04em;
}

.dark-mode .h-stat b { color: #F9FAFB; }

.h-stat span {
  font-size: 0.7rem;
  color: #6B7280;
  font-weight: 600;
  display: block;
  margin-top: 2px;
  line-height: 1.3;
}

/* Hero Visual */
.h-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  opacity: 0;
  transform: translateX(40px);
  animation: heroVisualEntrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes heroVisualEntrance {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Glowing Aura Rings ─── */
.h-aura-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.h-aura-ring-1 {
  width: 360px;
  height: 360px;
  border: 1.5px solid rgba(99, 102, 241, 0.22);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: auraRingPulse1 4s ease-in-out infinite;
}

.h-aura-ring-2 {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(59, 91, 219, 0.18);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: auraRingPulse2 4s ease-in-out infinite 0.8s;
}

.h-aura-ring-3 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: auraGlow 4s ease-in-out infinite;
}

@keyframes auraRingPulse1 {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
  50%       { transform: translate(-50%, -50%) scale(1.09); opacity: 0.3; }
}

@keyframes auraRingPulse2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.5; }
  50%       { transform: translate(-50%, -50%) scale(1.12); opacity: 0.18; }
}

@keyframes auraGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* ─── Overlapping Glass Panel (hero) ─── */
.h-glass-panel {
  position: absolute;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.28);
  box-shadow: 0 8px 32px rgba(59,91,219,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  z-index: 4;
  pointer-events: none;
}

.h-glass-panel-tl {
  width: 90px;
  height: 90px;
  top: 6%;
  left: 2%;
  animation: panelFloat1 6s ease-in-out infinite;
  border-radius: 50%;
  background: rgba(199,210,254,0.35);
}

.h-glass-panel-br {
  width: 70px;
  height: 70px;
  bottom: 8%;
  left: 5%;
  animation: panelFloat2 7s ease-in-out infinite 1s;
  border-radius: 16px;
  background: rgba(167,139,250,0.22);
}

.h-glass-panel-tr {
  width: 50px;
  height: 50px;
  top: 30%;
  right: 4%;
  border-radius: 12px;
  background: rgba(96,165,250,0.18);
  animation: panelFloat3 5.5s ease-in-out infinite 0.5s;
}

@keyframes panelFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg);   }
  33%       { transform: translateY(-12px) rotate(5deg); }
  66%       { transform: translateY(6px) rotate(-3deg);  }
}

@keyframes panelFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg);    }
  50%       { transform: translateY(-10px) rotate(-8deg); }
}

@keyframes panelFloat3 {
  0%, 100% { transform: translateY(0) scale(1);       }
  50%       { transform: translateY(-8px) scale(1.08); }
}

.h-blob {
  position: absolute;
  width: 440px;
  height: 350px;
  border-radius: 55% 45% 42% 58% / 50% 42% 58% 50%;
  background: linear-gradient(140deg, rgba(199,210,254,0.65) 0%, rgba(165,180,252,0.45) 45%, rgba(224,231,255,0.70) 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: h-blob-drift 9s ease-in-out infinite;
}

.dark-mode .h-blob {
  background: linear-gradient(140deg, rgba(67,56,202,0.35) 0%, rgba(79,70,229,0.25) 45%, rgba(99,102,241,0.30) 100%);
}

@keyframes h-blob-drift {
  0%, 100% { border-radius: 55% 45% 42% 58% / 50% 42% 58% 50%; transform: translate(-50%,-50%) scale(1); }
  33%  { border-radius: 62% 38% 50% 50% / 40% 60% 40% 60%; transform: translate(-50%,-50%) scale(1.04); }
  66%  { border-radius: 40% 60% 60% 40% / 60% 40% 52% 48%; transform: translate(-50%,-50%) scale(0.97); }
}

.h-hero-photo {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 380px;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 22px;
  display: block;
  box-shadow: 0 24px 60px rgba(0,0,0,0.14), 0 0 0 4px rgba(99,102,241,0.12);
  transition: transform 0.12s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.h-hero-photo:hover {
  box-shadow: 0 32px 72px rgba(0,0,0,0.18), 0 0 0 6px rgba(99,102,241,0.20);
}

/* Floating badges */
.h-fbadge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 13px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(229,231,235,0.85);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  z-index: 3;
  backdrop-filter: blur(14px);
  animation: h-float-badge 4s ease-in-out infinite;
}

.dark-mode .h-fbadge { background: rgba(17,24,39,0.88); border-color: rgba(255,255,255,0.10); color: #D1D5DB; }

@keyframes h-float-badge {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.h-fbadge-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* Badge positions */
.h-fbadge-js   { top: 8%;  right: -4px;  animation-delay: 0s; }
.h-fbadge-ui   { top: 34%; left: -16px;  animation-delay: -1.4s; }
.h-fbadge-bc   { bottom: 14%; right: -10px; animation-delay: -2.8s; }

/* ─── Badge entrance ─── */
.h-fbadge {
  animation: h-float-badge 4s ease-in-out infinite, badgeEntrance 0.6s cubic-bezier(0.22,1,0.36,1) both !important;
}
.h-fbadge-js { animation-delay: 0s, 0.5s !important; }
.h-fbadge-ui { animation-delay: -1.4s, 0.7s !important; }
.h-fbadge-bc { animation-delay: -2.8s, 0.9s !important; }

@keyframes badgeEntrance {
  from { opacity: 0; transform: scale(0.7) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Decorative dots (from image) */
.h-hero-dots {
  position: absolute;
  right: 18%;
  top: 54%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 1;
}

.h-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C7D2FE;
}

.h-hero-dot:nth-child(2) { width: 5px; height: 5px; opacity: .7; }
.h-hero-dot:nth-child(3) { width: 4px; height: 4px; opacity: .5; }

/* ============================================================
   TECH STRIP / MARQUEE (Left-to-Right Continuous Motion)
   ============================================================ */
.h-tech-strip {
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
  padding: 16px 0;
  background: #ffffff;
  overflow: hidden !important;
  position: relative;
  width: 100%;
}

.dark-mode .h-tech-strip { background: #0A0E1A; border-color: rgba(255,255,255,0.06); }

.h-tech-strip::before,
.h-tech-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.h-tech-strip::before { left: 0; background: linear-gradient(90deg, #ffffff, transparent); }
.h-tech-strip::after  { right: 0; background: linear-gradient(270deg, #ffffff, transparent); }
.dark-mode .h-tech-strip::before { background: linear-gradient(90deg, #0A0E1A, transparent); }
.dark-mode .h-tech-strip::after  { background: linear-gradient(270deg, #0A0E1A, transparent); }

.h-marquee-inner {
  display: flex !important;
  width: max-content !important;
  animation-name: h-marquee-left-to-right !important;
  animation-duration: 20s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  animation-play-state: running !important;
  will-change: transform;
}

.h-marquee-inner:hover {
  animation-play-state: paused !important;
}

@keyframes h-marquee-left-to-right {
  0%   { transform: translate3d(-33.3333%, 0, 0); }
  100% { transform: translate3d(0%, 0, 0); }
}

.h-tech-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 24px;
  border-right: 1px solid #F1F5F9;
  font-size: 0.84rem;
  font-weight: 700;
  color: #4B5563;
  white-space: nowrap;
}

.dark-mode .h-tech-item { color: #9CA3AF; border-right-color: rgba(255,255,255,0.06); }

.h-tech-item i { font-size: 1.1rem; }
.h-ti-html  i { color: #E34F26; }
.h-ti-css   i { color: #1572B6; }
.h-ti-js    i { color: #F7DF1E; }
.h-ti-react i { color: #61DAFB; }
.h-ti-tw    i { color: #06B6D4; }
.h-ti-next  i { color: #111827; }
.dark-mode .h-ti-next i { color: white; }
.h-ti-web3  i { color: #3C3C3D; }
.dark-mode .h-ti-web3 i { color: #D1D5DB; }
.h-ti-sol   i { color: #667EEA; }
.h-ti-git   i { color: #F05032; }
.h-ti-figma i { color: #F24E1E; }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.h-section {
  padding: 72px 0;
  background: #ffffff;
}

.h-section-alt {
  padding: 72px 0;
  background: #F9FAFB;
}

.dark-mode .h-section { background: #0A0E1A; }
.dark-mode .h-section-alt { background: #0D1223; }

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

.h-sec-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.03em;
}

.dark-mode .h-sec-title { color: #F9FAFB; }

.h-sec-title::before { content: "→"; color: #9CA3AF; font-size: 0.8em; font-weight: 400; font-family: system-ui; }
.h-sec-title::after  { content: "←"; color: #9CA3AF; font-size: 0.8em; font-weight: 400; font-family: system-ui; }

.h-sec-desc {
  font-size: 0.92rem;
  color: #6B7280;
  margin-top: 10px;
  line-height: 1.72;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   WHAT I BUILD — 4-Card Grid
   ============================================================ */
.h-build-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.h-build-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 24px;
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}

.h-build-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59,91,219,0.06), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}

/* Shine sweep on card hover */
.h-build-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transition: left 0.55s ease;
  z-index: 2;
  pointer-events: none;
}

.h-build-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 52px rgba(59,91,219,0.12); border-color: #C7D2FE; }
.h-build-card:hover::after { opacity: 1; }
.h-build-card:hover::before { left: 120%; }

.dark-mode .h-build-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.dark-mode .h-build-card:hover { border-color: rgba(99,102,241,0.35); }

.h-build-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.h-bi-blue   { background: #DBEAFE; color: #2563EB; }
.h-bi-purple { background: #EDE9FE; color: #7C3AED; }
.h-bi-indigo { background: #E0E7FF; color: #4338CA; }
.h-bi-orange { background: #FEF3C7; color: #D97706; }

.h-build-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.dark-mode .h-build-title { color: #F9FAFB; }

.h-build-desc {
  font-size: 0.83rem;
  color: #6B7280;
  line-height: 1.65;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.h-learn-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3B5BDB;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: gap .2s ease, color .2s ease;
}
.h-learn-link:hover { gap: 9px; color: #2F4AC7; }

/* ============================================================
   WHY WORK WITH ME — 3-Column
   ============================================================ */
.h-why-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

/* Left column */
.h-why-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 26px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.dark-mode .h-why-title { color: #F9FAFB; }

.h-feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 13px;
  margin-bottom: 20px;
  align-items: start;
}

.h-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.dark-mode .h-feat-icon { background: rgba(99,102,241,0.14); color: #818CF8; }

.h-feat-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
  font-family: 'Poppins', sans-serif;
}

.dark-mode .h-feat-name { color: #F9FAFB; }

.h-feat-desc {
  font-size: 0.79rem;
  color: #6B7280;
  line-height: 1.58;
}

/* Center — Direction card */
.h-direction {
  background: linear-gradient(148deg, #4338CA 0%, #3B5BDB 50%, #2563EB 100%);
  border-radius: 22px;
  padding: 28px;
  color: white;
  position: relative;
  overflow: visible;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  /* Clip child content to the rounded card, but let robot overflow */
  clip-path: none;
}

.h-direction::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  right: -60px;
  top: -60px;
  pointer-events: none;
}

.h-direction::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  left: -30px;
  bottom: -30px;
  pointer-events: none;
}

.h-dir-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  position: relative;
  z-index: 1;
}

.h-dir-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  line-height: 1.28;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.h-dir-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.65;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   ANIMATED ROBOT MASCOT
   ============================================================ */

/* Container — absolutely positioned top-right of the direction card */
.rb-container {
  position: absolute;
  top: -24px;
  right: 8px;
  width: 105px;
  z-index: 6;
  pointer-events: none;
  /* Float up-down loop */
  animation: rb-float 2.4s ease-in-out infinite;
  /* Green glow drop-shadow */
  filter: drop-shadow(0 10px 18px rgba(18,184,130,0.38));
}

.rb-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Float keyframe */
@keyframes rb-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-13px); }
}

/* Dark-mode tint */
body[data-page="home"].dark-mode .rb-container {
  filter: drop-shadow(0 10px 18px rgba(18,184,130,0.55));
}

/* Orbit dots around the sphere */
.h-orb-ring {
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 50%;
  animation: h-orb-spin 8s linear infinite;
}

.h-orb-ring-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  position: absolute;
  top: -3px;
  left: 50%;
  margin-left: -3px;
}

@keyframes h-orb-spin { to { transform: rotate(360deg); } }

/* Direction buttons */
.h-dir-btns {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.h-btn-white-sm {
  background: white;
  color: #3B5BDB;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .22s ease;
}

.h-btn-white-sm:hover { background: #EEF2FF; color: #2F4AC7; transform: translateY(-1px); }

.h-btn-glass-sm {
  background: rgba(255,255,255,0.14);
  color: white;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .22s ease;
}

.h-btn-glass-sm:hover { background: rgba(255,255,255,0.24); color: white; }

/* Right — Mini cards */
.h-mini-stack { display: grid; gap: 14px; }

.h-mini-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 18px;
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .28s ease, border-color .28s ease;
  position: relative;
  overflow: hidden;
}

/* Mini card left border glow */
.h-mini-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0%;
  background: linear-gradient(180deg, #3B5BDB, #818CF8);
  border-radius: 3px 0 0 3px;
  transition: height 0.4s ease;
}

.h-mini-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(59,91,219,0.12);
  border-color: #C7D2FE;
}

.h-mini-card:hover::before { height: 100%; }

.dark-mode .h-mini-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.dark-mode .h-mini-card:hover { border-color: rgba(99,102,241,0.35); }

.h-mini-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
}

.h-mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.dark-mode .h-mini-icon { background: rgba(99,102,241,0.14); color: #818CF8; }

.h-mini-title {
  font-size: 0.87rem;
  font-weight: 700;
  color: #111827;
  font-family: 'Poppins', sans-serif;
}

.dark-mode .h-mini-title { color: #F9FAFB; }

.h-mini-desc {
  font-size: 0.77rem;
  color: #6B7280;
  line-height: 1.58;
  margin-bottom: 10px;
}

.h-mini-arrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3B5BDB;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .18s;
}
.h-mini-arrow:hover { gap: 7px; }

/* ============================================================
   SELECTED SKILLS — Glassmorphism & Zoom Hover Effect
   ============================================================ */
.h-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

/* Smooth Seamless Glass Blinking Animation */
.h-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1F2937;
  /* Glassmorphism style */
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 18px rgba(31, 41, 55, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, color 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: skillGlassBlink 3.2s ease-in-out infinite;
}

/* Staggered organic wave blinking delays */
.h-skill-chip:nth-child(1)  { animation-delay: 0s; }
.h-skill-chip:nth-child(2)  { animation-delay: 0.3s; }
.h-skill-chip:nth-child(3)  { animation-delay: 0.6s; }
.h-skill-chip:nth-child(4)  { animation-delay: 0.9s; }
.h-skill-chip:nth-child(5)  { animation-delay: 1.2s; }
.h-skill-chip:nth-child(6)  { animation-delay: 1.5s; }
.h-skill-chip:nth-child(7)  { animation-delay: 1.8s; }
.h-skill-chip:nth-child(8)  { animation-delay: 2.1s; }
.h-skill-chip:nth-child(9)  { animation-delay: 2.4s; }
.h-skill-chip:nth-child(10) { animation-delay: 2.7s; }
.h-skill-chip:nth-child(11) { animation-delay: 3.0s; }
.h-skill-chip:nth-child(12) { animation-delay: 3.3s; }

@keyframes skillGlassBlink {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(31, 41, 55, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.85);
  }
  50% {
    box-shadow: 0 8px 24px rgba(59, 91, 219, 0.20), 0 0 14px rgba(59, 91, 219, 0.16), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(59, 91, 219, 0.45);
  }
}

/* Glass shine pass effect on hover */
.h-skill-chip::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

/* Zoom Glass Hover Effect */
.h-skill-chip:hover {
  transform: scale(1.16) translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  color: #3B5BDB;
  border-color: #3B5BDB;
  box-shadow: 0 14px 32px rgba(59, 91, 219, 0.24), 0 2px 6px rgba(59, 91, 219, 0.12);
  z-index: 10;
  animation-play-state: paused !important;
}

.h-skill-chip:hover::before {
  left: 100%;
}

/* Dark mode Glassmorphism & Blinking */
.dark-mode .h-skill-chip {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: darkSkillGlassBlink 3.2s ease-in-out infinite;
}

@keyframes darkSkillGlassBlink {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
  }
  50% {
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35), 0 0 14px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    border-color: rgba(129, 140, 248, 0.65);
  }
}

.dark-mode .h-skill-chip:hover {
  background: rgba(99, 102, 241, 0.22);
  color: #A5B4FC;
  border-color: #818CF8;
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.38);
}

/* ============================================================
   FEATURED PROJECTS — 2-Card Grid
   ============================================================ */
.h-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.h-proj-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  overflow: hidden;
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.h-proj-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.10);
  border-color: #C7D2FE;
}

.dark-mode .h-proj-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.dark-mode .h-proj-card:hover { border-color: rgba(99,102,241,0.35); }

.h-proj-img {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2D1B69 0%, #4C1D95 40%, #4F46E5 100%);
}

.h-proj-img.alt-blue {
  background: linear-gradient(135deg, #0C1A3A 0%, #1E3A5F 50%, #1D4ED8 100%);
}

.h-proj-img-icon {
  font-size: 3rem;
  color: rgba(255,255,255,0.25);
  position: absolute;
}

.h-proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform .4s ease, opacity .4s ease;
  position: relative;
  z-index: 1;
}

.h-proj-card:hover .h-proj-img img { transform: scale(1.06); opacity: 0.90; }

.h-proj-body { padding: 20px; }

.h-proj-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 7px;
  font-family: 'Poppins', sans-serif;
}

.dark-mode .h-proj-title { color: #F9FAFB; }

.h-proj-desc {
  font-size: 0.82rem;
  color: #6B7280;
  line-height: 1.65;
  margin-bottom: 14px;
}

.h-proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.h-ptag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}

.dark-mode .h-ptag { background: rgba(99,102,241,0.14); color: #818CF8; border-color: rgba(99,102,241,0.25); }

.h-proj-actions { display: flex; gap: 9px; }

.h-btn-proj-fill {
  background: #3B5BDB;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .22s, transform .22s;
}

.h-btn-proj-fill:hover { background: #2F4AC7; color: white; transform: translateY(-1px); }

.h-btn-proj-out {
  background: transparent;
  color: #374151;
  border: 1px solid #D1D5DB;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color .22s, color .22s;
}

.h-btn-proj-out:hover { border-color: #3B5BDB; color: #3B5BDB; }

/* ============================================================
   FOOTER OVERRIDES
   ============================================================ */
.footer {
  background: #111827 !important;
  padding: 0 !important;
}

.footer::before,
.footer::after { display: none !important; }

.h-footer {
  padding: 58px 0 0;
}

.h-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.65fr 0.9fr 1fr;
  gap: 38px;
  padding-bottom: 46px;
}

.h-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.h-flogo {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #111827;
  flex-shrink: 0;
}

.h-fname {
  font-size: 0.98rem;
  font-weight: 700;
  color: white;
}

.h-ftagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.6;
  margin-bottom: 18px;
}

.h-socials {
  display: flex;
  gap: 9px;
}

.h-soc {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.60);
  font-size: 0.83rem;
  text-decoration: none;
  transition: background .22s, color .22s, border-color .22s, transform .22s;
}

.h-soc:hover { background: rgba(255,255,255,0.13); color: white; border-color: rgba(255,255,255,0.22); transform: translateY(-3px) scale(1.1); }

.h-footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.h-flist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.h-flist li { font-size: 0.8rem; color: rgba(255,255,255,0.52); }
.h-flist a { color: rgba(255,255,255,0.52); text-decoration: none; transition: color .2s; }
.h-flist a:hover { color: white; }

.h-contact-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.52);
  margin-bottom: 9px;
}

.h-contact-row i { font-size: 0.78rem; color: rgba(255,255,255,0.36); width: 14px; }
.h-contact-row a { color: rgba(255,255,255,0.52); text-decoration: none; }
.h-contact-row a:hover { color: white; }

.h-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.h-footer-bottom span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.38);
}

/* ============================================================
   SECTION OVERLAP TRANSITION DIVIDERS
   ============================================================ */

/* Wavy SVG divider between hero and marquee */
.h-wave-divider {
  position: relative;
  overflow: hidden;
  height: 60px;
  margin-top: -2px;
}

.h-wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Animated stats counter glow */
.h-stat b {
  position: relative;
}

.h-stat b::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(59,91,219,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.h-stat:hover b::after { opacity: 1; }

/* ─── Scroll-cue bounce arrow (hero bottom) ─── */
.h-scroll-cue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 5;
  opacity: 0;
  animation: scrollCueAppear 1s ease 1.5s forwards, scrollCueBounce 1.6s ease-in-out 2.5s infinite;
  color: #9CA3AF;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.h-scroll-cue i {
  font-size: 0.85rem;
  animation: scrollArrowBounce 1.4s ease-in-out 2.5s infinite;
}

@keyframes scrollCueAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollCueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}

@keyframes scrollArrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ─── Direction card shimmer ─── */
.h-direction {
  animation: cardShimmer 8s ease-in-out infinite !important;
}

@keyframes cardShimmer {
  0%, 100% { box-shadow: 0 16px 48px rgba(59,91,219,0.25); }
  50%       { box-shadow: 0 24px 64px rgba(59,91,219,0.42), 0 0 40px rgba(99,102,241,0.22); }
}

/* ─── Feature icon spin on hover ─── */
.h-feature:hover .h-feat-icon {
  animation: iconSpinBounce 0.5s ease forwards;
}

@keyframes iconSpinBounce {
  0%   { transform: rotate(0deg) scale(1); }
  40%  { transform: rotate(-12deg) scale(1.15); }
  80%  { transform: rotate(8deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ─── Tech strip item hover lift ─── */
.h-tech-item {
  transition: color 0.22s ease, transform 0.22s ease, background 0.22s ease;
  border-radius: 8px;
}

.h-tech-item:hover {
  color: #3B5BDB !important;
  transform: translateY(-3px);
  background: rgba(59,91,219,0.06);
}

.dark-mode .h-tech-item:hover {
  color: #818CF8 !important;
  background: rgba(99,102,241,0.12);
}

/* ─── Overlapping decorative gradient blobs (hero bg layer) ─── */
.h-deco-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.h-deco-blob-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  top: -40px;
  left: -60px;
  animation: blobDrift1 12s ease-in-out infinite;
}

.h-deco-blob-2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59,91,219,0.10), transparent 70%);
  bottom: -20px;
  right: 5%;
  animation: blobDrift2 10s ease-in-out infinite 2s;
}

.h-deco-blob-3 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(167,139,250,0.14), transparent 70%);
  top: 40%;
  right: 35%;
  animation: blobDrift3 14s ease-in-out infinite 1s;
}

@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(30px, 20px); }
  66%       { transform: translate(-15px, 35px); }
}

@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-25px, -20px); }
}

@keyframes blobDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -15px) scale(1.12); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 1180px) {
  .h-hero-grid { gap: 32px; }
  .h-hero-content h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem) !important; }
  .h-name { font-size: clamp(3.2rem, 6.2vw, 5rem); }
  .h-hero-visual { min-height: 400px; }
  .h-hero-desc { max-width: 100%; }
}

@media (max-width: 960px) {
  body[data-page="home"] .nav-shell { padding: 0 1rem !important; }
  .h-nav-cta { display: none !important; }
  .nav-shell { min-height: 66px !important; height: auto !important; gap: 12px; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid !important; }
}

/* Tablet */
@media (max-width: 1060px) {
  .h-hero-grid       { grid-template-columns: 1fr; gap: 36px; }
  .h-hero-content    { order: 1; text-align: center; align-items: center; }
  .h-hero-visual     { order: 2; min-height: 360px; }
  .h-available        { justify-content: center; }
  .h-hero-desc       { margin-left: auto; margin-right: auto; }
  .h-hero-btns       { justify-content: center; }
  .h-blob            { width: 340px; height: 280px; }
  .h-hero-photo      { width: 240px; height: 300px; }
  .h-stats           { grid-template-columns: repeat(2, 1fr); }
  .h-build-grid      { grid-template-columns: repeat(2, 1fr); }
  .h-why-row         { grid-template-columns: 1fr 1fr; }
  .h-mini-stack      { display: none; }
  .h-footer-inner    { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* Mobile */
@media (max-width: 900px) {
  .h-tech-strip {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .site-header { position: sticky; }
  .h-hero { overflow: hidden; }
  .h-deco-blob { filter: blur(44px); opacity: 0.7; }
  .h-deco-blob-1 { width: 180px; height: 180px; top: -20px; left: -30px; }
  .h-deco-blob-2 { width: 160px; height: 160px; bottom: -20px; right: -10px; }
  .h-deco-blob-3 { display: none; }
  .nav-links {
    position: fixed !important;
    top: 72px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px) !important;
    width: min(92vw, 480px) !important;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 12px !important;
    border-radius: 20px !important;
    z-index: 1200;
  }
  .nav-links.open { transform: translateX(-50%) translateY(0) !important; }
  .h-hero { padding: 28px 0 36px; }
  .h-hero-content h1 { font-size: clamp(2.1rem, 7vw, 2.8rem) !important; }
  .h-name { font-size: clamp(3rem, 13vw, 4.5rem); }
  .h-hero-content > * { max-width: 100%; }
  .h-build-grid   { grid-template-columns: 1fr; }
  .h-why-row      { grid-template-columns: 1fr; }
  .h-projects-grid { grid-template-columns: 1fr; }
  .h-stats        { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .h-hero-visual { min-height: 320px; }
  .h-blob { width: 280px; height: 220px; }
  .h-hero-photo { width: 220px; height: 280px; }
  .h-fbadge { transform: scale(0.9); }
  .h-fbadge-js { top: 3%; right: 2px; }
  .h-fbadge-ui { top: 40%; left: -8px; }
  .h-fbadge-bc { bottom: 4%; right: 2px; }
  .h-hero-dots { display: none; }
  .h-tech-item { padding: 5px 16px; font-size: 0.76rem; }
  .h-build-card, .h-proj-card { padding: 18px; }
  .h-section { padding: 56px 0; }
  .h-footer-inner { grid-template-columns: 1fr; }
  .h-footer-bottom { flex-direction: column; text-align: center; }
  .h-orb-wrap     { display: none; }
}

@media (max-width: 480px) {
  body[data-page="home"] .nav-shell { padding: 0 1rem !important; }
  .h-available { font-size: 0.72rem; }
  .h-stats { grid-template-columns: 1fr; }
  .h-hero-btns { flex-direction: column; }
  .h-btn-fill, .h-btn-ghost-outline { width: 100%; justify-content: center; }
  .h-hero-visual { min-height: 280px; }
  .h-hero-photo { width: 190px; height: 240px; }
  .h-fbadge { display: none; }
  .h-tech-strip { padding: 12px 0; }
  .h-tech-item { padding: 5px 12px; font-size: 0.72rem; }
  .h-skill-chip { width: 100%; justify-content: center; }
  .h-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .h-hero-content h1 { font-size: clamp(1.75rem, 8vw, 2.3rem) !important; }
  .h-name { font-size: clamp(2.6rem, 12vw, 3.3rem); }
  .h-available { font-size: 0.68rem; }
  .h-stat b { font-size: 1.05rem; }
  .h-stat span { font-size: 0.65rem; }
}

/* ============================================================
   MOBILE NAV — revert pill to dropdown when hamburger shows
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links {
    position: fixed !important;
    left: 50% !important;
    top: 70px !important;
    transform: translateX(-50%) translateY(-16px) !important;
    border-radius: 22px !important;
    width: min(92vw, 480px) !important;
    display: grid !important;
    gap: 6px !important;
    padding: 12px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    background: rgba(255,255,255,0.94) !important;
    border: 1px solid rgba(255,255,255,0.75) !important;
    box-shadow: 0 16px 50px rgba(15,23,42,0.12) !important;
    transition: opacity .28s ease, transform .28s ease !important;
    white-space: normal;
  }

  .dark-mode .nav-links {
    background: rgba(10,14,26,0.96) !important;
    border-color: rgba(255,255,255,0.10) !important;
  }

  .nav-links.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
  }

  .nav-links a {
    padding: 10px 14px !important;
    border-radius: 12px !important;
  }
}
