/* =====================================================
   COEP YOUTH PARLIAMENT — style.css
   Aesthetic: Regal Parliament · Deep Ink & Liquid Gold
   ===================================================== */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  /* Prevent iOS font-size auto-boost */
  -webkit-text-size-adjust: 100%;
}

:root {
  --g1: #F6DFA0;   /* gold bright  */
  --g2: #D4A94A;   /* gold mid     */
  --g3: #9E7320;   /* gold deep    */
  --g4: #5C3F10;   /* gold muted   */
  --ink:  #0E0A06; /* near black   */
  --ink2: #1C1108; /* dark brown   */
  --ink3: #2A1A0E; /* mid brown    */
  --cr:   #FFF8EE; /* cream        */
  --cr2:  #E2C98A; /* cream muted  */

  --fd: 'Cinzel Decorative', cursive;
  --fs: 'Cinzel', serif;
  --fb: 'Cormorant Garamond', serif;
  --fu: 'Inter', sans-serif;
}

body {
  background: var(--ink);
  color: var(--cr);
  font-family: var(--fb);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

/* =====================================================
   CANVAS BACKGROUND — pure CSS/JS generated, no image
   ===================================================== */

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 20px 80px;
  overflow: hidden;
}

/* =====================================================
   CORNER ORNAMENTS
   ===================================================== */

.corner {
  position: absolute;
  width: 56px;
  height: 56px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45;
}
.corner::before, .corner::after {
  content: '';
  position: absolute;
  background: var(--g2);
}
.corner::before { width: 100%; height: 1px; top: 0; left: 0; }
.corner::after  { width: 1px; height: 100%; top: 0; left: 0; }

.corner--tl { top: 22px; left: 22px; }
.corner--tr { top: 22px; right: 22px; transform: scaleX(-1); }
.corner--bl { bottom: 22px; left: 22px; transform: scaleY(-1); }
.corner--br { bottom: 22px; right: 22px; transform: scale(-1); }

/* =====================================================
   PARTICLES
   ===================================================== */

.particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.pt {
  position: absolute;
  border-radius: 50%;
  background: var(--g1);
  animation: ptFloat linear infinite;
  opacity: 0;
}

@keyframes ptFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: var(--op); }
  88%  { opacity: calc(var(--op) * 0.3); }
  100% { transform: translateY(-108vh) translateX(var(--dx)); opacity: 0; }
}

/* =====================================================
   CONTENT
   ===================================================== */

.content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* =====================================================
   LOGO ROW
   ===================================================== */

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
  animation: fadeDown .7s ease-out .1s both;
}

.logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.6));
  transition: transform .3s, filter .3s;
  flex-shrink: 0;
}
.logo-img:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 6px 20px rgba(212,169,74,.45));
}

.logo-sep {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, var(--g2), transparent);
  opacity: .5;
  flex-shrink: 0;
}

/* =====================================================
   UNIVERSITY NAME
   ===================================================== */

.uni-name {
  font-family: var(--fu);
  font-size: clamp(.6rem, 1.8vw, .75rem);
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 18px;
  animation: fadeDown .7s ease-out .18s both;
}

/* =====================================================
   HORIZONTAL RULE
   ===================================================== */

.h-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 20px;
  animation: fadeIn .8s ease-out .25s both;
}
.h-rule__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g2));
}
.h-rule:last-of-type .h-rule__line,
.h-rule .h-rule__line:last-child {
  background: linear-gradient(90deg, var(--g2), transparent);
}
.h-rule__diamond {
  width: 6px; height: 6px;
  background: var(--g2);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* =====================================================
   MAIN TITLE — ONE LINE
   ===================================================== */

.title-link {
  display: block;
  text-decoration: none;
  margin-bottom: 16px;
  animation: fadeDown .9s ease-out .32s both;
}

.main-title {
  font-family: var(--fd);
  /* fluid — shrinks on narrow screens, stays one line */
  font-size: clamp(1.35rem, 5.6vw, 3.8rem);
  white-space: nowrap;
  letter-spacing: .06em;
  line-height: 1.15;
  background: linear-gradient(160deg, var(--cr) 10%, var(--g1) 40%, var(--g2) 72%, var(--g3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter .35s;
}

.title-link:hover .main-title {
  filter: brightness(1.15) saturate(1.2);
}

/* =====================================================
   TAGLINE
   ===================================================== */

.tagline {
  font-family: var(--fb);
  font-style: italic;
  font-size: clamp(.82rem, 2.2vw, 1.1rem);
  font-weight: 300;
  color: var(--cr2);
  letter-spacing: .06em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
  animation: fadeIn .9s ease-out .42s both;
}
.dot {
  color: var(--g2);
  font-style: normal;
  font-size: .48em;
  opacity: .8;
}

/* =====================================================
   NAV
   ===================================================== */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 50px;
  width: 100%;
  animation: fadeUp .8s ease-out .5s both;
}

.nav-btn {
  font-family: var(--fu);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cr2);
  padding: 8px 18px;
  border: 1px solid rgba(212,169,74,.28);
  border-radius: 2px;
  background: rgba(14,10,6,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color .22s, border-color .22s, background .22s, transform .22s;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  animation: fadeUp .55s ease-out calc(.55s + var(--d)) both;
  position: relative;
  overflow: hidden;
}
.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212,169,74,.1), transparent);
  transform: translateX(-100%);
  transition: transform .38s ease;
}
.nav-btn:hover::before { transform: translateX(100%); }
.nav-btn:hover {
  color: var(--g1);
  border-color: var(--g2);
  background: rgba(212,169,74,.08);
  transform: translateY(-2px);
}

/* =====================================================
   YUVANTAR
   ===================================================== */

.yuvantar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: fadeUp .9s ease-out .75s both;
}

.yuvantar-frame {
  position: relative;
  display: inline-block;
  padding: 10px;
}

/* Frame corners */
.fc {
  position: absolute;
  width: 18px;
  height: 18px;
}
.fc::before, .fc::after {
  content: '';
  position: absolute;
  background: var(--g2);
}
.fc::before { width: 100%; height: 1.5px; }
.fc::after  { height: 100%; width: 1.5px; }
.fc--tl { top:0; left:0; }
.fc--tr { top:0; right:0; transform:scaleX(-1); }
.fc--bl { bottom:0; left:0; transform:scaleY(-1); }
.fc--br { bottom:0; right:0; transform:scale(-1); }

.yuvantar-img {
  display: block;
  width: min(390px, 80vw);
  filter: drop-shadow(0 10px 36px rgba(0,0,0,.65));
  transition: transform .4s ease, filter .4s ease;
}
.yuvantar-frame a:hover .yuvantar-img {
  transform: scale(1.025);
  filter: drop-shadow(0 14px 44px rgba(212,169,74,.28)) drop-shadow(0 6px 24px rgba(0,0,0,.7));
}

/* =====================================================
   CTA BUTTONS
   ===================================================== */

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* REGISTER */
.btn-register {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 34px;
  border: 1.5px solid var(--g2);
  border-radius: 2px;
  text-decoration: none;
  overflow: hidden;
  background: transparent;
  font-family: var(--fs);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--g1);
  transition: background .3s, border-color .3s, transform .3s;
  min-height: 44px;
}

.btn-register__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 20%,
    rgba(246,223,160,.2) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: btnShimmer 2.8s ease-in-out infinite;
}
@keyframes btnShimmer {
  0%,100% { transform: translateX(-100%); }
  55%     { transform: translateX(100%);  }
}

.btn-register .arrow {
  transition: transform .2s;
  position: relative;
  z-index: 1;
  color: var(--g2);
}
.btn-register > span:not(.btn-register__glow):not(.arrow) {
  position: relative;
  z-index: 1;
}
.btn-register:hover .arrow { transform: translateX(4px); }
.btn-register:hover {
  background: rgba(212,169,74,.09);
  border-color: var(--g1);
  transform: translateY(-2px);
}

/* KNOW MORE */
.btn-more {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 11px 26px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 2px;
  background: rgba(10,6,2,.7);
  text-decoration: none;
  font-family: var(--fu);
  font-size: .75rem;
  font-weight: 300;
  color: rgba(255,248,238,.65);
  letter-spacing: .06em;
  transition: border-color .28s, color .28s, transform .28s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 44px;
  text-align: center;
}
.btn-more strong {
  font-weight: 500;
  color: var(--g2);
}
.btn-more:hover {
  border-color: rgba(212,169,74,.42);
  color: var(--cr);
  transform: translateY(-2px);
}
.btn-more:hover strong { color: var(--g1); }

/* =====================================================
   SCROLL INDICATOR
   ===================================================== */

.scroll-ind {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .35;
  pointer-events: none;
  animation: fadeIn 1s ease-out 2s both;
}
.scroll-ind__bar {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--g2), transparent);
  animation: scrollPulse 1.9s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(.75); opacity:.3; }
  50%     { transform: scaleY(1);   opacity:1;  }
}
.scroll-ind span {
  font-family: var(--fu);
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--g2);
}

/* =====================================================
   KEYFRAMES
   ===================================================== */

@keyframes fadeDown {
  from { opacity:0; transform:translateY(-18px); }
  to   { opacity:1; transform:translateY(0);     }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0);    }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 480px) {
  .hero { padding: 44px 16px 72px; }

  .logo-img  { height: 52px; }
  .logo-sep  { height: 36px; }
  .logo-row  { gap: 16px; margin-bottom: 14px; }

  .uni-name  { font-size: .58rem; letter-spacing: .16em; margin-bottom: 14px; }

  /* Title stays one line — shrinks fluidly */
  .main-title { font-size: clamp(1rem, 7.2vw, 1.9rem); letter-spacing: .03em; }

  .tagline   { font-size: .82rem; gap: 8px; margin-bottom: 24px; }

  .main-nav  { gap: 6px; margin-bottom: 36px; }
  .nav-btn   { font-size: .62rem; padding: 7px 13px; letter-spacing: .1em; }

  .yuvantar-img { width: min(300px, 86vw); }

  .btn-register { padding: 11px 22px; font-size: .72rem; }
  .btn-more     { font-size: .72rem; padding: 10px 18px; }

  .corner { width: 38px; height: 38px; }
  .corner--tl, .corner--tr { top: 14px; }
  .corner--bl, .corner--br { bottom: 14px; }
  .corner--tl, .corner--bl { left: 14px; }
  .corner--tr, .corner--br { right: 14px; }
}

@media (max-width: 360px) {
  .main-title { font-size: clamp(.88rem, 8.5vw, 1.3rem); }
  .uni-name   { font-size: .5rem; letter-spacing: .1em; }
}