/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6b6b;
  --primary-color: #ce0000;
  --secondary-color: #4ecdc4;
  --accent-color: #ffe66d;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;

  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Inter", sans-serif;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.5s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: var(--transition-slow);
}

.loading-spinner.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  line-height: 1;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #e55555;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-hero {
  background: var(--white);
  color: var(--primary-color);
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-top {
  background: var(--dark-color);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 30px;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-links a {
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Navbar */
.navbar {
  padding: 15px 0;
  position: relative;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo h1 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: -10px;
}

.logo span {
  color: var(--dark-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
  border: 3px solid var(--danger);
  margin-left: 10px;
  border-radius: 3px;
  outline: none;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  padding-top: 200px;
  padding-bottom: 100px;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 600px;
  color: var(--white);
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.hero-prev {
  left: 30px;
}

.hero-next {
  right: 30px;
}

.hero-prev,
.hero-next {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.hero-prev:hover,
.hero-next:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--white);
}

/* Animation Classes */
.animate-text {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 1s ease forwards;
}

.animate-text:nth-child(2) {
  animation-delay: 0.3s;
}

.animate-text:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about {
  background: var(--light-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0.1;
}

.section-badge {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 30px;
  color: var(--dark-color);
}

.section-title.white {
  color: var(--white);
}

.highlight-box {
  background: var(--white);
  padding: 25px;
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.about-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

/* Services Section */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.service-icon img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-card p {
  color: var(--gray);
  line-height: 1.6;
}

.values-list,
.programs-list {
  text-align: left;
  list-style: none;
}

.values-list li,
.programs-list li {
  margin-bottom: 10px;
  padding-left: 0;
}

/* Impact Section */
.impact {
  background: var(--dark-color);
  color: var(--white);
  padding: 0;
}

.impact-hero {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/bg-impact-1.jpg") center/cover;
}

.impact-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 80px 0;
}

.project-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.project-content p {
  color: var(--gray);
  line-height: 1.6;
}

/* Team Section */
.team {
  background: var(--light-color);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.team-image {
  height: 300px;
  overflow: hidden;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-info {
  padding: 25px;
}

.team-info h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.team-info p {
  color: var(--primary-color);
  font-weight: 500;
}

/* Partners Section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.partner-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner-card img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  border-radius: 50%;
}

/* Testimonials Section */
.testimonials {
  background: var(--light-color);
}

.testimonials-slider {
  position: relative;
  /* max-width: 800px; */
  margin: 0 auto;
  height: 300px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card.active {
  opacity: 1;
}

.testimonial-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
}

.testimonial-content p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--dark-color);
  line-height: 1.6;
}

.testimonial-content h4 {
  color: var(--primary-color);
  font-weight: 600;
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.testimonial-prev,
.testimonial-next {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--dark-color);
  transform: scale(1.1);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
}

.footer-logo h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-left: -10px;
}

.footer-logo span {
  color: var(--white);
}

.footer-section p {
  margin-bottom: 20px;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-section h4 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.contact-item i {
  color: var(--primary-color);
  width: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #e55555;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.8;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--dark-color);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    gap: 40px;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 20px;
    display: block;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-controls {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .btn-hero {
    padding: 14px 28px;
    font-size: 16px;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }

  .logo h1 {
    font-size: 20px;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: var(--transition-slow);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition-slow);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e55555;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .hero-controls,
  .hero-indicators,
  .back-to-top,
  .footer {
    display: none !important;
  }

  .section {
    padding: 20px 0;
  }

  * {
    color: black !important;
    background: white !important;
  }
}
