/* ------------------------------
   NAAM BADHAO — Styles (patched)
--------------------------------- */

/* Core tokens */
:root {
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --elevate: translateY(-3px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 0.6s;
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg: #060e23;
  --bg-2: #0b1b3b;
  --ink: #eaf0ff;
  --ink-dim: #b9c3e1;
  --primary: #2e5cff;
  --primary-2: #7aa2ff;
  --accent: #00e5ff;
  --muted: rgba(255, 255, 255, 0.08);
  --card: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
}

/* Light theme */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f8ff;
  --ink: #0d1226;
  --ink-dim: #556080;
  --primary: #2e5cff;
  --primary-2: #183eff;
  --accent: #00bcd4;
  --muted: rgba(0, 0, 0, 0.08);
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--ink);
  text-decoration: none;
}
p {
  line-height: 1.65;
  color: var(--ink-dim);
}
h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  margin-bottom: 0.25rem;
}
.section-kicker {
  color: var(--primary-2);
  margin-bottom: 1.25rem;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}
.section--sm {
  padding: 2.5rem 0;
}
.section--lg {
  padding: 5rem 0;
}
.section--xl {
  padding: 7rem 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--muted);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo img {
  border-radius: 6px;
}
.logo.small span {
  font-size: 0.95rem;
}

.main-nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-toggle {
  display: none;
}
.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.header-cta {
  margin-left: 0.25rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.kicker {
  color: var(--primary-2);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 4rem);
}
.hero .subhead {
  margin: 1rem 0 1.25rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.trust-badges {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--ink-dim);
  flex-wrap: wrap;
}

/* Orbs + subtle grain */
.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.38;
  pointer-events: none;
  animation: float 10s ease-in-out infinite alternate;
  will-change: transform;
}
.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--accent),
    transparent 60%
  );
  top: -80px;
  left: -80px;
}
.orb-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle at 60% 40%,
    var(--primary),
    transparent 60%
  );
  bottom: -120px;
  right: -80px;
  animation-delay: 1.5s;
}
.orb-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 50% 50%, #8a2be2, transparent 60%);
  top: 40%;
  right: 30%;
  animation-delay: 0.5s;
}
@keyframes float {
  to {
    transform: translateY(-30px) translateX(20px) scale(1.05);
  }
}
#grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Browser mock */
.browser-mock {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--muted);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.browser-mock .dots {
  width: 64px;
  height: 10px;
  border-radius: 99px;
  background: var(--muted);
  margin-bottom: 0.8rem;
}
.browser-mock .mock-content {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  justify-items: start;
}
.browser-mock img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}
.browser-mock .kpis {
  display: flex;
  gap: 1rem;
  color: var(--ink-dim);
}

.scroll-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--muted);
  font-weight: 700;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #001;
}
.btn-secondary {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}
.btn-ghost {
  border-color: var(--muted);
  background: transparent;
}
.btn.small {
  padding: 0.55rem 0.8rem;
  font-weight: 700;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in oklab, var(--primary) 30%, transparent);
}
.magnetic {
  position: relative;
  overflow: hidden;
}

/* Marquee */
.marquee {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}
.marquee span {
  padding: 0.4rem 1rem;
  border: 1px solid var(--muted);
  border-radius: 999px;
}
.marquee {
  animation: move 18s linear infinite;
}
@keyframes move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--muted);
  box-shadow: var(--shadow);
  transition: transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.card h3 {
  font-size: 1.05rem;
}
.hover-raise:hover {
  transform: var(--elevate);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

/* Process timeline */
.section-alt {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--ink) 2%, transparent),
    transparent
  );
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.timeline li {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--muted);
  box-shadow: var(--shadow);
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.metric {
  padding: 1rem;
  border-radius: var(--radius);
  background: radial-gradient(
    120% 120% at 0 0,
    color-mix(in oklab, var(--primary) 25%, transparent),
    color-mix(in oklab, var(--ink) 3%, transparent)
  );
  border: 1px solid var(--muted);
  font-weight: 700;
}
.metric .count {
  font-size: 2rem;
  margin-right: 0.25rem;
  color: var(--ink);
}
.services-modern .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--muted);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-image {
  background: color-mix(in oklab, var(--primary) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ink-dim);
  padding: 1rem;
}

.service-content {
  padding: 1.5rem;
}
.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.service-content ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}
.service-content li {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
/* Modern Services Layout */
.services-modern .services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* .service-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 1px solid var(--muted);
} */

.service-content {
  padding: 1.4rem 1.2rem 1.8rem;
}

.service-content h3 {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.service-content p {
  color: var(--ink-dim);
  margin-bottom: 1rem;
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.service-content ul li {
  margin-bottom: 0.4rem;
  color: var(--ink-dim);
  position: relative;
  padding-left: 1.2rem;
}

.service-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .services-modern .services-grid {
    grid-template-columns: 1fr;
  }
  .service-image img {
    height: 220px;
  }
}
/* ---------- Service Section Images ---------- */
.service-image img {
  width: 100%;
  height: 260px; /* control visible area */
  object-fit: cover; /* fills container while cropping edges slightly */
  border-bottom: 1px solid var(--muted);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  transition: transform 0.4s ease;
  display: block;
}

/* Subtle zoom effect on hover */
.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Modern Process Section with Animated Connection Line */
.process-modern {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--ink) 2%, transparent),
    transparent
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.timeline-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: step;
  position: relative;
}

.timeline-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--primary),
    var(--primary-2)
  );
  border-radius: 10px;
  transition: height 1.5s ease;
  z-index: 0;
}

/* Reveal line on scroll */
.process-modern.in-view .timeline-modern::before {
  height: 100%;
}

.timeline-modern li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  overflow: hidden;
  z-index: 1;
}

.timeline-modern li:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, var(--primary), var(--accent));
  color: #fff;
}

.timeline-modern li:hover h3,
.timeline-modern li:hover p {
  color: #fff;
}

.timeline-modern .step-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

.timeline-modern h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.timeline-modern p {
  font-size: 0.95rem;
  color: var(--ink-dim);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-modern::before {
    left: 8px;
    width: 3px;
  }

  .timeline-modern li {
    text-align: left;
    padding-left: 2.5rem;
  }

  .timeline-modern .step-icon {
    position: absolute;
    left: 0.5rem;
    top: 1.4rem;
    font-size: 1.8rem;
  }
}

/* ---------- Enhanced Metrics Section ---------- */
.metrics {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.metric {
  padding: 1.4rem 1rem;
  border-radius: 16px;
  background: radial-gradient(
    circle at top left,
    rgba(46, 92, 255, 0.15),
    rgba(0, 229, 255, 0.05)
  );
  border: 1px solid var(--muted);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s var(--ease);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.metric:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.metric-icon {
  font-size: 2rem;
  opacity: 0.9;
}

.metric .count {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

/* ---------- Work / Case Studies Section ---------- */
.work-modern {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.work-thumb {
  position: relative;
}

.work-thumb img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.9);
}

.work-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 1.5rem;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

.work-overlay h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.work-overlay span {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}
/* ---------- PRICING (Updated Style) ---------- */
#pricing {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  position: relative;
  overflow: hidden;
}

#pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at 50% 0%,
    rgba(46, 92, 255, 0.08),
    transparent 60%
  );
  pointer-events: none;
}

#pricing .section-title {
  text-align: center;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

#pricing .section-kicker {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}

.price-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(12px);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}

.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-weight: 700;
}

.price-card .price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.price-card p {
  color: var(--ink-dim);
  margin-bottom: 0.8rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.price-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
  color: var(--ink-dim);
}

.price-card ul li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

.price-card img {
  border-radius: 10px;
  height: 160px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 1px solid var(--muted);
}

.price-card .btn {
  align-self: flex-start;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}

.price-card .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #001;
}

.price-card .btn-secondary {
  background: color-mix(in oklab, var(--ink) 8%, transparent);
}

.price-card .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .pricing {
    grid-template-columns: 1fr;
  }

  .price-card img {
    height: 140px;
  }
}
/* question */
.faq-grid {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #111827;
}

.faq-item p {
  margin-top: 0.5rem;
  color: #4b5563;
  line-height: 1.6;
}

.faq-item[open] {
  border-left: 4px solid #007bff;
  background: #f9fbff;
}

.faq-item i {
  color: #007bff;
}
/* ---------- CONTACT SECTION ---------- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.contact-points li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.contact-points i {
  color: #007bff;
  margin-right: 0.5rem;
}

.socials {
  margin-top: 1.2rem;
}

.socials a {
  color: #111827;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.socials a:hover {
  color: #007bff;
  transform: translateY(-3px);
}

/* FORM STYLES */
.contact-form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.contact-form .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form label {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #111827;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-top: 0.4rem;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #f9fafb;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* RESPONSIVE FIX */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form .form-row {
    flex-direction: column;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-intro {
    text-align: center;
  }

  .contact-points li {
    font-size: 0.95rem;
  }

  .socials {
    justify-content: center;
  }

  .socials a {
    font-size: 1.3rem;
  }
}

/* TINY SCREENS (Under 480px) */
@media (max-width: 480px) {
  .contact-form {
    padding: 1.2rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  .contact-actions button {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .contact-points li {
    font-size: 0.85rem;
  }
}

footer {
  background: linear-gradient(180deg, #f9fbff 0%, #eef3f8 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 3rem 0;
}

footer a:hover {
  color: #007bff;
  transition: color 0.3s ease;
}

.footer-socials a {
  color: #111827;
  font-size: 1.4rem;
  margin-right: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  color: #007bff;
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--muted);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}
.work-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--primary) 35%, transparent),
    color-mix(in oklab, var(--accent) 30%, transparent)
  );
  transform: scale(1.02);
  transition: transform 0.8s var(--ease);
}
.work-info {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: color-mix(in oklab, var(--bg) 40%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}
.work-card:hover {
  transform: var(--elevate);
}
.work-card:hover .work-thumb {
  transform: scale(1.06);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.price-card {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--muted);
  box-shadow: var(--shadow);
}
.price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.price-card:nth-child(2) {
  border-color: color-mix(in oklab, var(--primary) 60%, transparent);
  background: radial-gradient(
    120% 120% at 0 0,
    color-mix(in oklab, var(--primary) 20%, transparent),
    color-mix(in oklab, var(--ink) 6%, transparent)
  );
}

/* FAQ */
.faq-item {
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--card);
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-item[open] {
  transform: var(--elevate);
  transition: transform 0.3s var(--ease);
}
.faq-item p {
  margin: 0.5rem 0 0;
}

/* Contact */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: var(--ink-dim);
}
.socials {
  display: flex;
  gap: 0.75rem;
}
.contact-form {
  padding: 1rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.form-row label,
.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink-dim);
}
input,
select,
textarea {
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in oklab, var(--primary) 50%, transparent);
  background: color-mix(in oklab, var(--ink) 10%, transparent);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem 1rem;
  border: none;
  padding: 0;
  margin: 0.6rem 0 1rem;
}
.form-success {
  color: #71ffb0;
  font-weight: 700;
  margin-top: 0.6rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--muted);
  background: color-mix(in oklab, var(--bg) 20%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin-bottom: 0.4rem;
}
.tiny {
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.print {
  border-top: 1px dashed var(--muted);
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: all var(--speed) var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Hero headline entrance */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) forwards;
}
.fade-in-up:nth-child(2) {
  animation-delay: 0.08s;
}
.fade-in-up:nth-child(3) {
  animation-delay: 0.16s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.bounce {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* --------- Modal & Auth UI --------- */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-dialog {
  background: var(--card);
  padding: 1.25rem;
  border-radius: 12px;
  width: min(720px, 95vw);
  box-shadow: var(--shadow);
  border: 1px solid var(--muted);
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.modal-body {
  padding-top: 0.5rem;
}
.form-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  align-items: center;
}
.auth-actions .signed-in {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* Image placeholder */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ink-dim);
  font-weight: 600;
  opacity: 0.9;
  padding: 1rem;
  cursor: pointer;
  border-radius: 8px;
}

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #001;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transform: translateY(6px);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 3000;
}
.toast.show {
  transform: none;
  opacity: 1;
}

/* Active nav link */
#navMenu a.active {
  font-weight: 700;
  color: var(--primary-2);
  border-bottom: 2px solid color-mix(in oklab, var(--primary) 30%, transparent);
  padding-bottom: 2px;
}

/* small tweaks for placeholders */
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-thumb .image-placeholder {
  aspect-ratio: 16/10;
  display: flex;
}

/* Responsive */
@media (max-width: 980px) {
  .hero .grid-2,
  .grid-2,
  .cards,
  .timeline,
  .metrics-grid,
  .work-grid,
  .pricing,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .marquee {
    animation-duration: 28s;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav ul {
    position: absolute;
    right: 1rem;
    top: 64px;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    border: 1px solid var(--muted);
    border-radius: 12px;
    padding: 0.6rem;
    display: none;
    flex-direction: column;
  }
  .main-nav ul.open {
    display: flex;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  background: #fff;
  color: #000;
  padding: 0.5rem;
  border-radius: 8px;
}
