* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: #89b1d1;
  line-height: 1.5;
  color: #333;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Styling for navbar */
.topnav {
  overflow: hidden;
  box-shadow: 0 5px grey;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* spacing between items */
  background-color: #333333;
}

ul li a {
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: none;
}

ul li a:hover {
  background-color: #9e9e9e;
}

/* Styling for homepage container */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2%;
  margin-bottom: 2%;
}

.hero h1 {
  /* prevent big default margins pushing things */
  margin: 0.25rem 0 0;
}

.imglogo {
  max-width: 260px; /* was 500 — tighter = less jump */
  width: 100%;
  height: auto;
}

.logoimg {
  display: flex;
  justify-content: center;
  align-items: center;
}

.aboutme h3 {
  padding-top: 15px;
  text-align: center;
}

.aboutme p {
  padding-bottom: 15px;
  margin: 10px;
}

.aboutme {
  width: min(90%, 1000px);
  margin-inline: auto;
  background-color: #e0e0e0;
  border-radius: 10px;
  box-shadow: 5px 5px grey;
  padding: clamp(16px, 3vw, 24px);
}

.aboutme h3 {
  text-align: center;
  margin-top: 0;
}
.aboutme p {
  margin: 10px 0;
}

/* Styling for Donations */

.donations h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.donations p {
  padding-bottom: 15px;
  margin: 10px;
}

.donations {
  width: min(90%, 1000px);
  margin-top: 5%;
  margin-inline: auto;
  background-color: #e0e0e0;
  border-radius: 10px;
  box-shadow: 5px 5px grey;
  padding: clamp(16px, 3vw, 24px);
}

.donations h3 {
  text-align: center;
  margin-top: 0;
}
.donations p {
  margin: 10px 0;
}

.howtodonate h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.howtodonate p {
  padding-bottom: 15px;
  margin: 10px;
}

.howtodonate {
  width: min(90%, 1000px);
  margin-inline: auto;
  margin-top: 15px;
  background-color: #e0e0e0;
  text-align: center;
  border-radius: 10px;
  box-shadow: 5px 5px grey;
  padding: clamp(16px, 3vw, 24px);
}

.howtodonate h3 {
  text-align: center;
  margin-top: 0;
}
.howtodonate p {
  margin: 10px 0;
}

.donatelinks {
  display: flex;
  justify-content: space-evenly;
}

.link:hover {
  transform: scale(1.10);
}

/* Styling for Services */

.services h3 {
  padding-top: 15px;
  text-align: center;
}

.services p {
  padding-bottom: 15px;
  margin: 10px;
}

.services {
  width: min(90%, 1000px);
  margin-top: 5%;
  margin-inline: auto;
  background-color: #e0e0e0;
  border-radius: 10px;
  box-shadow: 5px 5px grey;
  padding: clamp(16px, 3vw, 24px);
}

.services h3 {
  text-align: center;
  margin-top: 0;
}
.services p {
  margin: 10px 0;
}

.providedservices {
  text-align: center;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.service-card{
  background-color: #afaeae;
  border-radius: 10px;
  box-shadow: 5px 5px grey;
  padding: clamp(16px, 3vw, 24px);
}

.service-card:hover{
  transform: scale(1.10);
}

/* Styling for Contact */

.contact h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.contact p {
  padding-bottom: 15px;
  margin: 10px;
}

.contact {
  width: min(90%, 1000px);
  margin-top: 5%;
  color: #444;
  margin-inline: auto;
  background-color: #e0e0e0;
  border-radius: 10px;
  box-shadow: 5px 5px grey;
  padding: clamp(16px, 3vw, 24px);
}

.contact-intro {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.contact h3 {
  text-align: center;
  margin-top: 0;
}
.contact p {
  margin: 10px 0;
}

.contactmethods {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: bold;
  background: #f5f5f5;
  color: #333;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-card i {
  font-size: 1.3rem;
}

/* SMS Notification - Centered */
#toast {
  visibility: hidden;
  min-width: 280px;
  max-width: 90%;
  background: #333;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 20px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);

  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s; /* appear instantly */
}



/* Platform-specific flair */
.contact-card.text {
  border-left: 5px solid #2ecc71; /* green accent for text */
}

.contact-card.email {
  border-left: 5px solid #3498db; /* blue accent for email */
}

.contact-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Styling for Social */

.social-intro {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.socialmedia h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.socialmedia p {
  padding-bottom: 15px;
  margin: 10px;
}

.socialmedia {
  width: min(90%, 1000px);
  margin-inline: auto;
  margin-top: 100px;
  background-color: #e0e0e0;
  border-radius: 10px;
  box-shadow: 5px 5px grey;
  padding: clamp(16px, 3vw, 24px);
}

.socialmedia h3 {
  text-align: center;
  margin-top: 0;
}
.socialmedia p {
  margin: 10px 0;
}

.sociallinks {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: bold;
}

/* Platform-specific colors */
.youtube {
  background: #ff0000;
  color: white;
}

.tiktok {
  background: #010101;
  color: white;
}

.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: white;
}

.social:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Styling for screen changes */
@media (max-width: 420px) {
  .imglogo {
    max-width: 200px;
  }
  .hero {
    min-height: 30svh;
  }
}

/*Phones */
@media (max-width: 600px){


  .providedservices{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
  }

  .service-card{
    flex: 1 1 90%;
    max-width: 400px;
    margin:  0 auto;
  }

  .donatelinks{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
}

/*tablets (portrait) */
@media (max-width: 768px){
  
}

/*tablets (landscape) */
@media (max-width: 1024px){
  
}

/*small desktops */
@media (max-width: 1200px){
  
}