* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

:root {
  --bg-color: #f5f8fa;
  --text-color: #1c2b36;
  --primary-color: #0f5c7a;
  --primary-dark: #0b4c66;
  --nav-bg: #e5fdff;
  --card-color: #ffffff;
  --subtitle-color: #5e6c75;
  --shadow: 0 10px 20px rgba(0,0,0,0.10);
}

body.dark-mode {
  --bg-color: #08131d;
  --text-color: #f3f8fc;
  --primary-color: #35a7d0;
  --primary-dark: #0d2d42;
  --nav-bg: #0b1823;
  --card-color: #10202d;
  --subtitle-color: #bfd0db;
  --shadow: 0 10px 20px rgba(0,0,0,0.35);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}
section, div {
  max-width: 100%;
}

/* NAVBAR */
.logo {
  border-radius: 0;
  object-fit: cover;
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.navbar nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: large;
  position: relative;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: var(--primary-color);
}

.navbar nav a.active::after,
.navbar nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.donate-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.donate-btn:hover {
  background: var(--primary-dark);
  color: hsl(207, 22%, 90%);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.theme-toggle,
.menu-toggle {
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  background: #edf7fb;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: var(--text-color);
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(to bottom, #a5cbde, #ffffff);
  margin-top: 70px;
}

body.dark-mode .hero {
  background: linear-gradient(to bottom, #0f2433, #0e3646);
}

.small-title {
  color: #1d6fa5;
  font-weight: bold;
  letter-spacing: 2px;
  padding-top: 20px;
}

body.dark-mode .small-title {
  color: #69c8f0;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  margin: 20px 0;
  font-family: Playfair, serif;
}

.subtitle {
  color: var(--subtitle-color);
  max-width: 700px;
  margin: auto;
}

/* CONTACT CARDS */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: -50px;
  padding: 20px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 280px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
}

.card h3 {
  font-family: Playfair, serif;
  font-weight: bold;
  font-size: 22px;
}

.card span {
  color: #0b4c66;
  font-weight: bold;
}

.icon {
  width: 60px;
  height: 60px;
  margin: auto auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
}

.blue {
  background: linear-gradient(to right, hsl(193, 100%, 30%), hsl(213, 97%, 35%));
}

.purple {
  background: linear-gradient(to right, hsl(263, 100%, 70%), hsl(320, 100%, 70%));
}

/* MAIN */
.contact-main {
  display: flex;
  gap: 30px;
  padding: 50px 20px;
  flex-wrap: wrap;
  background: linear-gradient(to top, #e5fdff, #ffffff);
}

/* FORM */
.form-box {
  flex: 1;
  background: hsl(199, 100%, 95%);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 30px;
  border-radius: 15px;
  max-width: 700px;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease;
}

.form-box.show {
  opacity: 1;
  transform: translateX(0);
}

.form-box h2 {
  font-family: Playfair, serif;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.options button {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  margin-top: 20px;
  font-size: 15px;
  font-family: 'Times New Roman', Times, serif;
}

.options button.active,
.options button:hover {
  background: #0072ff;
  color: white;
  border: none;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

textarea {
  height: 120px;
}

.send-btn {
  width: 100%;
  padding: 15px;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  transition: 0.3s ease;
}

.send-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* RIGHT SIDE */
.right-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s ease;
}

.right-box.show {
  opacity: 1;
  transform: translateX(0);
}

.office,
.answers {
  background: hsl(199, 100%, 95%);
  padding: 20px;
  border-radius: 15px;
}

.answers a {
  text-decoration: none;
  color: #00c6ff;
}

.social {
  padding: 25px;
  border-radius: 15px;
  color: white;
  background: linear-gradient(to right, #6a11cb, #ff00cc);
}

.social h3 {
  font-family: Playfair, serif;
  font-size: 24px;
  font-weight: 500;
}

.social-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.social-btns button {
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
}

.social-btns a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.social-btns a:hover {
  color: hsl(180, 2%, 88%);
}

/* FOOTER */
.footer {
  background: #0b4c66;
  color: white;
  padding: 70px 0 30px;
}

.footer-grid {
  width: min(1180px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h3,
.footer h4 {
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
  font-size: 1.9rem;
  color: #38c3ff;
}

.footer h4 {
  font-size: 1.4rem;
}

.footer p,
.footer li,
.footer a {
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  font-size: 1rem;
  text-decoration: none;
}

.footer ul {
  list-style: none;
}

.footer a:hover {
  color: white;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom {
  width: min(1180px, 92%);
  margin: 40px auto 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
  text-align: center;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #14a8e2, #1a6bf2);
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 12px 25px rgba(17, 121, 200, 0.25);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* DARK MODE */
body.dark-mode .navbar {
  background: rgba(10, 22, 34, 0.96);
}
body.dark-mode .hero{
  background: linear-gradient(to bottom, #0f2433, #0e3646);
}

body.dark-mode nav a,
body.dark-mode .theme-toggle,
body.dark-mode .menu-toggle,
body.dark-mode .hero h1,
body.dark-mode .form-box h2,
body.dark-mode .card h3,
body.dark-mode .office h3,
body.dark-mode .answers h3,
body.dark-mode .social h3 {
  color: #e8f1ff;
}

body.dark-mode .subtitle,
body.dark-mode .card p,
body.dark-mode .office p,
body.dark-mode .answers p,
body.dark-mode .form-box input,
body.dark-mode .form-box textarea {
  color: #bfd1e6;
}

body.dark-mode .contact-main {
  background: #0d1b2a;
}

body.dark-mode .card,
body.dark-mode .form-box,
body.dark-mode .office,
body.dark-mode .answers {
  background: #14283c;
}

body.dark-mode .card span {
  color: #69c8f0;
}

body.dark-mode .form-box input,
body.dark-mode .form-box textarea,
body.dark-mode .options button {
  background: #10202d;
  border: 1px solid #294258;
}

body.dark-mode .options button {
  color: #e8f1ff;
}

body.dark-mode .options button.active,
body.dark-mode .options button:hover {
  background: #1e63f2;
  color: white;
  border: none;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-main {
    padding: 30px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  nav {
    position: absolute;
    top: 82px;
    right: 4%;
    width: 260px;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.3s ease;
  }
  nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .contact-main {
    flex-direction: column;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  body.dark-mode nav {
    background: var(--nav-bg);
  }

  body.dark-mode .theme-toggle,
  body.dark-mode .menu-toggle {
    background: #14283c;
    color: #e8f1ff;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 70px 18px 45px;
  }

  .contact-cards {
    margin-top: 0;
    gap: 20px;
  }

  .contact-main {
    padding: 20px 16px 40px;
  }

  .form-box {
    padding: 22px;
  }

  .back-to-top {
    width: 55px;
    height: 55px;
    right: 16px;
    bottom: 18px;
  }
}

@media (max-width: 480px) {
  nav {
    width: calc(100vw - 28px);
    right: 14px;
    top: 78px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .card {
    width: 100%;
  }
   .contact-main {
    padding: 20px 12px;
  }
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
