/* ============================================================
   Ishu Bansal — Salesforce Consultant
   Palette: midnight ink #06192E · Salesforce navy #032D60 ·
   cloud blue #0B5CAB · electric sky #57B9FF · cloud paper #F3F7FC ·
   trailhead amber #FFB03A
   Type: Archivo (display) · Instrument Sans (body)
   ============================================================ */

:root {
  --ink: #06192e;
  --navy: #032d60;
  --blue: #0b5cab;
  --blue-deep: #0a4a8a;
  --sky: #57b9ff;
  --paper: #f3f7fc;
  --white: #ffffff;
  --amber: #ffb03a;
  --amber-deep: #f29b0d;
  --text: #14283f;
  --muted: #4a617c;
  --muted-light: #a8c4e0;
  --radius: 18px;
  --shadow: 0 10px 34px rgba(3, 45, 96, 0.12);
  --shadow-lg: 0 24px 60px rgba(3, 45, 96, 0.18);
  --display: "Archivo", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; color: var(--navy); }
h3 { font-size: 1.18rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-head { margin-bottom: 48px; }
.section-head.light h2 { color: var(--white); }
.section-head.light .eyebrow { color: var(--amber); }
.section-sub { color: var(--muted); margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; border-radius: 999px;
  padding: 12px 26px; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 8px 24px rgba(255, 176, 58, 0.35); }
.btn-amber:hover { background: var(--amber-deep); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 8px 24px rgba(11, 92, 171, 0.3); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.header.scrolled {
  background: rgba(4, 24, 48, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  color: var(--white); letter-spacing: -0.02em;
}
.brand span { color: var(--amber); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.92rem;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--amber); transition: width 0.22s ease; border-radius: 2px;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--white); }
.nav-cta { padding: 9px 20px; font-size: 0.88rem; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--white); border-radius: 3px; margin: 5px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--ink) 0%, var(--navy) 55%, #06407e 100%);
  color: var(--white);
  padding: 150px 24px 90px;
}
.hero-aurora {
  position: absolute; inset: -30% -10%;
  background:
    radial-gradient(38% 42% at 22% 30%, rgba(87, 185, 255, 0.28), transparent 70%),
    radial-gradient(30% 34% at 78% 22%, rgba(255, 176, 58, 0.16), transparent 70%),
    radial-gradient(42% 46% at 68% 78%, rgba(11, 92, 171, 0.42), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center;
}
.hero .eyebrow { color: var(--sky); }
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.rotator {
  display: inline-block; position: relative; color: var(--amber); white-space: nowrap;
}
.rotator::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 0.28em;
  background: rgba(255, 176, 58, 0.22); border-radius: 4px; z-index: -1;
}
.rotator-word { display: inline-block; }
.rotator-word.swap { animation: wordSwap 0.5s ease; }
@keyframes wordSwap {
  0% { opacity: 0; transform: translateY(0.6em); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-sub { font-size: 1.13rem; color: var(--muted-light); max-width: 34rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--sky); }
.stat span { font-size: 0.85rem; color: var(--muted-light); }

.hero-visual { display: flex; justify-content: center; }
.avatar-card {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}
.avatar-card:hover { transform: rotate(0deg) scale(1.02); }
.avatar-card img { width: 300px; height: auto; border-radius: 16px; }
.avatar-chip {
  position: absolute;
  font-size: 0.74rem; font-weight: 700;
  background: var(--white); color: var(--navy);
  padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: -12px; left: -20px; animation-delay: 0s; }
.chip-2 { bottom: 34px; right: -26px; background: var(--amber); animation-delay: 1.4s; }
.chip-3 { bottom: -14px; left: 30px; background: var(--sky); animation-delay: 2.6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-ticker {
  position: relative; text-align: center; margin-top: 70px;
  font-family: var(--display); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Certifications marquee ---------- */
.certs {
  background: var(--ink);
  padding: 80px 0 90px;
  overflow: hidden;
}
.certs .section-head { text-align: center; margin-bottom: 40px; padding: 0 24px; }
.marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 168px; width: auto; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.marquee-track img:hover { transform: translateY(-6px) scale(1.03); border-color: var(--sky); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections shared ---------- */
section.about, section.blogs { padding: 100px 0; background: var(--white); }
section.portfolio, section.why { padding: 100px 0; background: var(--paper); }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }

/* ---------- About ---------- */
.about-frame {
  background: linear-gradient(150deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-frame::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  pointer-events: none;
}
.about-frame img { border-radius: 10px; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.project {
  background: var(--white); border-radius: var(--radius);
  padding: 16px 16px 24px; box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media {
  position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 18px;
  aspect-ratio: 16 / 9; background: var(--navy);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project:hover .project-media img { transform: scale(1.05); }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(3, 45, 96, 0.28);
  transition: background 0.25s ease;
}
.play::before {
  content: ""; width: 58px; height: 58px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}
.play::after {
  content: ""; position: absolute;
  border-left: 17px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}
.project:hover .play::before { transform: scale(1.12); }
.project h3 { color: var(--navy); margin: 0 6px 8px; }
.project p { color: var(--muted); font-size: 0.93rem; margin: 0 6px; }

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--navy), var(--blue-deep));
  color: var(--white);
}
.testimonials .section-head { text-align: center; }
.slider { position: relative; max-width: 720px; margin: 0 auto; }
.slides { position: relative; min-height: 320px; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 22px; padding: 40px 56px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  opacity: 0; transform: translateX(40px); visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.slide.is-active { opacity: 1; transform: translateX(0); visibility: visible; }
.slide img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--amber); background: var(--white); }
.slide blockquote { font-size: 1.12rem; line-height: 1.6; color: rgba(255, 255, 255, 0.92); }
.slider-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white); font-size: 1.6rem; line-height: 1;
  cursor: pointer; z-index: 2;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.slider-arrow:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.prev { left: -66px; }
.next { right: -66px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.dots button.is-active { background: var(--amber); transform: scale(1.3); }

/* ---------- Blogs ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  display: block; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(3, 45, 96, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-body { padding: 22px 24px 26px; }
.blog-body time { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.blog-body h3 { color: var(--navy); margin: 10px 0 16px; font-size: 1.05rem; line-height: 1.4; }
.read-more { font-weight: 700; font-size: 0.9rem; color: var(--amber-deep); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); border-top: 4px solid var(--blue);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.why-card:hover { transform: translateY(-6px); border-top-color: var(--amber); }
.why-icon { font-size: 1.7rem; margin-bottom: 14px; }
.why-card h3 { color: var(--navy); margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  background: linear-gradient(165deg, var(--ink), var(--navy) 70%);
  color: var(--white);
}
.contact .eyebrow { color: var(--amber); }
.contact h2 { color: var(--white); margin-bottom: 18px; }
.contact-copy p { color: var(--muted-light); margin-bottom: 28px; max-width: 30rem; }
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-lg); color: var(--text);
}
.contact-form { display: flex; flex-direction: column; }
.contact-form label { font-weight: 700; font-size: 0.86rem; color: var(--navy); margin: 14px 0 6px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea {
  font-family: var(--body); font-size: 1rem; color: var(--text);
  border: 2px solid #dbe6f2; border-radius: 10px;
  padding: 12px 14px; background: var(--paper);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
}
.contact-form button[type="submit"] { margin-top: 22px; justify-content: center; }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form-status { margin-top: 12px; font-size: 0.9rem; color: #c0392b; min-height: 1.2em; }
.thank-you { text-align: center; padding: 20px 6px; }
.thank-icon {
  width: 68px; height: 68px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%; background: #e6f7ee; color: #1d9e5f;
  font-size: 2rem; font-weight: 800;
}
.thank-you h3 { color: var(--navy); font-size: 1.5rem; margin-bottom: 10px; }
.thank-you p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.65); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; }
.socials { display: flex; gap: 18px; }
.socials a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease, transform 0.2s ease; display: inline-flex; }
.socials a:hover { color: var(--amber); transform: translateY(-2px); }

/* ---------- Floating button ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--amber); color: var(--ink);
  font-family: var(--body); font-weight: 700; font-size: 0.92rem;
  padding: 14px 22px;
  box-shadow: 0 12px 32px rgba(255, 176, 58, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255, 176, 58, 0.55); }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 20, 40, 0.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: min(920px, 92vw);
  background: var(--ink); border-radius: 16px; padding: 10px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.28s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-video { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.modal-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close {
  position: absolute; top: -16px; right: -16px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--amber); color: var(--ink);
  font-size: 1.5rem; line-height: 1; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .prev { left: 8px; }
  .next { right: 8px; }
  .portfolio-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .avatar-card img { width: 240px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .about-visual { max-width: 380px; margin: 0 auto; }
  .slide { padding: 34px 22px; }
  .slides { min-height: 380px; }

  .nav {
    position: fixed; inset: 0; z-index: 100;
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(4, 24, 48, 0.97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 1.25rem; }
  .hamburger { display: block; }
}

@media (max-width: 620px) {
  .portfolio-grid, .blog-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .marquee-track img { height: 128px; }
  .contact-form-wrap { padding: 26px 20px; }
  .fab { right: 14px; bottom: 14px; padding: 12px 18px; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-aurora, .avatar-chip, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   MOTION PACK — transitions, flows, surprises
   ============================================================ */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 300;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--sky), var(--amber));
  box-shadow: 0 0 12px rgba(255, 176, 58, 0.6);
  border-radius: 0 4px 4px 0;
}

/* ---------- Section dot nav ---------- */
.dotnav {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px; z-index: 95;
}
.dotnav a {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(120, 150, 185, 0.45);
  border: 2px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.dotnav a:hover { transform: scale(1.5); background: var(--sky); }
.dotnav a.active {
  background: var(--amber); transform: scale(1.45);
  box-shadow: 0 0 0 5px rgba(255, 176, 58, 0.22), 0 0 14px rgba(255, 176, 58, 0.55);
}
.dotnav a::after {
  content: attr(data-label);
  position: absolute; right: 22px; top: 50%; transform: translate(8px, -50%);
  background: var(--ink); color: var(--white);
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  padding: 5px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.dotnav a:hover::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- Flow connectors: animated stream at top of each section ---------- */
.certs, .about, .portfolio, .testimonials, .blogs, .why, .contact { position: relative; }
.about::before, .portfolio::before, .blogs::before, .why::before {
  content: ""; position: absolute; top: 18px; left: 50%; margin-left: -2px;
  width: 4px; height: 58px; border-radius: 4px;
  background: repeating-linear-gradient(180deg, var(--blue) 0 7px, transparent 7px 15px);
  background-size: 4px 15px;
  animation: flowDown 0.9s linear infinite;
  opacity: 0.65;
}
.certs::before, .testimonials::before, .contact::before {
  content: ""; position: absolute; top: 18px; left: 50%; margin-left: -2px;
  width: 4px; height: 58px; border-radius: 4px;
  background: repeating-linear-gradient(180deg, var(--amber) 0 7px, transparent 7px 15px);
  background-size: 4px 15px;
  animation: flowDown 0.9s linear infinite;
  opacity: 0.8;
}
.about::after, .portfolio::after, .blogs::after, .why::after,
.certs::after, .testimonials::after, .contact::after {
  content: ""; position: absolute; top: 80px; left: 50%; margin-left: -8px;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 10px solid var(--amber);
  animation: cuePulse 1.4s ease-in-out infinite;
}
.about::after, .portfolio::after, .blogs::after, .why::after { border-top-color: var(--blue); }
@keyframes flowDown { to { background-position: 0 15px; } }
@keyframes cuePulse {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(7px); opacity: 0.4; }
}

/* ---------- Scroll cue (hero) ---------- */
.scroll-cue {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.65); z-index: 3;
  transition: color 0.2s ease;
}
.scroll-cue:hover { color: var(--amber); }
.mouse {
  width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.wheel {
  width: 4px; height: 9px; border-radius: 3px; background: currentColor;
  animation: wheelDrop 1.6s ease-in-out infinite;
}
@keyframes wheelDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.cue-text { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; }

/* ---------- Double marquee ---------- */
.marquee-double .marquee-track.reverse { margin-top: 24px; animation: marqueeRev 44s linear infinite; }
.marquee:hover .marquee-track.reverse { animation-play-state: paused; }
@keyframes marqueeRev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.marquee-track img { cursor: pointer; }

/* ---------- Rotating word: 3D flip ---------- */
.rotator { perspective: 500px; }
.rotator-word.swap { animation: wordFlip 0.55s cubic-bezier(0.3, 0.9, 0.4, 1.1); }
@keyframes wordFlip {
  0% { transform: rotateX(-95deg) translateY(10px); opacity: 0; }
  100% { transform: rotateX(0) translateY(0); opacity: 1; }
}

/* ---------- Heading underline draw ---------- */
.section-head h2 { position: relative; display: inline-block; padding-bottom: 12px; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--amber), var(--sky));
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}
.section-head.reveal.in h2::after { width: 72px; }

/* ---------- Button shine + ripple ---------- */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0); animation: rippleGo 0.6s ease-out forwards;
}
@keyframes rippleGo { to { transform: scale(3.2); opacity: 0; } }

/* CTA attention pulse */
.btn-amber.btn-lg { animation: ctaPulse 2.8s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 176, 58, 0.35); }
  50% { box-shadow: 0 8px 24px rgba(255, 176, 58, 0.35), 0 0 0 12px rgba(255, 176, 58, 0.12); }
}

/* ---------- Tilt cards ---------- */
.project, .blog-card, .why-card, .avatar-card { transform-style: preserve-3d; will-change: transform; }
.tilting { transition: none !important; }

/* ---------- Reveal variants ---------- */
.reveal-left { opacity: 0; transform: translateX(-46px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-right { opacity: 0; transform: translateX(46px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-zoom { opacity: 0; transform: scale(0.88); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-left.in, .reveal-right.in, .reveal-zoom.in { opacity: 1; transform: none; }

/* ---------- Back to top rocket ---------- */
.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: var(--white); font-size: 1.3rem;
  box-shadow: 0 12px 30px rgba(3, 45, 96, 0.4);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); transform: translateY(-4px); }
.to-top.launch { animation: launch 0.7s ease-in forwards; }
@keyframes launch {
  30% { transform: translateY(6px) rotate(-4deg); }
  100% { transform: translateY(-110vh) rotate(3deg); opacity: 0; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--white);
  font-weight: 700; font-size: 0.92rem;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid rgba(255, 176, 58, 0.5);
  box-shadow: 0 16px 44px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; z-index: 250;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Confetti particles ---------- */
.confetti {
  position: fixed; width: 10px; height: 10px; z-index: 400;
  pointer-events: none; border-radius: 2px;
}

/* ---------- Chips are clickable surprises ---------- */
.avatar-chip { cursor: pointer; }
.avatar-chip:hover { transform: translateY(-10px) scale(1.08); }
.why-icon { cursor: pointer; display: inline-block; transition: transform 0.25s ease; }
.why-icon:hover { transform: scale(1.3) rotate(-8deg); }
.marquee-track img:active { transform: scale(0.96); }

/* ---------- Hero parallax layers ---------- */
.hero-aurora, .avatar-card { will-change: transform; }

/* ---------- Responsive / reduced motion ---------- */
@media (max-width: 820px) {
  .dotnav { display: none; }
  .to-top { left: 14px; bottom: 14px; width: 46px; height: 46px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress span { box-shadow: none; }
  .about::before, .portfolio::before, .blogs::before, .why::before,
  .certs::before, .testimonials::before, .contact::before,
  .about::after, .portfolio::after, .blogs::after, .why::after,
  .certs::after, .testimonials::after, .contact::after,
  .wheel, .btn-amber.btn-lg, .marquee-track.reverse { animation: none; }
  .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; transition: none; }
}
