/* Retret defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
}

/* Top Contact Bar */
.top-contact-bar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #000  ;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
  width: 100%;
  opacity: 100%;
}

.top-contact-bar a {
  
  width: auto; /* Set your desired width */
  height: 50px; /* Set your desired height */
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  opacity: 0;
  animation: fadeInButtons 1s ease forwards;
  min-height: 44px; /* Touch-friendly minimum size */
  touch-action: manipulation; /* Optimizes touch interactions */
}

.top-contact-bar a:nth-child(1) {
  animation-delay: 0.1s;
}

.top-contact-bar a:nth-child(2) {
  animation-delay: 0.3s;
}

.top-contact-bar a:nth-child(3) {
  animation-delay: 0.5s;
}

.top-contact-bar a:nth-child(4) {
  animation-delay: 0.7s;
}

.top-contact-bar a:nth-child(5) {
  animation-delay: 0.9s;
}

.top-contact-bar a:hover {
  color: #e67b3a  ;
  transform: scale(1.5);
}

.top-contact-bar i {
  margin-right: 0.5rem;
}

@keyframes fadeInButtons {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Popup and overlay for contact form */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  height: 80%;
  max-height: 800px;
  background-color: #fff;
  z-index: 9999;
  display: none;
  overflow: auto;
  padding: 20px;
  border-radius: 5px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #000;
  cursor: pointer;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  opacity: 0;
  animation: slideInFromLeft 1.2s ease forwards;
}

.logo img {
  height: 50px; /* Adjust based on your logo size */
}

nav {
  opacity: 0;
  animation: slideInFromRight 1.2s ease forwards;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #000000;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #e67b3a;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 0; /* Remove all padding for full width */
  background-color: transparent;
  position: relative;
  color: white;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Aligns content to the bottom */
  align-items: center;
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Center the full-width section */
}

.hero-content {
  padding: 3rem 2rem 4rem 2rem; /* Add padding for content spacing */
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent); /* Gradient for better readability */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 300px); /* Extend beyond hero section */
  background: url('../assets/hero.png') no-repeat top center; /* Changed to top center */
  animation: earthAnimation 15s ease-in infinite;
  background-size: cover; /* Ensures the image covers the hero section */
  opacity: 1; /* Higher opacity to make image more visible */
  z-index: -1; /* Places the background behind the content */
}

/* Add a dark overlay for better text readability */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0) 100%); /* Lighter gradient */
  z-index: -1;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #e67b3a;
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 5px;
  transition: all 0.3s ease;
  min-height: 44px; /* Touch-friendly minimum size */
  touch-action: manipulation; /* Optimizes touch interactions */
}

.cta-button:hover {
  background-color: #d06428;
  transform: scale(1.05);
}

/* About Section */
.about {
  padding: 4rem 1rem;
  background-color: #0b0b0b0f;
  text-align: center;
}

.about h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.about h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e67b3a;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  text-align: left;
  margin-bottom: 3rem;
}

.about-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.highlight {
  text-align: center;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-top: 4px solid #e67b3a;
  transition: all 0.3s ease;
}

.highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.highlight i {
  font-size: 2.5rem;
  color: #e67b3a;
  margin-bottom: 1rem;
}

.highlight h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
}

.highlight p {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* Services Section */
.services {
  padding: 4rem 1rem;
  background-color: #940202; /* Light grey for contrast */
}

.services h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.services h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e67b3a;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 3rem;
  color: #e67b3a;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.2);
}

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Partners Section with Earth Background */
.partners {
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  background-color: #000; /* Dark background to make Earth and logos stand out */
  overflow: hidden; /* Ensures the background doesn't overflow */
  color: white; /* Light text for dark background */
}

/* Earth background container */
.partners::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/earth.png') no-repeat center center;
  background-size: 100% 200%; /* Shows just the top half of the image */
  background-attachment: scroll;
  transform: translate(-50%, -50%);
  opacity: 0.4; /* Adjust opacity to ensure text readability */
  z-index: 0;
  animation: earthAnimation 15s linear infinite; /* Adjust timing as needed */
}

/* Animation for the earth background */
@keyframes earthAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.partners h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  color: white;
}

.partners p {
  max-width: 800px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
}

.partner-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.partner {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
  backdrop-filter: blur(5px); /* Creates a frosted glass effect */
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.partner:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.2);
}

.partner img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes logos white */
  opacity: 0.9;
  transition: all 0.3s ease;
}

.partner:hover img {
  filter: none; /* Shows original colors on hover */
  opacity: 1;
}

/* Who We Help Section */
.who-we-help {
  padding: 4rem 1rem;
  background-color: #fff;
}

.who-we-help h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.who-we-help h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e67b3a;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.audience-card {
  text-align: center;
  padding: 2.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid #e67b3a;
}

.audience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.audience-card i {
  font-size: 3.5rem;
  color: #e67b3a;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.audience-card:hover i {
  transform: scale(1.2);
}

.audience-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.audience-card p {
  color: #666;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 4rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/sd.png') no-repeat center center;
  background-size: cover;
  opacity: 1; /* Adjust opacity for readability */
  z-index: 0;
}

.contact > * {
  position: relative;
  z-index: 1;
}

.contact h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
  color: white;
}

.contact h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e67b3a;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.contact-card {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.677);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-card i {
  font-size: 2.5rem;
  color: #e67b3a;
  margin-bottom: 1.5rem;
}

.contact-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact-card p {
  color: #666;
  line-height: 1.6;
}

.contact-card a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #e67b3a;
}

.clickable-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

.clickable-card:hover {
  text-decoration: none !important;
  color: inherit !important;
}

.clickable-card:visited {
  text-decoration: none !important;
  color: inherit !important;
}

.clickable-card:link {
  text-decoration: none !important;
  color: inherit !important;
}

.clickable-card p {
  color: #666 !important;
  text-decoration: none !important;
}

.clickable-card h3 {
  color: #333 !important;
  text-decoration: none !important;
}

.clickable-card * {
  text-decoration: none !important;
}

.contact-button-container {
  margin-top: 2rem;
}

.contact-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #e67b3a;
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: #d06428;
  transform: scale(1.05);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

footer p {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #e67b3a;
}

/* Animations */
.animate-fade {
  animation: fadeIn 2s ease-in;
}

.animate-slide {
  animation: slideIn 1.5s ease-in;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}



/* Responsive Design */
@media (min-width: 768px) {
  .service-grid, .audience-grid, .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .audience-grid, .contact-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive design for partner grid */
@media (max-width: 767px) {
  .partner-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partner {
    height: 80px;
  }
  
  .top-contact-bar {
    flex-direction: column;
    align-items: center;
  }
  
  .top-contact-bar a {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .popup {
    width: 95%;
    height: 90%;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
  
  header {
    flex-direction: column;
    padding: 0.5rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }

  .hero {
    min-height: 300px; /* Shorter on mobile */
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }

  .about h2 {
    font-size: 1.8rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .highlight {
    padding: 1.5rem;
  }

  .highlight h4 {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .partner-carousel {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    min-height: 350px; /* Medium height for tablets */
  }
}

@media (min-width: 1024px) {
  .partner-carousel {
    grid-template-columns: repeat(4, 1fr);
  }
}