/* ============================================
   ANGELO PUZA — PORTFOLIO STYLESHEET (DEEP BLUE EDITION)
   Dark blue & black palette with white/blue-white accents
   ============================================ */

/* ── Variables ──────────────────────────────── */
:root {
  color-scheme:     dark;
  --bg-deep:       #03050b;
  --bg-primary:    #0a0f1a;
  --bg-secondary:  #111725;
  --bg-card:       #0d1322;
  --fg-white:      #ffffff;
  --fg-muted:      #b4c7e7;
  --accent-blue:   #3b82f6;
  --accent-glow:   #60a5fa;
  --border-dim:    rgba(59, 130, 246, 0.15);
  --border-light:  rgba(180, 199, 231, 0.12);
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --radius:        20px;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--fg-white);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Custom Cursor (white/blue refinement) ── */
.cursor {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 8px rgba(59,130,246,0.6);
}
.cursor-follower {
  position: fixed;
  width: 34px; height: 34px;
  border: 1.5px solid var(--accent-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease), width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.45;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 12px; height: 12px; background: white; }
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower { width: 52px; height: 52px; opacity: 0.2; border-color: white; }

/* ── Nav (deep blue backdrop) ───────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(3, 5, 11, 0.92);
  backdrop-filter: blur(18px);
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border-dim);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #b4c7e7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-logo span { background: none; -webkit-background-clip: unset; background-clip: unset; color: var(--accent-blue); }
.nav-links { display: flex; gap: 2.8rem; }
.nav-links .nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}
.nav-links .nav-link::after {
  content: '';
  position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent-blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links .nav-link:hover { color: white; }
.nav-links .nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: white; font-weight: 600; }
.nav-link.active::after { transform: scaleX(1); background: var(--accent-glow); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; min-width: 44px; min-height: 44px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--fg-white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(3,5,11,0.98);
  backdrop-filter: blur(12px);
  z-index: 99;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  visibility: hidden;
  /* Hide only after the fade finishes; show instantly so the links are focusable on open. */
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.mobile-menu.open {
  opacity: 1; pointer-events: all; visibility: visible;
  transition: opacity 0.3s, visibility 0s;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--accent-blue); }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 8rem 2.5rem 4rem;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.28;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-blue); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 40px; height: 2px; background: var(--accent-blue);
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 800; line-height: 0.95;
  color: white; margin-bottom: 1.5rem;
}
.hero-name em {
  font-style: normal;
  background: linear-gradient(120deg, #ffffff, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role {
  font-size: 1.1rem; font-weight: 300;
  color: var(--fg-muted); line-height: 1.6;
  margin-bottom: 2.5rem;
}
.hero-role span { color: white; font-weight: 500; border-bottom: 1px dashed var(--accent-blue);}
.hero-cta { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Hero Proof Strip */
.hero-proof-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0.9rem 1.4rem;
  background: rgba(13, 19, 34, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  max-width: fit-content;
}
.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-proof-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg-white);
  line-height: 1.1;
}
.hero-proof-num .stat-num {
  display: inline;
}
.hero-proof-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.hero-proof-divider {
  width: 1px;
  height: 26px;
  background: var(--border-light);
}
@media (max-width: 600px) {
  .hero-proof-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
  }
  .hero-proof-divider {
    display: none;
  }
}

/* Image frame */
.hero-image { position: relative; }
.hero-image-frame {
  position: relative;
  border-radius: 28px; overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border-dim);
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.5);
}
.hero-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: grayscale(15%) brightness(0.95) contrast(1.08);
  transition: filter 0.5s, transform 0.6s var(--ease);
}
.hero-image-frame:hover img { filter: grayscale(0%) brightness(1.02); transform: scale(1.02); }
.hero-image-accent {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.1), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  position: absolute; bottom: -1rem; left: -1.2rem;
  background: rgba(17,23,37,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-dim);
  padding: 0.7rem 1.4rem;
  border-radius: 60px;
  font-size: 0.8rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--fg-muted);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.18);
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 2.5rem;
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fg-muted);
}
.scroll-line {
  width: 55px; height: 1px; background: rgba(180,199,231,0.4);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: var(--accent-blue);
  animation: scrollFlow 2.2s ease-in-out infinite;
}
@keyframes scrollFlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Buttons */
.btn-main {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #2563eb; color: white;
  font-weight: 600; font-size: 0.9rem;
  padding: 0.8rem 2rem; border-radius: 60px;
  border: none; cursor: pointer; transition: all 0.25s var(--ease);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-main:hover {
  transform: translateY(-3px);
  background: #1d4ed8;
  box-shadow: 0 12px 28px rgba(37,99,235,0.45);
}
.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 0.9rem; font-weight: 500;
  color: var(--fg-muted); padding: 0.8rem 1.8rem;
  border: 1px solid var(--border-dim); border-radius: 60px;
  transition: all 0.2s;
  background: rgba(3,5,11,0.4);
}
.btn-ghost:hover { color: white; border-color: var(--accent-blue); background: rgba(59,130,246,0.1); }
.btn-main.full-width { width: 100%; justify-content: center; }

/* Shared section style */
.section-pad { padding: 7rem 2.5rem; }
.container { max-width: 1280px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-blue); margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.15;
  color: white; margin-bottom: 1.5rem;
}
.section-title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  text-decoration-color: var(--accent-blue);
}

/* About Section (dark blue layers) */
.about { background: var(--bg-primary); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.about-left p {
  color: var(--fg-muted); line-height: 1.75;
  margin-bottom: 1.25rem; font-size: 1rem;
}
.about-tags {
  margin-top: 2rem;
}
.tag {
  font-size: 0.75rem; font-weight: 500;
  padding: 0.4rem 1rem; border-radius: 40px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border-dim);
  color: #cbdffc;
  transition: all 0.2s;
}
.tag:hover { border-color: var(--accent-blue); color: white; background: rgba(59,130,246,0.2); }

.about-left p.about-lead {
  font-size: 1.12rem; line-height: 1.65; color: #dceafc;
}
.about-left p.about-lead strong { color: white; font-weight: 600; }

.about-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em;
  color: white; margin: 2rem 0 0.9rem;
}
.about-story {
  background: rgba(59,130,246,0.06);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--accent-blue);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0.25rem;
}
.about-story-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-glow); margin-bottom: 0.5rem;
}
.about-left .about-story p {
  margin-bottom: 0; line-height: 1.7; font-size: 0.95rem;
}
.about-points { display: grid; gap: 0.8rem; }
.about-points li {
  position: relative; padding-left: 1.35rem;
  color: var(--fg-muted); font-size: 0.9rem; line-height: 1.6;
}
.about-points li::before {
  content: ''; position: absolute; left: 0; top: 0.52em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-blue); box-shadow: 0 0 8px rgba(59,130,246,0.5);
}
.about-points li strong { color: white; font-weight: 600; }

.tag-group { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.15rem; }
.tag-group-label {
  flex-basis: 100%;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #8ea3ff; margin-bottom: 0.5rem;
}
.facts-stack { margin-top: 1.5rem; display: grid; gap: 1rem; }
.fact-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s var(--ease);
}
.fact-card:hover { border-color: var(--accent-blue); }
.fact-icon {
  font-size: 1.35rem; line-height: 1; margin-top: 0.05em;
  filter: drop-shadow(0 0 4px rgba(59,130,246,0.5));
}
.fact-title {
  font-family: var(--font-display); font-weight: 700; color: white;
  font-size: 0.95rem; margin-bottom: 0.2rem;
}
.fact-sub { color: var(--fg-muted); font-size: 0.82rem; line-height: 1.5; }
.fact-sub + .fact-sub { margin-top: 0.15rem; }

.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s var(--ease);
}
.stat-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px);
  background: #0f172f;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  color: var(--accent-glow); line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.8rem; color: #b9ceff; line-height: 1.4; }
.stat-card.accent { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.3); }

/* Projects */
.projects { background: var(--bg-deep); }
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; margin-top: 3rem;
}
.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.project-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.2);
}
.project-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
}
.project-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s;
  filter: brightness(0.85) contrast(1.05);
}
.project-card:hover .project-img-wrap img {
  transform: scale(1.07);
  filter: brightness(1) contrast(1.1);
}
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(3,5,11,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-card:focus-within .project-overlay { opacity: 1; }
.project-link-btn {
  font-size: 0.85rem; font-weight: 600;
  background: white; color: #03050b;
  padding: 0.6rem 1.4rem; border-radius: 50px;
  transition: transform 0.2s;
}
.project-link-btn:hover { transform: scale(1.05); background: var(--accent-blue); color: white; }
.project-info { padding: 1.5rem; }
.project-meta {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem;
}
.project-meta-left {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.project-num {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 800;
  color: var(--accent-blue); letter-spacing: 0.1em;
}
.project-status {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-glow);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(96,165,250,0.3);
  padding: 0.2rem 0.6rem; border-radius: 40px;
  white-space: nowrap;
}
.project-date {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--fg-muted);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.6rem; border-radius: 40px;
  white-space: nowrap;
}
.project-tech-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-tech-pills span {
  font-size: 0.65rem; font-weight: 500;
  background: rgba(0,0,0,0.5); color: var(--fg-muted);
  padding: 0.2rem 0.7rem; border-radius: 40px;
  border: 1px solid var(--border-light);
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 0.5rem;
}
.project-info p { font-size: 0.85rem; color: #b4c7e7; line-height: 1.55; }
.projects-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; margin-top: 3.5rem; margin-left: -2rem; flex-wrap: wrap;
}

/* Contact */
.contact { background: var(--bg-primary); border-top: 1px solid var(--border-light); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start; margin-top: 1rem;
}
.contact-left p { color: var(--fg-muted); line-height: 1.8; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.9rem; color: var(--fg-muted);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-dim); border-radius: var(--radius);
  transition: all 0.2s;
}
.contact-item:hover {
  border-color: var(--accent-blue); color: white;
  background: rgba(59,130,246,0.08);
}
.contact-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: #111725; border-radius: 12px;
  font-size: 1rem; flex-shrink: 0;
  border: 1px solid var(--border-dim);
}

.contact-whatsapp {
  margin-bottom: 1.5rem;
}
.contact-whatsapp .btn-main {
  padding: 0.8rem 1.8rem;
}
.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

/* Floating WhatsApp Quick-Chat Action */
.floating-whatsapp {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #03050b;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  color: #03050b;
}
.floating-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    padding: 0.85rem;
    bottom: 1.25rem;
    right: 1.25rem;
    border-radius: 50%;
  }
  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

.contact-cta {
  margin-top: 1rem;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.8rem; font-weight: 600; color: #cbd5ff; letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: #0a0f18;
  border: 1px solid var(--border-dim);
  border-radius: 14px; padding: 0.85rem 1rem;
  color: white; font-family: var(--font-body); font-size: 0.9rem;
  transition: 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.error-message { font-size: 0.75rem; color: #f87171; display: none; }
.error-message.show { display: block; }
.form-note.success { color: #3b82f6; font-weight: 500; }

/* Honeypot anti-spam field — must stay hidden; !important guards against
   any external stylesheet overriding the inline display:none. */
input[name="_gotcha"] { display: none !important; }

/* Footer */
.footer {
  padding: 1.8rem 2.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-deep);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: #7f8ea3;
}

/* Reveal animations */
.reveal-up {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-right {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal-up { opacity: 0; transform: translateY(40px); }
.js .reveal-right { opacity: 0; transform: translateX(40px); }
.js .reveal-up.visible, .js .reveal-right.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Experience */
.experience { background: var(--bg-secondary); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.timeline { display: grid; gap: 2rem; margin-top: 3rem; }
.exp-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 2rem; transition: border-color 0.3s var(--ease); }
.exp-card:hover { border-color: var(--accent-blue); }
.exp-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.exp-role { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: white; }
.exp-company { color: var(--accent-glow); font-weight: 600; }
.exp-date { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8ea3ff; white-space: nowrap; }
.exp-intro { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.1rem; }
.exp-list { display: grid; gap: 0.65rem; }
.exp-list li { position: relative; padding-left: 1.5rem; color: var(--fg-muted); font-size: 0.88rem; line-height: 1.6; }
.exp-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 8px rgba(59,130,246,0.5); }

/* Skip link */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: white; color: #03050b;
  padding: 0.75rem 1.25rem; border-radius: 0 0 12px 0;
  font-weight: 600; z-index: 300;
}
.skip-link:focus { left: 0; }

/* Touch devices: keep project overlay visible */
@media (hover: none) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(3,5,11,0.88), rgba(3,5,11,0.35));
    align-items: flex-end; justify-content: center;
    padding-bottom: 1.25rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal-up, .js .reveal-right,
  .reveal-up.visible, .reveal-right.visible {
    opacity: 1 !important; transform: none !important;
  }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

.services-header-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-image { order: -1; max-width: 300px; margin: 0 auto; }
  .hero-eyebrow { justify-content: center; }
  .hero-cta { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-right { order: -1; }
  .hero-scroll { display: none; }
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.5rem; min-width: 0; overflow-wrap: break-word; }
  .service-list li { overflow-wrap: break-word; }
}
@media (max-width: 700px) {
  .service-card { padding: 1.5rem; min-width: 0; overflow-wrap: break-word; }
  .service-card .btn-main,
  .service-card .btn-ghost {
    width: 100%; justify-content: center;
  }
  .service-list li { overflow-wrap: break-word; }
  .repair-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .testimonial-submit-card { padding: 1.5rem; }
  .pricing-cards-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 4rem 1.5rem; }
  .nav { padding: 1.2rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 2.8rem; }
}


.error-content {
  text-align: center;
}

.hero--single {
  grid-template-columns: 1fr;
}

/* ============================================
   Services page
   ============================================ */
.services { background: var(--bg-secondary); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.services-intro { color: var(--fg-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 3rem; max-width: 70ch; overflow-wrap: break-word; }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 1rem;
  min-width: 0;
  overflow-wrap: break-word;
}
.service-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.2);
}
.service-icon {
  font-size: 2rem; line-height: 1;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; color: white; margin: 0;
}
.service-card p {
  color: var(--fg-muted); font-size: 0.9rem; line-height: 1.6; margin: 0;
}
.service-list {
  display: grid; gap: 0.65rem; margin: 1rem 0 1.5rem;
}
.service-list li {
  position: relative; padding-left: 1.5rem;
  color: var(--fg-muted); font-size: 0.88rem; line-height: 1.6;
  overflow-wrap: break-word;
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-blue); box-shadow: 0 0 8px rgba(59,130,246,0.5);
}

.service-pricing {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin: 0.4rem 0 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.price-main {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: -0.01em;
}
.price-detail {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.45;
}

.services-testimonials-banner {
  margin-top: 3.5rem;
  padding: 2.2rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.services-testimonials-banner h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.4rem;
}
.services-testimonials-banner p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   Laptop repair page
   ============================================ */
.laptop-repair { background: var(--bg-secondary); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.repair-intro { color: var(--fg-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 2.5rem; max-width: 70ch; }

.repair-pricing-section {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
}
.repair-section-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.6rem;
}
.repair-pricing-intro {
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 75ch;
  margin-bottom: 2rem;
}
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pricing-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pricing-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.4);
}
.pricing-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.pricing-item-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
}
.pricing-item-rate {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #93c5fd;
  white-space: nowrap;
}
.pricing-item-rate small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.pricing-item-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}
.pricing-item-desc strong {
  color: #e2e8f0;
}

.repair-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 1rem;
}
.repair-services h3, .repair-safety h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 1.5rem;
}
.repair-safety p {
  color: var(--fg-muted); font-size: 0.9rem; line-height: 1.6; margin: 0;
}
.repair-cta {
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-top: 3rem;
}
.repair-email {
  text-decoration: underline;
  color: var(--accent-glow);
}
.repair-note {
  color: var(--fg-muted); font-size: 0.85rem; line-height: 1.5; margin: 0;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-light);
}
.testimonials-intro {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 65ch;
  margin-bottom: 2.8rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
}
.testimonial-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e2e8f0;
  font-style: italic;
  margin: 0;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}
.author-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}
.author-role {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.testimonial-submit-card {
  background: #090e17;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}
.testimonial-submit-header {
  margin-bottom: 1.8rem;
}
.testimonial-submit-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.4rem;
}
.testimonial-submit-header p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0;
}
.testimonial-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-checkbox-group {
  margin: 0.2rem 0;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent-blue);
  width: 1rem;
  height: 1rem;
}

/* 5-star selector — radio buttons hidden, labels show stars */
.star-rating {
  display: inline-flex;
  direction: rtl;
  gap: 0.35rem;
  font-size: 2.2rem;
  color: #94a3b8;
}
.star-rating label { line-height: 1; }
.star-rating input { display: none; }
.star-rating label { cursor: pointer; user-select: none; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #fbbf24; }


/* ============================================
   Testimonials marquee (single-row auto-scroller)
   ============================================ */
.marquee {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  /* Fade the left and right edges */
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  /* Hide scrollbar visually but keep scrolling functional */
  scrollbar-width: none;               /* Firefox */
  -ms-overflow-style: none;            /* IE/Edge */
}
.marquee::-webkit-scrollbar {
  display: none;
}
.marquee:focus-visible {
  outline: 2px solid var(--accent-glow, var(--accent-blue));
  outline-offset: 3px;
  border-radius: var(--radius, 8px);
}
.marquee.dragging {
  cursor: grab;
}
.marquee:active.dragging {
  cursor: grabbing;
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  align-items: flex-start;
}
.marquee .testimonial-card {
  width: 280px;
  flex: 0 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.marquee .testimonial-card:focus-visible {
  outline: 2px solid var(--accent-glow, var(--accent-blue));
  outline-offset: 2px;
}

/* ============================================
   Case study pages (projects/*.html)
   Add <body class="case-study"> to use these
   ============================================ */
.case-study { cursor: auto; }                  /* case study pages have no custom-cursor script */
.case-study a:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; border-radius: 4px; }
.case-study code { background: rgba(59,130,246,0.12); border-radius: 6px; padding: 0.1em 0.4em; font-size: 0.9em; color: var(--accent-glow); }

.cs-main { padding-top: 6rem; }
.cs-wrap { max-width: 860px; margin: 0 auto; }
.cs-hero { padding: 4rem 2.5rem 3rem; }
.cs-hero h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 800; line-height: 1.05; margin-bottom: 1.25rem; }
.cs-lede { color: var(--fg-muted); font-size: 1.2rem; line-height: 1.6; max-width: 640px; margin-bottom: 1.5rem; }
.cs-hero .project-tech-pills { margin-bottom: 2rem; }
.cs-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cs-small { color: #7f8ea3; font-size: 0.85rem; }
.cs-shot {
  display: block; width: 100%; height: auto;
  margin-top: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.cs-section { padding: 3.5rem 2.5rem; border-top: 1px solid var(--border-light); }
.cs-section h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 1.25rem; }
.cs-section h2.cs-h2-spaced { margin-top: 2.5rem; }
.cs-section p { color: var(--fg-muted); line-height: 1.75; margin-bottom: 1rem; max-width: 70ch; }
.cs-section p strong, .cs-section li strong { color: white; }
.cs-link { color: var(--accent-glow); text-decoration: underline; text-underline-offset: 3px; }

.cs-list { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.cs-list li { position: relative; padding-left: 1.5rem; color: var(--fg-muted); line-height: 1.65; max-width: 70ch; }
.cs-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 8px rgba(59,130,246,0.5); }

.cs-cards { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.cs-cards .exp-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: white; margin-bottom: 0.6rem; }
.cs-cards .exp-card p { margin-bottom: 0.6rem; font-size: 0.95rem; }
.cs-cards .exp-card p:last-child { margin-bottom: 0; }

/* Job lifecycle: this really is a sequence */
.cs-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0.5rem; padding: 0; list-style: none; }
.cs-flow li { display: flex; align-items: center; gap: 0.5rem; }
.cs-flow span { background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: 60px; padding: 0.4rem 1rem; font-size: 0.85rem; color: white; }
.cs-flow li:not(:last-child)::after { content: "\2192"; color: var(--accent-glow); }

/* Technical Architecture & Workflow Diagrams */
.cs-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.cs-diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.cs-diagram-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-diagram-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-glow);
  border: 1px solid var(--border-dim);
}
.cs-diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.cs-diagram-node {
  background: var(--bg-primary);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cs-diagram-node-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-glow);
  font-weight: 600;
}
.cs-diagram-node-name {
  font-weight: 600;
  color: var(--fg-white);
  font-size: 0.95rem;
}
.cs-diagram-node-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.cs-cta { border-top: 1px solid var(--border-light); padding: 3.5rem 2.5rem 5rem; }
.cs-cta p { color: var(--fg-muted); margin-bottom: 1.5rem; max-width: 60ch; }
.nav-back { font-size: 0.9rem; font-weight: 500; color: var(--fg-muted); transition: color 0.2s; }
.nav-back:hover { color: white; }

@media (max-width: 600px) {
  .cs-hero, .cs-section, .cs-cta { padding-left: 1.25rem; padding-right: 1.25rem; }
}
 