html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  background-color: #f4f4f4;
}
.container {
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: repeat(3, auto);
  grid-template-areas:
    "header header header header"
    "main main main main"
    "footer footer footer footer";
  gap: 50px;
  max-width: 100%;
}
/* Header */
header {
  grid-area: header;
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: repeat(2, auto);
  grid-template-areas:
    "head head head head"
    "hero hero hero hero";
}
/* Navigation */
.navbar {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 100%;
  position: fixed;
  top: 0;
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  z-index: 999;
  padding: 10px;
}
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
.logo {
  height: clamp(50px, 8vw, 90px);
  width: auto;
  margin-top: 20px;
}
.navbar-container .navbar-menu {
  display: flex;
  text-align: center;
  gap: 5px;
  list-style: none;
}
.navbar-container .navbar-menu li a {
  text-decoration: none;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
}
.navbar-container .navbar-menu li a:hover {
  background: #4dd0e1;
}
.navbar-toggle {
  display: none;
  background: transparent;
  padding: 10px;
  border: none;
  cursor: pointer;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: #000;
  transition: all 0.3s ease-in-out;
}
/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 0;
  grid-area: hero;
  margin-top: 0;
  height: 100vh;
  background: linear-gradient(120deg, #0288d1, #4dd0e1, #a8d5ba, #d8f1e2);
  background-size: 300% 300%;
  animation: heroGradient 12s ease infinite;
  position: relative;
  overflow: hidden;
}
@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}
.hero_details {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 50px;
  width: 50%;
  border-radius: 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
}
/* Floating dancing shapes */
.shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.shapes span {
  position: absolute;
  display: block;
  opacity: 0.25;
  filter: blur(0.3px);
  animation: floatWide 28s linear infinite;
}
.shape-circle {
  border-radius: 50%;
}
.shape-square {
  border-radius: 10px;
}
.shape-triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Individual sizes/positions */
.shapes .s1 {
  width: 90px;
  height: 90px;
  left: 8%;
  top: 20%;
  background: #ffffff;
  animation-duration: 16s;
  animation-delay: -2s;
}
.shapes .s2 {
  width: 120px;
  height: 120px;
  left: 70%;
  top: 30%;
  background: #4dd0e1;
  animation-duration: 18s;
  animation-delay: -6s;
}
.shapes .s3 {
  width: 70px;
  height: 70px;
  left: 20%;
  top: 65%;
  background: #a8d5ba;
  animation-duration: 14s;
  animation-delay: -4s;
}
.shapes .s4 {
  width: 140px;
  height: 140px;
  left: 45%;
  top: 10%;
  background: #0288d1;
  animation-duration: 20s;
  animation-delay: -8s;
}
.shapes .s5 {
  width: 80px;
  height: 80px;
  left: 82%;
  top: 68%;
  background: #ffffff;
  animation-duration: 17s;
  animation-delay: -10s;
}
.shapes .s6 {
  width: 60px;
  height: 60px;
  left: 5%;
  top: 80%;
  background: #4dd0e1;
  animation-duration: 13s;
  animation-delay: -12s;
}

@keyframes floatWide {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  20% {
    transform: translate3d(30vw, -10vh, 0) rotate(45deg);
  }
  40% {
    transform: translate3d(-25vw, 15vh, 0) rotate(90deg);
  }
  60% {
    transform: translate3d(15vw, 20vh, 0) rotate(135deg);
  }
  80% {
    transform: translate3d(-10vw, -20vh, 0) rotate(180deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(225deg);
  }
}

@media (max-width: 800px) {
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    width: 160px;
  }
  .shapes .s1 {
    width: 60px;
    height: 60px;
  }
  .shapes .s2 {
    width: 80px;
    height: 80px;
  }
  .shapes .s4 {
    width: 100px;
    height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shapes span {
    animation: none;
  }
}
.hero_details > h1 {
  font-size: 40px;
  margin: auto;
}
.hero_details > p {
  font-size: 20px;
}
.impact_btn,
input[type="submit"] {
  padding: 20px 30px;
  border-radius: 20px;
  outline: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0px 0px 6px 0 black;
  background-color: #0288d1;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}
.impact_btn:hover,
input[type="submit"]:hover {
  background-color: #4dd0e1;
  color: #000;
}
/* Main */
main {
  grid-area: main;
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: repeat(6, auto);
  grid-template-areas:
    "about-us about-us about-us about-us"
    "thematics thematics thematics thematics"
    "our_impacts our_impacts our_impacts our_impacts"
    "partners partners partners partners"
    "testimonies testimonies testimonies testimonies"
    "cta cta cta cta";
  gap: 20px;
}
section {
  scroll-margin-top: 90px;
}
/* About us */
.about-us {
  margin-top: 20px;
  grid-area: about-us;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.about {
  width: 60%;
}
.mission {
  width: 60%;
}
.vision {
  width: 60%;
}
/* Thematics */
.thematics {
  grid-area: thematics;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px;
  background-color: #dae7ee;
}
.thematics_cont {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, auto);
  gap: 60px;
  margin-top: 40px;
  width: 60%;
}
.thematics_cont > div {
  padding: 20px;
  background-color: white;
  box-shadow: 0px 0px 6px 0px grey;
  border-radius: 10px;
  cursor: pointer;
}
.thematics_cont > div:hover {
  box-shadow: 0px 0px 6px 0px black;
  transition: box-shadow 0.6s ease-in-out;
}
/* our_impacts */
.our_impacts {
  grid-area: our_impacts;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px;
  background-color: #f7e0f6;
}
.our_impacts > div {
  width: 80%;
  border-radius: 40px;
  text-align: center;
  color: white;
  margin: 10px;
  margin-top: 40px;
}
.our_impacts > .digital-literacy {
  background: linear-gradient(45deg, #000c8f, #1985ff);
  width: 80%;
  padding: 50px;
}
.our_impacts > .world {
  background: linear-gradient(45deg, #1f9000, #ceff1a);
  color: #000;
}
.our_impacts > .mental {
  background: linear-gradient(60deg, #c62828, #ee6a6a);
}
.our_impacts > .bleed-act {
  background: linear-gradient(60deg, #8f0000, #ff1919);
}
.our_impacts > .medical {
  background: linear-gradient(60deg, #ff1919, #8f0000);
}
.our_impacts > .International {
  background: linear-gradient(45deg, #8f0088, #ff19f4);
}
.our_impacts > .green {
  background: linear-gradient(45deg, #008f18, #71ff19);
}
.our_impacts > .world > a {
  background: #1f9000;
}
.our_impacts > .techherone {
  background: linear-gradient(45deg, #0288d1, #4dd0e1);
}
.our_impacts > .digital-literacy > a {
  background: #058ed9;
  padding: 10px;
  border-radius: 20px;
}
/* Impact section links */
.our_impacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  padding-bottom: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.our_impacts a::after {
  content: "→";
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.25s ease;
}
.our_impacts a:hover {
  opacity: 0.9;
}
.our_impacts a:hover::after {
  transform: translateX(4px);
}
.our_impacts a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
  border-bottom-color: transparent;
}
.project1 {
  padding: 30px;
  background: linear-gradient(45deg, #000c8f, #1985ff);
  box-shadow: 2px 2px 6px 0px black;
}
.project2,
.project7 {
  padding: 30px;
  background: linear-gradient(45deg, #0288d1, #4dd0e1);
  box-shadow: 2px 2px 6px 0px black;
}
.project3 {
  padding: 30px;
  background: linear-gradient(45deg, #1f9000, #ceff1a);
  box-shadow: 2px 2px 6px 0px black;
  color: #000;
}
.project4 {
  padding: 30px;
  background: linear-gradient(45deg, #8f0088, #ff19f4);
  box-shadow: 2px 2px 6px 0px black;
}
.project5 {
  padding: 30px;
  background: linear-gradient(60deg, #c62828, #ee6a6a);
  box-shadow: 2px 2px 6px 0px black;
}
.project6 {
  padding: 30px;
  background: linear-gradient(60deg, #8f0000, #ff1919);
  box-shadow: 2px 2px 6px 0px black;
}
.project8 {
  padding: 30px;
  background: linear-gradient(45deg, #ff1919, #8f0000);
  box-shadow: 2px 2px 6px 0px black;
}
.project9 {
  padding: 30px;
  background: linear-gradient(45deg, #008f18, #71ff19);
  box-shadow: 2px 2px 6px 0px black;
}
/* Teams Section */
.teams {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 50px 20px;
}

.team-box {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  flex: 1 1 300px; /* flexible width, min 300px */
  max-width: 350px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.team-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.team-box h3 {
  font-size: 1.2rem;
  margin: 15px 0 5px;
  color: #0288d1;
}

.team-box small {
  font-size: 0.9rem;
  color: #666;
}

.team-box p {
  padding: 0 15px 20px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  width: 100%;
  margin: 20px auto;
}
.gallery-2024 {
  grid-template-columns: repeat(2, 1fr);
}
.video-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  grid-template-areas:
    "h2 h2 h2 h2"
    "column column column column";
  gap: 20px;
  width: 100%;
  margin: 20px auto;
}
.video-gallery > h2 {
  grid-area: h2;
  color: #c62828;
}
.video-gallery > .column {
  grid-area: column;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.digital {
  grid-template-columns: repeat(2, 1fr);
}
.bleed {
  grid-template-columns: repeat(3, 1fr);
}
.column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 5px;
}
.amimg {
  height: 300px;
  width: 250px;
}
.techheramb {
  flex-direction: row;
  /* flex-wrap: wrap; */
  flex: 1 1 0;
}
.image img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.image video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* partners */
.partners {
  grid-area: partners;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.patners {
  display: flex;
  flex: 1 1 1;
  /* grid-template-columns: repeat(4, 1fr); */
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  width: 80%;
  align-items: stretch;
}
.patners > div {
  padding: 16px;
  box-shadow: 0px 0px 5px 0px grey;
  background-color: white;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 50%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.patners > div > img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.metrics {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #ffffff;
}
.metrics-grid {
  margin-top: 10px;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  place-items: center;
}
.metric {
  position: relative;
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: radial-gradient(
    circle at 50% 40%,
    #ffffff 0%,
    #f5fbff 60%,
    #eaf6fb 100%
  );
  box-shadow: 0 6px 20px rgba(2, 136, 209, 0.08);
  overflow: hidden;
}
.metric::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #0288d1, #4dd0e1, #a8d5ba, #0288d1);
  animation: spinRing 12s linear infinite;
  z-index: 0;
}
.metric::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: inherit;
  z-index: 1;
}
.metric-number,
.metric-label {
  z-index: 2;
}
.metric-number {
  font-size: 42px;
  font-weight: 800;
  color: #0288d1;
  line-height: 1;
}
.metric-label {
  margin-top: 8px;
  font-size: 14px;
  color: #333333;
}
@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}
/* testimonies */
.testimonies {
  grid-area: testimonies;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#slider {
  position: relative;
  width: 100%;
  height: 50vh;
  max-width: 70%;
  overflow: hidden;
  border: 2px solid #ccc;
  border-radius: 10px;
}
#slides {
  display: flex;
  transition: transform 0.7s ease-in-out;
  flex: 1 1 0;
}
#slide-card {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}
#slide-card .slide-details {
  width: 90%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  background-color: white;
}
#next,
#prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: black;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  opacity: 0.5;
}
#next {
  right: 10px;
}
#prev {
  left: 10px;
}
#next:hover,
#prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
/* cta */
.cta {
  grid-area: cta;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
}
.cta > h1 {
  text-align: center;
}
form {
  padding: 50px;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  justify-content: center;
  gap: 5px;
  background-color: white;
  box-shadow: 0px 0px 3px 0px grey;
  border-radius: 5px;
  width: 40%;
}
form > input {
  padding: 10px 20px;
}
form > input:focus {
  border: 2px solid #4da8da;
  outline: none;
}
input[type="submit"] {
  border-radius: 5px;
  background-color: #058ed9;
  color: white;
  cursor: pointer;
  outline: none;
  border: none;
  margin-top: 10px;
}
input[type="submit"]:hover {
  background-color: #4da8da;
  transition: background-color 0.5s ease-in-out;
}
input[type="submit"]:focus {
  border: 2px solid #058ed9;
  outline: none;
}
textarea:focus {
  outline: none;
  border: 2px solid #4da8da;
}
/* footer */
footer {
  margin-top: 50px;
  background-color: #333333;
  grid-area: footer;
  display: grid;
  grid-template-columns: auto;
  padding: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  row-gap: 0;
  column-gap: 20px;
}
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #0288d1;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  cursor: pointer;
}
.back-to-top:hover {
  background: #4dd0e1;
  color: #000;
}
@media (max-width: 800px) {
  .back-to-top.visible {
    display: inline-flex;
  }
  .patners > div {
    width: 80%;
  }
}
.contact {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 0;
}
.social {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
/* Mobile */
@media (max-width: 800px) {
  .container {
    grid-template-columns: auto;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }
  header {
    grid-template-columns: auto;
    grid-template-areas:
      "head"
      "hero";
  }
  main {
    grid-template-columns: auto;
    grid-template-areas:
      "about-us"
      "thematics"
      "our_impacts"
      "partners"
      "testimonies"
      "cta";
  }
  .thematics_cont {
    grid-template-columns: auto;
    width: 100%;
  }

  .navbar {
    backdrop-filter: none;
    height: 56px;
  }
  .navbar-container .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px !important;
    position: absolute;
    height: 100vh;
    width: 50%;
    top: 0;
    right: 0;
    padding: 20px 30px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    background-color: rgba(2, 136, 209, 0.95);
  }
  .navbar-container .navbar-menu.active {
    display: flex;
  }
  .navbar-toggle {
    display: block;
    z-index: 999;
  }
  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  /* Ensure logo scales to fit the shorter header */
  /* .logo {
    height: 60px;
    max-height: none;
    width: auto;
  } */
  .thematics_cont {
    grid-template-columns: auto;
    width: 100%;
  }
  .our_impacts > div {
    width: 100%;
  }
  .our_impacts > .digital-literacy {
    width: 100%;
    padding: 20px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .techheramb {
    flex-direction: column;
  }
  .video-gallery > .column {
    grid-template-columns: 1fr;
  }
  .patners {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  .patners > div {
    width: 30%;
  }
  form {
    width: auto;
  }
}
@media (max-width: 575.98px) {
  .navbar-container {
    padding: 0 10px;
  }
  .navbar-container .navbar-menu li a {
    font-size: 20px;
    padding: 3px 15px;
  }
  /* .logo {
    width: 80px;
  } */
  .impact_btn,
  input[type="submit"] {
    padding: 10px 15px;
    font-size: 15px;
  }
  .contact {
    flex-direction: column;
    gap: 0;
  }
  .patners {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric {
    width: 140px;
  }
}
@media (max-width: 1200px) {
  .team-box {
    flex: 1 1 45%;
  }
}
@media (max-width: 768px) {
  .about,
  .mission,
  .vision,
  .our_impacts > div,
  form {
    width: 90%;
  }
  .hero_details {
    width: 90%;
    padding: 20px;
  }
}
.team-box {
  flex: 1 1 100%;
}
/* Read More functionality */
.more-text {
  display: none;
}
.read-more-text {
  display: inline-block;
  color: #0288d1;
  padding: 1px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  cursor: pointer;
}
.read-more-btn {
  display: inline-block;
  color: #fff;
  background: #058ed9;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background: #046bb3;
}
