/*
 * CodeHind – Responsive UI/UX Enhancement CSS
 * Fixes: mobile nav, service cards, contact section, footer, hero, general responsiveness
 */

/* ============================================================
   GLOBAL TOKENS
   ============================================================ */
:root {
  --ch-primary:    #5B42F3;
  --ch-primary-dk: #4330d4;
  --ch-secondary:  #8B5CF6;
  --ch-dark:       #0f172a;
  --ch-text:       #374151;
  --ch-muted:      #6b7280;
  --ch-light:      #f8f9fc;
  --ch-white:      #ffffff;
  --ch-border:     #e5e7eb;
  --ch-radius:     14px;
  --ch-shadow-sm:  0 4px 16px rgba(91,66,243,.08);
  --ch-shadow-md:  0 10px 32px rgba(91,66,243,.14);
  --ch-transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Outfit', sans-serif;
  color: var(--ch-text);
  background: #fafbfc;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ============================================================
   HEADER / NAV – RESPONSIVE OVERHAUL
   ============================================================ */
#header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  padding: 0;
  height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(91,66,243,.08);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  z-index: 1050;
}

#header.header-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  height: 64px;
}

#header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header .logo img { max-height: 36px; }

/* Desktop Nav */
.navbar ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar a, .navbar a:focus {
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  color: #374151;
  border-radius: 8px;
  transition: var(--ch-transition);
  white-space: nowrap;
}

.navbar a:hover,
.navbar .active,
.navbar li:hover > a { color: var(--ch-primary); background: rgba(91,66,243,.06); }

.navbar .getstarted,
.navbar .getstarted:focus {
  background: linear-gradient(135deg, var(--ch-primary), var(--ch-secondary));
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 20px;
  margin-left: 8px;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 4px 16px rgba(91,66,243,.35);
  border: none;
}

.navbar .getstarted:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(91,66,243,.45); }

/* Dropdown */
.navbar .dropdown ul {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  padding: 8px;
  min-width: 180px;
}

.navbar .dropdown ul li a {
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
}

/* Mobile hamburger */
.mobile-nav-toggle {
  font-size: 24px;
  color: var(--ch-primary);
  cursor: pointer;
  display: none;
  line-height: 1;
  padding: 4px;
  border-radius: 8px;
  transition: var(--ch-transition);
}

.mobile-nav-toggle:hover { background: rgba(91,66,243,.08); }

/* Mobile Nav Overlay */
@media (max-width: 991px) {
  .mobile-nav-toggle { display: flex !important; align-items: center; }

    .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: 8px 0 40px rgba(0,0,0,.15);
    z-index: 1100;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    /* slide panel OFF-screen to the LEFT (hidden state) */
    transform: translateX(-100%);
  }

  /* OPEN: bring it in from the left */
  .navbar.navbar-mobile,
  #navbar.navbar-mobile {
    left: 0;
    right: auto;
    transform: translateX(0);
    width: 80%;
    max-width: 320px;
  }

  .navbar ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .navbar a, .navbar a:focus {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
    justify-content: space-between;
  }

  .navbar .getstarted {
    margin: 12px 0 0;
    text-align: center;
    justify-content: center;
  }

  .navbar .dropdown ul {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(91,66,243,.04);
    padding: 4px 0 4px 12px;
    margin-top: 4px;
  }

  .navbar .dropdown.dropdown-active > ul { display: block; }

  /* Mobile overlay backdrop */
  .navbar-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1099;
    backdrop-filter: blur(2px);
  }

  .navbar-mobile-overlay.active { display: block; }
}

/* ============================================================
   NAVBAR HARD RESET (mobile)
   style.css's old template rules turned the whole <nav> into a
   full-screen fixed dark overlay and absolutely positioned the <ul>
   (top:55px; left/right:15px). Those fight our slide-in drawer from
   responsive.css and cause the menu to overlap / look broken.
   These overrides force the clean white drawer layout.
   ============================================================ */
@media (max-width: 991px) {
  .navbar {
    background: #fff !important;
  }

    /* The <ul> must sit in normal flow inside the drawer, NOT absolute,
     and must stay visible (template's old `display:none` rule tries
     to hide it on mobile — override it with force). */
  .navbar ul,
  .navbar-mobile ul {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Dropdown sub-menus stay in flow inside the drawer. */
  .navbar .dropdown ul,
  .navbar-mobile .dropdown ul {
    position: static !important;
    margin: 4px 0 4px 8px !important;
    box-shadow: none !important;
  }

  /* "Free Consultation" CTA sits neatly at the bottom of the drawer. */
  .navbar .getstarted,
  .navbar-mobile .getstarted {
    margin: 12px 0 0 !important;
  }

  /* Drawer menu links: icon + text LEFT aligned (desktop used
     justify-content:space-between for the chevron, which on mobile
     stretched icon/text to opposite edges and made the menu look broken). */
    .navbar.navbar-mobile a,
  .navbar-mobile a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 2px !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #111827 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  .navbar ul li,
  .navbar-mobile ul li { width: 100% !important; }

  /* Icons sit just left of label, consistent size. */
  .navbar.navbar-mobile a i,
  .navbar-mobile a i {
    margin: 0 !important;
    font-size: 17px !important;
    min-width: 20px;
    text-align: center;
  }
}

/* ============================================================
   HERO – RESPONSIVE FIX
   ============================================================ */
.hero-section {
  min-height: calc(100vh - 70px);
  padding: 50px 0 40px;
  background: linear-gradient(145deg, #09061a 0%, #100b2e 45%, #181145 100%);
  margin-top: 70px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-content h1 {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.highlight-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 800;
}

.hero-content h2 {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(241, 245, 249, 0.88) !important;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #c4b5fd;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); }
  50%       { box-shadow: 0 0 16px rgba(34, 197, 94, 1); transform: scale(1.2); }
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
  border: none;
  white-space: nowrap;
}

.btn-hero-primary:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.7);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.btn-hero-secondary:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
  border-color: #a78bfa;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 28px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-item strong {
  font-size: 24px;
  font-weight: 800;
  color: #38bdf8 !important;
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-item span {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.8) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-img-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.25);
  animation: hero-float 4.5s ease-in-out infinite alternate;
}

.hero-main-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 50px 0 45px;
  }

  .hero-content {
    text-align: center;
    order: 2;
  }

  .hero-content h2 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .stat-item { align-items: center; }
  .hero-cta-group { justify-content: center; }

  .hero-img {
    text-align: center;
    order: 1;
    margin-bottom: 24px;
  }

  .hero-img-card {
    max-width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .hero-section { padding: 35px 0 35px; margin-top: 70px; }
  .hero-img-card { max-width: 100%; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .stat-item strong { font-size: 20px; }
}

/* ============================================================
   SERVICES CARDS – FULLY RESPONSIVE
   ============================================================ */
.services { background: var(--ch-light); }

.services .icon-box {
  padding: 32px 28px;
  border-radius: var(--ch-radius);
  background: #fff;
  border: 1px solid var(--ch-border);
  box-shadow: var(--ch-shadow-sm);
  transition: var(--ch-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.services .icon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91,66,243,.03) 0%, transparent 60%);
  opacity: 0;
  transition: var(--ch-transition);
  border-radius: var(--ch-radius);
}

.services .icon-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--ch-shadow-md);
  border-color: rgba(91,66,243,.25);
}

.services .icon-box:hover::before { opacity: 1; }

.services .icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ch-primary), var(--ch-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(91,66,243,.3);
}

.services .icon i {
  font-size: 26px;
  color: #fff;
  line-height: 1;
}

.services .title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.4;
}

.services .title a {
  color: inherit;
  text-decoration: none;
  transition: var(--ch-transition);
}

.services .title a:hover { color: var(--ch-primary); }

.services .description {
  font-size: 14.5px;
  color: var(--ch-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 0;
}

/* Pricing badge & Learn More footer in service cards */
.services .icon-box .card-footer-row {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ch-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .services .icon-box { padding: 24px 20px; }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title { text-align: center; padding-bottom: 40px; }

.section-title h2 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: -.3px;
  position: relative;
  margin-bottom: 0;
}

.section-title h2::before,
.section-title h2::after {
  content: '';
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--ch-primary), var(--ch-secondary));
  display: inline-block;
  border-radius: 3px;
  vertical-align: middle;
}

.section-title h2::before { margin: 0 12px 4px 0; }
.section-title h2::after  { margin: 0 0 4px 12px; }

.section-title p {
  color: var(--ch-muted);
  margin-top: 14px;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
}

/* ============================================================
   FEATURES (WHY CHOOSE US)
   ============================================================ */
.features .icon-box {
  padding: 20px 18px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--ch-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: var(--ch-transition);
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.features .icon-box i {
  font-size: 28px;
  flex-shrink: 0;
  color: var(--ch-primary);
}

.features .icon-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.features .icon-box h3 a { color: inherit; }

.features .icon-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(91,66,243,.12);
  border-color: rgba(91,66,243,.25);
}

/* ============================================================
   CONTACT SECTION – RESPONSIVE FIX
   ============================================================ */
.contact {
  padding: 80px 0;
  background: #f8f9fc;
}

.contact .info {
  border-radius: var(--ch-radius);
  border: 1px solid var(--ch-border);
  padding: 32px;
  background: #fff;
  box-shadow: var(--ch-shadow-sm);
  height: 100%;
}

.contact .info h4 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.contact .info p.lead-text {
  font-size: 14px;
  color: var(--ch-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact .contact-form-wrap {
  border-radius: var(--ch-radius);
  border: 1px solid var(--ch-border);
  padding: 36px;
  background: #fff;
  box-shadow: var(--ch-shadow-sm);
}

.contact .form-control {
  border-radius: 10px;
  border: 1.5px solid var(--ch-border);
  background: #f8f9fc;
  font-size: 14.5px;
  padding: 10px 14px;
  color: #111827;
  transition: var(--ch-transition);
}

.contact .form-control:focus {
  border-color: var(--ch-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91,66,243,.12);
}

.contact .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

@media (max-width: 991px) {
  .contact .info,
  .contact-info-card { margin-bottom: 24px; }
  .contact .contact-form-wrap { padding: 24px 20px; }
}

@media (max-width: 575px) {
  .contact .info,
  .contact-info-card { padding: 24px 18px !important; }
}

/* ============================================================
   CTA BOTTOM SECTION
   ============================================================ */
.cta-bottom {
  background: linear-gradient(160deg, #0a0818 0%, #1e1a6e 60%, #2d2390 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bottom::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91,66,243,.2) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.cta-bottom h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta-bottom p {
  color: rgba(255,255,255,.65);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-bottom .cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 575px) {
  .cta-bottom .cta-group .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   TESTIMONIALS – RESPONSIVE
   ============================================================ */
.testimonials .testimonial-wrap { padding-left: 60px; }

.testimonials .testimonial-item {
  padding: 28px 28px 28px 70px;
  margin: 20px 12px;
  border-radius: var(--ch-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  background: #fff;
  border: 1px solid var(--ch-border);
}

.testimonials .testimonial-item .testimonial-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  position: absolute;
  left: -40px;
  top: 20px;
}

.testimonials .testimonial-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.testimonials .testimonial-item h4 {
  font-size: 13px;
  color: var(--ch-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.testimonials .testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonials .testimonial-item p {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.7;
  font-style: italic;
}

@media (max-width: 767px) {
  .testimonials .testimonial-wrap { padding-left: 0; }

  .testimonials .testimonial-item {
    padding: 24px 20px;
    margin: 12px 4px;
  }

  .testimonials .testimonial-item .testimonial-img {
    position: static;
    display: block;
    margin-bottom: 16px;
    width: 60px;
    height: 60px;
  }
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.step-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ch-radius);
  border: 1px solid var(--ch-border);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ch-shadow-md);
  border-color: rgba(91,66,243,.3);
}

.step-number {
  font-size: 48px !important;
  font-weight: 900 !important;
  line-height: 1;
  letter-spacing: -2px;
}

/* ============================================================
   PORTFOLIO / WORK SECTION
   ============================================================ */
.portfolio .portfolio-item img {
  border-radius: var(--ch-radius);
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--ch-transition);
}

.portfolio .portfolio-item:hover img { transform: scale(1.03); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item .accordion-button {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
  padding: 18px 20px;
  border-radius: 10px !important;
  background: #fff;
}

.faq-item .accordion-button:not(.collapsed) {
  color: var(--ch-primary);
  background: rgba(91,66,243,.04);
  box-shadow: none;
}

.faq-item .accordion-button:focus { box-shadow: none; }

.faq-item .accordion-body {
  font-size: 14.5px;
  color: var(--ch-muted);
  line-height: 1.75;
  padding: 16px 20px 20px;
}

/* ============================================================
   GENERAL UTILITY
   ============================================================ */
.hover-transform {
  transition: var(--ch-transition);
}
.hover-transform:hover { transform: translateY(-5px); }

.btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--ch-primary), var(--ch-secondary));
  color: #fff !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(91,66,243,.4);
  transition: var(--ch-transition);
  border: none;
}

.btn-get-started:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(91,66,243,.5);
}

/* ============================================================
   FOOTER – RESPONSIVE
   ============================================================ */
footer {
  background: linear-gradient(175deg, #0a0818 0%, #0f0c2e 100%);
  color: #94a3b8;
}

footer a:hover { color: #a78bfa !important; }

@media (max-width: 991px) {
  footer .row.g-5 { gap: 28px 0; }
}

@media (max-width: 767px) {
  footer .col-6 { margin-bottom: 8px; }
}

/* Footer bottom nav – make it wrap nicely on mobile */
footer nav {
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center !important;
}

@media (max-width: 575px) {
  footer .col-lg-5,
  footer .col-lg-7 { text-align: center !important; }
  footer .col-lg-7 nav { justify-content: center !important; }
}

/* ============================================================
   BLOG & NEWS PAGES
   ============================================================ */

/* ============================================================
   MOBILE POLISH – clean headers, tighter spacing, no H-scroll
   ============================================================ */

/* Global guard: never allow sideways scroll / wrapped misalignment
   caused by fixed-width blobs, wide transforms or stray elements. */
html, body { overflow-x: hidden; }

/* Section titles: on narrow screens the flanking gradient bars on
   .section-title h2 ::before/::after forced awkward wrapping on long
   headings. Replace them with a single short centered accent and
   tighten the block so headers look clean instead of chunky. */
@media (max-width: 575px) {
  .section-title { padding-bottom: 28px; }

  .section-title h2 {
    font-size: 21px;
    line-height: 1.35;
    padding-bottom: 10px;
  }

  .section-title h2::before,
  .section-title h2::after { display: none; }

  /* centered single accent line under the title */
  .section-title h2 { position: relative; }
  .section-title h2::after {
    content: '';
    display: none;
  }
  .section-title h2::before {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ch-primary), var(--ch-secondary));
  }

  .section-title p {
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: 12px;
  }
}

@media (max-width: 767px) {
  .section-title { padding-bottom: 32px; }
}

/* Tighten the biggest vertical paddings so mobile spacing isn't "chunky". */
@media (max-width: 575px) {
  .contact { padding: 52px 0; }
  .cta-bottom { padding: 52px 0; }
  .hero-section { padding: 32px 0 30px; }
}
@media (max-width: 767px) {
  .blog-hero { padding: 100px 0 40px !important; }
  .blog-card { margin-bottom: 4px; }
}

/* ============================================================
   AUTHOR & CATEGORY PAGES
   ============================================================ */
@media (max-width: 767px) {
  .page-hero { padding: 90px 0 40px !important; }
}

/* ============================================================
   MOBILE GLOBAL FIXES
   ============================================================ */
@media (max-width: 575px) {
  section { padding: 48px 0; }
  .section-title { padding-bottom: 28px; }

  /* Prevent horizontal overflow */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Fix image overflow on hero + contact sections */
  .col-lg-6 img, .col-md-6 img { max-width: 100%; }

  /* Buttons stacked on small screens */
  .d-flex.gap-3.flex-wrap > .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .hero-content h1 { font-size: 24px; line-height: 1.25; }
  .stat-item strong { font-size: 18px; }
}

/* ============================================================
   SCROLL-SMOOTH & TOUCH SCROLLING
   ============================================================ */
* { -webkit-overflow-scrolling: touch; }

/* ============================================================
   WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 22px;
  left: auto !important;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 28px;
  box-shadow: 0 6px 22px rgba(37,211,102,.45);
  z-index: 9999;
  text-decoration: none;
  transition: var(--ch-transition);
}

.whatsapp-float:hover {
  color: #fff !important;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,211,102,.65);
}

.whatsapp-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5);
  animation: ring-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.15); opacity: 0; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--ch-primary), var(--ch-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  z-index: 9990;
  visibility: hidden;
  opacity: 0;
  transition: var(--ch-transition);
  box-shadow: 0 4px 16px rgba(91,66,243,.4);
}

.back-to-top.active { visibility: visible; opacity: 1; }
.back-to-top:hover { color: #fff; transform: translateY(-2px); }

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 18px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
  .whatsapp-float .whatsapp-tooltip {
    display: none !important;
  }
  .back-to-top {
    right: 18px;
    bottom: 80px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* ============================================================
   DISABLE AOS delays on mobile
   ============================================================ */
@media (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
  [data-aos] { transition-duration: 300ms !important; }
}

/* ============================================================
   HERO MAIN IMAGE – keep it stable & centered (no upward float)
   ============================================================ */
/* Remove the vertical "bob/float" animations from the hero image so it
   never drifts upward out of place. (hero-float & old up-down anims) */
#hero .hero-img img,
#hero .hero-img-card,
#hero .hero-main-img {
  animation: none !important;
}

/* Center the image inside its column on every breakpoint,
   and keep it BELOW the fixed white header (never tuck behind it). */
#hero .hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

#hero .hero-img img {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 991px) {
  #hero .hero-img {
    margin: 6px auto 20px;
  }
  #hero .hero-img img {
    width: 70% !important;
    max-width: 460px;
  }
}

@media (max-width: 575px) {
  /* on small screens the image comes first (order-1); push it below the
     fixed header height (header ≈ 70px) so it never hides under it */
  .hero-section {
    padding-top: 40px;
  }
  #hero .hero-img {
    margin: 44px auto 12px;
  }
  #hero .hero-img img {
    width: 86% !important;
    max-width: 400px;
  }
}

/* ============================================================
   MOBILE – push whole hero below fixed header (no image tuck)
   ============================================================ */
@media (max-width: 767px) and (min-width: 576px) {
  .hero-section { padding-top: 35px; }
}

/* ============================================================
   MOBILE – hide "100% Pan-India Reach" stat for cleaner layout
   ============================================================ */
@media (max-width: 575px) {
  #hero .stat-panindia {
    display: none !important;
  }
}
