/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

:root {
  --bg-main: #122023;
  --text-main: #f6ffeb;
  --header-bg: rgba(18, 32, 35, 0.9);
  --header-border: rgba(143, 193, 158, 0.2);
  --header-text: #f6ffeb;
  --accent: #8fc19e;
  --accent-strong: #2f443c;
  --hero-base: #002a32;
  --about-bg: #f6ffeb;
  --section-text: #2f443c;
  --eligibility-bg-1: #eef8f1;
  --eligibility-bg-2: #e4f2e9;
  --eligibility-title: #1f332c;
  --eligibility-card-bg: rgba(255, 255, 255, 0.58);
  --eligibility-card-border: rgba(47, 68, 60, 0.24);
  --apply-card-bg: rgba(246, 255, 235, 0.9);
  --apply-card-text: #2f443c;
  --deadline-bg-1: #102426;
  --deadline-bg-2: #153033;
  --deadline-text: #d7f3e0;
  --footer-bg: #0f1b1d;
  --footer-text: #b9c9bc;
  --footer-link: #dff3e6;
}

html[data-theme="light"] {
  --bg-main: #f4f8f6;
  --text-main: #1e312d;
  --header-bg: rgba(244, 248, 246, 0.9);
  --header-border: rgba(31, 51, 44, 0.16);
  --header-text: #1e312d;
  --accent: #2e7f65;
  --accent-strong: #20443a;
  --hero-base: #dbe7e2;
  --about-bg: #ffffff;
  --section-text: #294038;
  --eligibility-bg-1: #ffffff;
  --eligibility-bg-2: #f4f8f6;
  --eligibility-title: #1f332c;
  --eligibility-card-bg: rgba(250, 255, 252, 0.95);
  --eligibility-card-border: rgba(31, 51, 44, 0.18);
  --apply-card-bg: rgba(255, 255, 255, 0.96);
  --apply-card-text: #243a34;
  --deadline-bg-1: #edf5f1;
  --deadline-bg-2: #e1eee8;
  --deadline-text: #234038;
  --footer-bg: #eaf2ee;
  --footer-text: #2e4a42;
  --footer-link: #24463c;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}
html {
  scroll-behavior: smooth;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.38;
  pointer-events: none;
}

body::before {
  width: 260px;
  height: 260px;
  top: -80px;
  left: -70px;
  background: radial-gradient(
    circle,
    rgba(143, 193, 158, 0.6),
    transparent 72%
  );
  animation: floatGlow 16s ease-in-out infinite alternate;
}

body::after {
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(47, 68, 60, 0.65), transparent 75%);
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

/* ===== Header ===== */
#main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 15px 20px;
  min-height: 72px;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.7s ease both;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  display: block;
  width: 176px;
  height: 56px;
  object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(0) invert(1);
}

html[data-theme="light"] .logo-icon {
  filter: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--header-text);
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.15rem;
  cursor: pointer;
}

.menu-panel {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  min-width: 0;
}
.nav-links {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  overflow-x: auto;
  min-width: 0;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--header-text);
  font-size: 16px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--header-text);
  font-size: 1rem;
  cursor: pointer;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--header-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.language-toggle input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background-color: rgba(246, 255, 235, 0.35);
  border-radius: 999px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--header-text);
  transition: transform 0.3s ease;
}

.language-toggle input:checked + .toggle-slider {
  background-color: var(--accent);
}

.language-toggle input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

@media (min-width: 769px) {
  #main-header {
    justify-content: center;
  }

  .logo {
    position: absolute;
    left: 20px;
  }

  .menu-panel {
    margin-left: 0;
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
    overflow: visible;
  }

  .header-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}
/* ===== Hero Section ===== */
.hero {
  background-color: var(--hero-base);
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    url(images2.jpg);
  background-size: cover;
  background-position: center;
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  color: #fff;
  box-sizing: border-box;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.45s ease;
  animation: softZoom 1.2s ease both;
}

.hero-overlay:hover {
  transform: scale(1.01);
}
.hero-overlay .hero-text {
  max-width: 600px;
  width: 100%;
}

.hero-entrance h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.8s ease 0.15s forwards;
}

.hero-entrance p {
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.8s ease 0.3s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.8s ease 0.45s forwards;
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-apply {
  display: inline-block;
  padding: 15px 30px;
  background-color: rgba(143, 193, 158, 0.9);
  color: #122023;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.btn-apply:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  filter: brightness(1.04);
}

/* ===== Sections ===== */
.section {
  padding: 100px 20px;
  /* max-width: 1000px; */
  margin: 0 auto;
}
#about {
  background-color: var(--about-bg);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}
.about-box {
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 800px; /* box stays limited */
  width: 100%; /* fills up to max-width */
  margin: 0 auto;
  text-align: center;
  background-color: transparent; /* remove box color */
  box-sizing: border-box;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.about-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(12, 24, 27, 0.24);
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
  color: #8fc19e;
}

.section p {
  margin-bottom: 20px;
  color: var(--section-text);
}

.eligibility {
  padding: 80px 20px;
  background: linear-gradient(
    180deg,
    var(--eligibility-bg-1) 0%,
    var(--eligibility-bg-2) 100%
  );
  text-align: center;
}

.eligibility h2 {
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--eligibility-title);
}

.eligibility-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.eligibility-box {
  border: 1px solid var(--eligibility-card-border);
  border-radius: 12px;
  padding: 20px 15px;
  background-color: var(--eligibility-card-bg);
  text-align: center;
  line-height: 1.6;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* HOVER EFFECT */
.eligibility-box:hover {
  background-color: rgba(255, 255, 255, 0.92);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(26, 45, 39, 0.14);
}

/* ICON */
.eligibility-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(
    140deg,
    rgba(143, 193, 158, 0.34),
    rgba(143, 193, 158, 0.08)
  );
  border: 1px solid rgba(47, 68, 60, 0.28);
  color: #1d342f;
  font-size: 1.45rem;
  animation: gentleFloat 3.8s ease-in-out infinite;
}

/* TEXT */
.eligibility-box h3 {
  margin: 0 0 8px;
  color: var(--eligibility-title);
  font-size: 1.08rem;
  font-weight: 700;
}

.eligibility-box p {
  margin: 0;
  color: var(--section-text);
  font-size: 0.98rem;
}

#apply {
  background-image:
    linear-gradient(
      to bottom right,
      rgba(18, 32, 35, 0.72),
      rgba(47, 68, 60, 0.55)
    ),
    url(images3.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px;
  color: #fff;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.apply-box {
  background: var(--apply-card-bg);
  backdrop-filter: blur(3px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(7, 16, 18, 0.28);
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid rgba(47, 68, 60, 0.35);
  color: var(--apply-card-text);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.apply-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px rgba(7, 16, 18, 0.34);
}

.apply-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(143, 193, 158, 0.22) 0%,
    rgba(217, 240, 224, 0.05) 45%,
    rgba(47, 68, 60, 0.12) 100%
  );
  pointer-events: none;
}

.apply-box > * {
  position: relative;
  z-index: 1;
}

.apply-overlay {
  width: min(92%, 960px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  color: #fff;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.apply-cohort {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1d342f;
  background-color: rgba(143, 193, 158, 0.42);
  border: 1px solid rgba(47, 68, 60, 0.25);
}

.apply-title {
  color: var(--apply-card-text);
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 16px 0;
  line-height: 1.15;
}

.apply-description {
  font-size: clamp(1.03rem, 2vw, 1.18rem);
  line-height: 1.75;
  margin-bottom: 32px;
  color: var(--apply-card-text);
  max-width: 66ch;
}

.btn-submission {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f6ffeb;
  background: linear-gradient(
    135deg,
    var(--accent-strong) 0%,
    #1d342f 100%
  );
  box-shadow: 0 10px 20px rgba(29, 52, 47, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.btn-submission::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.24) 40%,
    transparent 80%
  );
  transition: left 0.5s ease;
}

.btn-submission:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(29, 52, 47, 0.3);
  filter: brightness(1.03);
}

.btn-submission:hover::before {
  left: 130%;
}

.btn-submission:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(29, 52, 47, 0.24);
}

.apply-deadline-note {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: rgba(41, 64, 56, 0.82);
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(24px, -20px) scale(1.06);
  }
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes deadlineGlow {
  0%,
  100% {
    opacity: 0.92;
  }
  50% {
    opacity: 1;
  }
}

@keyframes deadlineSlide {
  from {
    transform: translateX(8%);
  }
  to {
    transform: translateX(-8%);
  }
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ===== Card Style ===== */
.card {
  background-color: #1b2f33;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  border: 1px solid rgba(143, 193, 158, 0.15);
}

/* ===== Deadline Ticker ===== */
.deadline-ticker {
  background: linear-gradient(
    90deg,
    var(--deadline-bg-1) 0%,
    var(--deadline-bg-2) 100%
  );
  border-top: 1px solid rgba(143, 193, 158, 0.26);
  border-bottom: 1px solid rgba(143, 193, 158, 0.26);
  padding: 14px 20px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  animation: marquee 18s linear infinite;
  will-change: transform;
}

.ticker-track span {
  flex: 0 0 auto;
  color: var(--deadline-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-right: 72px;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 34px 20px;
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.footer-main {
  margin-bottom: 18px;
  color: var(--footer-text);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--footer-link);
  font-weight: 600;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    padding: 10px 16px;
    min-height: 56px;
    overflow: visible;
  }

  .logo {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .logo-icon {
    width: 132px;
    height: 42px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3 / 4;
    grid-row: 1;
    justify-self: end;
  }

  .menu-panel {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.25s ease,
      opacity 0.25s ease,
      padding 0.25s ease;
    z-index: 1000;
  }

  #main-header.nav-open .menu-panel {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    padding: 10px 20px 14px;
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    overflow: visible;
  }

  .header-controls {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding-top: 8px;
    justify-content: flex-start;
  }

  .nav-links a {
    text-align: left;
    padding: 8px 0;
  }

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

  .section {
    padding: 70px 20px;
  }

  #apply {
    background-attachment: scroll;
    text-align: center;
  }

  .apply-overlay {
    width: 100%;
    text-align: center;
  }

  .apply-box {
    text-align: center;
  }

  .apply-description {
    max-width: 100%;
  }

  .footer-links {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
