
/* =========================================
   GOOGLE FONT
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   ROOT VARIABLES
========================================= */
:root {
  --primary: #0b1f4d;
  --secondary: #069c1f;
  --secondary-light: #ffd166;
  --white: #ffffff;
  --dark: #111827;
  --gray: #f5f7fb;
  --text: #5b6472;

  --shadow:
    0 15px 40px rgba(0, 0, 0, 0.08);

  --shadow-hover:
    0 20px 45px rgba(0, 0, 0, 0.12);

  --radius: 22px;
  --transition: 0.4s ease;
}

/* =========================================
   RESET
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 1px;
}

.section-title h2 {
  font-size: 2.7rem;
  margin-top: 10px;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--secondary),
    var(--secondary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================
   PRELOADER
========================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;

  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  display: flex;
  gap: 10px;
}

.loader span {
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border-radius: 50%;
  animation: bounce 0.7s infinite alternate;
}

.loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  to {
    transform: translateY(-15px);
  }
}

/* =========================================
   ANNOUNCEMENT BAR
========================================= */
.announcement-bar {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* =========================================
   HEADER
========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 31, 77, 0.85);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.navbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-btn {
  border: none;
  background: var(--secondary);
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 20px;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;

  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.primary {
  background: linear-gradient(
    135deg,
    var(--secondary),
    var(--secondary-light)
  );

  color: #fff;

  box-shadow:
    0 15px 30px rgba(255, 159, 28, 0.35);
}

.primary:hover {
  transform: translateY(-5px);
  box-shadow:
    0 18px 35px rgba(255, 159, 28, 0.45),
    0 0 25px rgba(255, 159, 28, 0.35);
}

.secondary {
  border: 2px solid #fff;
  color: #fff;
}

.secondary:hover {
  background: #fff;
  color: var(--primary);
}

/* =========================================
   RIPPLE EFFECT
========================================= */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);

  animation: ripple-animation 0.6s linear;

  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* =========================================
   HERO
========================================= */
.hero {
  position: relative;
  min-height: 100vh;

  display: flex;
  align-items: center;

  background:
    url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?q=80&w=1600&auto=format&fit=crop')
    center/cover no-repeat;

  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(5, 11, 30, 0.9),
      rgba(5, 11, 30, 0.7)
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;

  padding: 10px 20px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);

  color: #fff;

  margin-bottom: 25px;
}

.hero h1 {
  color: #fff;
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  color: #d8d8d8;
  margin-bottom: 30px;
}

.typing-text {
  color: #ffd166;
  margin-bottom: 15px;
  min-height: 35px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: 30px;
  box-shadow: var(--shadow);

  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* =========================================
   BLOBS
========================================= */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.blob-1 {
  width: 320px;
  height: 320px;
  background: #ff9f1c;
  top: -60px;
  left: -100px;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: #2357ff;
  right: -120px;
  bottom: -120px;
}

/* =========================================
   REVEAL ANIMATION
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   ABOUT / GRIDS
========================================= */
.about-grid,
.why-grid,
.contact-grid,
.volunteer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img,
.volunteer-image img {
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.about-content h2,
.why-content h2,
.volunteer-content h2,
.contact-info h2 {
  font-size: 2.5rem;
  margin: 15px 0;
}

.about-content p {
  color: var(--text);
}

.glass-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
  margin-top: 30px;
}

.glass-card div {
  padding: 25px;
  border-radius: 20px;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(15px);

  box-shadow: var(--shadow);

  text-align: center;
}

.glass-card i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* =========================================
   MISSION
========================================= */
.mission {
  background: var(--gray);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 30px;
}

.mission-card {
  background: #fff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: var(--shadow);

  transition: var(--transition);
}

.mission-card:hover {
  transform: translateY(-10px);
}

.mission-card i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

/* =========================================
   STATS
========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
}

.stat-card {
  background: #fff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: var(--shadow);

  text-align: center;
}

.stat-card h3 {
  font-size: 3rem;
  color: var(--secondary);
}

/* =========================================
   CAUSES
========================================= */
.causes {
  background: var(--gray);
}

.causes-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}

.cause-card {
  background: #fff;
  padding: 35px;
  border-radius: 25px;

  transition: var(--transition);

  box-shadow: var(--shadow);
}

.cause-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.cause-card i {
  font-size: 2.3rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.cause-card p {
  color: var(--text);
}

/* =========================================
   TIMELINE
========================================= */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;

  width: 3px;
  height: 100%;

  background: var(--secondary);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';

  position: absolute;
  left: -30px;
  top: 5px;

  width: 18px;
  height: 18px;

  border-radius: 50%;
  background: var(--secondary);
}

.timeline-item span {
  font-weight: 700;
  color: var(--secondary);
}

/* =========================================
   DONATION
========================================= */
.donation {
  background:
    linear-gradient(
      135deg,
      #09142f,
      #173d89
    );

  color: #fff;
}

.donation-card {
  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(12px);

  border-radius: 30px;
  padding: 50px;

  border: 1px solid rgba(255,255,255,0.1);
}

.progress-wrapper {
  margin: 25px 0;
}

.progress-bar {
  height: 14px;
  background: rgba(255,255,255,0.15);

  border-radius: 50px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--secondary),
      var(--secondary-light)
    );
}

.progress-info {
  margin-top: 10px;

  display: flex;
  justify-content: space-between;
}

/* =========================================
   TESTIMONIALS
========================================= */
.testimonial-slider {
  max-width: 800px;
  margin: auto;
  position: relative;
}

.testimonial {
  display: none;

  background: #fff;
  padding: 50px;

  border-radius: 25px;

  text-align: center;

  box-shadow: var(--shadow);

  opacity: 0;
  transform: translateY(20px);

  transition: all 0.5s ease;
}

.testimonial.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.testimonial p {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* =========================================
   GALLERY
========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 20px;
}

.gallery-item img {
  height: 300px;
  object-fit: cover;

  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* =========================================
   FAQ
========================================= */
.faq {
  background: var(--gray);
}

.faq-container {
  max-width: 850px;
  margin: auto;
}

.faq-item {
  background: #fff;
  margin-bottom: 20px;

  border-radius: 15px;

  overflow: hidden;

  box-shadow: var(--shadow);
}

.faq-question {
  padding: 22px;

  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-weight: 600;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;

  transition: 0.4s ease;
}

.faq-answer p {
  padding: 0 22px 22px;
  color: var(--text);
}

/* =========================================
   CONTACT
========================================= */
.contact-form {
  background: #fff;

  padding: 40px;

  border-radius: 25px;

  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea,
.newsletter-form input {
  width: 100%;

  padding: 16px;

  border: none;

  background: var(--gray);

  border-radius: 12px;

  margin-bottom: 20px;
}

.contact-form textarea {
  min-height: 150px;
  resize: none;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.contact-item i {
  color: var(--secondary);
}

/* =========================================
   NEWSLETTER
========================================= */
.newsletter-box {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      #173d89
    );

  color: #fff;

  padding: 60px;

  border-radius: 30px;

  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background: #09142f;
  color: #fff;

  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}

.footer h3,
.footer h4 {
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a {
  color: #d5d5d5;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 42px;
  height: 42px;

  background: rgba(255,255,255,0.1);

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  text-align: center;

  margin-top: 50px;
  padding: 25px;

  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   FLOATING BUTTONS
========================================= */
.floating-donate,
#backToTop {
  position: fixed;
  right: 20px;
  z-index: 999;
}

.floating-donate {
  bottom: 90px;

  background: var(--secondary);

  color: #fff;

  padding: 15px 20px;

  border-radius: 50px;

  box-shadow: var(--shadow);
}

#backToTop {
  bottom: 20px;

  width: 50px;
  height: 50px;

  border: none;

  border-radius: 50%;

  background: var(--primary);

  color: #fff;

  cursor: pointer;

  display: none;
}

.floating-social {
  position: fixed;
  left: 20px;
  top: 50%;

  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  gap: 15px;

  z-index: 999;
}

.floating-social a {
  width: 45px;
  height: 45px;

  background: #fff;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary);

  box-shadow: var(--shadow);
}

/* =========================================
   MODAL
========================================= */
.donation-modal {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.7);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 99999;
}

.modal-content {
  background: #fff;

  width: 90%;
  max-width: 500px;

  padding: 40px;

  border-radius: 25px;

  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;

  font-size: 2rem;

  cursor: pointer;
}

.donation-form input {
  width: 100%;

  padding: 15px;

  margin: 15px 0;

  border: none;

  background: var(--gray);

  border-radius: 10px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {

  .hero-content,
  .about-grid,
  .volunteer-grid,
  .contact-grid,
  .why-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .causes-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav-btn {
    display: none;
  }

  .navbar {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    right: -100%;

    width: 260px;
    height: 100vh;

    background: #09142f;

    flex-direction: column;

    padding: 40px;

    transition: 0.5s;

    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .stats-grid,
  .causes-grid,
  .gallery-grid,
  .glass-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .floating-social {
    display: none;
  }
}
