/* Universal Box Sizing for consistent layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* General Body Styles */
body {
  background-color: #f9fafb; /* Equivalent to Tailwind's bg-gray-50 */
  font-family: "Poppins", sans-serif; /* Changed font to Poppins */
  scroll-behavior: smooth;
  margin: 0;
  color: #374151; /* Equivalent to Tailwind's text-gray-800 */
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Custom OKLCH Color Variables */
:root {
  --path-primary: oklch(0.715 0.143 215.221); /* Core dark cyan */
  --path-primary-darker: oklch(0.6 0.15 215); /* Slightly darker for contrast */
  --path-background-light: oklch(
    0.95 0.02 220
  ); /* Very light cyan for section backgrounds */
  --path-accent-light: oklch(0.9 0.05 215); /* Light cyan for hover states */
  --path-gradient-start: oklch(0.715 0.143 215.221); /* Gradient start color */
  --path-gradient-end: oklch(
    0.65 0.12 230
  ); /* Gradient end color (slightly bluer cyan) */
}

/* General Container */
.container {
  max-width: 1200px; /* max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; /* px-4 */
  padding-right: 1rem; /* px-4 */
}

/* Header Section */
.header-section {
  background-color: #ffffff; /* bg-white */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
  padding-top: 1rem; /* py-4 */
  padding-bottom: 1rem; /* py-4 */
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space-x-2 */
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700; /* font-bold */
  color: var(--path-primary);
  border-radius: 0.375rem; /* rounded-md */
  padding: 0.5rem; /* p-2 */
  transition: background-color 0.3s ease;
  text-decoration: none; /* Remove underline */
}

.logo-img {
  height: 3rem; /* h-8 */
  width: auto;
}

.brand-name {
  color: #48494b;
  font-size: 1rem;
  @media screen and (min-width: 768px) {
    font-size: 1.5rem; /* md:text-xl */
  }
  @media screen and (min-width: 1024px) {
    font-size: 1.75rem; /* lg:text-2xl */
  }
}

/* Mobile Navigation Toggle Button - Hidden by default on large screens */
.menu-toggle {
  display: none; /* Hide by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 60; /* Above mobile menu */
}

.menu-toggle svg {
  width: 2rem;
  height: 2rem;
  color: var(--path-primary);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  display: none; /* Hidden by default */
  flex-direction: column; /* Ensure vertical stacking */
  position: fixed;
  top: 0;
  right: -100%; /* Start off-screen */
  width: min(75vw, 320px); /* Responsive width, capped at 320px */
  height: 100vh; /* Full height of viewport */
  background-color: #ffffff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  transition: right 0.3s ease-in-out;
  z-index: 55;
  overflow-y: auto; /* Enable scrolling if content overflows */
}

.mobile-nav-menu.active {
  right: 0; /* Slide in */
  display: flex; /* Show when active, override display: none */
}

.mobile-nav-menu .close-button {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-nav-menu .close-button svg {
  width: 2rem;
  height: 2rem;
  color: #4b5563;
}

.mobile-nav-menu .nav-links {
  flex-direction: column; /* Ensure vertical stacking for mobile links */
  gap: 1rem;
  width: 100%;
  list-style: none; /* Remove list bullets */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

.mobile-nav-menu .nav-link {
  padding: 0.75rem 1rem;
  width: 100%;
  text-align: left;
  border-radius: 0.375rem;
  display: block; /* Ensure links take full width */
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem; /* space-x-6 */
}

.nav-link {
  color: #4b5563; /* text-gray-600 */
  font-weight: 500; /* font-medium */
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 0.375rem; /* rounded-md */
  padding: 0.5rem; /* p-2 */
  text-decoration: none; /* Remove underline */
}

.nav-link:hover {
  color: var(--path-primary);
  background-color: #f3f4f6; /* hover:bg-gray-100 */
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    to right,
    var(--path-gradient-start),
    var(--path-gradient-end)
  );
  color: #ffffff; /* text-white */
  padding-top: 5rem; /* py-20 */
  padding-bottom: 5rem; /* py-20 */
  text-align: center;
  border-bottom-left-radius: 0.75rem; /* rounded-b-xl */
  border-bottom-right-radius: 0.75rem; /* rounded-b-xl */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  margin-left: 1rem; /* mx-4 */
  margin-right: 1rem; /* mx-4 */
  margin-top: 1rem; /* mt-4 */
  overflow: hidden;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 2.25rem; /* text-4xl */
  line-height: 1.25; /* leading-tight */
  margin-bottom: 1.5rem; /* mb-6 */
  font-weight: 800; /* font-extrabold */
  padding: 0 2rem;
}

.hero-text {
  font-size: 1.125rem; /* text-lg */
  margin-bottom: 2rem; /* mb-8 */
  max-width: 50rem; /* max-w-3xl */
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-button {
  background-color: #ffffff; /* bg-white */
  color: var(--path-primary-darker);
  font-weight: 700; /* font-bold */
  padding: 0.75rem 2rem; /* py-3 px-8 */
  border-radius: 9999px; /* rounded-full */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none; /* Ensure no default button border */
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--path-accent-light);
  transform: scale(1.05);
}

.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg-circle {
  background-color: #ffffff;
  opacity: 0.1;
  border-radius: 9999px; /* rounded-full */
  position: absolute;
}

.hero-bg-circle.circle-1 {
  width: 12rem; /* w-48 */
  height: 12rem; /* h-48 */
  top: -2.5rem; /* -top-10 */
  left: -2.5rem; /* -left-10 */
}

.hero-bg-circle.circle-2 {
  width: 8rem; /* w-32 */
  height: 8rem; /* h-32 */
  bottom: 5rem; /* bottom-20 */
  right: 5rem; /* right-20 */
}

/* New circles */
.hero-bg-circle.circle-3 {
  width: 10rem;
  height: 10rem;
  top: 10%;
  right: -3rem;
}

.hero-bg-circle.circle-4 {
  width: 6rem;
  height: 6rem;
  bottom: -2rem;
  left: 10%;
}

/* Mission Section */
.mission-section {
  padding-top: 4rem; /* py-16 */
  padding-bottom: 6rem; /* py-24 */
  background-color: #ffffff; /* bg-white */
  margin-left: 1rem; /* mx-4 */
  margin-right: 1rem; /* mx-4 */
  margin-top: 2rem; /* mt-8 */
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.06); /* shadow-md */
}

.section-title {
  font-size: 2.25rem; /* text-3xl */
  font-weight: 700; /* font-bold */
  text-align: center;
  margin-bottom: 3rem; /* mb-12 */
  color: #48494b; /* text-gray-800 */
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr; /* grid-cols-1 */
  gap: 2rem; /* gap-8 */
}

/* Mission Card Flip Animation */
.mission-card-container {
  perspective: 1000px; /* For 3D effect */
  height: 250px; /* Fixed height for consistent flip */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Apply the feature-card hover transform to the container */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Added box-shadow to transition */
  /* Halo effect applied by default - now thinner */
  box-shadow: 0 0 0 2px var(--path-primary), 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: 0.75rem; /* Increased border-radius */
}

.mission-card-container:hover {
  transform: translateY(-5px); /* Lift effect on container */
  /* More subtle shadow on hover */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  cursor: pointer; /* Pointer cursor on hover */
}

.flip-image {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: auto;
  transition: transform 0.3s ease;
  opacity: 50%;
}

.mission-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 0.75rem; /* Increased border-radius */
  background-color: #f9fafb; /* bg-gray-50 */
}

.mission-card-container:hover .mission-card-inner {
  transform: rotateY(180deg);
}

.mission-card-front,
.mission-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hide reversed side */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem; /* p-6 */
  border-radius: 0.75rem; /* Increased border-radius */
  box-sizing: border-box; /* Include padding in width/height */
}

.mission-card-front {
  background-color: #f9fafb; /* bg-gray-50 */
  color: #1f2937; /* text-gray-800 */
  z-index: 2;
  transform: rotateY(0deg);
}

.mission-card-back {
  background-color: var(--path-primary); /* Use primary color for back */
  color: #ffffff; /* text-white for back content */
  transform: rotateY(180deg);
}

/* Adjustments for content inside front/back */
.mission-card-front .mission-icon {
  color: var(--path-primary); /* Keep icon color */
}
.mission-card-front .mission-card-title {
  color: #111827; /* Keep title color */
}
.mission-card-back .mission-card-text {
  color: #ffffff; /* Text on back should be white */
}

.mission-icon {
  color: var(--path-primary);
  font-size: 3rem; /* text-5xl */
  margin-bottom: 1rem; /* mb-4 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.mission-card-title {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600; /* font-semibold */
  margin-bottom: 0.75rem; /* mb-3 */
  color: #111827; /* text-gray-900 */
}

.mission-card-text {
  /* This style is now specifically for the back of the card */
  color: #4b5563; /* text-gray-600 */
}

/* Our Approach Section */
.approach-section {
  padding-top: 4rem; /* py-16 */
  padding-bottom: 6rem; /* py-24 */
  background-color: var(--path-background-light);
  margin-left: 1rem; /* mx-4 */
  margin-right: 1rem; /* mx-4 */
  margin-top: 2rem; /* mt-8 */
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.06); /* shadow-md */
}

.approach-content-block {
  display: flex; /* Default to flex for mobile stacking */
  flex-direction: column;
  align-items: center;
  gap: 3rem; /* gap-12 */
}

.approach-content-block + .approach-content-block {
  margin-top: 4rem; /* mt-16 */
}

/* No specific flex-direction for reverse-order on mobile, it will stack */

.approach-image-wrapper {
  width: 100%; /* Default for mobile */
}

.approach-text-content {
  width: 100%; /* Default for mobile */
  text-align: center;
}

.approach-image {
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.approach-image:hover {
  transform: scale(1.02);
}

.image-caption {
  text-align: center;
  font-size: 0.875rem; /* text-sm */
  color: #4b5563; /* text-gray-600 */
  margin-top: 0.5rem; /* mt-2 */
  font-style: italic;
}

.section-title-left {
  font-size: 2.25rem; /* text-3xl */
  font-weight: 700; /* font-bold */
  margin-bottom: 1.5rem; /* mb-6 */
  color: #48494b; /* text-gray-800 */
  text-align: center; /* Default for mobile */
}

.approach-text {
  font-size: 1.125rem; /* text-lg */
  color: #374151; /* text-gray-700 */
  margin-bottom: 1rem; /* mb-4 */
}

.learn-more-button {
  margin-top: 1.5rem; /* mt-6 */
  background-color: var(--path-primary);
  color: #ffffff;
  padding: 0.5rem 1.5rem; /* py-2 px-6 */
  border-radius: 9999px; /* rounded-full */
  font-weight: 600; /* font-semibold */
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.06); /* shadow-md */
  border: none;
  cursor: pointer;
}

.learn-more-button:hover {
  background-color: var(--path-primary-darker);
}

.learn-more-content {
  margin-top: 1rem; /* mt-4 */
  color: #4b5563; /* text-gray-600 */
}

/* Call to Action Section */
.cta-section {
  padding-top: 4rem; /* py-16 */
  padding-bottom: 6rem; /* py-24 */
  background: linear-gradient(
    to right,
    var(--path-gradient-end),
    var(--path-gradient-start)
  );
  color: #ffffff; /* text-white */
  text-align: center;
  margin-left: 1rem; /* mx-4 */
  margin-right: 1rem; /* mx-4 */
  margin-top: 2rem; /* mt-8 */
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

.cta-title {
  font-size: 2.25rem; /* text-3xl */
  font-weight: 700; /* font-bold */
  margin-bottom: 1.5rem; /* mb-6 */
}

.cta-text {
  font-size: 1.125rem; /* text-lg */
  margin-bottom: 2rem; /* mb-8 */
  max-width: 42rem; /* max-w-2xl */
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Footer Section */
.footer-section {
  background-color: #48494b; /* bg-gray-800 */
  color: #ffffff; /* text-white */
  padding-top: 2rem; /* py-8 */
  padding-bottom: 2rem; /* py-8 */
  margin-top: 2rem; /* mt-8 */
  border-top-left-radius: 0.75rem; /* rounded-t-xl */
  border-top-right-radius: 0.75rem; /* rounded-t-xl */
  margin-left: 1rem; /* mx-4 */
  margin-right: 1rem; /* mx-4 */
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); /* shadow-inner */
}

.footer-content {
  text-align: center;
}

/* Responsive Styles (Media Queries) */
@media (max-width: 767px) {
  /* Styles for screens smaller than 768px (mobile) */
  /* Hide desktop nav links on mobile */
  header .nav-bar > .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block; /* Show hamburger icon on mobile */
  }
  .header-section .nav-bar {
    justify-content: space-between; /* Ensure space between logo and toggle */
  }
}

@media (min-width: 768px) {
  /* md breakpoint */
  .hero-title {
    font-size: 3.75rem; /* md:text-6xl */
  }
  .hero-text {
    font-size: 1.25rem; /* md:text-xl */
  }
  .section-title {
    font-size: 2.5rem; /* md:text-4xl */
  }
  .mission-grid {
    grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
  }

  /* Approach Section - Using CSS Grid */
  .approach-content-block {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 3rem; /* Same gap as before */
    align-items: center; /* Vertically align items in the grid */
  }

  /* Default order: Image (col 1), Text (col 2) */
  .approach-content-block .approach-image-wrapper {
    grid-column: 1;
  }
  .approach-content-block .approach-text-content {
    grid-column: 2;
    text-align: left; /* Ensure text is left-aligned on desktop */
  }

  /* Reversed order: Text (col 1), Image (col 2) */
  .approach-content-block.reverse-order .approach-text-content {
    grid-column: 1;
    text-align: left; /* Ensure text is left-aligned on desktop */
  }
  .approach-content-block.reverse-order .approach-image-wrapper {
    grid-column: 2;
  }

  .approach-image-wrapper,
  .approach-text-content {
    width: auto; /* Let grid handle width */
  }
  .section-title-left {
    text-align: left; /* md:text-left */
  }
}

@media (min-width: 1024px) {
  /* lg breakpoint */
  .mission-grid {
    grid-template-columns: repeat(3, 1fr); /* lg:grid-cols-3 */
  }
}

/* Keyframe Animations */
@keyframes fadeInFromBottom {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* New animation for the CTA button */
@keyframes fadeInFromBottomMoreDelay {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.15;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.1;
  }
}

/* Apply Animations */
.animate-fade-in-up {
  animation: fadeInFromBottom 0.8s ease-out forwards;
}

.animate-fade-in-up-delay {
  animation: fadeInFromBottom 0.8s ease-out 0.2s forwards;
}

.animate-fade-in-up-delay-more {
  animation: fadeInFromBottomMoreDelay 0.8s ease-out 0.4s forwards; /* Added new animation with longer delay */
}

.animate-pulse-slow {
  animation: pulse 4s infinite ease-in-out;
}

.animate-pulse-slow-delay {
  animation: pulse 4s infinite ease-in-out 1s;
}

/* Initially hide content that will be revealed by JS */
.hidden {
  display: none;
}
