/* ================================
   GLOBAL RESET & BASE STYLES
================================ */

/* === REMOVE UNWANTED SCROLLBAR / OVERFLOW === */
html,
body {
  overflow-x: hidden;
  /* Prevent horizontal scrollbar */
  margin: 0;
  padding: 0;
}

section {
  overflow-x: hidden;
}

/* Hero slider or hero section ke liye specific fix */
.hero-slider,
.page-hero {
  overflow: hidden;
  position: relative;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fb;
  color: #222;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  color: #003366;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================================
   HEADER
================================ */
/* ====== MODERN HEADER ====== */
/* ================================
   MODERN TRANSPARENT HEADER
================================ */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s ease;
  padding: 16px 0;
}

.main-header.transparent {
  background: transparent;
  box-shadow: none;
}

.main-header.shrink {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
}

/* Header container */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  /* Header ki consistent height maintain */
}

.logo img {
  height: 130px;
  /* Pehle 65 ya 70 thi, ab thoda bada */
  width: auto;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.3s ease, height 0.3s ease;
  margin-top: -5px;
  /* Slight offset to visually balance */
}

.logo img:hover {
  transform: scale(1.05);
}

/* Jab header shrink ho to thoda chhota ho jaaye */
.main-header.shrink .logo img {
  height: 80px;
}

/* Nav Links */
.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 35px;
}

.navbar ul li a {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

.main-header.shrink .navbar ul li a {
  color: #003366;
}

.navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00b4db, #0056b3);
  transition: width 0.3s ease;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
  width: 100%;
}

/* Hamburger Icon */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.main-header.shrink .menu-toggle {
  color: #003366;
}

/* Responsive Nav */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 75px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 75px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    transition: right 0.4s ease;
    padding-top: 30px;
  }

  .navbar.active {
    right: 0;
  }

  .navbar ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    padding-left: 30px;
  }

  .navbar ul li a {
    color: #003366;
    font-size: 18px;
  }
}

/* ===== LOGO & NAVBAR ANIMATION ===== */
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInNav {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animations */
.logo img {
  animation: slideDownFade 0.8s ease-out forwards;
}

nav ul li {
  opacity: 0;
  animation: fadeInNav 0.8s ease-out forwards;
}

/* Delay nav items slightly for a cascading effect */
nav ul li:nth-child(1) {
  animation-delay: 0.2s;
}

nav ul li:nth-child(2) {
  animation-delay: 0.3s;
}

nav ul li:nth-child(3) {
  animation-delay: 0.4s;
}

nav ul li:nth-child(4) {
  animation-delay: 0.5s;
}

nav ul li:nth-child(5) {
  animation-delay: 0.6s;
}

nav ul li:nth-child(6) {
  animation-delay: 0.7s;
}

/* Ensure navbar itself appears cleanly */
header,
.main-header {
  animation: slideDownFade 0.7s ease-out;
}



/* ================================
   HERO SECTION (VIDEO BACKGROUND)
================================ */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.75);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.1rem;
  color: #f1f1f1;
  margin-top: 1rem;
}

/* Animated Dynamic Text */
.dynamic-text {
  display: inline-block;
  overflow: hidden;
  height: 1.5em;
  vertical-align: bottom;
  color: #ffd95e;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
}

.dynamic-text span {
  display: block;
  animation: slideWords 10s infinite;
}

@keyframes slideWords {

  0%,
  20% {
    transform: translateY(0);
  }

  25%,
  45% {
    transform: translateY(-100%);
  }

  50%,
  70% {
    transform: translateY(-200%);
  }

  75%,
  95% {
    transform: translateY(-300%);
  }

  100% {
    transform: translateY(0);
  }
}

/* ================================
   PAGE HERO (ABOUT / SERVICES / CONTACT)
================================ */
.page-hero {
  position: relative;
  height: 75vh;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 56, 115, 0.6), rgba(0, 180, 219, 0.6));
  z-index: 1;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  animation: fadeUp 1.2s ease-in-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   CARD & GRID SECTIONS
================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.8rem;
  transition: 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 91, 187, 0.15);
}

.card h3 {
  color: #0056b3;
  margin-bottom: 1rem;
}

.lift:hover {
  transform: translateY(-8px);
}

/* ================================
   ABOUT, SERVICES, VALUES
================================ */
.about,
.about-section,
.values-section,
.backend-section,
.mv-section,
.why-choose,
.services-list {
  padding: 4rem 0;
  background: #fff;
}

.features-list li {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #333;
}

/* ================================
   CTA SECTION
================================ */
.cta {
  background: linear-gradient(135deg, #0b3c91, #004aad);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta h2 {
  font-size: 2.2em;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-secondary {
  background: #fff;
  color: #0056b3;
  border: 2px solid #0056b3;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  transition: 0.3s;
}

.cta .btn-secondary:hover {
  background: #0056b3;
  color: #fff;
  transform: translateY(-3px);
}

/* ================================
   CONTACT FORM
================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.contact-card,
.contact-info-card {
  background: #fff;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0b3c91;
  outline: none;
}

/* ================================
   FOOTER
================================ */
.footer {
  background: linear-gradient(135deg, #0b3c91, #003366);
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer a:hover {
  color: #ffcd3c;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* ================================
   RESPONSIVE TWEAKS
================================ */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .dynamic-text {
    font-size: 1rem;
  }

  .page-hero {
    height: 60vh;
  }

  .cta h2 {
    font-size: 1.6em;
  }
}


/* Header spacing fix */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 60px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .logo img {
    height: 55px;
  }
}

/* === PREMIUM "WHAT WE OFFER" STYLING === */
.services-modern {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(145deg, #f3f8ff, #eaf2ff);
  overflow: hidden;
}

.services-modern::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center, rgba(11, 102, 209, 0.15), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.services-modern::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center, rgba(11, 102, 209, 0.08), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Headings */
.services-modern .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  color: #0b2e66;
}

.services-modern .section-sub {
  text-align: center;
  color: #4a5b75;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

/* Grid */
.services-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

/* Cards */
.service-card {
  background: #ffffffd9;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.service-card .icon {
  font-size: 32px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f8ff, #e3f2ff);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.service-card h3 {
  font-size: 1.1rem;
  color: #112b55;
  margin-top: 8px;
}

.service-card p {
  flex: 1;
  color: #404b5a;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Hover Effects */
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(11, 102, 209, 0.15);
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.service-card::after {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(11, 102, 209, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card .card-cta {
  margin-top: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #0b66d1;
  transition: color 0.3s ease;
}

.service-card .card-cta:hover {
  color: #08479a;
}

/* Highlight Card */
.service-card.highlight {
  background: linear-gradient(145deg, #ffffff, #eaf5ff);
  border: 1px solid rgba(11, 102, 209, 0.1);
  box-shadow: 0 10px 30px rgba(11, 102, 209, 0.15);
}

.service-card.highlight .icon {
  background: linear-gradient(135deg, #d5eaff, #e6f3ff);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-modern {
    padding: 60px 0;
  }

  .service-card {
    padding: 20px;
  }
}

/* --- WHY CHOOSE (Grid Fix) --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.why-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.why-card:hover {
  transform: translateY(-6px);
}

@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    /* Always 3 per row */
  }
}


.cta-hero {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
}

.cta-hero .cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: blur(0.8px) saturate(.95);
}

.cta-hero .cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 38, 0.45), rgba(6, 20, 38, 0.55));
  z-index: 2;
}

.cta-inner {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.about-card {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(10, 30, 70, 0.04);
}

.about-card h3 {
  margin-bottom: 8px;
}

.about-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === ABOUT MODERN SPLIT SECTION === */
.about-modern {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1 1 45%;
}

.about-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.about-content {
  flex: 1 1 50%;
}

.about-content h2 {
  font-size: 2rem;
  color: #0b2e66;
  margin-bottom: 16px;
}

.about-content h2 span {
  color: #0b66d1;
}

.about-content p {
  color: #4a5675;
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-card {
  flex: 1 1 30%;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(11, 102, 209, 0.08);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-card h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #0b66d1;
}

.stat-card p {
  font-size: 0.92rem;
  color: #333;
}

/* Mobile fix */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
  }

  .about-stats {
    flex-direction: column;
  }
}

/* === CAPSULE STYLE SERVICE GRID === */
.services-capsule {
  background: linear-gradient(180deg, #f9fcff, #eef4ff);
  padding: 80px 0;
  text-align: center;
}

.capsule-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.capsule-item {
  background: #fff;
  border-radius: 50px;
  padding: 14px 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  font-size: 0.98rem;
  color: #0b2e66;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.capsule-item:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #e8f2ff, #ffffff);
  box-shadow: 0 10px 30px rgba(11, 102, 209, 0.12);
}

.capsule-item span {
  font-size: 1.3rem;
}

@media (max-width: 600px) {
  .capsule-item {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0b2e66;
  text-align: center;
  margin-bottom: 8px;
}