:root {
  --bg: #04131d;
  --bg-2: #071e2d;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f7fbff;
  --muted: #c9d8e6;
  --accent: #63d8ff;
  --accent-2: #95f3ff;
  --max: 1120px;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #04131d;
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 10, 16, 0.38), rgba(2, 8, 14, 0.52));
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
}

.content-sections {
  background: url('assets/background.png') no-repeat center top;
  background-size: cover;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(4, 16, 24, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #e6f4ff;
  font-size: 0.96rem;
}

.nav a { opacity: 0.9; }
.nav a:hover { opacity: 1; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  min-width: 48px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e6f4ff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05202c;
}

.hero {
  display: flex;
  align-items: stretch;
  padding: 0 0 28px;
}

.hero-card {
  width: 100%;
  padding: 0;
  border-radius: 0 0 24px 24px;
  margin: 0;
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: clamp(420px, 62vh, 760px);
  max-height: 760px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.hero .container {
  display: flex;
  align-items: stretch;
  width: min(var(--max), calc(100% - 28px));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 20, 0.1), rgba(4, 12, 20, 0.72));
  display: flex;
  align-items: flex-end;
}

.hero-content {
  width: 100%;
  padding: 40px 32px 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: end;
  min-height: 100%;
}

.hero-text {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  font-size: 0.92rem;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 700px;
}

.hero-text p {
  margin: 0;
  color: #edf7ff;
  font-size: 1.05rem;
  max-width: 650px;
}

.accent-z {
  color: #67fefe;
}

.hero-side {
  justify-self: end;
  width: min(100%, 320px);
}

.info-chip {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.info-chip h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.info-chip p {
  margin: 0;
  color: #eef8ff;
  font-weight: 600;
}

.section {
  padding: 42px 0;
}

.panel {
  background: rgba(4, 20, 30, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-header {
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.story-card,
.carousel-card,
.donate-card {
  padding: 24px;
}

.story-card p,
.carousel-text,
.small {
  color: var(--muted);
}

.story-card p { margin: 0 0 14px; }

.carousel-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.carousel-visual {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.06);
}

.carousel-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(4, 18, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.carousel-caption h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.carousel-caption p {
  margin: 0;
  color: #edf7ff;
  font-size: 0.97rem;
}

.carousel-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.carousel-text-box h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.carousel-controls button {
  min-width: 48px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 216, 255, 0.14);
}

.donate-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.donate-main {
  min-width: 0;
}

.donate-main h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
}

.progress-top > :last-child {
  text-align: right;
}

.raised {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.goal {
  color: var(--muted);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s ease;
}

.progress-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.96rem;
}

.donate-side {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 92px;
}

.quick-donations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0 12px;
}

.quick-donations button,
.donate-btn,
.ghost-btn {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.quick-donations button {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.quick-donations button.active {
  background: rgba(99, 216, 255, 0.18);
  border-color: rgba(99, 216, 255, 0.35);
}

.custom-amount {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 0 14px;
  font-size: 1rem;
  outline: none;
  margin-bottom: 12px;
}

.donate-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05202c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-btn {
  width: 100%;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer {
  padding: 24px 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 940px) {
  .hero-content,
  .story-grid,
  .carousel-shell,
  .donate-card {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    aspect-ratio: 4 / 5;
    min-height: 560px;
    max-height: none;
  }

  .hero-content {
    padding: 28px 24px;
  }

  .hero-side {
    justify-self: start;
    width: 100%;
  }

  .donate-side {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 64px;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .topbar-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .nav {
    gap: 12px;
    font-size: 0.92rem;
  }

  .hero-image-wrap,
  .hero-image {
    min-height: 280px;
  }

  .hero-image-wrap {
    aspect-ratio: 4 / 5;
    min-height: 420px;
  }

  .hero-content,
  .story-card,
  .carousel-card,
  .donate-card {
    padding: 18px;
  }

  .hero-content {
    padding: 20px 18px;
    align-items: end;
  }

  .carousel-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .quick-donations {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-top > :last-child {
    text-align: left;
  }

  h1 {
    font-size: 2.5rem;
  }
}
