/* ==========================================================================
           1. CORE STRUCTURAL CONFIGURATIONS
           ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f1f5f9;
  color: #334155;
  overflow-x: hidden;
}

.page-wrapper {
  width: 100%;
  padding: 40px 0;
}

/* ==========================================================================
           2. HERO BRANDING SECTION WITH DYNAMIC ANIMATED BACKGROUND
           ========================================================================== */
.about-hero-section {
  max-width: 1300px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.hero-card {
  position: relative;
  /* Ultra-smooth multi-stop interactive gradient */
  background: linear-gradient(-45deg, #e0f2fe, #bae6fd, #f0f9ff, #bae6fd, #e0f2fe);
  background-size: 400% 400%;
  animation: heroGradientMovement 15s ease-in-out infinite;
  border: 1px solid #bae6fd;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
  overflow: hidden; /* Keeps background blobs strictly self-contained */
  z-index: 1;
}

/* Moving Light Particle Blobs inside Hero Card Background */
.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: -1; /* Placed behind text contents */
}

.hero-card::before {
  width: 300px;
  height: 300px;
  background: #38bdf8;
  top: -10%;
  left: -10%;
  animation: floatBlobOne 12s ease-in-out infinite alternate;
}

.hero-card::after {
  width: 250px;
  height: 250px;
  background: #7dd3fc;
  bottom: -10%;
  right: -5%;
  animation: floatBlobTwo 10s ease-in-out infinite alternate;
}

/* Core Hero Card Animation Engine Keys */
@keyframes heroGradientMovement {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatBlobOne {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 40px) scale(1.2); }
}

@keyframes floatBlobTwo {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-60px, -50px) scale(0.9); }
}

.main-title {
  font-size: 2rem;
  color: #002147;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
}

.hero-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero-graphic-side {
  flex: 1;
  display: flex;
  justify-content: center;
}

.map-branding-wrapper {
  width: 350px;
  height: 200px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 33, 71, 0.05);
}

.branding-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #002147;
}

.branding-logo span {
  color: #f97316;
}

.branding-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-text-side {
  flex: 1.3;
}

.hero-text-side p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #0f172a;
  margin-bottom: 20px;
}

/* ==========================================================================
           3. WHITE SLIDER CONTAINER AREA & RUNNING LIGHT TRUST BADGE
           ========================================================================== */
.features-section {
  width: 100%;
  background-color: #ffffff;
  padding: 70px 20px;
  border-top: 1px solid #e2e8f0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

/* Setup custom property tracking for smooth border light rotation */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
  padding: 8px 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-radius: 50px;
  background-color: #f0fdf4;
  z-index: 1;
}

/* Running Bright Green Neon Border Light Wrapper */
.trust-badge::before {
  content: '';
  position: absolute;
  inset: -2px; 
  border-radius: 50px;
  padding: 2px; 
  background: conic-gradient(
    from var(--border-angle),
    #00ff66 0deg,
    #16a34a 40deg,
    transparent 120deg,
    transparent 180deg,
    #00ff66 220deg,
    #16a34a 260deg,
    transparent 320deg
  );
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: spinBorderLight 3s linear infinite;
}

@keyframes spinBorderLight {
  to {
    --border-angle: 360deg;
  }
}

.features-main-title {
  font-size: 2.25rem;
  color: #0077B6;
  font-weight: 700;
}

/* CAROUSEL VIEWPORT WINDOW */
.slider-window {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.slider-track {
  display: flex;
  width: 100%;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 15px;
  flex-shrink: 0;
}

/* ==========================================================================
           4. CUSTOM ANIMATED CSS VECTOR ICONS
           ========================================================================== */
.illustration-box {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  position: relative;
  overflow: hidden;
}

.vector-icon {
  max-width: 90%;  
  max-height: 90%; 
  width: auto;
  height: auto;
  object-fit: contain;
  display: inline-block;
}

/* Animation Keyframe Classes */
.anim-float {
  animation: floatEffect 3s ease-in-out infinite;
}
.anim-pulse {
  animation: pulseEffect 2s ease-in-out infinite;
}
.anim-spin {
  animation: spinEffect 8s linear infinite;
}
.anim-bounce {
  animation: bounceEffect 2.5s ease-in-out infinite;
}
.anim-wiggle {
  animation: wiggleEffect 4s ease-in-out infinite;
}
.anim-radar {
  animation: radarEffect 2s ease-in-out infinite;
}

@keyframes floatEffect {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseEffect {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(37, 99, 235, 0));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.3));
  }
}
@keyframes spinEffect {
  100% { transform: rotate(360deg); }
}
@keyframes bounceEffect {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px) scaleX(0.95); }
}
@keyframes wiggleEffect {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
@keyframes radarEffect {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.92); }
}

/* Disabled inside slider track to follow your logic restrictions */
.features-section .feature-item .vector-icon,
.slider-track .feature-item .vector-icon {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.feature-label {
  font-size: 1.15rem;
  color: #002147;
  font-weight: 700;
  line-height: 1.4;
  max-width: 260px;
}

/* Navigation Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #2563eb;
}

/* Mobile Breakpoint System override */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
  }
  .hero-card {
    padding: 20px;
  }
  .slider-window {
    overflow: visible;
  }
  .slider-track {
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
  }
  .feature-item {
    width: 100% !important;
    margin-bottom: 50px;
  }
  /* Targets the JavaScript clones on mobile viewport screens */
  .feature-item.is-clone {
    display: none !important;
  }
  .slider-dots {
    display: none;
  }
  /* Prevent hero branding logo from overflowing on small screens */
  .map-branding-wrapper {
    max-width: 280px;
    width: 90%;
    padding: 18px 12px;
    border-radius: 28px;
  }
  .branding-logo img {
    max-width: 85%;
    max-height: 160px;
    width: auto;
    height: auto;
  }
}

/* ==========================================================================
           5. VISION AND MISSION SECTION WITH HOVER-TO-PAUSE CONTROLS
           ========================================================================== */
.vision-mission-section {
  width: 80%;
  margin: 0 auto;
  background-color: #f1f5f9; 
  padding: 90px 20px;
  border-top: 1px solid #e2e8f0;
}

.vm-grid {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.vm-card {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 24px;
  padding: 45px 40px;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

/* ==========================================================================
   CRITICAL UPDATE: HOVER TO FREEZE AND PAUSE ALL SUB-ANIMATIONS IMMEDIATELY
   ========================================================================== */
.vm-card:hover {
  border-color: #2563eb;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
  animation-play-state: paused !important; /* Freezes the card's floating wave movement */
}

/* Freezes the icon pulsing glow when the main card is hovered */
.vm-card:hover .continuous-glow {
  animation-play-state: paused !important;
}

/* Freezes the text header color shift shadow when the main card is hovered */
.vm-card:hover .continuous-text-glow {
  animation-play-state: paused !important;
}

.vm-icon-wrapper {
  width: 65px;
  height: 65px;
  background-color: #f0f9ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border: 1px solid #e0f2fe;
}

.vm-svg-icon {
  width: 34px;
  height: 34px;
}

.vm-title {
  font-size: 1.85rem;
  color: #002147;
  font-weight: 700;
  margin-bottom: 22px;
  display: inline-block;
}

.vm-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-list li {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 20px;
  position: relative;
  padding-left: 28px;
}

.mission-list li:last-child {
  margin-bottom: 0;
}

.mission-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-weight: 900;
  font-size: 1.1rem;
}

.mission-list li strong {
  color: #002147;
}

/* ==========================================================================
   CONTINUOUS LOOP ENGINE (INFINITE LOOPS FOR CONSTANT VISUAL ATTENTION)
   ========================================================================== */

/* 1. Continuous Floating Cards */
.continuous-float-one {
  animation: infiniteFloatOne 6s ease-in-out infinite;
}

.continuous-float-two {
  animation: infiniteFloatTwo 6s ease-in-out infinite;
}

@keyframes infiniteFloatOne {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes infiniteFloatTwo {
  0%, 100% { transform: translateY(-10px); }
  50% { transform: translateY(0); }
}

/* 2. Continuous Glowing Blue Pulses for Icons */
.continuous-glow {
  animation: infiniteBlueGlow 3s ease-in-out infinite alternate;
}

@keyframes infiniteBlueGlow {
  0% {
    box-shadow: 0 0 0 0px rgba(14, 165, 233, 0.15);
    background-color: #f0f9ff;
  }
  100% {
    box-shadow: 0 0 20px 8px rgba(37, 99, 235, 0.12);
    background-color: #ffffff;
    border-color: #bae6fd;
  }
}

/* 3. Continuous Subtly Pulsing Title Shadows */
.continuous-text-glow {
  animation: infiniteTextGlow 4s ease-in-out infinite alternate;
}

@keyframes infiniteTextGlow {
  0% { text-shadow: 0 0 0px rgba(37, 99, 235, 0); }
  100% { text-shadow: 0 2px 10px rgba(14, 165, 233, 0.25); }
}

/* Responsive clean up for mobile devices */
@media (max-width: 768px) {
  .vm-grid {
    flex-direction: column;
    gap: 35px;
  }
  .vm-card {
    padding: 35px 25px;
  }
  .continuous-float-one, .continuous-float-two {
    animation-duration: 8s;
  }
}