/* ============================================================
   ShivamKapoor360 — portfolio site styles
   Animations, scroll-reveal, marquee, utilities.
   Relies on design tokens from ../../styles.css
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--sky-200); color: var(--ink-900); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---- shared layout ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

/* ---- scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- keyframes ---- */
@keyframes floaty   { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes floaty2  { 0%,100% { transform: translateY(0) } 50% { transform: translateY(10px) } }
@keyframes spinSlow { to { transform: rotate(360deg) } }
@keyframes drift    { 0% { transform: translate(0,0) } 33% { transform: translate(18px,-12px) } 66% { transform: translate(-12px,10px) } 100% { transform: translate(0,0) } }
@keyframes auroraShift { 0% { background-position: 0% 50% } 50% { background-position: 100% 50% } 100% { background-position: 0% 50% } }
@keyframes dash     { to { stroke-dashoffset: -24; } }
@keyframes pulseDot { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.5); opacity: 0.5 } }
@keyframes blink    { 0%,100% { opacity: 1 } 50% { opacity: 0 } }
@keyframes marquee  { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes popIn    { from { opacity: 0; transform: scale(0.8) } to { opacity: 1; transform: scale(1) } }
@keyframes shimmer  { 100% { transform: translateX(100%) } }
@keyframes gridmove { to { background-position: 40px 40px } }

/* ---- soft light-blue glow (premium, not flashy) ---- */
.aurora {
  background: radial-gradient(circle at 32% 30%, #BFE0FF 0%, #E6F2FF 42%, transparent 70%);
}

/* ---- marquee ---- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-mask:hover .marquee-track { animation-play-state: paused; }

/* ---- eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- section heading ---- */
.h-sec {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04;
  letter-spacing: -0.03em; color: var(--text-strong); margin: 14px 0 0;
  text-wrap: balance;
}

/* ---- magnetic / lift button helpers handled inline ---- */

/* ---- glass card ---- */
.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-md);
}

/* ---- dotted grid bg ---- */
.dotgrid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(var(--ink-200) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.4;
}

/* ---- focus ring ---- */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ============================================================
   RESPONSIVE — tablet & mobile
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 30px !important; text-align: left; }
  .hero-portrait { margin: 0 auto !important; }
  .global-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
  .p360-grid { grid-template-columns: 1fr !important; gap: 12px !important; text-align: center; }
  .faq-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .feat-grid { grid-template-columns: 1fr !important; }
  .lm-grid { grid-template-columns: 1fr !important; }
  .cta-grid { grid-template-columns: 1fr !important; }
  .work-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .clients-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .integ-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr !important; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav-mid { display: none !important; }
  .nav-email { display: none !important; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0 !important; }
  .start-grid { grid-template-columns: 1fr !important; }
  .clocks-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px 24px !important; }
  .lm-pitch { padding: 30px 26px !important; }
  .cta-inner { padding: 34px 26px !important; }
  .form-2 { grid-template-columns: 1fr !important; }
  .feat-card { padding: 28px 24px !important; }
  .integ-row { grid-template-columns: 1fr !important; }
  .integ-row .integ-label { border-right: none !important; border-bottom: 1px solid var(--border-subtle) !important; }
  .testi-videos { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero-accent { width: 280px !important; height: 380px !important; right: 8px !important; }
  .hero-photo-card { width: 290px !important; height: 392px !important; }
  .work-grid { grid-template-columns: 1fr !important; }
  .clients-grid { grid-template-columns: 1fr !important; }
  .clients-grid > div { grid-column: span 1 !important; grid-row: span 1 !important; }
  .clocks-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .testi-card { width: 80vw !important; max-width: 340px !important; }
  .hero-stats { gap: 18px !important; }
}
