/* =============================================
   MTS Portfolio — Complete Stylesheet
   Design: Premium dark, emerald green accent
   ============================================= */

/* ---- Design Tokens ---- */
:root {
  /* Logo-extracted palette */
  --emerald:       #10d98a;           /* bright circuit-trace green */
  --emerald-dim:   rgba(16, 217, 138, 0.12);
  --emerald-glow:  rgba(16, 217, 138, 0.30);
  --emerald-mid:   rgba(16, 217, 138, 0.50);

  --violet:        #7c3aed;           /* logo outer-border purple */
  --violet-light:  #a855f7;
  --violet-dim:    rgba(124, 58, 237, 0.15);
  --violet-glow:   rgba(124, 58, 237, 0.30);

  --teal:          #0ea5e9;           /* logo gradient mid-point teal */
  --teal-dim:      rgba(14, 165, 233, 0.12);

  --hoop:          #f97316;           /* basketball orange — personal touch */
  --hoop-dim:      rgba(249, 115, 22, 0.12);
  --hoop-glow:     rgba(249, 115, 22, 0.30);

  /* Logo signature gradient — purple → teal → emerald */
  --logo-grad: linear-gradient(135deg, #7c3aed 0%, #0ea5e9 50%, #10d98a 100%);
  --logo-grad-subtle: linear-gradient(135deg,
    rgba(124,58,237,0.55) 0%,
    rgba(14,165,233,0.40) 50%,
    rgba(16,217,138,0.55) 100%
  );

  --bg:         #04050a;
  --bg-card:    rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.055);

  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.18);
  --border-logo:  rgba(16, 217, 138, 0.20);

  --text:       #f0f4ff;
  --text-muted: rgba(240,244,255,0.55);
  --text-dim:   rgba(240,244,255,0.32);

  --font-head:  'Outfit', 'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:  all 0.35s var(--ease-out);
  --transition-fast: all 0.2s ease;

  --max-w: 1200px;
  --header-h: 72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

/* ---- Background Orbs ---- */
.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.30), transparent 70%);
  top: -220px; left: -180px;
  animation-delay: 0s;
}

.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(16,217,138,0.28), transparent 70%);
  bottom: 10%; right: -120px;
  animation-delay: -6s;
}

.orb-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(14,165,233,0.22), transparent 70%);
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
  animation-delay: -12s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,217,138,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,217,138,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(35px, -45px) scale(1.06); }
  66%       { transform: translate(-25px, 30px) scale(0.95); }
}

/* ---- Layout Helpers ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 7rem 0;
  position: relative;
  z-index: 2;
  /* Each section has its own solid background so scrolling feels real */
  background: var(--bg);
}

/* Section-specific backgrounds — alternating dark panels */
.hero {
  background: transparent;
  z-index: 2;
}

.services {
  background: #07090c;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: inset 0 1px 0 0 rgba(16, 185, 129, 0.08);
}

.projects {
  background: #050507;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  box-shadow: inset 0 1px 0 0 rgba(139, 92, 246, 0.08);
}

.about {
  background: #08090c;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
  box-shadow: inset 0 1px 0 0 rgba(16, 185, 129, 0.06);
}

.contact {
  background: #060508;
  border-top: 1px solid rgba(217, 70, 239, 0.12);
  box-shadow: inset 0 1px 0 0 rgba(217, 70, 239, 0.06);
}


/* ---- Typography ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.text-emerald { color: var(--emerald); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn i { font-size: 0.8rem; transition: transform 0.25s ease; }
.btn:hover i { transform: translateX(3px); }

.btn-primary {
  background: var(--emerald);
  color: #030303;
  border: 1px solid var(--emerald);
  box-shadow: 0 0 0 0 var(--emerald-glow);
}
.btn-primary:hover {
  background: transparent;
  color: var(--emerald);
  box-shadow: 0 0 28px var(--emerald-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s var(--ease-out);
}

.header.scrolled {
  height: 64px;
  background: rgba(4, 5, 9, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.header.scrolled .logo-img {
  height: 30px;
}
.header.scrolled .logo span {
  font-size: 1.2rem;
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.75));
}

.logo-dot { color: var(--emerald); }

.nav {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--emerald);
  border-radius: 1px;
  transition: width 0.25s var(--ease-out);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
}
.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition-fast);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: rgba(5, 5, 7, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  gap: 0.25rem;
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
  z-index: 99;
}

.mobile-nav.open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--emerald); }

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-text { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.95rem;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

/* ---- Word-mask reveal system ---- */
/* Outer container clips the animation */
.ht-mask {
  display: block;
  overflow: hidden;
  /* add a tiny bit of padding so descenders aren't clipped */
  padding-bottom: 0.08em;
}

/* Each inner line starts translated down and invisible */
.ht-line {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  animation: ht-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered delays per line */
.ht-l1 { animation-delay: 0.15s; }
.ht-l2 { animation-delay: 0.32s; }
.ht-l3 { animation-delay: 0.48s; }
.ht-l4 { animation-delay: 0.62s; }

@keyframes ht-rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---- "Melusi" — clean solid emerald text ---- */
.ht-name {
  color: var(--emerald);
  -webkit-text-fill-color: var(--emerald);
}

.ht-punct {
  color: var(--emerald);
  -webkit-text-fill-color: var(--emerald);
}

/* ---- Hero Dynamic Role Switcher ---- */
.role-highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.role-text {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.role-cursor {
  color: var(--emerald);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.social-link:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-dim);
}

/* Hero Photo */
.hero-photo {
  position: relative;
  width: 310px;
  height: 310px;
  flex-shrink: 0;
}

.photo-rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ring-spin 12s linear infinite;
}
.ring-1 {
  inset: -18px;
  border-color: rgba(16,185,129,0.18);
  animation-duration: 20s;
}
.ring-2 {
  inset: -8px;
  border-color: rgba(139,92,246,0.15);
  border-style: dashed;
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.photo-frame {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(16,185,129,0.12),
    0 24px 60px rgba(0,0,0,0.7),
    inset 0 0 40px rgba(0,0,0,0.3);
  z-index: 1;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.hero-photo:hover .photo-frame img {
  transform: scale(1.04);
}

.photo-tag {
  position: absolute;
  bottom: 10px; right: -20px;
  background: rgba(10,10,14,0.9);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.photo-tag i { color: var(--emerald); }

/* Scroll hint */
.scroll-down {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: bounce-down 2.5s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.012), transparent);
}

.section-header { margin-bottom: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: transparent;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transition: var(--transition);
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.service-card:nth-child(1):hover::before { background: linear-gradient(90deg, transparent, var(--emerald), transparent); }
.service-card:nth-child(2):hover::before { background: linear-gradient(90deg, transparent, var(--violet), transparent); }
.service-card:nth-child(3):hover::before { background: linear-gradient(90deg, transparent, var(--fuchsia), transparent); }

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.service-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.icon-emerald { background: var(--emerald-dim); color: var(--emerald); }
.icon-violet  { background: var(--violet-dim);  color: var(--violet); }
.icon-fuchsia { background: var(--fuchsia-dim); color: var(--fuchsia); }

/* Jersey-number watermark on service cards */
.service-card {
  position: relative;
}
.service-card::after {
  content: attr(data-jersey);
  position: absolute;
  bottom: -0.5rem;
  right: 1.25rem;
  font-family: var(--font-head);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(249, 115, 22, 0.04);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  transition: color 0.35s ease;
  z-index: 0;
}
.service-card:hover::after {
  color: rgba(249, 115, 22, 0.09);
}

.service-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--hoop);
  opacity: 0.7;
}

.service-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.service-list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-size: 0.75rem;
}


/* =============================================
   PROJECTS
   ============================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* Project Preview Area */
.project-preview {
  position: relative;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  overflow: hidden;
}

.preview-browser {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.pbdot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.pbdot.red    { background: #ff5f57; }
.pbdot.yellow { background: #febc2e; }
.pbdot.green  { background: #28c840; }

.preview-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(40px);
  transition: opacity 0.5s ease;
  z-index: 2;
}

.project-card:hover .preview-glow { opacity: 0.6; }

.preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.5;
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
  z-index: 1;
}
.project-card:hover .preview-img {
  opacity: 0.8;
  transform: scale(1.04);
}
.preview-emerald .preview-glow { background: radial-gradient(circle, var(--emerald), transparent 65%); }

.preview-emerald {
  background: #030303;
  border-bottom: 1px solid rgba(16,185,129,0.12);
}
.preview-emerald::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(4, 31, 22, 0.6) 0%, rgba(7, 26, 18, 0.8) 60%, #030303 100%);
  z-index: 2;
}

.preview-violet {
  background: #030303;
  border-bottom: 1px solid rgba(139,92,246,0.12);
}
.preview-violet::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(17, 12, 46, 0.6) 0%, rgba(13, 9, 36, 0.8) 60%, #030303 100%);
  z-index: 2;
}
.preview-violet .preview-glow { background: radial-gradient(circle, var(--violet), transparent 65%); }

.preview-fuchsia { background: linear-gradient(145deg, #200c26 0%, #170920 60%, #030303 100%); border-bottom: 1px solid rgba(217,70,239,0.12); }
.preview-fuchsia .preview-glow { background: radial-gradient(circle, var(--fuchsia), transparent 65%); }

.preview-content {
  position: relative;
  z-index: 3;
}
.preview-label {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.preview-type {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* Project Info */
.project-info {
  padding: 1.5rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

.project-modal-btn,
.project-link-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition-fast);
}
.project-modal-btn i,
.project-link-btn i {
  transform: rotate(-45deg);
  transition: transform 0.25s var(--ease-out);
}
.project-modal-btn:hover,
.project-link-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-dim);
}
.project-modal-btn:hover i,
.project-link-btn:hover i {
  transform: rotate(-45deg) translate(2px, -2px);
}

.project-brief {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

.projects-cta {
  display: flex;
  justify-content: center;
}

/* =============================================
   ABOUT
   ============================================= */
.about { position: relative; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-bio p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-cta { margin-top: 2rem; }

.skills-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---- Interactive Skill Pills ---- */
.about-skills {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(16, 217, 138, 0.05);
  border: 1px solid rgba(16, 217, 138, 0.18);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
  cursor: default;
}

.pill i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

/* Authentic Brand Colors for Skill Pills */
.pill-js i       { color: #f7df1e; }
.pill-ts i       { color: #3178c6; }
.pill-python i   { color: #38bdf8; }
.pill-csharp i   { color: #a855f7; }
.pill-sql i      { color: #0284c7; }
.pill-html i     { color: #e34f26; }
.pill-react i    { color: #61dafb; }
.pill-dotnet i   { color: #a855f7; }
.pill-node i     { color: #68a063; }
.pill-tailwind i { color: #38bdf8; }
.pill-postgres i { color: #336791; }
.pill-supabase i { color: #3ecf8e; }
.pill-git i      { color: #f05032; }
.pill-cisco i    { color: #049fd9; }
.pill-figma i    { color: #f24e1e; }

.pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.pill:hover i {
  transform: scale(1.25);
}

/* =============================================
   VALUE STRIP — "Why Work With Me"
   ============================================= */
.value-strip {
  padding: 3rem 0;
  position: relative;
  z-index: 2;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.value-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-teal { background: var(--teal-dim); color: var(--teal); }
.icon-hoop { background: var(--hoop-dim); color: var(--hoop); }

.value-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.value-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: linear-gradient(to bottom, transparent, rgba(16,185,129,0.025), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-intro p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}
.contact-info-link i {
  width: 18px;
  text-align: center;
  color: var(--emerald);
}
.contact-info-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-card);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}

.form-feedback {
  font-size: 0.85rem;
  min-height: 1.2rem;
  text-align: center;
}
.form-feedback.success { color: var(--emerald); }
.form-feedback.error   { color: #f87171; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--emerald); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Hell's Paradise footer quote */
.footer-quote {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  opacity: 0.55;
  letter-spacing: 0.04em;
  /* subtle sakura-pink tint on hover */
  transition: color 0.3s ease, opacity 0.3s ease;
}
.footer-quote:hover {
  color: #f9a8d4;
  opacity: 0.85;
}


/* =============================================
   BASKETBALL COURT ARC SECTION DIVIDER  🏀
   ============================================= */
.court-divider {
  position: relative;
  height: 60px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.court-divider svg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 60px;
  opacity: 0.18;
}
.court-divider svg path {
  stroke: var(--hoop);
  stroke-width: 1.5;
  fill: none;
}

/* =============================================
   PROJECT MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: rgba(10, 10, 14, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 2.5rem;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease-spring);
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-card);
}

/* Modal Content Styling */
.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
}
.modal-title {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.modal-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 0.6rem;
  margin-top: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.modal-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.modal-feature-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.modal-feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-size: 0.75rem;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.modal-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--emerald); }

/* =============================================
   RESPONSIVE — Complete Breakpoint System
   ============================================= */

/* ---- Large Tablet (≤ 1280px) ---- */
@media (max-width: 1280px) {
  :root { --max-w: 1080px; }

  .hero-container { gap: 3rem; }
  .hero-title { font-size: clamp(2.4rem, 5vw, 3.5rem); }
  .hero-photo { width: 270px; height: 270px; }

  .services-grid { gap: 1.25rem; }
  .projects-grid { gap: 1.25rem; }
}

/* ---- Tablet Landscape (≤ 1024px) ---- */
@media (max-width: 1024px) {
  :root { --max-w: 900px; }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
  }
  .hero-photo { width: 240px; height: 240px; }

  /* Services — 2 columns, last card full width */
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; width: 100%; }

  /* Value strip — 2 columns */
  .value-grid { grid-template-columns: repeat(2, 1fr); }

  /* Projects — 2 columns, last card full width */
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card:last-child { grid-column: 1 / -1; }

  /* About — stack vertically */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-skills {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact — stack vertically */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-intro { max-width: 560px; }
}

/* ---- Tablet Portrait / Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  section { padding: 5.5rem 0; }

  /* Header */
  .nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 1.5rem; }

  /* Hero — stack photo below text */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 1rem;
  }
  .hero-text { max-width: 100%; }
  .hero-badge { margin: 0 auto 1.75rem; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-sub {
    margin: 0 auto 2rem;
    max-width: 460px;
    font-size: 0.95rem;
  }
  .hero-cta {
    justify-content: center;
    gap: 0.75rem;
  }
  .hero-socials { justify-content: center; }

  /* Hero photo — centered, smaller */
  .hero-photo {
    margin: 0 auto;
    width: 200px;
    height: 200px;
    order: -1; /* photo on top on mobile */
  }
  .photo-tag {
    right: -8px;
    font-size: 0.62rem;
    padding: 0.3rem 0.75rem;
  }

  /* Services — single column */
  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; max-width: 100%; }
  .service-card { padding: 1.75rem 1.5rem; }

  /* Value strip — single column */
  .value-grid { grid-template-columns: 1fr; }

  /* Projects — single column */
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:last-child { grid-column: auto; }

  /* About — single column skills */
  .about-skills {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  /* Contact */
  .contact-form-wrap { padding: 1.75rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-intro h2 { font-size: 2rem; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .footer-links { justify-content: center; flex-wrap: wrap; }

  /* Modal */
  .modal-overlay { padding: 1rem; }
  .modal-box { padding: 1.75rem 1.5rem; max-height: 90vh; }
  .modal-title { font-size: 1.45rem; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; justify-content: center; }

  /* Section titles */
  .section-title { font-size: clamp(1.8rem, 5.5vw, 2.4rem); }
}

/* ---- Small Mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  section { padding: 4.5rem 0; }

  /* Hero */
  .hero-title { font-size: 1.9rem; line-height: 1.12; }
  .hero-photo { width: 170px; height: 170px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; justify-content: center; max-width: 280px; }
  .scroll-down { display: none; }

  /* Services */
  .service-name { font-size: 1rem; }
  .service-desc { font-size: 0.83rem; }

  /* Projects */
  .project-preview { height: 170px; }
  .preview-label { font-size: 1.2rem; }

  /* About */
  .about-skills {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  /* Contact */
  .contact-form-wrap { padding: 1.25rem 1rem; }
  .contact-info-link { font-size: 0.82rem; }

  /* Nav */
  .mobile-nav { padding: 1rem 1.25rem 1.75rem; }
  .mobile-nav-link { font-size: 0.95rem; padding: 0.6rem 0; }

  /* Buttons */
  .btn { padding: 0.75rem 1.4rem; font-size: 0.85rem; }
  .btn-sm { padding: 0.45rem 0.9rem; font-size: 0.75rem; }

  /* Footer */
  .footer-links { gap: 1.25rem; }
  .footer-copy { font-size: 0.72rem; }

  /* Section headings */
  .section-title { font-size: 1.75rem; }
  .eyebrow { font-size: 0.65rem; }
}

/* ---- Touch Devices — disable tilt effects ---- */
@media (hover: none) {
  .project-card:hover,
  .service-card:hover {
    transform: none !important;
  }
  .btn:hover {
    transform: none !important;
  }
}



/* =============================================
   DYNAMIC EFFECTS — Cursor, Progress, Typing
   ============================================= */

/* ---- Custom Cursor ---- */
/* Hide system cursor site-wide */
*, *::before, *::after { cursor: none !important; }

/* --- Cursor Dot (sharp emerald core) --- */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow:
    0 0 10px var(--emerald),
    0 0 20px rgba(16,217,138,0.6);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.25s ease;
  opacity: 0;
  mix-blend-mode: normal;
}
.cursor-dot.visible  { opacity: 1; }
.cursor-dot.hovering {
  width: 6px;
  height: 6px;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 20px rgba(255,255,255,0.5);
}
.cursor-dot.clicking {
  transform: translate(-50%, -50%) scale(0.5);
}

/* --- Cursor Ring (purple → teal → emerald gradient) --- */
.cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s var(--ease-spring), height 0.25s var(--ease-spring);

  /* Gradient border via background + mask */
  background: conic-gradient(
    from 0deg,
    #7c3aed,
    #0ea5e9,
    #10d98a,
    #7c3aed
  );
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));

  animation: ring-rotate 3s linear infinite;
  filter: drop-shadow(0 0 5px rgba(124,58,237,0.7));
}
.cursor-ring.visible  { opacity: 1; }
.cursor-ring.hovering {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 10px rgba(16,217,138,0.8));
  background: conic-gradient(
    from 0deg,
    #10d98a,
    #0ea5e9,
    #7c3aed,
    #10d98a
  );
}
.cursor-ring.clicking {
  width: 28px;
  height: 28px;
}

@keyframes ring-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Cursor Trail (soft ambient blob) --- */
.cursor-trail {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(16,217,138,0.08) 0%,
    rgba(14,165,233,0.04) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}
.cursor-trail.visible { opacity: 1; }

/* Legacy glow — keep faint for depth */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124,58,237,0.05) 0%, rgba(16,217,138,0.03) 40%, transparent 70%);
  transition: opacity 0.4s ease;
  opacity: 0;
  mix-blend-mode: screen;
}
.cursor-glow.active { opacity: 1; }


/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--violet), var(--fuchsia));
  z-index: 999;
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px var(--emerald);
}

/* Typing cursor blink */
.typed-role {
  color: var(--emerald);
}
.typed-cursor {
  color: var(--emerald);
  animation: blink 0.9s step-end infinite;
  font-weight: 300;
  opacity: 0.8;
}
@keyframes blink {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 0; }
}

/* Enhanced hover glows on service cards */
.service-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(16,185,129,0.06);
}
.service-card:nth-child(2):hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(139,92,246,0.07);
}
.service-card:nth-child(3):hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(217,70,239,0.07);
}

/* Magnetic button subtle pulse on hover */
.btn-primary {
  transition: var(--transition), box-shadow 0.3s ease;
}
.btn-primary:hover {
  animation: btn-pulse 1.5s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(16,185,129,0.3); }
  50%       { box-shadow: 0 0 32px rgba(16,185,129,0.55); }
}

/* Skill list item stagger entrance */
.skills-list li {
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.skills-list li:hover {
  color: var(--text);
  padding-left: 1.35rem;
}
.skills-list li:hover::before {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* Project card — extra glow on preview hover */
.project-card:hover .preview-emerald { box-shadow: inset 0 0 60px rgba(16,185,129,0.12); }
.project-card:hover .preview-violet  { box-shadow: inset 0 0 60px rgba(139,92,246,0.12); }
.project-card:hover .preview-fuchsia { box-shadow: inset 0 0 60px rgba(217,70,239,0.12); }

/* Photo frame glow on hero hover */
.hero-photo:hover .photo-frame {
  box-shadow:
    0 0 0 1px rgba(16,185,129,0.25),
    0 24px 60px rgba(0,0,0,0.7),
    0 0 40px rgba(16,185,129,0.12),
    inset 0 0 40px rgba(0,0,0,0.3);
}

/* Contact info links hover underline sweep */
.contact-info-link {
  position: relative;
  overflow: hidden;
}
.contact-info-link::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 1rem;
  width: 0; height: 1px;
  background: var(--emerald);
  transition: width 0.3s var(--ease-out);
}
.contact-info-link:hover::after { width: calc(100% - 2rem); }

/* Nav link active glow */
.nav-link.active {
  text-shadow: 0 0 20px rgba(16,185,129,0.4);
}

/* Social links spin on hover */
.social-link:hover i {
  animation: spin-once 0.4s ease;
}
@keyframes spin-once {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* About section reveal stagger for skill items */
.skills-list li {
  animation: none;
}
.about-skills.visible .skills-list li {
  animation: fadeSlideIn 0.4s var(--ease-out) both;
}
.about-skills.visible .skills-block:nth-child(1) li:nth-child(1) { animation-delay: 0.05s; }
.about-skills.visible .skills-block:nth-child(1) li:nth-child(2) { animation-delay: 0.10s; }
.about-skills.visible .skills-block:nth-child(1) li:nth-child(3) { animation-delay: 0.15s; }
.about-skills.visible .skills-block:nth-child(1) li:nth-child(4) { animation-delay: 0.20s; }
.about-skills.visible .skills-block:nth-child(1) li:nth-child(5) { animation-delay: 0.25s; }
.about-skills.visible .skills-block:nth-child(2) li:nth-child(1) { animation-delay: 0.15s; }
.about-skills.visible .skills-block:nth-child(2) li:nth-child(2) { animation-delay: 0.20s; }
.about-skills.visible .skills-block:nth-child(2) li:nth-child(3) { animation-delay: 0.25s; }
.about-skills.visible .skills-block:nth-child(2) li:nth-child(4) { animation-delay: 0.30s; }
.about-skills.visible .skills-block:nth-child(2) li:nth-child(5) { animation-delay: 0.35s; }
.about-skills.visible .skills-block:nth-child(3) li:nth-child(1) { animation-delay: 0.25s; }
.about-skills.visible .skills-block:nth-child(3) li:nth-child(2) { animation-delay: 0.30s; }
.about-skills.visible .skills-block:nth-child(3) li:nth-child(3) { animation-delay: 0.35s; }
.about-skills.visible .skills-block:nth-child(3) li:nth-child(4) { animation-delay: 0.40s; }
.about-skills.visible .skills-block:nth-child(3) li:nth-child(5) { animation-delay: 0.45s; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Section eyebrow animated underline */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--emerald);
  transition: width 0.6s var(--ease-out) 0.2s;
}
.section-header.visible .eyebrow::before,
.about-bio.visible .eyebrow::before,
.contact-intro.visible .eyebrow::before {
  width: 24px;
}

/* Footer link hover glow */
.footer-links a:hover {
  text-shadow: 0 0 12px rgba(16,185,129,0.5);
}

/* =============================================
   TECH STRIP & SCROLL REVEALS
   ============================================= */

/* Tech strip styling */
.tech-strip {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg,
    rgba(124, 58, 237, 0.04) 0%,
    rgba(14, 165, 233, 0.03) 50%,
    rgba(16, 217, 138, 0.04) 100%
  );
  border-top: 1px solid rgba(16, 217, 138, 0.12);
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
  padding: 1.15rem 0;
  display: flex;
  position: relative;
  z-index: 5;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
}
.tech-strip-track {
  display: flex;
  white-space: nowrap;
  gap: 3rem;
  animation: marquee-scroll 28s linear infinite;
}
.tech-strip-track:hover {
  animation-play-state: paused;
}
.tech-strip span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.tech-strip span i {
  font-size: 0.95rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Authentic Tech Brand Colors */
.tech-react i     { color: #61dafb; }
.tech-next i      { color: #f3f4f6; }
.tech-dotnet i    { color: #a855f7; }
.tech-node i      { color: #68a063; }
.tech-ts i        { color: #3178c6; }
.tech-python i    { color: #38bdf8; }
.tech-postgres i  { color: #38bdf8; }
.tech-sqlserver i { color: #f87171; }
.tech-cisco i     { color: #049fd9; }
.tech-cyber i     { color: #10d98a; }
.tech-git i       { color: #f05032; }
.tech-tailwind i  { color: #38bdf8; }

.tech-strip span:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(255,255,255,0.15);
}
.tech-strip span:hover i {
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px currentColor);
}
.tech-strip span::after {
  content: '✦';
  color: var(--violet-light);
  opacity: 0.5;
  margin-left: 3rem;
  font-size: 0.7rem;
}
@keyframes marquee-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Scroll Reveal Variants */
.reveal-left {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-right {
  opacity: 0;
  transform: translate3d(40px, 0, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-scale {
  opacity: 0;
  transform: scale3d(0.95, 0.95, 1);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* WhatsApp button style */
.btn-whatsapp {
  background: #25d366;
  color: #fff !important;
  border: 1px solid #25d366;
}
.btn-whatsapp:hover {
  background: #20ba5a;
  border-color: #20ba5a;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

/* Contact divider */
.contact-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.contact-divider::before {
  margin-right: 1rem;
}

/* =============================================
   FLOATING MOBILE BOTTOM PILL NAV BAR  💊
   ============================================= */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Prevent footer content from getting covered by floating nav pill */
  body {
    padding-bottom: 5.5rem;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9995;
    width: auto;
    max-width: 92vw;
  }

  .bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.2rem;
    background: rgba(6, 5, 9, 0.72);
    border: 1px solid rgba(16, 217, 138, 0.22);
    border-radius: 100px;
    padding: 0.4rem 0.55rem;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 16px 40px rgba(0, 0, 0, 0.75),
      0 0 24px rgba(16, 217, 138, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s var(--ease-out);
  }

  /* Shrink & semi-transparent on scroll */
  .mobile-bottom-nav.scrolled .bottom-nav-inner {
    background: rgba(6, 5, 9, 0.55);
    border-color: rgba(16, 217, 138, 0.15);
    padding: 0.28rem 0.45rem;
    transform: scale(0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }

  .bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.75rem;
    border-radius: 100px;
    color: var(--text-dim);
    font-size: 0.6rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
    position: relative;
  }

  .bottom-nav-link i {
    font-size: 1.05rem;
    transition: transform 0.25s var(--ease-spring), color 0.25s ease;
  }

  .bottom-nav-link.active,
  .bottom-nav-link:hover {
    color: var(--emerald);
    background: rgba(16, 217, 138, 0.12);
  }

  .bottom-nav-link.active i {
    color: var(--emerald);
    transform: translateY(-2px) scale(1.15);
    filter: drop-shadow(0 0 8px var(--emerald-glow));
  }

  /* Hide old hamburger menu button and old mobile slide nav */
  .hamburger,
  .mobile-nav {
    display: none !important;
  }
}
.contact-divider::after {
  margin-left: 1rem;
}