/* === GLOBAL === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #1e293b;
  overflow-x: hidden;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
}
/* ===== GLOBAL HEADER COLOR ANIMATION (APPLIES TO ALL PAGES) ===== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 0;
  background: rgb(255, 255, 255);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 1000;
}

/* Header subtle blue tint when hovered */
.header:hover {
  background: linear-gradient(
    180deg,
    rgba(30,144,255,0.07) 0%,
    rgba(0,183,230,0.04) 100%
  );
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Nav link color animation */
.nav-link {
  font-weight: 600;
  text-decoration: none;
  color: #1e90ff;
  position: relative;
  transition: color 0.28s, transform 0.25s;
}

.nav-link:hover {
  color: #1e90ff;
  transform: translateY(-2px);
}
.nav-menu{
  color: #1e90ff;
}
/* Underline bar */
.nav-underline {
  position: absolute;
  bottom: -6px;
  height: 3px;
  width: 0;
  left: 0;
  background: linear-gradient(90deg, #1e90ff, #00b7e6);
  transition: left 0.3s ease, width 0.3s ease;
  border-radius: 2px;
  pointer-events: none;
}

/* Active menu item (current page) */
.nav-link.active {
  color: #1e90ff !important;
  font-weight: 700;
}

/* === SCROLL REACTIVE HEADER === */
header.scrolled {
  background: linear-gradient(90deg, #0078ff, #00bfff); /* your theme blue gradient */
  border-bottom: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.8s ease, box-shadow 0.s ease;
}
header.scrolled .nav-link {
  color: #ffffff !important;   /* text stays white */
}

header.scrolled .nav-link:hover {
  color: #000000 !important;   /* hover becomes black (visible) */
}
header.scrolled nav > ul > li > a {
  color: #ffffff !important;
}

header.scrolled nav > ul > li > a:hover {
  color: #000000 !important;
}
header.scrolled .dropdown-menu a {
  color: #1e293b !important; /* dark blue */
}

header.scrolled .dropdown-menu a:hover {
  color: #0078ff !important; /* your theme blue */
  background: #f0f9ff;
}

header.scrolled nav a {
  color: #ffffff; /* make links white on blue background */
}
header.scrolled .tagline {
  color: #ffffff; /* makes tagline visible on blue background */
  transition: color 0.4s ease;
}

header.scrolled nav a::after {
  background: #ffffff; /* underline matches link color */
}

header.scrolled .logo {
  color: #ffffff; /* logo stays visible */
}
header.scrolled nav a[href="#contact"],
header.scrolled nav a[href="index.html#contact"] {
  color: #ffffff !important; /* keeps 'Contact' visible on blue background */
}

header.scrolled .search-icon {
  color: #ffffff; /* white search icon when scrolled */
}

header.scrolled .search-input.active {
  background: #ffffff; /* visible input */
  color: #1e293b; /* dark text inside */
  border-color: #ffffff;
}
header.scrolled .dropdown-menu {
  background: #ffffff; /* dropdown stays white */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

header.scrolled .dropdown-menu a {
  color: #1e293b; /* readable dark text on white background */
}

header.scrolled .dropdown-menu a:hover {
  background: #f0f9ff;
  color: #0078ff;
}
/* === KEEP UNDERLINE EFFECT FOR ALL LINKS ON SCROLLED HEADER === */

/* Default underline for normal state */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #0078ff;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Hover underline effect */
nav a:hover::after {
  width: 100%;
}

/* When header is scrolled — underline becomes white */
header.scrolled nav a::after {
  background: #ffffff;
}

/* Specifically ensure dropdown items also show underline */
header.scrolled .dropdown-menu a::after {
  background: #0078ff; /* dropdown items stay blue to match white background */
}

/* Enable hover underline for dropdowns too */
.dropdown-menu a:hover::after {
  width: 100%;
}

/* === INLINE SEARCH BAR === */
.search-area {
  display: flex;
  align-items: center;
  position: relative;
}

.search-icon {
  background: none;
  border: none;
  font-size: 20px;
  color: #1e293b;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.search-icon:hover {
  color: #0078ff;
  transform: scale(1.1);
}

.search-input {
  width: 0;
  opacity: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  margin-left: 8px;
  outline: none;
  transition: all 0.4s ease;
  background: #ffffff;
  color: #1e293b;
}

.search-input.active {
  width: 180px;
  opacity: 1;
  border-color: #0078ff;
  box-shadow: 0 0 8px rgba(0,120,255,0.3);
}

/* Logo */
.logo {
  font-family: 'Dancing Script', cursive;
  font-size: 34px;
  color: #0078ff;
}

/* Nav container */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

/* Navigation list */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 35px;
  margin: 0;
  padding: 0;
}

/* Navigation links */
nav a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  display: inline-block;
  transition: color 0.3s ease;
}

/* Underline animation */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #0078ff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #0078ff;
}
/* === KEEP UNDERLINE ANIMATION ON SCROLLED HEADER === */
header.scrolled nav a::after {
  background: #ffffff; /* underline turns white on blue header */
}

header.scrolled nav a:hover::after {
  width: 100%; /* maintain smooth underline animation */
}

/* Contact link identical to others */
nav a[href="#contact"] {
  color: #1e293b;
  font-weight: 600;
}
nav a[href="#contact"]:hover {
  color: #0078ff;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, #0078ff, #00bfff);
}

/* === DROPDOWN MENU === */
.dropdown {
  position: relative;
}

.dropdown > a {
  display: inline-block;
  padding: 8px 0;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  z-index: 9999;
}

/* Compact Services dropdown */
.dropdown-menu.large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px 12px;
  min-width: 320px;
  max-width: 480px;
  padding: 10px 12px;
  white-space: normal;
  overflow: hidden;
  border-radius: 8px;
}

/* Dropdown hover fix */
.dropdown:hover > .dropdown-menu,
.dropdown-menu:hover,
.dropdown > a:hover + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown links */
.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #1e293b;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

.dropdown-menu a:hover {
  background: #f0f9ff;
  color: #0078ff;
}

/* === HERO SLIDER === */
#hero {
  height: 60vh;
  position: relative;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.caption {
  position: absolute;
  bottom: 70px;
  left: 60px;
  color: white;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.caption h2 {
  font-size: 38px;
}

/* === SLIDER DOTS === */
.dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dots div {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dots div.active {
  background: #0078ff;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0,120,255,0.6);
}

/* === SECTIONS === */
.section {
  padding: 80px 0;
  text-align: center;
}
.section h2 {
  color: #0078ff;
  font-size: 32px;
  margin-bottom: 20px;
}
.light-bg {
  background: #f8fafc;
}
.industries-grid, .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.industry-card, .why-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.industry-card:hover, .why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* === ABOUT SECTION === */
.about-section {
  background: #f8fafc;
  text-align: center;
}
.about-intro {
  max-width: 850px;
  margin: 0 auto 50px;
  font-size: 17px;
  line-height: 1.7;
  color: #334155;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.about-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 25px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(0,120,255,0.1), rgba(0,188,255,0.1));
  transition: all 0.5s ease;
  z-index: 0;
}
.about-card:hover::before {
  left: 0;
}
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 120, 255, 0.15);
  border-color: rgba(0, 120, 255, 0.3);
}
.about-card h3 {
  color: #0078ff;
  margin-bottom: 12px;
  font-size: 20px;
  position: relative;
  z-index: 1;
}
.about-card p {
  color: #475569;
  line-height: 1.6;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.about-footer {
  margin-top: 50px;
  font-size: 16px;
  color: #334155;
  font-style: italic;
}

/* === CONTACT === */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}
input, textarea {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #0078ff;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
}

/* === FOOTER === */
footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 60px 0 20px;
  font-size: 15px;
  color: #1e293b;
}
.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-section h3 {
  color: #0078ff;
  font-size: 18px;
  margin-bottom: 15px;
}
.footer-section p {
  color: #475569;
  line-height: 1.6;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section ul li a {
  text-decoration: none;
  color: #334155;
  transition: color 0.3s ease;
}
.footer-section ul li a:hover {
  color: #0078ff;
}
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.social-links img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}
.social-links img:hover {
  filter: grayscale(0%);
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(0,120,255,0.3);
  border-radius: 50%;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 15px;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 768px) {
  .dropdown-menu.large {
    grid-template-columns: 1fr;
    min-width: 220px;
    max-width: 260px;
  }
}

.btn-primary {
  background: linear-gradient(90deg, #0078ff, #00bfff);
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,120,255,0.2);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #00bfff, #0078ff);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,120,255,0.3);
}

#cloud-hero {
  position: relative;
  height: 45vh; /* smaller hero height */
  overflow: hidden;
}

.cloud-caption {
  position: absolute;
  bottom: 25px;
  left: 50px;
  color: white;
  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.cloud-caption h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.cloud-caption p {
  font-size: 15px;
  max-width: 520px;
}


/* === CLOUD PAGE STYLING (PROFESSIONAL LAYOUT) === */
.section-title {
  color: #0078ff;
  font-size: 32px;
  margin-bottom: 25px;
}

.highlight-box {
  background: #f0f9ff;
  border-left: 5px solid #0078ff;
  border-radius: 8px;
  padding: 20px 25px;
  margin: 30px auto 40px;
  max-width: 900px;
  text-align: left;
  color: #334155;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.pillar {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: left;
}

.pillar h4 {
  color: #0078ff;
  font-size: 18px;
  margin-bottom: 10px;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 120, 255, 0.15);
  border-color: rgba(0, 120, 255, 0.3);
}

.value-section {
  text-align: left;
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.value-section h3 {
  color: #0078ff;
  font-size: 24px;
  margin-bottom: 15px;
}

.value-points {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.value-points li {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 8px 0;
  border-left: 4px solid #0078ff;
  transition: transform 0.3s ease, background 0.3s ease;
}

.value-points li:hover {
  background: #f0f9ff;
  transform: translateX(5px);
}
/* === BANKING PAGE STYLING === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.stat-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card h3 {
  color: #0078ff;
  margin: 0 0 8px;
  font-size: 24px;
}
.stat-card p {
  color: #334155;
  font-size: 15px;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 120, 255, 0.15);
}
.logo-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tagline {
  font-size: 13px;
  color: #64748b;
  margin-top: -5px;
  letter-spacing: 0.5px;
}



/* =========================================
   MOBILE RESPONSIVE FIXES
   ========================================= */

@media (max-width: 1024px) {
  header .nav ul {
    gap: 20px;
  }
}

/* Mobile — 768px and below */
@media (max-width: 768px) {

  /* Header */
  header {
    padding: 10px 15px;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .logo-with-tagline {
    text-align: center;
  }

  /* Dropdown menus on mobile */
  .dropdown-menu {
    position: static;
    width: 100%;
    text-align: center;
    box-shadow: none;
  }

  /* Slider Images */
  #hero .slider {
    height: 300px !important;
  }

  #hero .slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }

  #hero .caption {
    bottom: 20px !important;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  #hero .caption h2 {
    font-size: 20px !important;
  }

  #hero .caption p {
    font-size: 14px !important;
  }

  /* About Section */
  #about {
    padding: 40px 20px;
  }

  #about p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Why Choose Us */
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .why-card {
    text-align: center;
    padding: 20px;
  }

  /* Contact section */
  form {
    width: 100%;
  }

  form input, form textarea {
    width: 100% !important;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 25px;
  }
}

/* Very Small Devices (Phones ≤ 480px) */
@media (max-width: 480px) {
  #hero .slider {
    height: 250px;
  }

  #hero .slide img {
    height: 250px;
  }

  #hero .caption h2 {
    font-size: 18px;
  }

  #hero .caption p {
    font-size: 13px;
  }

  header {
    padding: 8px 10px;
  }
}


/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #000;
  margin: 4px 0;
  border-radius: 3px;
}

/* MOBILE MENU */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 80px;
    right: 0;
    background: white;
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}



/* ===========================
   MOBILE RESPONSIVE HEADER
   =========================== */

@media (max-width: 768px) {

  /* header row adjusts */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  /* hide desktop nav */
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 15px 0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-top: 10px;
  }

  /* nav visible when toggled */
  nav ul.show-nav {
    display: flex;
  }

  /* hamburger visible on mobile */
  #hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  #hamburger span {
    width: 25px;
    height: 3px;
    background: #000;
    border-radius: 3px;
  }

  /* dropdowns inside mobile */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    margin-top: 5px;
    border-radius: 6px;
  }

  .dropdown-menu a {
    padding: 8px 15px;
  }
}


/* ===========================
   RESPONSIVE SLIDER
   =========================== */

@media (max-width: 768px) {
  #hero .slider {
    height: 45vh !important;
  }

  #hero .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #hero .caption {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    text-align: center;
  }

  #hero .caption h2 {
    font-size: 20px;
  }

  #hero .caption p {
    font-size: 14px;
  }
}




/* ===========================
   SECTION RESPONSIVE LAYOUTS
   =========================== */

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .section {
    padding: 40px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 25px;
  }

  form input, form textarea {
    width: 100% !important;
  }

  #about p,
  .why-card p,
  .contact p {
    font-size: 15px;
    line-height: 1.6;
  }
}




/* ===========================
   FINAL RESPONSIVE FIX
   =========================== */

@media (max-width: 768px) {

  /* WRAP NAV ITEMS INTO MOBILE MENU */
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    padding: 15px 0;
    margin-top: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  }

  nav ul.show-nav {
    display: flex;
  }

  /* HAMBURGER VISIBLE */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .hamburger span {
    width: 26px;
    height: 3px;
    background: #000;
    border-radius: 3px;
  }

  /* DROPDOWN (Industries / Services) */
  .dropdown-menu {
    display: none;
    background: #f5f7fb;
    margin-top: 6px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: none;
    position: static;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-menu a {
    padding: 8px 15px;
    font-size: 14px;
    display: block;
  }

  /* SLIDER */
  #hero .slider {
    height: 45vh !important;
  }

  #hero .slide img {
    height: 100%;
    object-fit: cover;
  }

  #hero .caption {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 85%;
  }

  #hero .caption h2 {
    font-size: 20px;
  }

  #hero .caption p {
    font-size: 14px;
  }

  /* LAYOUT FIXES */
  .section {
    padding: 40px 20px;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}


/* ==========================================================
   FINAL AND ONLY MOBILE RULES (OVERRIDES EVERYTHING ABOVE)
   ========================================================== */
@media (max-width: 768px) {

  /* HEADER */
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* SHOW HAMBURGER */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
  }

  /* HIDE DESKTOP MENU */
  nav ul {
    display: none !important;
    flex-direction: column;
    background: #ffffff;
    width: 100%;
    position: absolute;
    top: 70px;
    right: 0;
    padding: 18px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 9999;
  }

  /* SHOW MENU WHEN TOGGLED */
  nav ul.show-nav {
    display: flex !important;
  }

  /* NAV LINKS */
  nav ul li a {
    font-size: 16px;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
  }

  /* DROPDOWN FIX */
  .dropdown-menu {
    display: none !important;
    position: static !important;
    background: #f6f9ff;
    box-shadow: none !important;
    border-radius: 8px;
    margin-top: 8px;
    padding: 10px 0;
  }

  /* WHEN CLICKED, SHOW IT */
  .dropdown-menu.show {
    display: block !important;
  }

  .dropdown-menu a {
    font-size: 15px;
    padding: 10px 20px;
    display: block;
  }

  /* SLIDER FIX */
  #hero .slider {
    height: 45vh !important;
  }

  #hero .slide img {
    height: 100% !important;
    object-fit: cover !important;
  }

  #hero .caption {
    left: 50%;
    bottom: 25px !important;
    transform: translateX(-50%);
    text-align: center !important;
    width: 85%;
  }

  #hero .caption h2 {
    font-size: 20px !important;
  }

  #hero .caption p {
    font-size: 14px !important;
  }

  /* SECTIONS */
  .section {
    padding: 45px 20px !important;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* FOOTER */
  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
}




/* When open, show chatbot window */
.mira-window.open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}




/* ============================================================
   VISION / MISSION / VALUES - FLIP CARDS
============================================================ */
.vm-section {
  margin: 80px 0 40px;
}

.vm-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.vm-card {
  width: 280px;
  height: 250px;
  perspective: 1100px;
}

.vm-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform .9s;
  transform-style: preserve-3d;
}

.vm-card:hover .vm-inner {
  transform: rotateY(180deg);
}

.vm-front, .vm-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Front */
.vm-front {
  background: white;
  color: #0078ff;
}

.vm-front h2 {
  margin-top: 10px;
  font-size: 20px;
}

.vm-icon {
  width: 60px;
  opacity: 0.8;
}

/* Back */
.vm-back {
  background: linear-gradient(135deg, #0078ff, #00bfff);
  color: white;
  transform: rotateY(180deg);
}
a.btn-primary {
  text-decoration: none !important;
}

.vm-back p {
  font-size: 15px;
  line-height: 1.6;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .vm-container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .vm-card {
    width: 90%;
    max-width: 320px;
  }
}





/* Success Popup Animation */
.success-popup {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 99999;
}

.success-popup.active {
  opacity: 1;
  pointer-events: all;
}

.checkmark-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
}

.checkmark {
  width: 100%;
  height: 100%;
  stroke-width: 3;
  stroke: #0078ff;
  stroke-miterlimit: 10;
  animation: scaleUp 0.4s ease-out forwards;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeCircle 0.6s ease forwards;
}

.checkmark-check {
  stroke: #0078ff;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.4s 0.6s ease forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

@keyframes scaleUp {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

.success-text {
  font-size: 18px;
  color:#0078ff;
  font-weight: 600;
}


/* ============================================================
   RESPONSIVE FIX PACK (Safe – Works with your existing layout)
   ============================================================ */

@media (max-width: 992px) {

  /* Fix container overflow */
  body, html {
    overflow-x: hidden !important;
  }

  /* Header structure fix */
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Hero caption alignment */
  #hero .caption {
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    width: 90% !important;
  }
}

/* ----------- Tablet + Mobile (<=768px) ------------ */
@media (max-width: 768px) {

  /* Force mobile grid stacking */
  .why-grid,
  .industries-grid,
  .about-cards,
  .pillars-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Hero slider height fix */
  #hero {
    height: 45vh !important;
  }

  #hero .slide img {
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Fix dropdown as collapsible */
  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none !important;
    background: #f6f9ff !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
  }

  .dropdown-menu.show {
    display: block !important;
  }

  /* Contact form full width */
  form input, form textarea {
    width: 100% !important;
  }

  /* Footer stacking */
  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 25px !important;
  }

  /* Fix heading sizes */
  h2 {
    font-size: 24px !important;
  }
}

/* ----------- Small Phones (<=480px) ------------ */
@media (max-width: 480px) {

  /* Smaller slider */
  #hero {
    height: 38vh !important;
  }

  #hero .caption h2 {
    font-size: 18px !important;
  }

  #hero .caption p {
    font-size: 13px !important;
  }

  /* Reduce padding */
  .section {
    padding: 40px 15px !important;
  }
}



/* 🔥 FORCE MOBILE NAVBAR STICKY */
@media (max-width: 768px) {
  html body header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background: #ffffff !important;
  }
}

/* 🔥 MOBILE DROPDOWN FIX */
@media (max-width: 768px) {

  .dropdown-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 12px 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* When JS adds .show */
  .dropdown-menu.show {
    display: block !important;
  }

  /* Dropdown items visible */
  .dropdown-menu a {
    color: #1e293b !important;
    padding: 12px 20px !important;
    display: block !important;
    text-align: center !important;
  }

  .dropdown-menu a:hover {
    background: #f0f9ff !important;
    color: #0078ff !important;
  }
}

/* =========================================
   UNIVERSAL RESPONSIVE FIX FOR ALL PAGES
   ========================================= */

@media (max-width: 768px) {

  /* --- NAVBAR FIX --- */
  header {
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: flex !important;
  }

  nav ul {
    display: none !important;
    flex-direction: column;
    background: white;
    width: 100%;
    position: absolute;
    top: 70px;
    right: 0;
    padding: 15px 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }

  nav ul.show-nav {
    display: flex !important;
  }

  nav ul li a {
    text-align: center;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }

  /* Dropdown items */
  .dropdown-menu {
    position: static !important;
    display: none !important;
    background: #f5f7fb;
    padding: 10px 0;
  }

  .dropdown-menu.show {
    display: block !important;
  }

  /* --- HERO SLIDER FIX --- */
  #hero .slider,
  #banking-hero,
  #cloud-hero {
    height: 45vh !important;
  }

  .caption {
    left: 50% !important;
    bottom: 25px !important;
    transform: translateX(-50%);
    width: 85%;
    text-align: center;
  }

  .caption h2 {
    font-size: 20px !important;
  }

  .caption p {
    font-size: 14px !important;
  }

  /* --- GRID SECTIONS RESPONSIVE --- */
  .why-grid,
  .industries-grid,
  .stats-grid,
  .about-cards {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* --- CONTACT FORM FIX --- */
  form input,
  form textarea {
    width: 100% !important;
  }

  /* --- FOOTER FIX --- */
  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

}

