* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #3b82f6;
  --secondary-blue: #60a5fa;
  --light-blue: #dbeafe;
  --dark-blue: #1e40af;
  --navy: #1e293b;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --gray: #64748b;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}

/* Global Section Padding */
section {
  padding: 80px 0 !important;
}

/* Header Styles - Modern Redesign */
.header {
  background: rgba(255, 255, 255, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.header.scrolled {
  padding: 0;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.12);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.logo img {
  height: 80px;
  width: auto;
  transition: all 0.3s;
}

@media (max-width: 968px) {
  .logo img {
    height: 60px;
    /* Slightly smaller on tablets/mobile */
  }
}

@media (max-width: 640px) {
  .logo img {
    height: 55px;
    /* Even smaller on small mobile screens */
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 45px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 15px;
  padding: 8px 0;
  display: block;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-icon-btn {
  background: var(--light-blue);
  border: none;
  color: var(--primary-blue);
  font-size: 18px;
  cursor: pointer;
  padding: 12px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  width: 45px;
  height: 45px;
}

.search-icon-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: scale(1.1);
}

.btn-contact {
  background: var(--gradient);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-contact i {
  font-size: 16px;
}

.contact-text {
  display: inline;
}

/* Hide text on smaller screens, show only icon */
@media (max-width: 640px) {
  .btn-contact {
    padding: 12px;
    width: 45px;
    height: 45px;
    justify-content: center;
    gap: 0;
  }

  .contact-text {
    display: none;
  }

  .btn-contact i {
    font-size: 18px;
    margin: 0;
  }
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.search-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-modal-content {
  background: var(--white);
  width: 90%;
  max-width: 900px;
  border-radius: 20px;
  padding: 40px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.search-modal-header h2 {
  font-size: 28px;
  color: var(--navy);
}

.close-search-modal {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.close-search-modal:hover {
  color: var(--primary-blue);
}

.modal-search-bar {
  position: relative;
  margin-bottom: 40px;
}

.modal-search-bar input {
  width: 100%;
  padding: 18px 60px 18px 25px;
  border: 2px solid var(--light-blue);
  border-radius: 50px;
  font-size: 18px;
  transition: border-color 0.3s;
}

.modal-search-bar input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.modal-search-bar button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.modal-search-bar button:hover {
  background: var(--dark-blue);
}

.search-categories {
  margin-top: 30px;
}

.search-categories h3 {
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.category-item {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  position: relative;
  /* NEW */
  overflow: hidden;
  /* NEW */
}

/* NEW: Add active/pressed state */
.category-item:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

/* NEW: Add focus state for keyboard navigation */
.category-item:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* NEW: Add ripple effect on click (optional) */
.category-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.category-item:active::after {
  width: 300px;
  height: 300px;
}

.category-item:hover {
  background: var(--light-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.category-item.hidden {
  display: none;
}

.category-item h4 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-item p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--gray);
  display: none;
}

.no-results.show {
  display: block;
}

.no-results i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section - Complete Redesign */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  /* No bottom padding: lady image sits flush at the bottom */
  padding: 180px 0 0 !important;
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: flex-end;
  /* Border line at the bottom separating hero from next section */
  border-bottom: 4px solid rgba(255, 255, 255, 0.4);
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: heroFloat 20s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: heroFloat 25s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(30px, -30px) rotate(10deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  /* Both columns bottom-aligned so lady sits on the hero floor */
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-text {
  flex: 1;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  /* Push left content slightly down - sits near the bottom of hero */
  padding-bottom: 70px;
  align-self: flex-end;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 14px 28px;
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 22px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInDown 0.8s ease;
  align-self: flex-start;
}

.hero-badge i {
  font-size: 16px;
  color: #ffd700;
}

.hero-text h1 {
  font-size: 50px;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.15;
  font-weight: 900;
  animation: fadeInUp 1s ease;
}

.hero-text h1 .highlight {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 28px;
  animation: fadeInUp 1.2s ease;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  animation: fadeInUp 1.4s ease;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--white);
  color: var(--primary-blue);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
  background: #f0f9ff;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-4px);
}

/* Hero Stats - Count Animation */
.hero-stats {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 60px;
  animation: fadeInUp 1.6s ease;
  position: relative;
  width: 100%;
  padding: 25px 0 0;
}

/* Wrapper row: transparent on desktop — becomes flex row on mobile */
.hero-stats-row {
  display: contents;
  /* behaves as if not there on desktop */
}

/* Mobile badge: HIDDEN on desktop & tablet, only shown on mobile */
.hero-badge-mobile {
  display: none;
}

.stat-item {
  text-align: left;
  min-width: 150px;
}

.stat-number {
  font-size: 56px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1;
  display: block;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive text sizing */
@media (max-width: 968px) {
  .hero-stats {
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    font-size: 48px;
  }

  .stat-label {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .hero-stats {
    gap: 40px;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-label {
    font-size: 13px;
  }
}

/* Prevent layout shifts during animation */
.stat-sentence {
  text-align: left;
  width: 100%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  /* NEW: Prevent overflow issues */
  min-height: 44px;
  /* NEW: Maintain consistent height */
}

.stat-text {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  display: block;
  min-height: 44px;
  line-height: 1.4;
  position: relative;
  text-align: left;
  /* Changed from center to left */
  letter-spacing: 0.5px;
  min-width: 100%;
  /* Ensure full width */
}

/* Typing cursor animation - UPDATED to prevent line breaks */
.stat-text.typing::after {
  content: "|";
  animation: blink 0.7s infinite;
  margin-left: 4px;
  font-weight: 400;
  display: inline;
  /* Prevent line break */
  white-space: nowrap;
  /* Prevent wrapping */
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* Erasing effect */
.stat-sentence.erasing .stat-text {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Typing effect */
.stat-sentence.animating .stat-text {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Responsive text sizing */
@media (max-width: 968px) {
  .stat-text {
    font-size: 24px;
    padding: 0;
    text-align: left;
    /* Maintain left alignment on mobile */
  }

  .hero-stats {
    justify-content: flex-start;
    /* Keep left-aligned on mobile */
  }
}

/* Highly Recommended badge — positioned ABOVE the lady's head, top-right of visual column */
.hero-recommended-badge {
  width: 150px;
  height: auto;
  z-index: 20;
  animation: fadeInDown 1s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  /* Flows as first child in hero-visual flex-column */
  align-self: flex-end;
  margin-bottom: 10px;
  position: relative;
}

@media (max-width: 968px) {
  .hero-recommended-badge {
    width: 110px;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .hero-recommended-badge {
    width: 90px;
    margin-bottom: 6px;
  }
}

@media (max-width: 640px) {
  .stat-text {
    font-size: 20px;
    padding: 0;
    text-align: left;
    /* Maintain left alignment on mobile */
  }
}

/* =============================================
   HERO VISUAL - Complete Absolute Layout
   ============================================= */
.hero-visual {
  /* Fixed size container with relative positioning for absolute children */
  flex: 0 0 480px;
  width: 480px;
  min-height: 500px;
  position: relative;
  align-self: flex-end;
  animation: fadeInRight 1.2s ease;
}

/* Lady image: bottom-right of the visual container */
.hero-image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 85%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 8;
  /* lady stands IN FRONT of badge */
}

.hero-main-image {
  width: 100%;
  height: auto;
  max-width: 460px;
  object-fit: contain;
  object-position: bottom;
  border-radius: 0;
  display: block;
}

/* Highly Recommended seal:
   — positioned at the SAME top level as the floating boxes (-10%)
   — on the RIGHT side, so badge sits ABOVE/BESIDE the lady's head, NOT on it
   — lower z-index than lady so she naturally stands in front */
.hero-recommended-badge {
  position: absolute;
  top: -15%;
  /* SAME as floating-boxes — aligns badge with boxes level */
  right: 0;
  left: auto;
  width: 150px;
  /* compact size so badge bottom stays above lady's face */
  height: auto;
  z-index: 5;
  /* BELOW lady (z-index 8) so lady stands in front */
  animation: fadeInDown 1s ease;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

/* Two floating boxes: LEFT side, same top level as badge */
.hero-floating-boxes {
  position: absolute;
  left: 0;
  top: -10%;
  /* same level as badge on the right */
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* slightly more gap for breathing room */
  z-index: 15;
}

/* Each box: fixed equal width and styling with animation */
.hero-float-box {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Fixed same width for BOTH boxes */
  width: 210px;
  min-width: 210px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-float-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

/* Float animation: box 1 — gentle upward float */
.hero-float-box--1 {
  animation: floatBox1 4s ease-in-out infinite;
}

/* Float animation: box 2 — same direction as box 1 (no opposite phase)
   Small delay keeps them slightly offset but NEVER moves them closer together */
.hero-float-box--2 {
  animation: floatBox2 4s ease-in-out infinite 0.6s;
}

.hero-float-box i {
  font-size: 26px;
  flex-shrink: 0;
}

.hero-float-box--1 i {
  color: #facc15;
}

.hero-float-box--2 i {
  color: #3b82f6;
}

.hero-float-content h4 {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
  white-space: nowrap;
}

.hero-float-content p {
  color: var(--gray);
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
}

/* Floating badge base - used by hero-right-badges (relative) */
.floating-badge {
  position: absolute;
  background: var(--white);
  padding: 12px 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: max-content;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Only apply float animation to badges NOT inside hero-right-badges */
.hero-image-wrapper .floating-badge,
.hero-visual > .floating-badge {
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Box 1: floats UP gently — safe range well within gap */
@keyframes floatBox1 {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* Box 2: floats UP by same amount — keeps gap between boxes CONSTANT */
@keyframes floatBox2 {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* Remove individual absolute positioning — badges are in .hero-right-badges flow now */
.highly-rated {
  animation-delay: 0s;
}

.proven-results {
  animation-delay: 1.5s;
}

.floating-badge i {
  font-size: 28px;
}

.floating-badge.highly-rated i {
  color: #facc15;
}

.floating-badge.proven-results i {
  color: #3b82f6;
}

.floating-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.badge-content h4 {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

.badge-content p {
  color: var(--gray);
  font-size: 13px;
  margin: 0;
}

.floating-badge-1 {
  animation-delay: 0s;
}

.floating-badge-2 {
  animation-delay: 0.5s;
}

/* Mission & Vision Grid Cards */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.mv-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 3px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mv-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(59, 130, 246, 0.15);
}

.mv-icon-box {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--secondary-blue),
    var(--primary-blue)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--white);
  font-size: 35px;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.mv-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--navy);
}

.mv-card p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.mv-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mv-points li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  width: 260px;
  /* Fixed width to keep icons aligned while centered */
  text-align: left;
}

.mv-points li i {
  font-size: 15px;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.mv-card:hover .mv-points li i {
  color: #10b981;
}

@media (max-width: 968px) {
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mv-card {
    padding: 30px 20px;
  }
}

.floating-badge i {
  font-size: 28px;
}

.badge-content h4 {
  font-size: 20px;
  color: var(--navy);
  margin: 0;
}

.badge-content p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   HERO SECTION - COMPLETE RESPONSIVE FIX
   ============================================ */

/* Base hero adjustments for tablet (max-width: 968px) */
@media (max-width: 968px) {
  .hero {
    padding: 120px 0 0 !important;
    align-items: flex-end;
    overflow: hidden;
  }

  .container {
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
  }

  /* Keep side-by-side layout on tablet */
  .hero-content {
    flex-direction: row;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    align-items: flex-end;
  }

  /* Hero text: left column, full available width */
  .hero-text {
    flex: 1;
    max-width: none;
    width: auto;
    text-align: left;
    padding-bottom: 40px;
    align-self: flex-end;
    align-items: flex-start;
  }

  .hero-badge {
    font-size: 12px;
    padding: 10px 18px;
    align-self: flex-start;
  }

  .hero-text h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 14px;
    word-wrap: break-word;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .hero-buttons {
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 260px;
    padding: 14px 20px;
    font-size: 14px;
    justify-content: center;
  }

  /* Stats: LEFT-aligned on mobile */
  .hero-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    padding: 15px 0 0;
  }

  .stat-item {
    text-align: left;
    min-width: auto;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* Hero visual: small column, only badge shows on mobile */
  .hero-visual {
    flex: 0 0 120px;
    width: 120px;
    min-height: 180px;
    position: relative;
    align-self: flex-end;
  }

  /* Hide floating boxes on mobile */
  .hero-floating-boxes {
    display: none !important;
  }

  /* Hide lady image on mobile */
  .hero-image-wrapper {
    display: none !important;
  }

  /* Badge on mobile: centered in narrow column, aligned beside stats */
  .hero-recommended-badge {
    position: absolute;
    top: 10px;
    right: 0;
    left: auto;
    width: 110px;
    z-index: 5;
  }

  /* Hide old floating badges */
  .floating-badge {
    display: none !important;
  }

  .nav-menu {
    display: none;
  }
}

/* Tablet specific (768px - 968px) */
@media (max-width: 968px) and (min-width: 768px) {
  .hero-text h1 {
    font-size: 40px;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
    min-width: 180px;
  }

  .stat-number {
    font-size: 48px;
  }
}

/* Mobile medium (480px - 767px) */
@media (max-width: 767px) {
  .hero {
    padding: 100px 0 0 !important;
    align-items: flex-end;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    gap: 15px;
    min-height: auto;
  }

  .hero-text {
    flex: 0 1 45%;
    max-width: 100%;
  }

  .hero-visual {
    flex: 0 1 50%;
    min-height: 450px;
    margin-top: 0;
  }

  .hero-main-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-stats {
    gap: 25px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* Mobile small (360px - 479px) */
@media (max-width: 479px) {
  .hero {
    padding: 60px 0 40px;
  }

  .container {
    padding: 0 15px;
  }

  .hero-text {
    padding: 0 5px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 8px 16px;
  }

  .hero-badge i {
    font-size: 14px;
  }

  .hero-text h1 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .hero-description {
    font-size: 15px;
    margin: 15px 0;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
    padding: 14px 24px;
    font-size: 14px;
  }

  .hero-stats {
    gap: 25px;
    flex-direction: column;
    align-items: center;
  }

  .stat-item {
    width: 100%;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 12px;
  }
}

/* Extra small devices (320px - 359px) */
@media (max-width: 359px) {
  .hero-text h1 {
    font-size: 24px;
  }

  .hero-description {
    font-size: 14px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 13px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 11px;
  }
}

/* Trust Section - Redesigned with Logos */
.trust-section {
  background: var(--light-gray);
  padding: 80px 0 10px 0;
  text-align: center;
}

.trust-section h3 {
  color: var(--gray);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 60px;
  font-weight: 600;
}

/* Client Logos Grid */
.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  align-items: center;
  justify-items: center;
  margin-bottom: 80px;
  padding: 0 40px;
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: 100%;
  height: 100px;
  cursor: pointer;
}

.client-logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.client-logo {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.client-logo-item:hover .client-logo {
  filter: grayscale(0%);
  opacity: 1;
}

/* Trust Stats Row */
.trust-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 2px solid #e2e8f0;
}

.trust-stat {
  text-align: center;
  min-width: 150px;
}

.trust-stat h2 {
  font-size: 48px;
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-weight: 800;
}

.trust-stat p {
  color: var(--gray);
  font-size: 16px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .client-logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .client-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }

  .trust-stats-row {
    gap: 40px;
  }

  .trust-stat h2 {
    font-size: 36px;
  }

  .trust-stat p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .client-logos-grid {
    grid-template-columns: 1fr;
  }

  .trust-stats-row {
    flex-direction: column;
    gap: 30px;
  }
}

/* Mission & Vision - Complete Redesign */
.mission-vision {
  padding: 30px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.mission-vision::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.mission-vision::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.mission-vision-container {
  position: relative;
  z-index: 1;
}

/* New Two-Column Story Header Layout */
/* New Two-Column Story Header Layout */
.story-header-flex {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.story-text-column {
  flex: 1;
  max-width: 600px;
  text-align: left;
  padding-top: 20px;
}

.story-visual-column {
  flex: 1;
  position: relative;
  min-height: 600px;
}

.story-text-column .section-label {
  display: inline-block;
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 20px;
}

.story-text-column h2 {
  font-size: 48px;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.story-text-column p {
  max-width: 450px;
  font-size: 18px;
  color: var(--gray);
  line-height: 1.8;
}

/* Inline Image with Stats */
.central-image-wrapper-inline {
  position: relative;
  width: 100%;
  min-height: 450px;
}

.central-image-inline {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  display: block;
}

.central-image-wrapper-inline:hover .central-image-inline {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(59, 130, 246, 0.25);
}

/* Ensure floating stats work within inline wrapper */
.central-image-wrapper-inline .floating-stat {
  position: absolute;
}

.story-header .section-label {
  display: inline-block;
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 20px;
}

.story-header h2 {
  font-size: 48px;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.story-header p {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.8;
}

/* Interactive Cards Layout */
.mission-vision-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.mission-card,
.vision-card {
  background: var(--white);
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  text-align: center;
  /* NEW: Center align all text */
}

.mission-card::before,
.vision-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(59, 130, 246, 0.05),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s;
}

.mission-card:hover::before,
.vision-card:hover::before {
  left: 100%;
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
  border-color: var(--primary-blue);
}

.card-icon-wrapper {
  width: 90px;
  height: 90px;
  background: var(--gradient);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  /* CHANGED: Added 'auto' for horizontal centering */
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.mission-card:hover .card-icon-wrapper,
.vision-card:hover .card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.card-icon-wrapper i {
  font-size: 45px;
  color: var(--white);
}

.card-title {
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  text-align: center;
  /* NEW: Explicit center alignment */
}

.card-description {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  text-align: center;
  /* NEW: Explicit center alignment */
  max-width: 100%;
  /* CHANGED: Allow full width usage */
}

.card-features {
  list-style: none;
  position: relative;
  z-index: 1;
  display: inline-block;
  /* NEW: Make list inline-block for centering */
  text-align: left;
  /* NEW: Keep bullet points left-aligned within centered container */
}

.card-features li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
}

.feature-check {
  width: 24px;
  height: 24px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.feature-check i {
  font-size: 12px;
  color: var(--primary-blue);
}

.mission-card:hover .feature-check,
.vision-card:hover .feature-check {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  /* Green gradient */
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.mission-card:hover .feature-check i,
.vision-card:hover .feature-check i {
  color: var(--white);
}

/* ==========================================================================
   PROCESS SECTION - MODERN DESIGN
   ========================================================================== */
.process-section {
  padding: 80px 0;
  background: #ffffff;
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
  opacity: 0;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Slide in from left for standard steps (1 and 3) */
.process-step:not(.reverse) {
  transform: translateX(-150px);
}

/* Slide in from right for reversed steps (2) */
.process-step.reverse {
  transform: translateX(150px);
}

.process-step.is-visible {
  opacity: 1;
  transform: translateX(0) !important;
}

/* Reverse layout for alternating steps */
.process-step.reverse {
  flex-direction: row-reverse;
}

.process-content {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.step-number {
  font-size: 120px;
  font-weight: 900;
  color: rgba(59, 130, 246, 0.12);
  line-height: 1;
  margin-bottom: 10px;
  /* Fixed: Removed negative margin to prevent overlap */
  position: relative;
  z-index: 0;
  display: block;
}

.process-content h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.process-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  position: relative;
  z-index: 1;
}

.process-image {
  flex: 1;
  max-width: 550px;
  position: relative;
}

.process-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.process-image img:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(59, 130, 246, 0.2);
}

/* Add decorative circle behind images */
.process-image::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05),
    rgba(16, 185, 129, 0.05)
  );
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Responsive Design */
@media (max-width: 968px) {
  .process-step,
  .process-step.reverse {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
    transform: translateY(50px) !important;
    /* Switch to vertical animation for mobile */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .process-step.is-visible {
    transform: translateY(0) !important;
  }

  .process-content,
  .process-image {
    max-width: 100%;
  }

  .step-number {
    font-size: 80px;
    margin-bottom: 10px;
    /* Fixed: Consistent spacing for mobile */
  }

  .process-header h2 {
    font-size: 32px;
  }

  .process-content h3 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .process-section {
    padding: 50px 0;
  }

  .process-header {
    margin-bottom: 50px;
  }

  .step-number {
    font-size: 60px;
  }

  .process-header h2 {
    font-size: 28px;
  }

  .process-content h3 {
    font-size: 20px;
  }

  .process-content p {
    font-size: 15px;
  }
}

/* Floating Stats */
.floating-stat {
  position: absolute;
  background: var(--white);
  padding: 20px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
  animation: floatStat 3s ease-in-out infinite;
  z-index: 10;
}

.floating-stat:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.3);
  animation-play-state: paused;
}

@keyframes floatStat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Position stats around the image */
.central-image-wrapper-inline .stat-1 {
  top: 30px;
  left: -100px;
  animation-delay: 0s;
}

.central-image-wrapper-inline .stat-2 {
  top: 30px;
  right: -120px;
  animation-delay: 0.5s;
}

.central-image-wrapper-inline .stat-3 {
  bottom: 30px;
  left: -80px;
  animation-delay: 1s;
}

.central-image-wrapper-inline .stat-4 {
  bottom: 30px;
  right: -130px;
  animation-delay: 1.5s;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.floating-stat:hover .stat-icon {
  background: var(--gradient);
  transform: scale(1.1);
}

.stat-icon i {
  font-size: 24px;
  color: var(--primary-blue);
  transition: all 0.3s;
}

.floating-stat:hover .stat-icon i {
  color: var(--white);
}

.stat-content h4 {
  font-size: 28px;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 3px;
  line-height: 1;
}

.stat-content p {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.contact-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--white);
  text-decoration: underline;
  opacity: 1;
}

/* Values Section */
.values-section {
  margin-top: 80px;
  text-align: center;
}

.values-header h3 {
  font-size: 38px;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 800;
}

.values-header p {
  font-size: 17px;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 50px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-item {
  background: var(--white);
  padding: 35px 25px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
  border-color: var(--primary-blue);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: var(--light-blue);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s;
}

.value-item:hover .value-icon {
  background: var(--gradient);
  transform: scale(1.1);
}

.value-icon i {
  font-size: 32px;
  color: var(--primary-blue);
  transition: all 0.3s;
}

.value-item:hover .value-icon i {
  color: var(--white);
}

.value-item h4 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.value-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .mission-vision-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Responsive rules for story header flex */
  .story-header-flex {
    flex-direction: column;
    gap: 50px;
    align-items: center;
  }

  .story-text-column {
    max-width: 100%;
    text-align: center;
    padding-top: 0;
  }

  .story-text-column h2 {
    font-size: 36px;
  }

  .story-visual-column {
    width: 100%;
    max-width: 600px;
    min-height: auto;
  }

  .central-image-wrapper-inline {
    min-height: 400px;
  }

  .central-image-inline {
    height: 350px;
  }

  /* Stack floating stats on mobile */
  .central-image-wrapper-inline .floating-stat {
    position: static !important;
    margin: 15px auto;
    max-width: 320px;
    animation: none;
  }

  .floating-stat {
    padding: 18px 25px;
  }

  .stat-content h4 {
    font-size: 24px;
  }

  .stat-content p {
    font-size: 12px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .mission-card,
  .vision-card {
    padding: 35px;
  }

  .card-title {
    font-size: 26px;
  }
}

.central-image {
  height: 350px;
}

.floating-stat {
  position: static;
  margin: 15px auto;
  max-width: 300px;
  animation: none;
}

.values-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mission-card,
.vision-card {
  padding: 25px;
}

.card-title {
  font-size: 26px;
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Popular Services */
.popular-services {
  padding: 30px 0 10px 0;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 16px;
  margin-top: 15px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* NEW: Card inner container for flip effect */
.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  transition: transform 0.7s ease-in-out;
  /* Changed from 0.6s to 1.2s and added easing */
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

/* NEW: Front and back face styling */
.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 80px 30px 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Centers items horizontally in flex */
  text-align: center;
  /* Centers the text lines */
  justify-content: flex-start;
}

.service-card-front {
  background: inherit;
  /* Uses parent gradient */
}

.service-card-back {
  background: var(--white);
  transform: rotateY(180deg);
  border: 2px solid var(--primary-blue);
  overflow-y: hidden;
}

/* Individual Card Colors - Apply to .service-card-front */
.service-card:nth-child(1) .service-card-front {
  background: linear-gradient(135deg, #e9d5ff 0%, #f3e8ff 100%);
}

.service-card:nth-child(2) .service-card-front {
  background: linear-gradient(135deg, #a7f3d0 0%, #d1fae5 100%);
}

.service-card:nth-child(3) .service-card-front {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
}

.service-card:nth-child(4) .service-card-front {
  background: linear-gradient(135deg, #fecaca 0%, #fee2e2 100%);
}

.service-card:nth-child(5) .service-card-front {
  background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 100%);
}

.service-card:nth-child(6) .service-card-front {
  background: linear-gradient(135deg, #fde68a 0%, #fef3c7 100%);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  justify-content: center;
  margin: 0 auto 25px auto;
  font-size: 36px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  flex-shrink: 0;
}

/* Remove icon rotation on hover */
.service-card:hover .service-icon {
  transform: scale(1.05);
  /* Changed from scale(1.1) rotate(5deg) */
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

/* Individual Icon Colors remain same */
.service-card:nth-child(1) .service-icon i {
  color: #9333ea;
}

.service-card:nth-child(2) .service-icon i {
  color: #059669;
}

.service-card:nth-child(3) .service-icon i {
  color: #d97706;
}

.service-card:nth-child(4) .service-icon i {
  color: #dc2626;
}

.service-card:nth-child(5) .service-icon i {
  color: #2563eb;
}

.service-card:nth-child(6) .service-icon i {
  color: #ca8a04;
}

.service-card h3 {
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-card p {
  color: #475569;
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 20px;
}

/* NEW: Back side content styling */
.service-card-back h4 {
  color: var(--primary-blue);
  font-size: 20px;
  font-weight: 700;
  /* margin-bottom: 20px; */
  font-size: 1.1rem !important;
  /* Approximately 18px */
  line-height: 1.3;
  margin-bottom: 12px;
}

.service-card-back .elaborate-description {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.service-card-back .back-cta {
  margin-top: auto;
  padding-top: 20px;
}

.service-card-back .service-link {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  background: var(--light-blue);
  padding: 12px 24px;
  border-radius: 50px;
}

.service-card-back .service-link:hover {
  background: var(--primary-blue);
  color: var(--white);
  gap: 12px;
}

/* Responsive adjustments */
/* Mobile View Fix for Service Cards */
@media (max-width: 968px) {
  .service-card-inner {
    min-height: 420px;
    /* Ensure consistent height */
  }

  .service-card-back {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Pushes content apart */
    align-items: center;
    padding: 30px 20px !important;
    height: 100%;
    box-sizing: border-box;
  }

  .service-card-back h4 {
    /* Fluid font size: reduces if text is long */
    font-size: clamp(16px, 4vw, 20px) !important;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .service-card-back .elaborate-description {
    /* Auto-scaling text for long descriptions */
    font-size: clamp(12px, 3.5vw, 14px) !important;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    /* Takes up available space */
    display: flex;
    align-items: center;
    /* Centers text vertically in the gap */
    overflow: hidden;
  }

  .service-card-back .back-cta {
    margin-top: auto;
    /* Forces button to the bottom */
    width: 100%;
    padding-top: 10px;
    flex-shrink: 0;
  }

  .service-card-back .service-link {
    width: 80%;
    /* Consistent button width */
    justify-content: center;
    font-size: 14px;
    padding: 10px 15px;
  }
}

/* View All Services - Compact Expansion */
.all-services-compact {
  padding: 0 0 50px;
  background: var(--light-gray);
  position: relative;
}

.view-all-services-trigger {
  max-width: 1200px;
  margin: 0 auto 60px;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.view-all-services-trigger:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.trigger-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.trigger-icon {
  width: 80px;
  height: 80px;
  background: var(--light-blue);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trigger-icon i {
  font-size: 40px;
  color: var(--primary-blue);
}

.trigger-text {
  flex: 1;
}

.trigger-text h3 {
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.trigger-text p {
  color: var(--gray);
  font-size: 16px;
  margin: 0;
}

.expand-services-btn {
  background: var(--gradient);
  color: var(--white);
  border: none;
  padding: 16px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.expand-services-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.expand-services-btn i {
  transition: transform 0.3s;
}

.expand-services-btn:hover i {
  transform: translateY(3px);
}

/* Expanded Services Area */
.expanded-services-area {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s ease;
}

.expanded-services-area.active {
  max-height: 5000px;
  opacity: 1;
  margin-top: 40px;
}

.expanded-services-header {
  text-align: center;
  margin-bottom: 40px;
}

.expanded-services-header h3 {
  color: var(--navy);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
}

.expanded-services-header p {
  color: var(--gray);
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto;
}

/* Filter Tabs */
.service-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--light-blue);
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-tab-btn:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.filter-tab-btn.active {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.filter-tab-btn i {
  font-size: 16px;
}

.filter-tab-btn .count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.filter-tab-btn.active .count {
  background: rgba(255, 255, 255, 0.25);
}

/* Expanded Services Grid */
.expanded-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.expanded-service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  border: 2px solid transparent;
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.expanded-service-card.hidden {
  display: none;
}

.expanded-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
  border-color: var(--primary-blue);
}

.expanded-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  border-radius: 16px 16px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.expanded-service-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--light-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.card-icon i {
  font-size: 28px;
  color: var(--primary-blue);
  transition: all 0.3s;
}

.expanded-service-card:hover .card-icon {
  background: var(--gradient);
  transform: scale(1.1);
}

.expanded-service-card:hover .card-icon i {
  color: var(--white);
}

.expanded-service-card h4 {
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.category-badge {
  display: inline-block;
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.expanded-service-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.quick-inquiry {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.quick-inquiry:hover {
  gap: 10px;
  color: var(--dark-blue);
}

.quick-inquiry i {
  transition: transform 0.3s;
}

.quick-inquiry:hover i {
  transform: translateX(3px);
}

/* Collapse Button */
.collapse-services-wrapper {
  text-align: center;
  padding-top: 30px;
}

.collapse-services-btn {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.collapse-services-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.collapse-services-btn i {
  transition: transform 0.3s;
}

.collapse-services-btn:hover i {
  transform: translateY(-3px);
}

@media (max-width: 968px) {
  .trigger-content {
    flex-direction: column;
    text-align: center;
  }

  .trigger-text h3 {
    font-size: 22px;
  }

  .expand-services-btn {
    width: 100%;
    justify-content: center;
  }

  .expanded-services-grid {
    grid-template-columns: 1fr;
  }

  .service-filter-tabs {
    flex-direction: column;
  }
}

/* Why Choose Us - Redesigned */
.why-choose {
  padding: 120px 0;
  background: #2e5396;
  position: relative;
  overflow: hidden;
}

.why-choose::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: #2e5396;
  border-radius: 50%;
  animation: whyChooseFloat 20s ease-in-out infinite;
}

.why-choose::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: #2e5396;
  border-radius: 50%;
  animation: whyChooseFloat 25s ease-in-out infinite reverse;
}

@keyframes whyChooseFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.why-choose-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
}

.why-choose-header .section-label {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.why-choose-header h2 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.why-choose-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

/* Features Grid Redesigned */
.features-grid-redesigned {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

/* Ensure Trust Metrics Banner spans full width */
.why-choose .trust-metrics-banner {
  grid-column: 1 / -1;
  margin-top: 30px;
}

.feature-card-redesigned {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 35px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card-redesigned::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.15),
    transparent
  );
  transition: 0.6s;
}

.feature-card-redesigned:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.feature-number {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
  transition: all 0.3s;
}

.feature-card-redesigned:hover .feature-number {
  color: rgba(59, 130, 246);
  transform: scale(1.2);
}

.feature-icon-box {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  transition: all 0.3s;
}

.feature-card-redesigned:hover .feature-icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.feature-icon-box i {
  font-size: 32px;
  color: var(--white);
}

.feature-card-redesigned h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.feature-card-redesigned p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}

.feature-card-redesigned:hover .feature-arrow {
  opacity: 1;
  transform: translateX(0);
}

.feature-arrow i {
  font-size: 18px;
  color: #60a5fa;
}

/* Trust Metrics Banner */
.trust-metrics-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 50px;
  position: relative;
  z-index: 1;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.metric-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  transition: all 0.3s;
}

.metric-item:hover .metric-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.metric-icon i {
  font-size: 28px;
  color: var(--white);
}

.metric-content h3 {
  font-size: 32px;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 5px;
  line-height: 1;
}

.metric-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.metric-divider {
  width: 1px;
  height: 60px;
  margin-right: 16px;
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .features-grid-redesigned {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .why-choose {
    padding: 80px 0;
  }

  .why-choose-header h2 {
    font-size: 36px;
  }

  .features-grid-redesigned {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-metrics-banner {
    flex-direction: column;
    gap: 30px;
    padding: 30px;
  }

  .metric-divider {
    width: 100%;
    height: 1px;
  }

  .metric-item {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .feature-card-redesigned {
    padding: 30px 25px;
  }

  .feature-number {
    font-size: 36px;
  }

  .metric-content h3 {
    font-size: 24px;
  }
}

/* Data Security - Redesigned */
.data-security {
  padding: 120px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  position: relative;
  overflow: hidden;
}

.data-security::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: securityFloat 20s ease-in-out infinite;
}

.data-security::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: securityFloat 25s ease-in-out infinite reverse;
}

@keyframes securityFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.security-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.security-header .section-label {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  max-width: 90%;
}

.security-header h2 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.security-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

/* Security Features Grid */
.security-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  /* margin-bottom: 80px; */
  position: relative;
  z-index: 1;
}

.security-feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.security-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.security-feature-card:hover::before {
  left: 100%;
}

.security-feature-card:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.feature-icon-wrapper {
  margin-bottom: 25px;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  transition: all 0.3s;
  position: relative;
}

.icon-circle::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #60a5fa;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.security-feature-card:hover .icon-circle {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.icon-circle i {
  font-size: 36px;
  color: var(--white);
}

.security-feature-card h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 15px;
  font-weight: 700;
}

.security-feature-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Security Certifications Banner */
.security-certifications {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 50px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
}

.cert-item:hover {
  transform: translateY(-5px);
}

.cert-item i {
  font-size: 40px;
  color: #60a5fa;
  transition: all 0.3s;
}

.cert-item:hover i {
  color: #3b82f6;
  transform: scale(1.2);
}

.cert-content h4 {
  font-size: 18px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 5px;
}

.cert-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .security-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 968px) {
  .security-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .security-header h2 {
    font-size: 36px;
  }

  .security-certifications {
    gap: 30px;
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .security-features-grid {
    grid-template-columns: 1fr;
  }

  .security-certifications {
    flex-direction: column;
    gap: 25px;
  }

  .cert-item {
    width: 100%;
    justify-content: center;
  }
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.pricing-card {
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card.featured {
  background: var(--gradient);
  color: var(--white);
  transform: scale(1.05);
  border-color: transparent;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.pricing-header h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.pricing-card.featured .pricing-header h3 {
  color: var(--white);
}

.pricing-header p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.pricing-card.featured .pricing-header p {
  color: rgba(255, 255, 255, 0.9);
}

.price {
  font-size: 48px;
  font-weight: 800;
  margin: 20px 0;
  color: var(--navy);
}

.pricing-card.featured .price {
  color: var(--white);
}

.price span {
  font-size: 18px;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.pricing-card.featured .pricing-features li {
  color: var(--white);
}

.pricing-features li i {
  color: var(--primary-blue);
  font-size: 18px;
}

.pricing-card.featured .pricing-features li i {
  color: var(--white);
}

.pricing-button {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.pricing-card:not(.featured) .pricing-button {
  background: var(--primary-blue);
  color: var(--white);
}

.pricing-card.featured .pricing-button {
  background: var(--white);
  color: var(--primary-blue);
}

.pricing-button:hover {
  transform: scale(1.05);
}

/* FAQ Section - Creative Redesign */
.faq-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.faq-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 50px 0 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.faq-tab {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--light-blue);
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-tab:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.faq-tab.active {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.faq-tab i {
  font-size: 18px;
}

.faq-content-wrapper {
  position: relative;
  z-index: 1;
}

.faq-category {
  display: none;
}

.faq-category.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.faq-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.faq-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.faq-card:hover::before {
  transform: scaleY(1);
}

.faq-card-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  cursor: pointer;
}

.faq-icon-wrapper {
  width: 45px;
  height: 45px;
  background: var(--light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-card:hover .faq-icon-wrapper {
  background: var(--gradient);
  transform: rotate(10deg) scale(1.1);
}

.faq-icon-wrapper i {
  font-size: 20px;
  color: var(--primary-blue);
  transition: color 0.3s;
}

.faq-card:hover .faq-icon-wrapper i {
  color: var(--white);
}

.faq-card-title {
  flex: 1;
}

.faq-card-title h4 {
  color: var(--primary-blue);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.faq-card-answer {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
  padding-left: 60px;
}

.faq-card-answer strong {
  color: var(--navy);
}

.faq-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.faq-stat-item {
  text-align: center;
}

.faq-stat-item i {
  font-size: 36px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.faq-stat-item h3 {
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 5px;
  font-weight: 800;
}

.faq-stat-item p {
  color: var(--gray);
  font-size: 14px;
}

.faq-cta {
  text-align: center;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.faq-cta h3 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 15px;
  font-weight: 700;
}

.faq-cta p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 25px;
}

.faq-cta-button {
  background: var(--gradient);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.faq-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

@media (max-width: 968px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-tab {
    justify-content: center;
  }

  .faq-stats {
    flex-direction: column;
    gap: 30px;
  }
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: var(--gradient);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-info-box {
  margin-bottom: 30px;
}

.contact-info-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.info-item i {
  font-size: 20px;
  margin-top: 3px;
}

.social-connect {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-connect a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  transition: all 0.3s;
}

.social-connect a:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: scale(1.1);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: "Inter", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn .btn-loader {
  display: none;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loader {
  display: inline-block;
}

.btn-loader i {
  margin-right: 8px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 25px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-menu {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .mission-vision-grid,
  .security-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-footer {
  display: flex;

  justify-content: left;
  margin-left: -15px;
  padding-bottom: 20px;
  transition: all 0.3s ease;
  width: 100%;
  height: 100px;
  cursor: pointer;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   CRITICAL FIX: 320px Width Responsive Issues
   ============================================ */

@media (max-width: 360px) {
  /* Prevent horizontal overflow on entire body */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Fix header navigation actions */
  .nav-container {
    padding: 15px 3%;
    gap: 10px;
  }

  .nav-actions {
    gap: 8px;
  }

  /* Shrink search button */
  .search-icon-btn {
    width: 38px;
    height: 38px;
    padding: 10px;
    font-size: 16px;
  }

  /* Fix Contact Us button - icon only */
  .btn-contact {
    padding: 10px;
    width: 40px;
    height: 40px;
    justify-content: center;
    gap: 0;
  }

  .contact-text {
    display: none;
  }

  .btn-contact i {
    font-size: 16px;
    margin: 0;
  }

  /* Fix logo size */
  .logo img {
    height: 50px;
  }

  /* Prevent container overflow */
  .container {
    padding: 0 15px;
    max-width: 100%;
    /* overflow-x: hidden; */
  }

  /* Fix hero section */
  .hero {
    padding: 60px 0 50px;
    overflow-x: hidden;
  }

  .hero-text h1 {
    font-size: 32px;
    word-break: break-word;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  /* Fix hero stats */
  .hero-stats {
    gap: 25px;
    justify-content: center;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* Fix service cards */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  /* Fix all sections padding */
  .popular-services,
  .mission-vision,
  .why-choose,
  .data-security,
  .pricing,
  .faq-section,
  .contact-section {
    padding: 60px 0;
  }

  /* Fix contact form */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  /* Fix footer */
  .footer {
    padding: 60px 0 20px;
  }

  .footer-content {
    gap: 40px;
  }

  /* Fix floating badges on hero */
  .floating-badge {
    position: static;
    margin: 10px auto;
    max-width: 280px;
    padding: 15px 20px;
  }

  .floating-badge i {
    font-size: 24px;
  }

  .badge-content h4 {
    font-size: 16px;
  }

  .badge-content p {
    font-size: 12px;
  }

  /* Fix mission/vision cards */
  .mission-card,
  .vision-card {
    padding: 25px 20px;
  }

  .card-title {
    font-size: 22px;
  }

  /* Fix pricing cards */
  .pricing-card {
    padding: 30px 20px;
  }

  .price {
    font-size: 40px;
  }

  /* Fix search modal */
  .search-modal-content {
    width: 95%;
    padding: 25px 15px;
  }

  .modal-search-bar input {
    padding: 15px 50px 15px 20px;
    font-size: 16px;
  }

  /* Fix section headers */
  .section-title,
  .why-choose-header h2,
  .security-header h2 {
    font-size: 28px;
  }

  /* Fix "View All Services" button */
  .expand-services-btn {
    width: 100%;
    padding: 14px 25px;
    font-size: 14px;
  }

  .trigger-content {
    padding: 0;
  }

  .trigger-text h3 {
    font-size: 18px;
  }

  .trigger-text p {
    font-size: 14px;
  }

  /* Fix FAQ cards */
  .faq-card {
    padding: 20px 15px;
  }

  .faq-card-answer {
    padding-left: 50px;
  }

  /* Fix trust section logos */
  .client-logos-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
  }

  /* Fix story header on mobile */
  .story-text-column h2 {
    font-size: 28px;
  }

  .story-text-column p {
    font-size: 16px;
  }

  /* Fix values grid */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Fix security/why choose feature grids */
  .security-features-grid,
  .features-grid-redesigned {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Fix trust metrics banner */
  .trust-metrics-banner {
    padding: 25px 15px;
  }

  .metric-content h3 {
    font-size: 24px;
  }

  /* Ensure no element causes horizontal scroll */
  * {
    max-width: 100%;
  }

  /* Fix any overflowing images */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Extra small devices fix (280px - 320px) */
@media (max-width: 320px) {
  .nav-container {
    padding: 12px 2%;
  }

  .btn-contact {
    padding: 9px;
    width: 38px;
    height: 38px;
  }

  .btn-contact i {
    font-size: 15px;
  }

  .search-icon-btn {
    width: 35px;
    height: 35px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .stat-number {
    font-size: 28px;
  }
}

/* Image Cycle Transition Effect */
.hero-main-image {
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease;
}

/* ============================================
   HERO SECTION RESPONSIVE FIXES
   ============================================ */

/* Hide hero visual ONLY on small mobile (below 768px) — tablets keep it visible */
@media (max-width: 767px) {
  .hero-visual {
    display: none !important;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 20px;
  }

  .hero-text {
    max-width: 100%;
    width: 100%;
  }

  .hero-badge {
    align-self: flex-start;
  }

  .hero-buttons {
    justify-content: flex-start;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1;
    min-width: 160px;
  }

  /* Stats row: flex row — stats LEFT, badge RIGHT */
  .hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  /* Stats inside the row: left-aligned, stacked vertically */
  .hero-stats-row .hero-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* stack stats vertically on mobile */
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0 0;
  }

  .stat-item {
    text-align: left;
    min-width: unset;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* Mobile badge: SHOW on the right side next to stats */
  .hero-badge-mobile {
    display: block;
    width: 110px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
    animation: fadeInDown 1s ease;
    align-self: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-width: unset;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 13px;
  }
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  background: transparent;
  border: none;
}

.hamburger-menu span {
  width: 28px;
  height: 3px;
  background: var(--navy);
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 100px 30px 50px;
}

.mobile-menu-overlay.active {
  left: 0;
}

.mobile-menu-content {
  max-width: 500px;
  margin: 0 auto;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list li {
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-list li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(3) {
  transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(4) {
  transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(5) {
  transition-delay: 0.5s;
}

.mobile-menu-list a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
  padding: 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-menu-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.mobile-menu-list a:hover::before {
  transform: scaleY(1);
}

.mobile-menu-list a:hover {
  background: rgba(59, 130, 246, 0.15);
  padding-left: 30px;
}

.mobile-menu-contact {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease 0.6s;
}

.mobile-menu-overlay.active .mobile-menu-contact {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-contact .btn-contact {
  width: 100%;
  justify-content: center;
  padding: 18px 32px;
  font-size: 18px;
}

.mobile-menu-contact .contact-text {
  display: inline !important;
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown > .mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-dropdown > .mobile-menu-link i {
  transition: transform 0.3s ease;
}

.mobile-dropdown.active > .mobile-menu-link i {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
}

.mobile-dropdown.active .mobile-submenu {
  max-height: 1000px;
  padding: 15px 0;
}

.mobile-submenu li {
  margin: 0;
}

.mobile-submenu .submenu-link {
  font-size: 16px !important;
  padding: 12px 30px !important;
  margin: 0 !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
}

.mobile-submenu .submenu-link:hover {
  color: var(--white) !important;
  background: rgba(59, 130, 246, 0.2) !important;
}

/* Show hamburger menu on mobile */
@media (max-width: 968px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-menu {
    display: none !important;
  }

  /* Keep desktop contact button on mobile, hide it in favor of menu */
  .nav-actions .btn-contact {
    display: none;
  }

  .nav-actions {
    gap: 15px;
  }
}

/* ============================================
   SPECIFIC TABLET (TAB) ALIGNMENT FIXES
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
  /* 1. Hero Section Alignment */
  .hero-content {
    flex-direction: row;
    /* Keep side-by-side but adjust proportions */
    gap: 20px;
    padding: 40px 0;
  }

  .hero-text {
    flex: 1.2;
    /* Give text more room */
    text-align: left;
  }

  .hero-visual {
    display: block !important;
    /* force visible on tablets */
    flex: 0 0 380px;
    width: 380px;
    min-height: 420px;
    position: relative;
    align-self: flex-end;
  }

  /* Badge: top -10% on RIGHT, smaller for tablet */
  .hero-recommended-badge {
    position: absolute !important;
    top: -14% !important;
    right: 0 !important;
    left: auto !important;
    width: 120px !important;
    z-index: 5 !important;
  }

  /* Boxes: top -10% on LEFT, smaller for tablet */
  .hero-floating-boxes {
    display: flex !important;
    position: absolute !important;
    left: 0 !important;
    top: -10% !important;
  }

  .hero-float-box {
    width: 170px;
    min-width: 170px;
    padding: 12px 16px;
  }

  /* Lady: right side, bottom, visible on tablet */
  .hero-image-wrapper {
    display: flex !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 80% !important;
    z-index: 8 !important;
  }

  .hero-main-image {
    max-width: 100%;
    height: auto;
  }

  .story-header-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .story-text-column {
    max-width: 100% !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .story-text-column p {
    max-width: 600px !important;
    margin: 0 auto 20px !important;
  }

  /* Fix for Tablet Alignment and Accordion */
  @media (min-width: 768px) and (max-width: 1024px) {
    /* 1. Center the Story Text */
    .story-header-flex {
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
    }

    .story-text-column {
      max-width: 100% !important;
      text-align: center !important;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .story-text-column p {
      max-width: 600px !important;
      margin: 0 auto 20px !important;
    }

    /* 2. Center the 3 Process Boxes */
    .service-scroll-card {
      justify-content: center !important;
      padding: 0 !important;
      transform: none !important;
      opacity: 1 !important;
    }

    .step-box {
      width: 80% !important;
      /* Make them uniform and centered */
      margin: 0 auto;
    }

    .right-scrolling-section::before {
      left: 5% !important;
      /* Move the timeline line to the side on tablet */
    }
  }

  /* 3. Accordion Active State for Click */
  .accordion-item.active {
    flex: 3 !important;
    background: #3b82f6 !important;
    justify-content: center !important;
  }

  .accordion-item.active .accordion-desc {
    opacity: 1 !important;
    max-height: 150px !important;
    margin-top: 10px !important;
  }

  .accordion-item.active h4 {
    font-size: 22px !important;
  }

  /* 2. Story Header (Mission Section) Fix */
  .story-header-flex {
    flex-direction: row;
    gap: 30px;
    align-items: center;
  }

  .story-visual-column {
    min-height: 400px;
  }

  .central-image-inline {
    height: 300px;
    /* Reduce height for tablet aspect ratio */
  }

  /* Adjust floating stats for tablet so they don't overlap text */
  .central-image-wrapper-inline .stat-1 {
    left: -20px;
    top: 10px;
  }

  .central-image-wrapper-inline .stat-2 {
    right: -20px;
    top: 10px;
  }

  .central-image-wrapper-inline .stat-3 {
    left: -20px;
    bottom: 10px;
  }

  .central-image-wrapper-inline .stat-4 {
    right: -20px;
    bottom: 10px;
  }

  /* 3. Services Grid Fix */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on tablet instead of 1 or 3 */
    gap: 20px;
  }

  /* 4. Sticky Scroll Section Fix */
  .sticky-scroll-wrapper {
    flex-direction: row;
  }

  .left-sticky-section h2 {
    font-size: 2.5rem;
    /* Scale down title size */
  }

  /* 5. Security and Features Grids */
  .security-features-grid,
  .features-grid-redesigned {
    grid-template-columns: repeat(2, 1fr);
    /* Force 2-column layout */
  }

  /* 6. Contact Section */
  .contact-grid {
    gap: 30px;
  }

  .contact-form {
    padding: 30px;
  }
}

/* Container & Header Alignment */
/* Section Background with Side Fades */
.industries-scroll-section {
  padding: 80px 0;
  /* Dark center with fade-out to the left and right */
  background: var(--navy);
  font-family: "Arial", sans-serif;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 10%;
}

.section-label {
  color: #3b82f6;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.section-title {
  color: #ffffff;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 500;
}

/* Accordion Container */
.accordion-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  height: 480px;
  gap: 15px;
  padding: 0 20px;
}

.accordion-item {
  position: relative;
  flex: 1;
  min-width: 120px;
  /* background: #ffffff; Default white background */
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  justify-content: flex-end;
  /* ADDED: Standard Box Shadow for all boxes */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.accordion-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.2;
  /* Visible in normal state */
  transition: all 0.5s ease;
  filter: grayscale(20%);
}

.accordion-item:hover .accordion-bg {
  opacity: 0;
  transform: scale(1.1);
}

/* Hover State */
.accordion-item:hover {
  flex: 3;
  /* ADDED: Solid Blue Color on Expand */
  background: #3b82f6 !important;
  justify-content: center;
  /* ADDED: Enhanced Shadow on Expand */
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.accordion-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Horizontal center */
  text-align: center;
  position: relative;
  z-index: 2;
}

.accordion-icon {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: #3b82f6;
  font-size: 20px;
  flex-shrink: 0;
}

/* Title Styling - Fixed height keeps icons aligned */
.accordion-item h4 {
  font-size: 17px;
  font-weight: 700;
  /* color: #ffffff; */
  margin: 0;
  line-height: 1.2;
  min-height: 42px;
  /* Ensures 2-line titles don't push icons up */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  /* Dark text for normal white state */
  z-index: 2;
  transition: color 0.3s;
}

.accordion-item:hover h4 {
  font-size: 22px;
  min-height: auto;
  margin-bottom: 10px;
}

/* Description */
.accordion-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
  line-height: 1.5;
}

.accordion-item:hover .accordion-desc {
  opacity: 1;
  max-height: 150px;
  margin-top: 10px;
}

/* MOBILE VIEW - Responsive Fix */
@media (max-width: 768px) {
  .accordion-container {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  .accordion-item {
    flex: none;
    width: 100%;
    min-width: 100%;
    height: 120px;
    /* Collapsed height on mobile */
    justify-content: center;
    padding: 20px;
  }

  .accordion-item:hover {
    height: 250px;
    /* Expanded height on mobile */
  }

  .accordion-item h4 {
    min-height: auto;
  }
}

/* Why Choose Us - 3 & 2 Grid Alignment */
.why-logan-grid {
  padding: 100px 0;
  background: #f8fafc;
}

.grid-container {
  display: grid;
  /* Create 6 equal columns to allow for 3x2 centering */
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.grid-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* First row: 3 boxes (each takes 2 of the 6 columns) */
.grid-card.row-1 {
  grid-column: span 2;
}

/* Second row: 2 boxes (each takes 3 of the 6 columns to center) */
.grid-card.row-2 {
  grid-column: span 3;
}

.grid-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-blue);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.grid-card i {
  font-size: 28px;
  color: var(--primary-blue);
  margin-bottom: 20px;
  display: block;
}

.grid-card h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.grid-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
  .grid-container {
    grid-template-columns: 1fr;
    /* Stack into 1 column on mobile */
  }

  .grid-card.row-1,
  .grid-card.row-2 {
    grid-column: span 1;
  }
}

/* 1. Define the Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  /* Moves the box up by 15px */
  100% {
    transform: translateY(0px);
  }
}

/* 2. Apply Animation to the Grid Cards */
.grid-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);

  /* Animation settings */
  animation: float 6s ease-in-out infinite;
}

/* 3. Stagger the timing for a "wave" effect */
.grid-container .grid-card:nth-child(1) {
  animation-delay: 0s;
}

.grid-container .grid-card:nth-child(2) {
  animation-delay: 1.2s;
}

.grid-container .grid-card:nth-child(3) {
  animation-delay: 2.4s;
}

.grid-container .grid-card:nth-child(4) {
  animation-delay: 0.6s;
}

.grid-container .grid-card:nth-child(5) {
  animation-delay: 1.8s;
}

/* 4. Pause animation on hover so it's easier to read */
.grid-card:hover {
  animation-play-state: paused;
  transform: translateY(-20px) scale(1.02);
  /* Lift slightly higher on hover */
  border-color: var(--primary-blue);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

/* --- Rest of your existing grid code --- */
.why-logan-grid {
  padding: 100px 0;
  background: #f8fafc;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.grid-card.row-1 {
  grid-column: span 2;
}

.grid-card.row-2 {
  grid-column: span 3;
}

/* Industry Ticker Section */
.industry-ticker-container {
  background: #fff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 15px 30px 15px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  background: #4484f4;
  color: #fff;
  padding: 10px 25px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
  margin-right: 30px;
}

.ticker-wrap {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker {
  display: flex;
  animation: ticker 40s linear infinite;
  width: fit-content;
}

.ticker-item {
  padding: 0 40px;
  color: #3b82f6;
  font-weight: 700;
  font-size: 15px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 968px) {
  .industry-ticker-container {
    display: none !important;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .grid-card.row-1,
  .grid-card.row-2 {
    grid-column: span 1;
    animation: float 6s ease-in-out infinite;
  }
}

/* --- Case Studies Section --- */
.case-studies-section {
  padding: 100px 0;
  background: #ffffff;
}

.case-studies-tabs {
  margin-top: 50px;
}

.cs-tabs-header {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.cs-tab-btn {
  padding: 12px 25px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.cs-tab-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.cs-tab-btn.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cs-tab-panel {
  display: none;
}

.cs-tab-panel.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cs-info .cs-panel-title {
  font-size: 32px;
  color: #1e293b;
  margin-bottom: 15px;
  font-weight: 800;
}

.cs-info .cs-panel-summary {
  font-size: 18px;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 30px;
}

.cs-image-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.cs-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-image-wrapper:hover img {
  transform: scale(1.05);
}

.cs-timeline {
  position: relative;
  padding-left: 35px;
}

.cs-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6 0%, #e2e8f0 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  z-index: 1;
}

.timeline-content h4 {
  font-size: 20px;
  color: #1e293b;
  margin-bottom: 12px;
  font-weight: 700;
}

.timeline-content p {
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
}

@media (max-width: 968px) {
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cs-info .cs-panel-title {
    font-size: 28px;
  }

  .cs-tabs-header {
    gap: 8px;
  }

  .cs-tab-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
