/* =====================================================
   RESET & VARIABLES
===================================================== */
:root {
  --card: #ffffff;
  --navy: #0b1f33;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --ink: #0b1f33;
  --text: #0f172a;
  --muted: #6b7280;
  --primary: #0b1f33;
  --secondary: #ffffff;
  --border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 6px 18px rgba(0,0,0,.06);
  --shadow-md: 0 14px 34px rgba(0,0,0,.10);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =====================================================
   GLOBAL STRUCTURE FIX
===================================================== */
section {
  position: relative;
  padding: 80px 20px;
  isolation: isolate; /* prevents z-index bleed */
}

h1, h2, h3 { letter-spacing: -0.02em; }
h2 { font-size: 30px; color: var(--ink); margin-bottom: 12px; }
p { font-size: 15px; color: var(--muted); }
/* ================= GLOBAL SECTION SYSTEM ================= */

section {
  padding: 90px 0;
}

.section-spacing {
  padding: 90px 0;
}

.bg-soft {
  background: #f5f7fa;
}

/* Prevent double grey stacking */
.bg-soft + .bg-soft {
  background: #ffffff;
}

/* Container alignment */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section titles */
section h2 {
  font-size: 34px;
  margin-bottom: 18px;
  text-align: center;
}

/* Section intro text */
.section-intro {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* =====================================================
   HEADER (SAFE STICKY)
===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 90px; height: 90px; object-fit: contain; }
.nav { display: flex; gap: 16px; }

.nav-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   HERO VIDEO — HARD CONTAINED (NO FOOTER LEAK)
===================================================== */
.hero.hero-video {
  position: relative;
  height: 80vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.hero.hero-video video,
.hero.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  color: #fff;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
}
.hero.hero-video .btn.secondary {
  color: #ffffff;
  border-color: #ffffff;
}
/* =====================================================
   GRID SYSTEM (NO OVERFLOW / NO BLANK SPACE)
===================================================== */
.services-grid,
.why-grid,
.testimonial-grid,
.packages-grid,
.portfolio-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.services-grid,
.why-grid { grid-template-columns: repeat(4, 1fr); }
.testimonial-grid,
.packages-grid { grid-template-columns: repeat(3, 1fr); }

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* =====================================================
   CARDS (HEIGHT SAFE)
===================================================== */
.card,
.service-card,
.why-card,
.testimonial-card,
.package-card,
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =====================================================
   HORIZONTAL RAILS (SCROLL SAFE)
===================================================== */
.rail-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
}

.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.rail .card {
  min-width: 300px;
  scroll-snap-align: start;
}

/* =====================================================
   MODAL (ABOVE EVERYTHING)
===================================================== */
#projectModal {
  position: fixed;
  inset: 0;
  background: rgba(11,31,51,.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#projectModal .modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 500px;
}

/* =====================================================
   RESPONSIVE FIXES
===================================================== */
@media (max-width: 1024px) {
  .services-grid,
  .why-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero.hero-video {
    height: 60vh;
    min-height: 480px;
  }

  .hero h1 { font-size: 32px; }
  .hero-taglines { display: none; }
  .nav { display: none; }

  .services-grid,
  .why-grid,
  .testimonial-grid,
  .packages-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  section { padding: 50px 20px; }
}

/* =====================================================
   FOOTER (ISOLATED — NO VIDEO BLEED)
===================================================== */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
}
/* ================= HERO VIDEO MODAL ================= */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.video-modal-inner {
  width: 90%;
  max-width: 900px;
}

.video-modal video {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.nav a {
  text-decoration: none;
}
.nav a:hover,
.nav a:focus {
  text-decoration: none;
}
/* ================= HIRE EXPERTS ================= */
.hire-experts {
  background: #ffffff;
}

.hire-experts-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hire-experts-sub {
  max-width: 760px;
  margin: 12px auto 48px;
  color: var(--muted);
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expert-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.expert-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}

.expert-card ul {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 14px;
}

.hire-experts-cta {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .experts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .experts-grid {
    grid-template-columns: 1fr;
  }

  .hire-experts-cta {
    flex-direction: column;
  }
}
/* ================= MEDIA & BLOGS ================= */
.media {
  background: var(--bg-soft);
}

.media-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.media-sub {
  max-width: 760px;
  margin: 12px auto 48px;
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.media-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.media-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}

.media-card p {
  font-size: 14px;
  margin-bottom: 14px;
}

.media-meta {
  font-size: 12px;
  color: var(--muted);
}

.media-cta {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-cta {
    flex-direction: column;
  }
}
/* ================= LEGAL & TRUST ================= */
.legal {
  background: #ffffff;
}

.legal-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.legal-sub {
  max-width: 760px;
  margin: 12px auto 48px;
  color: var(--muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.legal-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
}

.legal-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--ink);
}

.legal-card p {
  font-size: 14px;
  color: var(--muted);
}

.legal-cta {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-cta {
    flex-direction: column;
  }
}
/* ================= FOOTER ================= */
.site-footer {
  background: #0b1f33;
  color: #ffffff;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-grid h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--primary);
}
.footer-brand {
  max-width: 260px;
  line-height: 1.6;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 10px;
}
.footer-grid .btn {
  margin-top: 14px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-col p {
  font-size: 14px;
  color: #d1d5db;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-brand strong {
  font-size: 16px;
  display: block;
  margin-bottom: 10px;
}

.footer-cta {
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  color: #cbd5f5;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto;
  }
}
/* ================= CONTACT ================= */

.contact {
  background: var(--bg);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  max-width: 640px;
  margin: 12px auto 42px;
  color: var(--muted);
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}

.contact-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* ================= WHATSAPP CHAT ================= */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}
/* ================= SERVICE PAGE HERO ================= */

.service-hero {
  padding: 64px 20px 48px;   /* controlled spacing */
  background: #ffffff;
}

.service-hero .hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.service-hero h1 {
  font-size: 36px;
  line-height: 1.25;
  color: var(--ink);
}

.service-hero h1 span {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
  max-width: 820px;
}

.service-hero .hero-cta {
  margin-top: 28px;
}
.footer a,
.site-footer a {
  text-decoration: none !important;
  color: inherit;
}

.footer-links a,
.footer-col ul li a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 13px;
  margin: 6px 4px;
  transition: all .2s ease;
}

.footer-links a:hover,
.footer-col ul li a:hover {
  background: rgba(255,255,255,0.18);
}
.trust-strip {
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.trust-inner {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.trust-item {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  background: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  flex-shrink: 0;
}
.who-fit {
  padding: 60px 0;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.fit-box {
  padding: 28px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e6e6e6;
}

.fit-box h3 {
  margin-bottom: 14px;
}

.fit-box ul {
  padding-left: 0;
  list-style: none;
}

.fit-box li {
  margin-bottom: 10px;
  font-size: 15px;
}

.good-fit {
  border-left: 4px solid #1a7f37;
}

.bad-fit {
  border-left: 4px solid #c0362c;
}

@media (max-width: 768px) {
  .fit-grid {
    grid-template-columns: 1fr;
  }
}
.industry-pain {
  padding: 70px 0;
}

.pain-list {
  margin-top: 30px;
  padding-left: 0;
  list-style: none;
}

.pain-list li {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.5;
}
.process-flow {
  padding: 80px 0;
}

.process-step {
  margin-top: 35px;
  padding: 24px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
}

.process-step h3 {
  margin-bottom: 12px;
}

.process-step ul {
  list-style: none;
  padding-left: 0;
}

.process-step li {
  margin-bottom: 10px;
  font-size: 15px;
}
.tech-stack {
  padding: 80px 0;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.stack-block {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 22px;
}

.stack-block h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.stack-block ul {
  list-style: none;
  padding-left: 0;
}

.stack-block li {
  font-size: 14px;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
}
.delivery-timeline {
  padding: 80px 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.timeline-block {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 24px;
}

.timeline-block h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.timeline-block ul {
  list-style: none;
  padding-left: 0;
}

.timeline-block li {
  font-size: 14px;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}
.pricing-range {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.pricing-box {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 28px;
}

.pricing-box h3 {
  margin-bottom: 8px;
}

.price {
  font-size: 22px;
  font-weight: 700;
  margin: 12px 0 16px;
}

.pricing-box ul {
  list-style: none;
  padding-left: 0;
}

.pricing-box li {
  font-size: 14px;
  margin-bottom: 8px;
}

.pricing-note {
  margin-top: 30px;
  font-size: 14px;
  color: #555;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.legal-ip {
  padding: 80px 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.legal-block {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 26px;
}

.legal-block h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.legal-block ul {
  list-style: none;
  padding-left: 0;
}

.legal-block li {
  font-size: 14px;
  margin-bottom: 8px;
}

.legal-note {
  margin-top: 30px;
  font-size: 14px;
  color: #555;
}

@media (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}
.cost-comparison {
  padding: 80px 0;
}

.comparison-table {
  margin-top: 30px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  border-bottom: 1px solid #e6e6e6;
}

.comparison-row div {
  padding: 16px;
  font-size: 14px;
}

.comparison-row.header {
  background: #fafafa;
  font-weight: 600;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-note {
  margin-top: 24px;
  font-size: 14px;
  color: #555;
}

@media (max-width: 768px) {
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row.header {
    display: none;
  }

  .comparison-row div {
    padding: 12px 16px;
  }
}
.communication {
  padding: 80px 0;
}

.comm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.comm-block {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 26px;
}

.comm-block h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.comm-block ul {
  list-style: none;
  padding-left: 0;
}

.comm-block li {
  font-size: 14px;
  margin-bottom: 8px;
}

.comm-note {
  margin-top: 30px;
  font-size: 14px;
  color: #555;
}

@media (max-width: 768px) {
  .comm-grid {
    grid-template-columns: 1fr;
  }
}
.faqs {
  padding: 80px 0;
}

.faq-item {
  margin-top: 26px;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}
.cta-primary {
  padding: 90px 0;
  text-align: center;
}

.cta-primary p {
  max-width: 720px;
  margin: 16px auto 32px;
  font-size: 16px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 16px;
  justify-content: center;
}

@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}
/* ================= INTERNAL LINK SYSTEM ================= */

.internal-links {
  text-align: center;
}

.internal-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.internal-link-card {
  display: block;
  padding: 18px 22px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.internal-link-card:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Prevent browser default blue */
.internal-links a {
  text-decoration: none;
  color: inherit;
}
