:root {
  --deep: #375b6f;
  --accent: #76b2b5;
  --accent-2: #75b1b5;
  --light: #b9e1db;
  --bg-dark: rgba(22, 33, 40, 0.72);
  --glass: rgba(185, 225, 219, 0.1);
  --glass-strong: rgba(185, 225, 219, 0.16);
  --stroke: rgba(185, 225, 219, 0.24);
  --text: rgba(185, 225, 219, 0.95);
  --muted: rgba(185, 225, 219, 0.72);
  --shadow: 0 24px 48px rgba(12, 18, 22, 0.45);
  --mx: 50%;
  --my: 18%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(185, 225, 219, 0.2), transparent 36%),
    radial-gradient(circle at 12% 20%, rgba(118, 178, 181, 0.2), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(117, 177, 181, 0.24), transparent 30%),
    linear-gradient(145deg, var(--deep), #3e687d 55%, #5b8b99 100%);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-position 90ms linear;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(55, 91, 111, 0.18) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  opacity: 0.22;
}

.ambient-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient-blobs span {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.38;
}

.ambient-blobs span:nth-child(1) {
  width: 380px;
  height: 380px;
  top: 6%;
  left: 8%;
  background: rgba(118, 178, 181, 0.46);
}

.ambient-blobs span:nth-child(2) {
  width: 480px;
  height: 480px;
  top: 42%;
  right: 7%;
  background: rgba(117, 177, 181, 0.4);
}

.ambient-blobs span:nth-child(3) {
  width: 320px;
  height: 320px;
  bottom: 6%;
  left: 30%;
  background: rgba(185, 225, 219, 0.32);
}

h1,
h2,
h3,
.hero-kicker,
.eyebrow,
.legend-label,
.role-line,
.motto {
  font-family: "The Seasons", "Cormorant Garamond", serif;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

main section[id] {
  scroll-margin-top: 110px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background: rgba(22, 33, 40, 0.42);
  border-bottom: 1px solid rgba(185, 225, 219, 0.16);
}

.header-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--light);
  box-shadow: 0 0 24px rgba(185, 225, 219, 0.65);
}

.brand-sub {
  margin: 0;
}

.brand-sub {
  font-size: 0.88rem;
}

.nav-pill {
  display: flex;
  gap: 1rem;
  padding: 0.58rem 1.2rem;
  border-radius: 999px;
  background: rgba(22, 33, 40, 0.6);
  border: 1px solid rgba(185, 225, 219, 0.26);
  backdrop-filter: blur(12px);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.nav-pill.scrolled {
  background: rgba(22, 33, 40, 0.75);
  box-shadow: 0 10px 24px rgba(12, 18, 22, 0.4);
}

.nav-pill a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.85;
  font-size: 0.9rem;
  transition: opacity 160ms ease;
}

.nav-pill a:hover,
.nav-pill a.active {
  opacity: 1;
}

.join-link {
  justify-self: end;
  text-decoration: none;
  color: #1f323b;
  font-weight: 700;
  background: var(--light);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.join-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(185, 225, 219, 0.35);
}

.hero {
  width: min(1180px, 92vw);
  margin: 0 auto;
  min-height: calc(100vh - 84px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.2rem;
  text-align: center;
  padding: 1.8rem 0 2.6rem;
  --glow-x: 50%;
  --glow-y: 48%;
  padding-top: 5.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.5vw, 1rem);
}

.hero h1 {
  margin: 0.3rem 0;
  font-size: clamp(3rem, 10vw, 7.1rem);
  line-height: 0.88;
  color: #f1fbf8;
}

.role-line {
  margin: 0.55rem 0 0;
  font-size: clamp(1.22rem, 2.5vw, 1.7rem);
  color: var(--light);
  letter-spacing: 0.05em;
}

.candidate-name,
.roll-number {
  font-size: 1.2em;
  font-weight: 800;
  color: #ffffff;
}

.motto {
  margin: 0.2rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--accent);
}

.vote-tag {
  margin: 0.6rem auto 0;
  width: fit-content;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(185, 225, 219, 0.15);
  border: 1px solid rgba(185, 225, 219, 0.46);
  color: var(--light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
}

.portrait-stage {
  position: relative;
  width: min(460px, 88vw);
  min-height: 520px;
  display: grid;
  place-items: center;
}

.layer {
  position: absolute;
  border-radius: 28px;
  background: rgba(22, 33, 40, 0.5);
  border: 1px solid rgba(185, 225, 219, 0.22);
  box-shadow: var(--shadow);
}

.layer-back {
  width: 74%;
  height: 76%;
  transform: translate(-12%, -5%) rotate(-6deg);
}

.layer-mid {
  width: 78%;
  height: 80%;
  transform: translate(12%, 2%) rotate(6deg);
}

.portrait-shell {
  position: relative;
  z-index: 3;
  margin: 0;
  width: min(360px, 78vw);
  background: var(--bg-dark);
  border: 1px solid var(--stroke);
  border-radius: 30px;
  padding: 0.9rem 0.9rem 1.15rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.portrait-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: contain;
  object-position: center top;
}

.portrait-shell figcaption {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

.scroll-cue {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.content-section {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 1rem 0 0.9rem;
}

.section-head {
  max-width: 900px;
}

.section-head h2 {
  margin: 0.34rem 0 0;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.intro-text {
  margin: 0.8rem 0 0;
  max-width: 76ch;
  line-height: 1.7;
  color: var(--muted);
}

.about-grid,
.portfolio-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
}

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

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

.glass-card,
.portfolio-card {
  background: rgba(22, 33, 40, 0.56);
  border: 1px solid rgba(185, 225, 219, 0.24);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.glass-card:hover,
.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(118, 178, 181, 0.6);
  box-shadow: 0 18px 34px rgba(12, 18, 22, 0.5), 0 0 0 1px rgba(118, 178, 181, 0.25);
}

.glass-card h3,
.portfolio-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.glass-card p,
.portfolio-card p,
.portfolio-card li {
  color: var(--muted);
  line-height: 1.65;
}

.glass-card p {
  margin: 0.58rem 0 0;
}

.card-sub {
  margin: 0.48rem 0 0.62rem;
  font-size: 0.95rem;
}

.portfolio-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.feedback-section {
  padding-bottom: 2.2rem;
}

.feedback-form {
  margin-top: 1.45rem;
  background: rgba(22, 33, 40, 0.62);
  border: 1px solid rgba(185, 225, 219, 0.24);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3.2vw, 1.8rem);
  display: grid;
  gap: 1rem;
}

.feedback-form fieldset {
  margin: 0;
  border: 1px solid rgba(185, 225, 219, 0.2);
  border-radius: 14px;
  padding: 0.95rem 0.92rem;
  display: grid;
  gap: 0.55rem;
}

.feedback-form legend {
  padding: 0 0.3rem;
  font-family: "The Seasons", "Cormorant Garamond", serif;
  font-size: 1.1rem;
}

.feedback-form label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
  color: var(--muted);
}

.feedback-form input[type="radio"] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.stacked-label {
  display: grid;
  gap: 0.42rem;
  color: var(--text);
}

textarea,
input[type="text"],
input[type="tel"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(185, 225, 219, 0.28);
  background: rgba(12, 18, 22, 0.52);
  color: var(--text);
  font: inherit;
  padding: 0.68rem 0.75rem;
}

textarea {
  min-height: 114px;
  resize: vertical;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.submit-btn {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--light);
  color: #21353f;
  padding: 0.72rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.submit-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 10px 24px rgba(185, 225, 219, 0.34);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  color: var(--light);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid rgba(185, 225, 219, 0.22);
  margin-top: 1rem;
}

.footer-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 0 1.5rem;
  color: var(--muted);
}

.theme-footer {
  margin: 0.25rem 0 0;
  width: 100%;
  text-align: center;
  font-family: "The Seasons", "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.flag-black {
  color: #111111;
  text-shadow: 0 0 1px rgba(185, 225, 219, 0.6);
}

.flag-orange {
  color: #ff9933;
}

.flag-white {
  color: #ffffff;
}

.flag-green {
  color: #138808;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.reveal-left {
  transform: translateX(-22px);
}

.reveal.reveal-right {
  transform: translateX(22px);
}

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

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .join-link {
    justify-self: start;
  }

  .about-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .site-header {
    padding: 0.65rem 0 0.82rem;
  }

  .header-inner {
    gap: 0.6rem;
    justify-items: center;
  }

  .brand-wrap {
    justify-self: center;
  }

  .brand-sub {
    font-size: 0.8rem;
    text-align: center;
  }

  .nav-pill {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 0.9rem;
    padding: 0.52rem 0.9rem;
  }

  .nav-pill a {
    font-size: 0.82rem;
  }

  .join-link {
    justify-self: center;
    font-size: 0.7rem;
    padding: 0.5rem 0.95rem;
  }

  .hero {
    min-height: calc(100vh - 72px);
    padding-top: 7.8rem;
    gap: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .role-line {
    font-size: clamp(1.05rem, 4.7vw, 1.3rem);
    line-height: 1.3;
  }

  .motto {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
  }

  .vote-tag {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.42rem 0.75rem;
    max-width: 92vw;
  }

  .portrait-stage {
    min-height: 360px;
    width: min(390px, 92vw);
  }

  .portrait-shell {
    width: min(300px, 82vw);
  }

  .input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .site-header {
    padding-top: 0.55rem;
  }

  .hero {
    padding-top: 8.4rem;
  }

  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .role-line {
    font-size: 1rem;
  }

  .candidate-name,
  .roll-number {
    font-size: 1.1em;
  }
}

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