/* About Page Styles */

/* Root Variables */
:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(215, 30%, 12%);
  --primary: hsl(215, 50%, 18%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(210, 25%, 93%);
  --accent: hsl(152, 60%, 42%);
  --accent-foreground: hsl(0, 0%, 100%);
  --muted-foreground: hsl(215, 15%, 45%);
  --border: hsl(214, 25%, 88%);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-soft: 0 4px 24px -4px rgba(33, 60, 91, 0.08);
  --shadow-elevated: 0 12px 40px -8px rgba(33, 60, 91, 0.12);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section - FIXED */
.about-hero {
  position: relative;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0 3rem;
  overflow: hidden;
  margin-top: 0; /* REMOVED margin-top: 80px */
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.3) 1px, transparent 0);
  background-size: 40px 40px;
  z-index: 1; /* Added z-index */
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(52, 168, 121, 0.2);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

/* Ensure header stays on top */
.main-header,
.sticky-header {
  position: relative;
  z-index: 1000; /* High z-index to stay above hero pattern */
}

/* Mission & Vision Section */
.mission-vision-section {
  padding: 6rem 0;
  background: var(--background);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.mission-card,
.vision-card {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.mission-card {
  background: rgba(52, 168, 121, 0.05);
  border-color: rgba(52, 168, 121, 0.2);
}

.vision-card {
  background: rgba(33, 60, 91, 0.05);
  border-color: rgba(33, 60, 91, 0.2);
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.mission-icon {
  background: rgba(52, 168, 121, 0.2);
}

.vision-icon {
  background: rgba(33, 60, 91, 0.2);
}

.mission-card:hover .card-icon,
.vision-card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.mission-icon svg {
  color: var(--accent);
}

.vision-icon svg {
  color: var(--primary);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.card-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Values Section */
.values-section {
  padding: 6rem 0;
  background: var(--secondary);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(52, 168, 121, 0.3);
}

.value-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(52, 168, 121, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background: var(--accent);
  transform: scale(1.1);
}

.value-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  transition: color 0.3s ease;
}

.value-card:hover .value-icon svg {
  color: var(--accent-foreground);
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.value-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
  padding: 6rem 0;
  background: var(--background);
}

.timeline-container {
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 5rem;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 1.375rem;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--background);
  z-index: 10;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(52, 168, 121, 0.2);
}

.timeline-content {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-soft);
  border-color: rgba(52, 168, 121, 0.3);
}

.timeline-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(52, 168, 121, 0.1);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .about-hero {
    padding: 3rem 0 2rem;
  }
  
  .hero-content {
    padding-top: 60px; /* Adjusted for mobile */
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .mission-vision-section,
  .values-section,
  .timeline-section {
    padding: 4rem 0;
  }
  
  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-line {
    left: 1rem;
  }
  
  .timeline-dot {
    left: 0.5rem;
  }
  
  .timeline-item {
    padding-left: 3rem;
    padding-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .about-hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-content {
    padding-top: 40px;
  }
  
  .card-icon {
    width: 3rem;
    height: 3rem;
  }
  
  .card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}