/* ============================================================
   CORE VARIABLES
============================================================ */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0f1724;
  --muted: #6b7280;
  --accent: #003B73;
  --accent-2: #FFB200;
  --glass: rgba(255,255,255,0.6);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(3,15,34,0.08);
  --max-width: 1180px;
  --header-h: 90px;
}

/* ============================================================
   GLOBAL RESET
============================================================ */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

.container {
  width: calc(100% - 32px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px;
}

/* ============================================================
   PRELOADER
============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
  z-index: 99999;
  transition: opacity .45s ease, transform .45s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; transform: scale(1.02); }

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px solid rgba(0,0,0,0.06);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.preloader-text { font-weight: 600; color: var(--muted); font-size: 13px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HEADER
============================================================ */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1100;
  background: linear-gradient(90deg, rgba(0,59,115,0.95), rgba(0,95,143,0.92));
  color: #fff;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 20px rgba(3,15,34,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

header.shrink {
  height: 56px;
  box-shadow: 0 10px 26px rgba(3,15,34,0.12);
}

.header-inner {
  width: calc(100% - 32px);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav.primary a {
  color: #003B73;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
nav.primary a:hover { background: rgba(255,255,255,0.06); }

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 22px; height: 2px;
  background:#003B73;
  margin: 4px 0;
  display: block;
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero { width: 100%; position: relative; overflow: hidden; }

/* CAROUSEL */
.carousel {
  width: 100%;
  height: 520px;
  position: relative;
  overflow: hidden;
}

@media(max-width:900px){ .carousel { height: 420px; } }
@media(max-width:520px){ .carousel { height: 320px; } }

.carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform .9s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel .slide.show { opacity: 1; transform: scale(1); }
.carousel .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.18));
}

.slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 20px;
  max-width: 980px;
}

.slide h2 { font-size: 40px; margin-bottom: 10px; }
.slide p { font-size: 18px; margin-bottom: 16px; }

/* Arrows */
.carousel-arrow {
  position:absolute;
  top:50%; transform:translateY(-50%);
  width:54px;height:54px;border-radius:50%;
  background:#ffffffdd;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;border:1px solid #ddd;
  z-index:20;
}
.carousel-arrow.left  { left:18px; }
.carousel-arrow.right { right:18px; }

/* Hide arrows only on mobile */
@media(max-width:768px){
  .carousel-arrow { display: none !important; pointer-events:none; }
}

/* Dots */
.carousel-dots {
  position:absolute; bottom:20px;
  left:50%; transform:translateX(-50%);
  display:flex; gap:10px;
}

/* HERO INNER */
.hero-content {
  padding: 44px 0 36px;
  background: linear-gradient(180deg,#fbfdff,#ffffff);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}
@media(max-width:980px){
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }
}
/* ============================================================
   HERO — RIGHT CARD VISUAL
============================================================ */
.card-visual {
  background: linear-gradient(180deg,#fff,#fbfdff);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(3,15,34,0.06);
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
}

.c-image {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  overflow: hidden;
  border: 6px solid var(--accent-2);
  flex: 0 0 108px;
}

.c-info h4 {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
}

/* ============================================================
   SECTION BASE
============================================================ */
section { padding: 44px 0; }

.section-title {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--accent);
}

.about-grid,
.services-grid,
.test-grid,
.biz-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: linear-gradient(180deg,#fff,#fbfdff);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(3,15,34,0.04);
  box-shadow: var(--shadow);
}

/* About image */
.about-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 10px;
}

/* ============================================================
   HOVER BACKGROUND EFFECT
============================================================ */
.hover-bg {
  position: relative;
  overflow: hidden;
}
.hover-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: .45s;
  filter: contrast(.95) saturate(1.05) blur(0.8px);
}
.hover-bg:hover::before {
  opacity: 0.28;
  transform: scale(1);
}

/* ============================================================
   SERVICES
============================================================ */
.svc {
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  border: 1px solid rgba(3,15,34,0.04);
  transition: .28s ease;
}
.svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(3,15,34,0.10);
}

.svc .icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.svc h3 {
  margin: 6px 0 8px;
  color: var(--accent);
}

/* ============================================================
   CTA BAR
============================================================ */
.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(90deg,#f6fbff,#fff);
  border: 1px solid rgba(3,15,34,0.04);
  box-shadow: var(--shadow);
}

/* ============================================================
   TESTIMONIALS
============================================================ */
blockquote.test {
  padding: 18px;
  border-left: 4px solid var(--accent-2);
}

/* ============================================================
   STATS
============================================================ */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  border: 1px solid rgba(3,15,34,0.04);
}
.stat .num {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   PARALLAX SECTIONS
============================================================ */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.parallax .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,15,34,0.12), rgba(3,15,34,0.05));
  pointer-events: none;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  padding: 28px 0;
  margin-top: 36px;
  border-top: 1px solid rgba(3,15,34,0.04);
  background: linear-gradient(180deg,#fff,#fbfdff);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
============================================================ */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(90deg,var(--accent),#0b4f88);
  padding: 12px 14px;
  border-radius: 999px;
  display: flex;
  gap: 10px;
  color: white;
  text-decoration: none;
  z-index: 1200;
  box-shadow: 0 14px 40px rgba(3,15,34,0.16);
}

/* ============================================================
   MOBILE RESPONSIVE RULES
============================================================ */

/* Tablet */
@media(max-width:980px) {
  nav.primary { display: none; }
  .hamburger { display: block; }
  .brand h1 { font-size: 14px; }
  .brand p { font-size: 11px; }
  .slide h2 { font-size: 28px; }
}

/* Small mobile */
@media(max-width:768px) {

  /* About */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .about-img {
    height: auto;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Biz section */
  .biz-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Testimonials */
  .test-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Contact */
  #contact form div {
    flex-direction: column !important;
  }
  #contact input,
  #contact textarea,
  #contact button {
    width: 100% !important;
  }

  /* Footer */
  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Extra small devices */
@media(max-width:520px) {
  .container { padding: 12px; }
  .c-image { width: 86px; height: 86px; }
  .hero-title { font-size: 26px; }
}

/* ============================================================
   HELPERS
============================================================ */
.muted { color: var(--muted); }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  box-shadow: 0 8px 26px rgba(3,15,34,0.08);
}

.btn-ghost {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(3,15,34,0.06);
  text-decoration: none;
  color: var(--text);
}
[data-aos] {
  overflow-x: hidden !important;
}
body [data-aos] {
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* ---------------------------------------------
   MOBILE MENU — SLIDE IN NAV
---------------------------------------------*/
/* ----------------------------------------------------
   MOBILE MENU — FINAL FIXED VERSION
-----------------------------------------------------*/

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  z-index: 3000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay */
.menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity .3s ease;
}

.menu-overlay.active {
  opacity: 1;
}

/* Sliding panel */
.menu-inner {
  position: absolute;
  right: -260px;
  top: 0;
  width: 260px;
  height: 100%;
  background: #fff;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -4px 0 30px rgba(0,0,0,0.18);
  transition: right .35s ease;
  z-index: 3100;
}

.mobile-menu.active .menu-inner {
  right: 0;
}

/* Links */
.menu-inner a {
  font-size: 18px;
  text-decoration: none;
  padding: 10px 0;
  color: var(--text);
  font-weight: 600;
}

/* CTA button */
.menu-cta {
  margin-top: 12px;
 
  color: white !important;
  padding: 12px 18px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* Close button */
.close-menu {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--accent);
}

/* Hide mobile menu on large screens */
@media (min-width: 980px) {
  .mobile-menu,
  .hamburger {
    display: none !important;
  }
}

/* ---------------------------------------------
   HERO BUTTONS — RESPONSIVE & SAFE
---------------------------------------------*/

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  width: 100%;
}

/* Base */
.hero-btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: .25s ease;
  text-align: center;
  width: auto;
  flex: 1;
  max-width: 220px;          /* IMPORTANT: safe width */
}

/* Primary */
.hero-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.hero-btn.primary:hover {
  transform: translateY(-3px);
}

/* Outline */
.hero-btn.outline {
  border: 2px solid white;
  color: white;
  background: transparent;
  backdrop-filter: blur(3px);
}
.hero-btn.outline:hover {
  background: rgba(255,255,255,0.2);
}

/* ---------------------------------------------
   MOBILE (FIXED WIDTH ISSUES)
---------------------------------------------*/
@media (max-width: 768px) {
  .hero-actions {
    gap: 10px;
  }

  .hero-btn {
    width: 100%;             /* FULL WIDTH BUTTONS */
    max-width: 100%;         /* Prevent overflow */
    font-size: 15px;
    padding: 13px;
  }
}

/* ---------------------------------------------
   EXTRA SMALL DEVICES
---------------------------------------------*/
@media (max-width: 480px) {
  .hero-btn {
    font-size: 14px;
    padding: 12px;
  }
}
/* ===================== EMI MODAL ===================== */
/* ============================
   EMI MODAL (Centered & Smaller)
============================ */
.emi-modal {
  display: none;   /* ← keep hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 99999;

  justify-content: center;
  align-items: center;
}

/* ============================
   MODAL BOX
============================ */
.emi-modal-content {
  width: 90%;
  max-width: 720px;
  max-height: 420px;        /* Smaller height */
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: popUp .35s ease;
  position: relative;
  overflow-y: auto;         /* Safe scroll on small devices */
}

/* Popup animation */
@keyframes popUp {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ============================
   CLOSE BUTTON
============================ */
.emi-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 30px;
  cursor: pointer;
  color: #003B73;
  font-weight: bold;

  /* touch-friendly circle */
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ============================
   FLEX CONTENT
============================ */
.emi-flex {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.emi-left {
  flex: 1;
  min-width: 260px;
}

.emi-left input {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border-radius: 10px;
  border: 2px solid #dbe7ff;
  font-size: 16px;
}

.emi-right {
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.emi-output {
  margin-top: 14px;
  font-size: 17px;
  color: #003B73;
}

/* ============================
   MOBILE FIXES (iPhone Safe)
============================ */
@media (max-width: 480px) {
  .emi-modal-content {
    max-height: 480px;       /* Slightly taller for small phones */
    padding: 24px;
  }

  .emi-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 32px;
  }
}

/* ================================================
   FORCE WHITE HEADER (FINAL FIX)
================================================ */
header {
  background: #ffffff !important;
  color: #003B73 !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
  backdrop-filter: none !important;
}

/* Navigation links */
nav.primary a {
  color: #003B73 !important;
}

/* Hover effect on nav links */
nav.primary a:hover {
  background: rgba(0,59,115,0.08) !important;
}

/* Hamburger menu lines */
.hamburger span {
  background: #003B73 !important;
}

/* Mobile menu links remain dark */
.mobile-menu .menu-inner a {
  color: #003B73 !important;
}

/* Shrink header fix */
header.shrink {
  background: #ffffff !important;
  height: 56px !important;
}
/* Fix: Hero buttons not clickable due to overlay blocking clicks */
.hero,
.carousel,
.slide,
.slide-content {
  position: relative;
  z-index: 10 !important;
  pointer-events: auto !important;
}

/* Fix any invisible overlay blocking clicks */
.carousel .slide::after {
  pointer-events: none !important;
}
/* === FINAL FIX: Make WhatsApp button clickable === */

/* Make hero content always above overlays */
.slide-content,
.slide-content a,
.hero-btn,
.hero-btn.primary,
.hero-btn.outline {
  position: relative !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* Stop hover-overlay from blocking clicks inside hero slides */
.carousel .slide.hover-bg::before,
.carousel .slide .hover-bg::before {
  display: none !important;
  pointer-events: none !important;
}

/* Prevent slide overlay from catching clicks */
.carousel .slide::after {
  pointer-events: none !important;
}
