html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 80px; /* Space for fixed navbar */
}

.navbar {
  background-color: #3E8AD9;
  color: #FCFEED;
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 100px;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar .logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo-img {
  height: 70px;
}

.navbar .company-name {
  font-size: 1.5rem;
  color: #FCFEED;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background-color: #FCFEED;
  border-radius: 2px;
  transition: all 0.6s ease;
}

/* Animate into X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6.5px, 7px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6.5px, -7px);
}


.nav-links {
  display: flex;
  gap: 30px;
  margin-left: 30px;
}

.nav-links a {
  color: #FCFEED;
  text-decoration: none;
  font-size: 0.85rem;
  padding-bottom: 4px;
  transition: color 0.2s ease, filter 0.2s ease;
  border-bottom: 2px solid transparent;
}

.nav-links a.active {
  border-bottom: 2px solid #FCFEED;
}

.nav-links a.active:hover {
  border-bottom-color: #353535;
}

.nav-links a:hover {
  color: #353535;
}

.section {
  padding: 60px 100px;
  max-width: 100%;
  margin-top: 20px auto;
  box-sizing: border-box;
  scroll-margin-top: 80px; /* Space for fixed navbar */
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section.banner {
  background-color: #222;
  min-height: 750px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.banner-description {
  max-width: 800px;
  margin-bottom: 40px;
  color: #F3F3F3;
  text-align: center;
  text-wrap: balance;
  word-break: keep-all;
  padding: 0 20px;
}

.banner-description h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #D90166
}

.banner-description h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.banner-description p {
  font-size: 1rem;
  line-height: 1.6;
}

.banner-inner {
  position: relative;
  width: 100%;
  max-width: 800px;
  flex-shrink: 0;
}

.banner img {
  width: 100%;
  height: auto;
  max-height: 1100px;
  object-fit: cover;
  display: block;
  object-position: center;
  z-index: 1;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;

  background:
    radial-gradient(
      ellipse 80% 100% at center,
      rgba(0, 0, 0, 0) 30%, 
      rgba(0, 0, 0, 0.4) 60%,
      rgba(0, 0, 0, 0.75) 100%
    );
}

.banner-text {
  color: #F3F3F3;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
}

.banner-text h1 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.banner-text p {
  font-size: 1.1rem;
  margin: 30px 0 0;
}

.section.about {
  background-color: #F3F3F3;
  color: #353535;
}

.about-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
}

.about h2 {
  text-align: end;
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
  margin: 0 auto;
}

.about-sustainability {
  display: flex;
  flex-direction: row-reverse; /* puts text on the left, image on the right */
  align-items: stretch;
  gap: 40px;
  margin-top: 30px;
}

.sustainability-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sustainability-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: start;
}

.sustainability-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: justify;
}

.sustainability-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sustainability-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.section.people {
  background-color: #222;
  color: #F3F3F3;
}

.people h2 {
  text-align: center;
}

.people .divider {
  width: 60px;
  height: 2px;
  background-color: currentColor;
  margin: 0 auto 40px auto;
  border: none;
}

/* Team list layout */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 70px;
  justify-content: center;
}

/* Each team member box */
.team-member {
  flex: 1 1 45%;
  text-align: center;
  max-width: 400px;
}

/* Team member photo */
.team-member img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid currentColor;
  margin: 0 auto 20px auto;
  display: block;
}

/* Title and name styles */
.team-member h3 {
  margin: 0;
  font-size: 1.25rem;
  color: currentColor;
}

.team-member .title {
  color: #3E8AD9;
  font-weight: bold;
  margin: 5px 0 15px 0;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.team-member .divider {
  width: 60px;
  height: 2px;
  background-color: currentColor;
  margin: 20px auto 20px auto;
  border: none;
}

.team-member .bio {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

.fa-linkedin, .fa-linkedin-square {
  font-size: 2em; /* Adjust the size */
  color: #3E8AD9; /* LinkedIn blue */
  text-decoration: none;
}

.section.investor-contact {
  text-align: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(62, 138, 217, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(62, 138, 217, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(100, 160, 230, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(80, 130, 200, 0.1) 0%, transparent 50%),
    #0A2A45; /* Deep base blue */
  color: #F3F3F3;
}

.investor-content {
  max-width: 1000px;
  margin: 0 auto;
}

.investor-content h2 {
  margin-bottom: 20px;
}

.investor-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  text-wrap: balance;
  word-break: keep-all;
}

.pitch-deck-btn {
  display: inline-block;
  background-color: #60B4FF;
  color: #0A2A45;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-bottom: 100px;
}

.pitch-deck-btn i {
  margin-right: 8px;
  vertical-align: middle;
}

.pitch-deck-btn:hover {
  background-color: #4A9FE4;
  box-shadow: 0 0 10px rgba(63, 224, 208, 0.4);
}

.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: rgba(243, 243, 243, 0.9);
  color: #1B1B1B;
  outline: none;
  resize: none;
  transition: background-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666666;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background-color: rgba(225, 225, 225, 0.95);
  color: #000;
}

.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill {
  background-color: rgba(243, 243, 243, 0.9) !important;
  color: #1B1B1B !important;
  transition: background-color 0s;
  -webkit-box-shadow: 0 0 0 1000px rgba(243, 243, 243, 0.9) inset !important;
  -webkit-text-fill-color: #1B1B1B !important;
}

.contact-form button {
  background-color: #60B4FF;
  color: #0A2A45;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-form button:hover {
  background-color: #4A9FE4;
  box-shadow: 0 0 10px rgba(63, 224, 208, 0.4);
}

.contact-form button .btn-text {
  font-size: 1em;
}

.contact-form button .btn-icon i {
  font-size: 0.85em;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.contact-form button:hover i.fa-paper-plane {
  transform: translateX(2px);
}

#investors, #contact {
  scroll-margin-top: 100px; /* Space for fixed navbar */
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 20px;
  }

  .menu-toggle {
    display: flex; /* Show hamburger only on small screens */
    position: absolute;
    top: 30px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #FCFEED;
    cursor: pointer;
    z-index: 1100;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 80px; /* below the navbar */
    right: 0; /* offset left of the hamburger */
    background-color: #3E8AD9;
    border-radius: 6px;
    padding: 0 20px;
    z-index: 1001;
    align-items: flex-end;

    /* Start hidden */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease;
    pointer-events: none; /* Prevent interaction when hidden */
  }

  .nav-links.show {
    max-height: 500px; /* Arbitrary large value to allow for expansion */
    opacity: 1;
    transform: translateY(0);
    padding: 10px 20px; /* restore vertical padding when open */
    pointer-events: auto; /* Allow interaction when shown */
  }

  .nav-links a {
    padding: 6px 0;
    font-size: 1rem;
  }

  .section {
    padding: 60px 10px;
  }

  .about-group {
    padding: 0 10px;
  }
}

@media (max-width: 1045px) {
  .about-sustainability {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sustainability-img,
  .sustainability-text {
    width: 100%;
  }

  .sustainability-img {
    align-items: center;
  }

  .sustainability-img img {
    width: 100%;
    height: auto; /* let it scale naturally on mobile */
  }
}

@media (min-width: 1200px) {
  .section.banner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
    gap: 60px;
  }

  .banner-description {
    max-width: 800px;
    margin-bottom: 0;
    text-align: left;
    transform: translateY(-30%);
  }
}
