/* =========================================
   ABOUT PAGE STYLES
   ========================================= */

:root {
  --color-primary: #5d35b9; /* Purple */
  --color-secondary: #ff853f; /* Orange */
  --accent-blue: #007bff; /* Blue */
  --color-dark: #343a40;
  --color-gray: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --font-main: "Poppins", sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--color-dark);
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

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

/* --- 1. Hero Section --- */
.about-hero {
  padding: 100px 0 80px;
  text-align: center;
  background-color: var(--bg-light);
  border-bottom: 1px solid #eee;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

/* Orange underline effect */
.highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 133, 63, 0.3); /* Transparent Orange */
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- 2. Story Section --- */
.story-section {
  padding: 100px 0;
}

.story-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Image Styling */
.img-frame {
  position: relative;
  border-radius: 20px;
  overflow: visible; /* Allow badge to pop out */
}

.img-frame img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Experience Badge */
.exp-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--color-primary);
  color: white;
  padding: 25px;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 5px solid var(--white);
  box-shadow: 0 10px 30px rgba(93, 53, 185, 0.3);
}

.exp-badge .years {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.exp-badge .text {
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Text Content */
.small-heading {
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.text-purple {
  color: var(--color-primary);
}

.story-text p {
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.story-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  color: var(--color-dark);
}

.feature-item i {
  color: var(--color-secondary); /* Orange Checkmark */
  font-size: 1.2rem;
}

/* --- 3. Mission/Vision Section --- */
.mv-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mv-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  border-bottom: 4px solid transparent;
}

.mv-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--color-primary);
}

.mv-icon {
  width: 70px;
  height: 70px;
  background: rgba(93, 53, 185, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 1.8rem;
  color: var(--color-primary);
  transition: 0.3s;
}

.mv-card:hover .mv-icon {
  background: var(--color-primary);
  color: var(--white);
}

.mv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-dark);
}

.mv-card p {
  color: var(--color-gray);
  line-height: 1.6;
}

/* --- 4. Stats Section --- */
.stats-section {
  padding: 60px 0;
  background: var(--white) !important; /* White Background */
  margin-bottom: 100px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

/* --- Icon Styling (PURPLE) --- */
.stat-icon-wrapper {
  margin-bottom: 15px;
  display: inline-block;
}

.stat-icon-wrapper i {
  /* Smaller size as per previous request */
  font-size: 2.5rem;

  /* Solid Purple Color */
  color: var(--color-primary);

  /* Removed gradient for solid purple look */
  background: none;
  -webkit-text-fill-color: initial;

  filter: drop-shadow(0 5px 10px rgba(93, 53, 185, 0.15));
  transition: transform 0.3s ease;
}

/* Hover Animation */
.stat-box:hover .stat-icon-wrapper i {
  transform: translateY(-5px) scale(1.1);
}

/* Number Styling (BLACK) */
.stat-box h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  /* Set to Black/Dark */
  color: var(--color-dark) !important;
}

/* Label Styling (GRAY) */
.stat-box p {
  font-size: 1rem;
  font-weight: 500;
  /* Set to Gray */
  color: var(--color-gray) !important;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
/* --- 5. CTA Section --- */
.about-cta {
  padding: 100px 0;
  margin: 100px 0;
  text-align: center;
  background: url("/assets/cta_bg1.jpg");
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

.about-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.8); /* Dark Overlay */
}

.about-cta .container {
  position: relative;
  z-index: 2;
  color: white;
}

.about-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.about-cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-white {
  display: inline-block;
  background: white;
  color: var(--color-primary);
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.btn-white:hover {
  background: var(--color-secondary);
  color: white;
  transform: scale(1.05);
}

/* =========================================
   ANIMATIONS
   ========================================= */

/* Common Reveal Logic */
.reveal-text,
.reveal-left,
.reveal-right,
.reveal-up,
.reveal-scale {
  opacity: 0;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Directions */
.reveal-text {
  transform: translateY(20px);
}
.reveal-left {
  transform: translateX(-50px);
}
.reveal-right {
  transform: translateX(50px);
}
.reveal-up {
  transform: translateY(50px);
}
.reveal-scale {
  transform: scale(0.8);
}

/* Active State (Triggered by JS) */
.active.reveal-text {
  opacity: 1;
  transform: translateY(0);
}
.active.reveal-left {
  opacity: 1;
  transform: translateX(0);
}
.active.reveal-right {
  opacity: 1;
  transform: translateX(0);
}
.active.reveal-up {
  opacity: 1;
  transform: translateY(0);
}
.active.reveal-scale {
  opacity: 1;
  transform: scale(1);
}

/* Delays */
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .story-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .exp-badge {
    right: 50%;
    transform: translateX(50%);
    bottom: -50px;
  }
  .story-image {
    margin-bottom: 60px;
  }
  .story-features {
    align-items: center;
  }
  .mv-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   UPDATED STATS SECTION COLORS
   ========================================= */

/* Target the main stats section container */
.stats-section {
  background-color: var(--white) !important; /* Sets background to white */
}

/* Target the numbers (h2/counter) and descriptive text (p) within the section */
/* We use multiple selectors to ensure it catches the right elements */
.stats-section h2,
.stats-section .counter,
.stats-section p,
.stat-box h2,
.stat-box p {
  color: var(--primary-purple) !important; /* Sets text and numbers to purple */
}
