* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f0ff 50%, #b3d8fd 100%);
  color: #333;
  line-height: 1.6;
}

.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  padding: 0 20px;
}

/* Header styles */
header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  will-change: transform;
  height: 90px;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Logo styles */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

.logo img {
  height: 80px;
  width: auto;
  margin-right: 8px;
  border-radius: 4px;
  object-fit: contain;
}

.logo .blue-text {
  color: #3498db;
}

/* Navigation styles */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  height: 60px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3498db;
}

.nav-links a.btn {
  background-color: #3498db;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links a.btn:hover {
  background-color: #2980b9;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Footer styles */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #3498db;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #3a506b;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  nav {
    padding: 0 10px;
  }

  .logo img {
    height: 60px;
  }

  .logo {
    font-size: 20px;
  }
}

/* main*/
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #64748b;
  --light: #f8fafc;
  --dark: #1e293b;
  --accent: #8b5cf6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  padding-top: 90px; /* Match header height */
}

.about-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-attachment: fixed; /* This keeps the background fixed while scrolling */
}

.about-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.about-header h1 .about-text {
  animation: rgbText 3s linear infinite;
  font-weight: bold;
  padding: 0 5px;
  display: inline-block;
}

.about-header h1 .blue-text {
  color: #3498db; /* Explicit blue color */
}

.about-header h1 .black-text {
  color: #000; /* Explicit black color */
}

.about-header p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f8fafc" fill-opacity="1" d="M0,32L48,53.3C96,75,192,117,288,128C384,139,480,117,576,112C672,107,768,117,864,144C960,171,1056,213,1152,208C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-repeat: no-repeat;
}

.about-content {
  padding: 4rem 0;
}

.section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 60px;
  background: var(--accent);
  border-radius: 2px;
}

.mission-vision {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.mission,
.vision {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.mission:hover,
.vision:hover {
  transform: translateY(-5px);
}

.mission h3,
.vision h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon {
  background: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  padding: 0 1rem;
}

.team-member {
  max-width: 350px;
  margin: 0 auto;
  width: 100%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member-img {
  height: 200px;
  background-color: #e2e8f0;
  display: flex;
  align-items: center; /* changed from flex-start to center */
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  /* Remove border-radius from .team-member to avoid double rounding */
}

.member-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* changed from cover to contain */
  object-position: center; /* ensure image is centered */
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.member-info {
  padding: 1.5rem;
}

.member-info h3 {
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.member-position {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.stats {
  background: var(--primary-dark);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.testimonials {
  padding: 4rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 5rem;
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
  color: rgba(59, 130, 246, 0.1);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

.call-to-action {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

.btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .about-header {
    padding: 4rem 0 3rem;
    background-attachment: scroll; /* Better performance on mobile */
  }

  .about-header h1 {
    font-size: 2.25rem;
  }

  /* Maintain text colors at smaller screens */
  .about-header h1 .about-text,
  .about-header h1 .black-text {
    color: #000;
  }

  .about-header h1 .blue-text {
    color: #3498db;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .section {
    padding: 0 1rem;
  }

  .cta-content h2 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  header {
    height: 70px;
  }

  main {
    padding-top: 70px;
  }
}

@media (max-width: 480px) {
  .about-header h1 {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .mission,
  .vision {
    min-width: 100%;
    padding: 1.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .team-member {
    max-width: 100%;
  }

  .team-member {
    margin: 0 1rem;
  }

  .testimonial {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .wave {
    height: 40px;
  }
}

/* Improved hover effects and transitions */
.team-member,
.testimonial,
.mission,
.vision {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backface-visibility: hidden;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Apply animations to elements */
.about-header h1 {
  animation: fadeInUp 1s ease-out;
}

.about-header p {
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.section-title {
  animation: slideIn 0.8s ease-out;
}

.mission,
.vision {
  animation: fadeInUp 0.8s ease-out;
}

.team-member {
  animation: fadeInUp 0.8s ease-out;
}

.icon {
  animation: pulse 2s infinite;
}

.feature-icon {
  animation: rotate 20s linear infinite;
}

/* Hover animations */
.team-member:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.mission:hover,
.vision:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Add animation delays for team members */
.team-member:nth-child(1) {
  animation-delay: 0.1s;
}
.team-member:nth-child(2) {
  animation-delay: 0.3s;
}
.team-member:nth-child(3) {
  animation-delay: 0.5s;
}

/* Smooth transitions */
.team-member,
.mission,
.vision,
.testimonial {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance consideration */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
