:root {
  --navy: #0b1f3a;
  --navy-dark: #071527;
  --blue: #1d4ed8;
  --blue-light: #3b82f6;
  --gold: #c9a24b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1.15rem;
  color: #cbd5e1;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-desc {
  color: #94a3b8;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29,78,216,0.35);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a66c2;
  color: #fff;
}

.btn-linkedin:hover {
  background: #0958a8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.35);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.hero-meta a:hover { color: var(--gold); }

.meta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--gold);
}

/* Hero banner — rotating slider (portrait + illustrated highlight slides) */
.hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-banner-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid rgba(201, 162, 75, 0.5);
  box-shadow: var(--shadow);
  background: var(--navy-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide img,
.hero-slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner-caption {
  margin-top: 16px;
  min-height: 1.3em;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: opacity 0.3s ease;
}

.hero-banner-talk {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease, visibility 0s linear 0.3s;
}

.hero-banner-talk.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.hero-banner-talk:hover {
  background: #ddb864;
  transform: translateY(-2px);
}

.hero-banner-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot.is-active {
  background: var(--gold);
  width: 22px;
}

.hero-dot:hover { background: rgba(201, 162, 75, 0.7); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 40px;
  text-align: center;
}

.sub-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 20px;
}

.about-text {
  max-width: 820px;
  margin: 0 auto 20px;
  color: var(--text-light);
  font-size: 1.05rem;
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.achievement-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.achievement-icon { font-size: 1.5rem; }

.achievement-card p { color: var(--text-light); font-size: 0.95rem; }

/* Leadership philosophy */
.philosophy-quote {
  max-width: 720px;
  margin: 44px auto 40px;
  text-align: center;
  position: relative;
}

.quote-mark {
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
  opacity: 0.6;
}

.philosophy-quote p {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
  line-height: 1.5;
  margin-top: -8px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.principle-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.principle-card h4 { color: var(--navy); margin-bottom: 10px; font-size: 1.02rem; }
.principle-card p { color: var(--text-light); font-size: 0.92rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.service-card:hover { transform: translateY(-4px); }

.service-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 12px;
}

.service-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--bg-alt);
}

.timeline-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.timeline-head h3 {
  font-size: 1.1rem;
  color: var(--navy);
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.timeline-company {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.timeline-content ul { padding-left: 18px; }

.timeline-content li {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 6px;
  list-style: disc;
}

/* Skills tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tags span {
  background: #eef2ff;
  color: var(--blue);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.tool-card h4 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1rem;
}

.tool-card p { color: var(--text-light); font-size: 0.9rem; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.project-card:hover { transform: translateY(-4px); }

.project-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.project-tag {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-card p:not(.project-tag) {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.edu-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.edu-item h4 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.edu-item p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 10px; }
.edu-date { color: var(--blue); font-weight: 600; font-size: 0.82rem; }

.cert-list li {
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.languages { text-align: center; margin-top: 40px; }
.languages p { color: var(--text-light); }

/* Contact */
.contact-section { text-align: center; }

.contact-lead {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--navy);
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  color: var(--blue);
}

.contact-icon { font-size: 1.3rem; }

.contact-icon svg { width: 22px; height: 22px; }

.contact-card-linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}

.contact-card-linkedin:hover {
  background: #0958a8;
  color: #fff;
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: #94a3b8;
  text-align: center;
  padding: 28px 0;
  font-size: 0.85rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 999;
  transition: background 0.2s ease;
}

.back-to-top:hover { background: var(--blue-light); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-banner { order: -1; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle { display: flex; }

  .hero { padding: 130px 0 70px; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 64px 0; }
}

/* ============ Interactive additions ============ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* Sliding nav indicator (pill behind the active link) */
.nav-links { position: relative; }

.nav-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  border-radius: 2px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.nav-indicator.visible { opacity: 1; }

@media (max-width: 720px) {
  .nav-indicator { display: none; }
}

/* Hero cursor spotlight */
.hero { position: relative; }

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.55;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--spot-x, 50%) var(--spot-y, 30%), rgba(29, 78, 216, 0.10), transparent 60%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.hero:hover .hero-spotlight { opacity: 1; }

.hero-inner { position: relative; z-index: 1; }

/* Typewriter caret */
.caret {
  display: inline-block;
  margin-left: 2px;
  color: var(--gold);
  animation: caretBlink 1s step-end infinite;
  font-weight: 400;
}

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

/* Magnetic buttons */
.magnetic {
  transition: transform 0.15s ease-out, box-shadow 0.2s ease;
  will-change: transform;
}

/* Stats strip with animated counters */
.stats-strip {
  background: var(--navy);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { color: #fff; }

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-number span:last-child {
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .stat-number { font-size: 2rem; }
}

/* 3D tilt cards */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
}

[data-tilt]:hover {
  box-shadow: 0 20px 40px -12px rgba(11, 31, 58, 0.25);
}

/* Staggered skill tag entrance */
.tags span {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease, color 0.2s ease;
}

.tags.visible span {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tags span:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}

/* Timeline dot pulse */
.timeline-dot {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .nav-indicator,
  .caret,
  .magnetic,
  [data-tilt],
  .tags span,
  .timeline-dot {
    transition: none;
    animation: none;
  }
}

/* Contact QR badge — top-right, scan (phone) or click (desktop) to save contact */
.contact-qr {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-qr:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.16);
}

.contact-qr-code {
  width: 76px;
  height: 76px;
  display: block;
}

.contact-qr-code svg { width: 100%; height: 100%; display: block; }

.contact-qr-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .contact-qr { top: 78px; right: 12px; padding: 8px; }
  .contact-qr-code { width: 58px; height: 58px; }
  .contact-qr-label { font-size: 0.56rem; }
}

/* WhatsApp floating action button */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab svg { width: 28px; height: 28px; position: relative; z-index: 1; }

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: whatsappPulse 2.2s ease-out infinite;
  z-index: 0;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 720px) {
  .whatsapp-fab { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
  .back-to-top { bottom: 82px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-pulse { animation: none; }
}

/* Independence Day popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 27, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.popup-overlay.open {
  display: flex;
}

.popup-overlay.visible {
  opacity: 1;
}

.popup-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.9) translateY(10px);
  transition: transform 0.25s ease;
}

.popup-overlay.visible .popup-card {
  transform: scale(1) translateY(0);
}

.popup-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease;
}

.popup-close:hover { background: var(--blue); }

/* Accessible keyboard focus (mouse users unaffected — :focus-visible only) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Let's Connect */
.connect-lead {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.05rem;
}

.connect-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

#connectForm fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label,
.form-label-static {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.req {
  color: var(--gold);
  font-weight: 700;
}

.opt {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.8rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #dc2626;
}

.form-group input.invalid:focus,
.form-group select.invalid:focus,
.form-group textarea.invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.field-error {
  min-height: 16px;
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 600;
}

.field-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.char-count {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* Chip groups (reuses the same pill visual language as .tags) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.chip-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.chip-label {
  background: #eef2ff;
  color: var(--blue);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.chip-label:hover {
  transform: translateY(-2px);
}

.chip-input:checked + .chip-label {
  background: var(--blue);
  color: #fff;
}

.chip-input:focus-visible + .chip-label {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Submission status + submit button */
.form-status {
  min-height: 0;
  margin: 20px 0 0;
  padding: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.form-status.success,
.form-status.error {
  max-height: 200px;
  opacity: 1;
  padding: 14px 18px;
  margin: 20px 0;
}

.form-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.connect-submit {
  margin-top: 28px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.connect-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  margin-left: 10px;
  animation: connectSpin 0.7s linear infinite;
}

.connect-submit.is-loading .btn-spinner {
  display: inline-block;
}

.connect-submit.is-loading .btn-label {
  opacity: 0.85;
}

@keyframes connectSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .connect-card { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation: none; }
  .form-status { transition: none; }
}
