@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  background: #f4f9fc;
  color: #222;
  scroll-behavior: smooth;
  font-size: 18px; /* bigger base font */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: #0077b6;
}

/* Sticky Header */
header {
  background: linear-gradient(to right, #0a2f5c, #14477c);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: headerPulseShadow 3s ease-in-out infinite;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* Logo image */
.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

/* Site name bigger */
.site-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin: 0 1rem 0 0;
  color: #e0f0ff;
  white-space: nowrap;
  animation-name: headerFadeIn;
  animation-duration: 0.6s;
  animation-delay: 0.4s;
}

/* Tagline next to site name */
.tagline {
  font-size: 1.25rem;
  color: #b8d4ff;
  margin: 0;
  white-space: nowrap;
  animation-name: headerFadeIn;
  animation-duration: 0.6s;
  animation-delay: 0.6s;
  user-select: none;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: #fff;
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #fff;
  left: 0;
  bottom: -4px;
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 3rem;
  scroll-margin-top: 140px;
}

/* Section titles */
section h2 {
  color: #0a2f5c;
  margin-bottom: 1rem;
  border-bottom: 2px solid #0a2f5c;
  padding-bottom: 0.3rem;
  font-size: 1.8rem;
  font-weight: 600;
}


/* Accordion styles */
.accordion-title {
  background-color: #e3eefc;
  color: #0a2f5c;
  padding: 0.8rem 1rem;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 0.7rem;
  transition: background 0.3s ease;
  position: relative;
  user-select: none;
}

.accordion-title::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-title.open::after {
  content: '-';
}

.accordion-title:hover {
  background-color: #d2e5f9;
}

/* Accordion content with smooth max-height and opacity transition */
.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  background-color: #f0f8ff;
  border-left: 4px solid #0077b6;
  margin-bottom: 1rem;
  border-radius: 0 6px 6px 6px;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.accordion-content.active {
  max-height: 300px; /* enough for content */
  opacity: 1;
  padding: 0.75rem 1rem;
}

/* Extra info sections */
.extra-info h3 {
  color: #0a2f5c;
  margin-top: 1.5rem;
  font-size: 1.4rem;
}

.extra-info ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Founder section flex for text left, image right */
.founder-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;;
  gap: 1.5rem;
  margin-top: 1rem;
}

.founder-text {
  flex: 1 1 400px;
  font-size: 1rem;
  color: #333;
  font-size: 1.1rem;      
  line-height: 1.6;
  margin-bottom: 10px;
}

.founder-img img {
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Partners grid */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.partner {
  flex: 1 1 30%;
  background: #ffffff;
  border: 1px solid #d1e7ff;
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.partner:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.partner-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.partner-img:hover {
  transform: scale(1.05);
}

/* Partner description with smooth transition */
.partner-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background-color: #f9fafe;
  padding: 0 0.6rem;
  border-radius: 6px;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  text-align: left;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.partner-desc.show {
  max-height: 400px;
  opacity: 1;
  padding: 0.75rem 0.6rem;
}

/* Contact section */
#contact p {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

#contact i {
  color: #0077b6;
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background: #0a2f5c;
  color: #d3e4ff;
  padding: 1.5rem 2rem;
  margin-top: 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-left: 10rem;
  margin-bottom: 2rem;
}

.footer-top div {
  flex: 1 1 250px;
}

.footer-top h4 {
  margin-bottom: 0.8rem;
}

.footer-top ul {
  list-style: none;
  padding-left: 0;
}

.footer-top ul li a {
  color: #d3e4ff;
}

.footer-top ul li a:hover {
  color: #90caf9;
}

.social-icons a {
  color: #d3e4ff;
  margin-right: 1rem;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #90caf9;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}

/* Animations */
@keyframes headerPulseShadow {
  0%, 100% {
    box-shadow: 0 0 15px 3px rgba(255,255,255,0.4);
  }
  50% {
    box-shadow: 0 0 25px 6px rgba(255,255,255,0.75);
  }
}

@keyframes headerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin-bottom: 0.5rem;
  }

  .founder-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .founder-text, .founder-img {
    flex: none;
    width: 100%;
  }

  .partner-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .partner {
    flex: none;
    width: 100%;
  }
}
