@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=DM+Sans:wght@400;500;700&family=Patrick+Hand&family=Space+Mono:wght@400;700&family=Playfair+Display:wght@800;900&display=swap");

/* =========================================
   VARIABLES
========================================= */

:root {
  --bg: #1d1a52;
  --surface: #26245f;
  --text: #f5f3ee;
  --muted: #c4c3d6;
  --accent: #e8a93a;
  --gold: #e8a93a;
  --line: rgba(255, 255, 255, 0.16);
  --floor: #6d5c44;
  --deco-color: var(--gold);

  --side-gutter: 15%;

  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-title: "Playfair Display", Georgia, serif;
}

@media (max-width: 1100px) {
  :root { --side-gutter: 8%; }
}

@media (max-width: 700px) {
  :root { --side-gutter: 1.25rem; }
}

/* =========================================
   RESET / BASE
========================================= */

* {
  box-sizing: border-box;
}

html {
  background-color: #13113f;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  background-color: #090d27;
  background-image: url("../img/redesign/main_bg.png");
  background-size: contain;
  background-repeat: repeat-y;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.button-label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.link-icon {
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.4em;
  vertical-align: -0.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================
   SECTION LAYOUT
========================================= */

.section-pad {
  padding: clamp(4rem, 9vw, 8rem) var(--side-gutter);
}

/* Eyebrow + ribbon heading, centered above a section */
.section-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.section-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.4vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-banner__eyebrow::before,
.section-banner__eyebrow::after {
  content: "";
  width: clamp(1.5rem, 5vw, 3.5rem);
  height: 2px;
  background: currentColor;
  opacity: 0.7;
}

.section-banner__title {
  --notch: clamp(0.7rem, 1.8vw, 1.1rem);

  margin: 0;
  padding: 0.5em calc(var(--notch) + 1.6em);
  max-width: 100%;
  background: var(--gold);
  color: #1d1a52;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  line-height: 1.1;
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - var(--notch)) 50%,
    100% 100%,
    0 100%,
    var(--notch) 50%
  );
}

@media (max-width: 500px) {
  .section-banner__title {
    padding-inline: calc(var(--notch) + 1em);
  }
}

/* Dark glass card, shared by the About page sections and Past Years cards */
.about-section-card,
.year-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(111, 227, 255, 0.045), rgba(169, 154, 255, 0.035)),
    rgba(19, 20, 53, 0.82);
  border: 1px solid rgba(111, 227, 255, 0.2);
  border-radius: 10px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12),
    inset 0 0 25px rgba(111, 227, 255, 0.015);
}

/* =========================================
   PARALLAX DECORATIONS
   Add .deco-section to a <section>, drop .deco elements inside it.
   Per-shape inline vars: --x --y --size --rot --opacity; parallax speed in data-speed.
========================================= */

.deco-section {
  position: relative;
  overflow-x: clip;
}

.deco-section > :not(.deco) {
  position: relative;
  z-index: 1;
}

.deco {
  position: absolute;
  top: var(--y, 10%);
  left: var(--x, 0);
  z-index: 0;
  width: var(--size, 10rem);
  height: var(--size, 10rem);
  pointer-events: none;
  opacity: var(--opacity, 0.5);
  rotate: var(--rot, 0deg);
  animation: deco-drift var(--drift, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: translate;
}

.deco--right {
  left: auto;
  right: var(--x, 0);
}

.deco--circle  { border-radius: 50%; background: var(--deco-color); }
.deco--ring    { border-radius: 50%; border: 3px solid var(--deco-color); }
.deco--square  { background: var(--deco-color); }
.deco--outline { border: 3px solid var(--deco-color); }
.deco--img     { background: var(--img) center / contain no-repeat; }

@keyframes deco-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* =========================================
   SCROLL REVEAL
   The "js" class is added by motion.js, so content is never hidden if it fails to load.
========================================= */

.js [data-reveal] {
  opacity: 0;
  translate: 0 3rem;
  scale: 0.94;
  transition:
    opacity 0.9s ease var(--d, 0ms),
    translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
    scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .deco {
    animation: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: none;
    scale: none;
  }
}
