
/* General Section Styling */
.section {
  padding: var(--spacing-lg) 0;
  position: relative;
}

/* Section Header */
.section-header {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.section-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1px;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
}

/* Left-align title and subtitle for Impact Section (Our Achievements) */
.impact-section .section-header {
  text-align: left;
}

.impact-section .section-subtitle,
.impact-section .section-title {
  text-align: left;
}

.section-description {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  color: var(--text-body);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
}

/* Animation Styles */
.animate-out {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-out.section-subtitle { transition-delay: 0.1s; }
.animate-out.section-title { transition-delay: 0.3s; }
.animate-out.section-description { transition-delay: 0.5s; }
.animate-out.hero-ctas { transition-delay: 0.7s; }

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.about-hero {
  position: relative;
  padding: calc(var(--navbar-height, 80px) + var(--spacing-xl)) 0 var(--spacing-xl);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neutral) 0%, var(--white) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(19, 109, 198, 0.15), transparent 60%);
  animation: wave 15s infinite linear;
  z-index: 0;
}

@keyframes wave {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-5%, 5%); }
  100% { transform: translate(0, 0); }
}

.about-hero .container {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.about-hero .section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-hero .section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin: 0;
}

.about-hero .section-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-body);
  line-height: 1.8;
  max-width: 700px;
  margin: 0;
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Impact Section */
.impact-section {
  background: var(--white);
  padding: var(--spacing-xl) 0;
}

.impact-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.4s ease;
}

.impact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.impact-card:nth-child(1) {
  transition-delay: 0s;
}

.impact-card:nth-child(2) {
  transition-delay: 0.2s;
}

.impact-card:nth-child(3) {
  transition-delay: 0.4s;
}

.impact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.impact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 109, 198, 0.1);
  border-radius: 50%;
  font-size: 1.75rem;
  color: var(--primary);
  transition: transform 0.4s ease;
}

.impact-card:hover .impact-icon {
  transform: scale(1.1);
}

.impact-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--spacing-xs);
}

.impact-text {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  color: var(--text-body);
  line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
  background: var(--neutral);
  padding: var(--spacing-xl) 0;
  position: relative;
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
  padding: 0 30px;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-item.visible {
  opacity: var(--primary);
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: attr(data-year);
  position: absolute;
  top: 10px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--primary);
  z-index: 2;
}

.timeline-item:nth-child(odd)::before {
  right: -138px;
}

.timeline-item:nth-child(even)::before {
  left: -116px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 15px;
  width: 18px;
  height: 18px;
 background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item:hover::after {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(19, 109, 198, 0.4);
}

.timeline-item:nth-child(odd)::after {
  right: -9px;
}

.timeline-item:nth-child(even)::after {
  left: -9px;
}

.timeline-content {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.timeline-year {
  display: none; /* Hidden by default, shown on smaller screens */
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.timeline-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--spacing-xs);
}

.timeline-content p {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  color: var(--text-body);
  line-height: 1.6;
}

/* Team Section */
.team-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.team-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: var(--spacing-md);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-image-wrapper {
  position: relative;
  width: 300px;
  height: 380px;
  margin: 0 auto var(--spacing-sm);
}

.team-rectangle {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 273px;
  height: 304px;
  background: #ffb400;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-rectangle.rectangle-user2 {
  background: #0183ff;
}

.team-card:hover .team-rectangle {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 20px rgba(63, 81, 181, 0.5);
}

.team-rectangle::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-rectangle::before {
  opacity: 1;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(200%);
  }
}

.team-rectangle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 196, 180, 0.2),
    rgba(255, 46, 99, 0.2),
    rgba(63, 81, 181, 0.2)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: none;
}

.team-card:hover .team-rectangle::after {
  opacity: 0.6;
  animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

.team-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

.team-info {
  margin-top: var(--spacing-sm);
}

.team-name {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--spacing-xs);
}

.team-role {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  font-weight: 500;
  color: var(--text-light);
}

/* Modal Styles */
.modal-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: none;
  padding: var(--spacing-md);
}

.modal-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--dark);
}

.modal-body {
  padding: var(--spacing-md);
  text-align: center;
}

.modal-image-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-md);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.team-bio {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.team-vision {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  color: var(--text-body);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.team-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(19, 109, 198, 0.1);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.team-social-icon:hover {
  transform: scale(1.2) rotate(5deg);
  background: var(--primary);
  box-shadow: 0 0 15px rgba(19, 109, 198, 0.5);
}

.team-social-icon i {
  font-size: 1.25rem;
  color: var(--primary);
}

.team-social-icon:hover i {
  color: var(--white);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  /* Hero Section */
  .about-hero {
    padding: calc(var(--navbar-height, 80px) + var(--spacing-lg)) 0 var(--spacing-lg);
    min-height: 60vh;
  }

  .about-hero .section-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .about-hero .section-subtitle,
  .about-hero .section-description {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .btn-primary,
  .btn-outline-primary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  /* Impact Section */
  .impact-section {
    padding: var(--spacing-lg) 0;
  }

  .impact-card {
    padding: var(--spacing-sm);
  }

  .impact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .impact-title {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  }

  .impact-text {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    line-height: 1.5;
  }

  /* Timeline Section */
  .timeline-container::before {
    left: 20px;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 50px;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-year {
    display: block;
  }

  .timeline-item::after {
    left: 10px !important;
    right: auto !important;
    top: 15px;
  }

  .timeline-content {
    position: relative;
    padding: var(--spacing-sm);
  }

  /* Team Section */
  .team-image-wrapper {
    width: 240px;
    height: 304px;
  }

  .team-rectangle {
    width: 220px;
    height: 243px;
  }
}

@media (max-width: 767.98px) {
  /* General Section */
  .section-subtitle {
    font-size: clamp(0.75rem, 1.3vw, 0.875rem);
  }

  .section-title {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
  }

  .section-description {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  }

  /* Hero Section */
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Impact Section */
  .impact-section {
    padding: var(--spacing-md) 0;
  }

  .impact-card {
    margin-bottom: var(--spacing-md);
    padding: 12px;
  }

  .impact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .impact-title {
    font-size: clamp(0.75rem, 3vw, 1rem);
  }

  .impact-text {
    font-size: clamp(0.625rem, 2vw, 0.75rem);
    line-height: 1.5;
  }

  /* Timeline Section */
  .timeline-container {
    padding: var(--spacing-sm) 0;
  }

  .timeline-item {
    margin-bottom: var(--spacing-md);
    padding-left: 40px;
  }

  .timeline-content {
    padding: var(--spacing-sm);
  }

  .timeline-year {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

  .timeline-container::before {
    left: 15px;
  }

  .timeline-item::after {
    left: 5px !important;
    top: 12px;
  }

  .timeline-content h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
  }

  .timeline-content p {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
  }

  /* Team Section */
  .team-image-wrapper {
    width: 200px;
    height: 253px;
  }

  .team-rectangle {
    width: 180px;
    height: 202px;
  }

  .team-name {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
  }

  .team-role {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  }
}

@media (max-width: 575.98px) {
  /* Hero Section */
  .about-hero {
    padding: calc(var(--navbar-height, 80px) + var(--spacing-md)) 0 var(--spacing-md);
    min-height: 50vh;
  }

  .about-hero .section-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .about-hero .section-subtitle,
  .about-hero .section-description {
    font-size: clamp(0.75rem, 3vw, 1rem);
  }

  .hero-background {
    background: radial-gradient(circle at 50% 50%, rgba(19, 109, 198, 0.1), transparent 70%);
  }

  /* Impact Section */
  .impact-section {
    padding: var(--spacing-sm) 0;
  }

  .impact-card {
    padding: 10px;
  }

  .impact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .impact-title {
    font-size: clamp(0.625rem, 3vw, 0.875rem);
  }

  .impact-text {
    font-size: clamp(0.625rem, 2.5vw, 0.75rem);
    line-height: 1.4;
  }

  /* Timeline Section */
  .timeline-item {
    padding-left: 35px;
  }

  .timeline-year {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }

  .timeline-container::before {
    left: 10px;
  }

  .timeline-item::after {
    left: 0 !important;
    top: 10px;
    width: 16px;
    height: 16px;
  }

  .timeline-content h3 {
    font-size: clamp(0.875rem, 3vw, 1.125rem);
  }

  .timeline-content p {
    font-size: clamp(0.625rem, 2.5vw, 0.75rem);
  }

  /* Team Section */
  .team-image-wrapper {
    width: 180px;
    height: 228px;
  }

  .team-rectangle {
    width: 172px;
    height: 183px;
  }

  .team-name {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
  }

  .team-role {
    font-size: clamp(0.625rem, 1.8vw, 0.75rem);
  }

  /* Modal Styles */
  .modal-image-wrapper {
    width: 100px;
    height: 100px;
  }

  .team-bio,
  .team-vision {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  }

  .team-social-icon {
    width: 36px;
    height: 36px;
  }

  .team-social-icon i {
    font-size: 1.125rem;
  }
}
