/*//////////
//WEBPAGE//
////////*/

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  /* background-image: url("/TSA images/light_grey_dots_background.jpg");
  background-size: 30vh; */
  background-position: center;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.85);
    background-color: #0b0b0f; /* dark base for plasma */

}

* {
  box-sizing: inherit;
}

/*//////////
//NAVBAR///
////////*/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 15px 30px;
  background: linear-gradient(to bottom, rgba(112, 224, 190, 0.8), rgba(112, 224, 190, 0.4));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar a {
  height: 38px;
  padding: 0 18px;
  margin: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.navbar a:hover {
  background-color: rgba(65, 249, 194, 0.9);
  transform: translateY(-2px);
  color: #005959;
}

/*//////////
//SEARCH///
////////*/

.search-container {
  position: relative;
  width:auto;
  margin-left: 15px;
}

.searchInput {
  width: 100%;
  padding: 8px 10px 8px 35px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  outline: none;
  background-color: rgba(255, 255, 255, 0.9);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
  pointer-events: none;
}

/*//////////
//HEADER///
////////*/


.header {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("/TSA images/hikingtrails-unsplash.jpg");
  background-size: cover;
  background-position: center;
}
.Rheader {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("/TSA images/resourcesbanner-unsplash.jpg");
  background-size: cover;
  background-position: center;
  /* background: linear-gradient(rgb(3, 43, 8), rgb(13, 52, 18));*/
}
#title {
  margin: 0;
  padding: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  background: linear-gradient(to right, #70e0be, #f9fff6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 3;
  /* Combined Animation */
  opacity: 0;
  animation: slideInFade 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

#subheading {
  margin-top: 10px;
  color: #0acc81;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 1px;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1.5s ease-out 0.5s forwards; /* 0.5s delay */
}

/*//////////
//INFOS////
////////*/

.Hinfos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.mission, .purpose, .offers {
  position: relative; /* Essential for the ::after border */
  flex: 1 1 300px;
  padding: 30px;
  border-radius: 15px;
  transition: all 0.4s ease;
  overflow: hidden;
  background: linear-gradient(rgba(206, 255, 245, 0.4),  rgba(54, 226, 192, 0.2));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mission:hover, .purpose:hover, .offers:hover {
  box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-10px);
  background-color: rgba(206, 255, 245, 0.9);
}

.mission::after, .purpose::after, .offers::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 0;
  left: 0;
  background-color: #41f9c2;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.mission:hover::after, .purpose:hover::after, .offers:hover::after {
  transform: scaleX(1);
}

/*//////////
//HEALTH///
////////*/

.Health, .Education, .Public-works{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  background-color: rgba(112, 224, 190, 0.8);
  max-width: 1200px;
  margin: 80px auto;
  padding: 40px 20px;
  border-radius: 40px;
  gap: 30px;
  background: linear-gradient(to bottom, rgba(112, 224, 190, 0.2), rgba(112, 224, 190, 0.2));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

}

.Health h2, .Education h2, .Public-works h2 {
  width: 100%;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: 'Inter', sans-serif;
  margin-bottom: 20px;
  color:rgba(255, 255, 255, 0.911);
}

.Gym, .Clinic, .Dentist, .Therapy, .Library, .College, .Coding-class, .youth-center, .Police, .Homeless-Shelter {
  background-color: rgba(255, 255, 255, 0.21);
  backdrop-filter: blur(5px);
  width: 500px;
  max-width: 520px;
  padding: 30px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.Food-Banks{
 background-color: rgba(255, 255, 255, 0.21);
  backdrop-filter: blur(5px);
  width: calc(520px*2);
  padding: 30px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease; 
}
.Gym:hover, .Clinic:hover, .Dentist:hover, .Therapy:hover, .Library:hover, .College:hover, .Coding-class:hover, .youth-center:hover, .Police:hover, .Food-Banks:hover, .Homeless-Shelter:hover{
    transform: scale(1.02);
}

/*//////////
//TYPOGRAPHY//
////////*/

.Gtitle, .Ttitle, .Ctitle, .mtitle, .ptitle, .otitle, .Dtitle,.ELtitle, .ECtitle, .ECCtitle, .EYtitle, .PPtitle, .PFBtitle, .PHStitle {
  text-align: center;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #005959;
}

.paragraph {
  justify-self: center;
  position: relative; 
  width:100%;
  padding: 30px;
  border-radius: 15px;
  transition: all 0.4s ease;
  overflow: hidden;
  background: linear-gradient(rgba(206, 255, 245, 0.4),  rgba(54, 226, 192, 0.2));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
  .paragraph:hover {
  box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-10px);
  background-color: rgba(206, 255, 245, 0.9);
}

.paragraph::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 0;
  left: 0;
  background-color: #41f9c2;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}
.paragraph:hover::after{
  transform: scaleX(1);
}
.paragraph h4 {
  text-align: center;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #ffffff;
}

/*//////////
//ANIMATIONS//
////////*/

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Handle Webkit search cancel button */
.searchInput::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
  background-size: contain;
  cursor: pointer;
}

/* --- PLASMA BACKGROUND --- */
.plasma-bg {
  position: fixed; /* stays in place while scrolling */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -10; /* behind everything */
  pointer-events: none; /* don’t block clicks */
}

/* --- BLOBS --- */
.blob {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  filter: blur(80px);
  opacity: 0.7;
  background: linear-gradient(270deg, #1c1a52, #00ff80, #40b775, #037b2d);
  background-size: 600% 600%;
  animation: blobMove 12s infinite alternate ease-in-out;
}

/* Spread blobs with gaps */
.blob1 { top: 10%; left: 10%; animation-duration: 14s; }
.blob2 { top: 30%; left: 70%; animation-duration: 18s; background: linear-gradient(270deg, #26be3d, #003cff, #ff9900, #5ba133); }
.blob3 { top: 60%; left: 25%; animation-duration: 20s; background: linear-gradient(270deg, #db962dcd, #38df88, #2bcf7a, #3f20da); }
.blob4 { top: 20%; left: 50%; animation-duration: 16s; background: linear-gradient(270deg, #08f1b7, #33ff7e, #99e4a1, #23c772); }
.blob5 { top: 65%; left: 80%; animation-duration: 22s; background: linear-gradient(270deg, #33ffcc, #09d639, #0f7907, #6ce367); }

/* --- ANIMATION --- */
@keyframes blobMove {
  0% {
    transform: scale(1) translate(0px, 0px) rotate(0deg);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    background-position: 0% 50%;
  }
  25% {
    transform: scale(1.1) translate(50px, -30px) rotate(5deg);
    border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
    background-position: 50% 100%;
  }
  50% {
    transform: scale(0.9) translate(-40px, 40px) rotate(-5deg);
    border-radius: 50% 50% 60% 40% / 45% 55% 50% 50%;
    background-position: 100% 50%;
  }
  75% {
    transform: scale(1.05) translate(30px, 20px) rotate(3deg);
    border-radius: 45% 55% 50% 50% / 50% 45% 55% 50%;
    background-position: 50% 0%;
  }
  100% {
    transform: scale(1) translate(0px, 0px) rotate(0deg);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    background-position: 0% 50%;
  }
}
