:root {
  --ink: #171515;
  --muted: #68645e;
  --line: #ece3d4;
  --paper: #fffaf1;
  --soft: #f6eddd;
  --maroon: #7a1230;
  --crimson: #c8272d;
  --gold: #f2bf3d;
  --green: #1b6b4a;
  --black: #111111;
  --shadow: 0 28px 90px rgba(38, 24, 15, 0.14);
  --radius: 30px;
  --radius-lg: 48px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 191, 61, 0.18), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(122, 18, 48, 0.12), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto 1fr;
  left: 50%;
  max-width: 1280px;
  padding: 18px clamp(18px, 3vw, 34px);
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  transition: padding 180ms ease;
  width: 100%;
  z-index: 20;
}

.site-header.is-scrolled {
  padding-block: 12px;
}

.brand {
  align-items: center;
  display: inline-flex;
  justify-self: start;
}

.brand img {
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(236, 227, 212, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(38, 24, 15, 0.12);
  height: 66px;
  object-fit: contain;
  padding: 10px 14px;
  width: 164px;
}

.nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(236, 227, 212, 0.94);
  border-radius: 999px;
  box-shadow: 0 16px 50px rgba(38, 24, 15, 0.1);
  display: flex;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  justify-self: center;
  padding: 7px;
}

.nav a {
  border-radius: 999px;
  color: #2d2d2d;
  padding: 10px 14px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.nav a:hover {
  background: linear-gradient(135deg, var(--ink), #3a101c);
  color: #fff;
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding-inline: 18px !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--maroon), var(--black)) !important;
  color: #fff !important;
}

.nav-toggle {
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: none;
  height: 46px;
  padding: 9px;
  width: 46px;
}

.nav-toggle span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  margin: 5px 0;
}

.hero {
  align-items: center;
  border-radius: 0 0 62px 62px;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  margin: 0 clamp(10px, 2vw, 24px);
  padding: 150px clamp(22px, 6vw, 92px) 80px;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 13, 12, 0.82), rgba(50, 25, 22, 0.58), rgba(122, 18, 48, 0.33)),
    radial-gradient(circle at 72% 26%, rgba(242, 191, 61, 0.24), transparent 34%),
    linear-gradient(0deg, rgba(17, 17, 17, 0.38), transparent 52%);
}

.hero-content {
  color: #fff;
  max-width: 950px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--maroon);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Varela Round", "Nunito Sans", sans-serif;
}

h1 {
  font-size: clamp(3.1rem, 6.8vw, 7rem);
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 980px;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  max-width: 820px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), #ffe08a);
  box-shadow: 0 16px 38px rgba(242, 191, 61, 0.25);
  color: #17120a;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.section {
  padding: clamp(72px, 9vw, 126px) clamp(20px, 6vw, 86px);
}

.about-panel {
  align-items: center;
  display: grid;
  gap: clamp(34px, 6vw, 86px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
}

.section-copy p {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 700px;
}

.committee-card,
.country-card,
.news-card,
.objective-card,
.placeholder-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(232, 227, 213, 0.94);
  border-radius: var(--radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.committee-card {
  box-shadow: var(--shadow);
  overflow: hidden;
}

.committee-card img {
  aspect-ratio: 5 / 3.5;
  object-fit: cover;
}

.committee-card div {
  background: #fff;
  box-shadow: inset 9px 0 0 var(--gold);
  padding: 24px;
}

.committee-card strong,
.committee-card span {
  display: block;
}

.committee-card span {
  color: var(--muted);
  margin-top: 4px;
}

.muted {
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 180, 41, 0.22), transparent 28%),
    radial-gradient(circle at 95% 20%, rgba(27, 107, 74, 0.1), transparent 26%),
    linear-gradient(180deg, var(--soft), #fff8ee);
  border-radius: 52px;
  margin-inline: clamp(10px, 2vw, 24px);
}

.section-heading {
  margin-bottom: 34px;
  max-width: 900px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.objective-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.objective-card {
  min-height: 250px;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.objective-card::after {
  background: linear-gradient(135deg, rgba(242, 191, 61, 0.18), rgba(122, 18, 48, 0.08));
  border-radius: 999px 0 0 999px;
  content: "";
  height: 118px;
  position: absolute;
  right: -42px;
  top: -32px;
  width: 154px;
}

.objective-card:hover,
.country-card:hover,
.news-card:hover {
  border-color: rgba(123, 22, 45, 0.26);
  box-shadow: 0 18px 45px rgba(22, 22, 22, 0.1);
  transform: translateY(-4px);
}

.objective-icon {
  align-items: center;
  background: var(--black);
  border-radius: 22px;
  color: #fff;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 30px;
  width: 58px;
}

.objective-icon svg {
  fill: none;
  height: 30px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 30px;
}

.objective-card p,
.country-card p,
.news-card p {
  color: var(--muted);
}

.country-section {
  display: grid;
  gap: 24px;
}

.country-card {
  align-items: stretch;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  overflow: hidden;
}

.country-card:nth-child(even) {
  grid-template-columns: 1.18fr 0.82fr;
}

.country-card:nth-child(even) .country-image {
  order: 2;
}

.country-card > div:not(.country-image) {
  padding: clamp(30px, 5vw, 64px);
}

.country-image {
  background-position: center;
  background-size: cover;
  min-height: 390px;
}

.country-image.sri-lanka {
  background-image:
    linear-gradient(135deg, rgba(27, 107, 74, 0.22), rgba(122, 18, 48, 0.16)),
    url("src/aboutSL.jpg");
}

.country-image.germany {
  background-image:
    linear-gradient(135deg, rgba(17, 17, 17, 0.18), rgba(242, 191, 61, 0.16)),
    url("src/aboutGermany.jpg");
}

.member-logo-section {
  overflow: hidden;
}

.logo-marquee {
  display: grid;
  gap: 18px;
  margin-inline: calc(clamp(20px, 6vw, 86px) * -1);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  overflow: hidden;
}

.logo-row {
  overflow: hidden;
}

.logo-track {
  animation: logo-scroll-left 34s linear infinite;
  display: flex;
  gap: 18px;
  width: max-content;
}

.logo-row.reverse .logo-track {
  animation-name: logo-scroll-right;
}

.logo-row.slow .logo-track {
  animation-duration: 42s;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-track img {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(232, 227, 213, 0.94);
  border-radius: 26px;
  box-shadow: 0 16px 42px rgba(38, 24, 15, 0.08);
  height: 112px;
  object-fit: contain;
  padding: 24px 30px;
  width: 240px;
}

@keyframes logo-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes logo-scroll-right {
  from {
    transform: translateX(calc(-50% - 9px));
  }

  to {
    transform: translateX(0);
  }
}

.news-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  overflow: hidden;
}

.news-card img {
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.news-card div {
  padding: 26px;
}

.news-card span {
  color: var(--maroon);
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.news-card a {
  color: var(--maroon);
  display: inline-flex;
  font-weight: 900;
  margin-top: 4px;
}

.footer {
  background:
    radial-gradient(circle at 88% 0%, rgba(242, 191, 61, 0.18), transparent 32%),
    linear-gradient(135deg, #111, #251018);
  border-radius: 48px 48px 0 0;
  color: #fff;
  display: grid;
  gap: 42px;
  grid-template-columns: 1.35fr 0.8fr 1fr;
  padding: 54px clamp(20px, 6vw, 86px);
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.68);
}

.footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer a {
  display: block;
  margin-bottom: 9px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-brand img {
  background: #fff;
}

.placeholder-main {
  min-height: 100vh;
  padding: 132px clamp(20px, 6vw, 86px) 60px;
}

.placeholder-card {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 238, 0.9)),
    linear-gradient(90deg, rgba(17, 17, 17, 0.04), transparent);
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 880px;
  padding: clamp(34px, 6vw, 72px);
}

.placeholder-card h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5rem);
  margin-bottom: 12px;
}

.placeholder-card p {
  color: var(--muted);
  max-width: 620px;
}

.section-reveal {
  filter: blur(8px);
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.section-copy.section-reveal,
.country-card:nth-child(odd).section-reveal {
  transform: translateX(-42px) scale(0.985);
}

.committee-card.section-reveal,
.country-card:nth-child(even).section-reveal {
  transform: translateX(42px) scale(0.985);
}

.objective-card.section-reveal,
.news-card.section-reveal {
  transform: translateY(42px) scale(0.94);
}

.logo-marquee.section-reveal {
  transform: translateY(26px) scale(0.97);
}

.objective-card:nth-child(2),
.news-card:nth-child(2) {
  transition-delay: 90ms;
}

.objective-card:nth-child(3),
.news-card:nth-child(3) {
  transition-delay: 180ms;
}

.objective-card:nth-child(4) {
  transition-delay: 70ms;
}

.objective-card:nth-child(5) {
  transition-delay: 160ms;
}

.objective-card:nth-child(6) {
  transition-delay: 250ms;
}

.section-reveal.is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .section-reveal {
    filter: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .about-panel,
  .country-card,
  .country-card:nth-child(even),
  .news-grid {
    grid-template-columns: 1fr;
  }

  .country-card:nth-child(even) .country-image {
    order: 0;
  }

  .objective-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    grid-template-columns: 1fr auto;
  }

  .brand img {
    height: 58px;
    width: 144px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav {
    background: rgba(255, 253, 250, 0.98);
    border-radius: 26px;
    box-shadow: 0 22px 42px rgba(22, 22, 22, 0.12);
    display: grid;
    gap: 8px;
    left: 18px;
    opacity: 0;
    padding: 18px 20px 24px;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: 92%;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav.simple-nav {
    box-shadow: none;
    opacity: 1;
    padding: 0;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 136px;
  }

  .objective-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .logo-track img {
    height: 96px;
    padding: 20px 24px;
    width: 210px;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 124px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .country-image {
    min-height: 260px;
  }

  .logo-track img {
    height: 84px;
    width: 180px;
  }
}
