/* ==========================================================================
   KHOJ 2026 — Registration Countdown Landing Page
   IIT Ashram · Built with HTML5, CSS3, Bootstrap 5.3 grid, vanilla JS
   ========================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Brand — Deep Blue */
  --blue-900: #081a3d;
  --blue-800: #0c2358;
  --blue-700: #123a7a;
  --blue-600: #1a4fa0;
  --blue-400: #4f83d6;
  --blue-glow: #a9c9f7;
  --blue-200: #1c3568;
  --blue-100: #142650;

  /* Brand — Red */
  --orange-600: #c81e2c;
  --orange-500: #e63946;
  --orange-400: #ff6b6b;

  /* Brand — Gold / Yellow */
  --gold-500: #f5b400;
  --gold-400: #ffc93c;
  --gold-300: #ffe07a;

  /* Neutrals — dark navy is the permanent default */
  --ink: #eef3ff;
  --ink-soft: #aab8dc;
  --paper: #0a1730;
  --white: #0e1c3a;

  /* Surfaces */
  --glass-bg: rgba(18, 30, 61, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55);

  /* Gradients */
  --grad-hero-bg: radial-gradient(120% 90% at 50% -10%, #23355e 0%, #3c5ca6 45%, #2d467c 100%);
  --grad-primary: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 45%, var(--orange-500) 100%);
  --grad-accent: linear-gradient(120deg, var(--orange-500), var(--gold-400));
  --grad-text: linear-gradient(100deg, var(--blue-400) 0%, var(--blue-glow) 35%, var(--orange-500) 70%, var(--gold-500) 100%);
  --grad-ring: conic-gradient(from 180deg, var(--blue-600), var(--orange-500), var(--gold-400), var(--blue-600));

  /* Type */
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  /* Radius & shadow */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-soft: 0 10px 30px -12px rgba(11, 27, 61, 0.25);
  --shadow-lift: 0 18px 40px -14px rgba(11, 27, 61, 0.32);

  /* Spacing rhythm (compresses automatically via clamp) */
  --space-section: clamp(2rem, 6vw, 5rem);
  --space-stack: clamp(0.9rem, 2.4vw, 1.75rem);

  color-scheme: dark;
}

/* ---------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--grad-hero-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1140px;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------------------------------------------------------------------
   3. AMBIENT BACKGROUND — blobs, rings, particles
   --------------------------------------------------------------------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  will-change: transform;
}

.blob-blue {
  width: clamp(260px, 38vw, 520px);
  height: clamp(260px, 38vw, 520px);
  left: -10%;
  top: -8%;
  background: radial-gradient(circle at 30% 30%, var(--blue-400), var(--blue-700) 70%);
  animation: drift-a 22s ease-in-out infinite;
}

.blob-orange {
  width: clamp(220px, 32vw, 460px);
  height: clamp(220px, 32vw, 460px);
  right: -8%;
  top: 8%;
  background: radial-gradient(circle at 60% 40%, var(--orange-400), var(--orange-600) 70%);
  animation: drift-b 26s ease-in-out infinite;
}

.blob-gold {
  width: clamp(200px, 28vw, 400px);
  height: clamp(200px, 28vw, 400px);
  left: 18%;
  bottom: -12%;
  background: radial-gradient(circle at 50% 50%, var(--gold-300), var(--gold-500) 75%);
  opacity: 0.35;
  animation: drift-c 30s ease-in-out infinite;
}

.ring-outline {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--blue-200);
  opacity: 0.5;
}

.ring-one {
  width: 340px;
  height: 340px;
  right: 6%;
  bottom: 6%;
  animation: spin-slow 60s linear infinite;
}

.ring-two {
  width: 180px;
  height: 180px;
  left: 6%;
  top: 20%;
  border-color: var(--gold-400);
  animation: spin-slow 40s linear infinite reverse;
}

.particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  opacity: 0.6;
  animation: rise 14s linear infinite;
}

.particles span:nth-child(1) {
  left: 8%;
  animation-delay: 0s;
  background: var(--blue-400);
}

.particles span:nth-child(2) {
  left: 18%;
  animation-delay: 2s;
  background: var(--orange-500);
}

.particles span:nth-child(3) {
  left: 32%;
  animation-delay: 4s;
}

.particles span:nth-child(4) {
  left: 48%;
  animation-delay: 1s;
  background: var(--blue-400);
}

.particles span:nth-child(5) {
  left: 61%;
  animation-delay: 6s;
}

.particles span:nth-child(6) {
  left: 72%;
  animation-delay: 3s;
  background: var(--orange-500);
}

.particles span:nth-child(7) {
  left: 84%;
  animation-delay: 5s;
}

.particles span:nth-child(8) {
  left: 92%;
  animation-delay: 7s;
  background: var(--blue-400);
}

.particles span:nth-child(9) {
  left: 40%;
  animation-delay: 9s;
  background: var(--orange-500);
}

.particles span:nth-child(10) {
  left: 55%;
  animation-delay: 11s;
}

@keyframes drift-a {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(4%, 6%) scale(1.08);
  }
}

@keyframes drift-b {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-5%, 4%) scale(1.05);
  }
}

@keyframes drift-c {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(3%, -5%) scale(1.1);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100vh) scale(0.6);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------------
   4. CORNER RIBBON
   --------------------------------------------------------------------- */
.corner-ribbon {
  position: fixed;
  top: clamp(12px, 3vw, 22px);
  right: clamp(12px, 3vw, 22px);
  z-index: 50;
}

.ribbon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.68rem, 1.6vw, 0.85rem);
  color: var(--white);
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--grad-accent);
  box-shadow: 0 8px 20px -6px rgba(200, 30, 44, 0.55);
  animation: pill-float 4s ease-in-out infinite;
}

@keyframes pill-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ---------------------------------------------------------------------
   5. HERO
   --------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 8vh, 3rem) clamp(1.5rem, 4vh, 2.5rem);
}

/* width */
::-webkit-scrollbar {
  width: 2px;
}



/* Handle */
::-webkit-scrollbar-thumb {
  background: #384255;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1.6vh, 0.9rem);
}

.hero-logo {
  width: 35%;
  height: auto;
  margin-bottom: clamp(0.15rem, 1vh, 0.5rem);
  filter: drop-shadow(0 10px 24px rgba(11, 27, 61, 0.18));
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 35px;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-highlight {
  margin: 0;
  line-height: 1;
}

.gradient-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 45px;
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 6s ease-in-out infinite;
}

@keyframes sheen {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(0.85rem, 1.6vw + 0.3rem, 1.15rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto;
  font-weight: 500;
}

/* ---------------------------------------------------------------------
   6. GLASS SURFACE
   --------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--glass-shadow);
}

/* ---------------------------------------------------------------------
   7. COUNTDOWN
   --------------------------------------------------------------------- */
.countdown-card {
  margin-top: clamp(0.6rem, 2vh, 1.1rem);
  border-radius: var(--r-lg);
  padding: clamp(0.9rem, 2.4vw, 1.75rem) clamp(0.7rem, 3vw, 2rem);
  position: relative;
}

.countdown-card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-ring);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.6vw, 1rem);
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: clamp(58px, 15vw, 96px);
  padding: clamp(0.5rem, 1.6vw, 0.9rem) 0.25rem;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px -10px rgba(11, 27, 61, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -12px rgba(200, 30, 44, 0.45), 0 0 0 2px var(--gold-400);
}

.countdown-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 4.4vw, 2.4rem);
  color: var(--blue-800);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), opacity 0.35s ease;
}

.countdown-number.tick {
  animation: number-pop 0.45s cubic-bezier(.2, .8, .2, 1);
}

@keyframes number-pop {
  0% {
    transform: translateY(-14px);
    opacity: 0;
  }

  60% {
    transform: translateY(2px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.countdown-label {
  font-size: clamp(0.58rem, 1.4vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
}

.countdown-colon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--orange-500);
  margin-top: -1rem;
}

/* ---------------------------------------------------------------------
   8. REGISTRATION STATUS
   --------------------------------------------------------------------- */
.status-card {
  margin-top: clamp(0.6rem, 2vh, 1rem);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(18, 30, 61, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  text-align: left;
  max-width: 92vw;
}

.status-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.status-text strong {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.6vw, 0.9rem);
  color: white;
}

.status-text span {
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  color: var(--ink-soft);
}

.pulse-dot {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  display: grid;
  place-items: center;
}

.pulse-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  position: relative;
}

.pulse-core::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--orange-500);
  opacity: 0.5;
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.55;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------------
   9. SECTION RHYTHM
   --------------------------------------------------------------------- */
section {
  padding-block: var(--space-section);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  text-align: center;
  color: var(--ink);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0.6em auto 0;
  border-radius: 999px;
  background: var(--grad-accent);
}

/* ---------------------------------------------------------------------
   10. INFO CARDS
   --------------------------------------------------------------------- */
.info-card {
  height: 100%;
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -20px rgba(11, 27, 61, 0.4);
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.7rem;
  border-radius: 50%;
  background: var(--grad-primary);
  margin-bottom: 1rem;
  box-shadow: 0 10px 22px -8px rgba(18, 58, 122, 0.5);
}

.info-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.info-lead {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.info-lead-strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--orange-600);
  margin-bottom: 0.35rem;
}

.info-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.info-list li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-glow);
  background: var(--blue-100);
  padding: 0.3em 0.75em;
  border-radius: 999px;
}

.info-list-plain li {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-400));
  color: var(--blue-900);
}

/* ---------------------------------------------------------------------
   11. WHY PARTICIPATE
   --------------------------------------------------------------------- */
.why-card {
  height: 100%;
  border-radius: var(--r-md);
  padding: clamp(1.1rem, 2.6vw, 1.6rem) 1rem;
  text-align: center;
  background: rgba(18, 30, 61, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lift);
  background: rgba(18, 30, 61, 0.85);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  color: var(--orange-600);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--blue-100), var(--white));
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.82rem, 1.8vw, 0.98rem);
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

/* ---------------------------------------------------------------------
   12. CTA
   --------------------------------------------------------------------- */
.cta-section {
  padding-block: clamp(1.5rem, 5vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}

.btn-notify {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--white);
  background: var(--grad-primary);
  background-size: 180% auto;
  border: none;
  padding: 0.95em 2.4em;
  border-radius: 999px;
  cursor: not-allowed;
  position: relative;
  box-shadow: 0 16px 34px -12px rgba(18, 58, 122, 0.55);
  transition: background-position 0.6s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-notify:hover {
  background-position: 100% center;
  box-shadow: 0 20px 44px -10px rgba(230, 57, 70, 0.6), 0 0 0 6px rgba(255, 201, 60, 0.25);
  transform: translateY(-2px);
}

.btn-notify:disabled {
  opacity: 0.92;
}

.powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 0.4em 0.9em;
  border-radius: 999px;
}

.powered-badge svg {
  width: 15px;
  height: 15px;
  color: var(--orange-500);
}

/* ---------------------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--blue-100);
}

.site-footer p {
  margin: 0.2rem 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-sub {
  font-weight: 600;
  color: var(--blue-glow);
}

/* ---------------------------------------------------------------------
   14. ENTRANCE ANIMATIONS
   --------------------------------------------------------------------- */
.animate-fade-down {
  animation: fade-down 0.8s cubic-bezier(.2, .8, .2, 1) both;
}

.animate-fade-up {
  animation: fade-up 0.8s cubic-bezier(.2, .8, .2, 1) both;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1);
}

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

/* ---------------------------------------------------------------------
   15. RESPONSIVE — mobile compact, scale up progressively
   --------------------------------------------------------------------- */
@media (max-width: 380px) {
  .countdown-colon {
    display: none;
  }

  .countdown-grid {
    gap: 0.4rem;
  }

  .countdown-box {
    width: 22.5%;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-block: 4.25rem 1.25rem;
  }

  .hero-inner {
    gap: 0.5rem;
  }

  section {
    padding-block: 2.25rem;
  }

  .status-card {
    padding: 0.5rem 0.9rem;
  }

  .why-card {
    padding: 1rem 0.75rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-block: 5rem 2rem;
  }

}

@media (max-width: 768px) {
  .hero {
    padding-block: 5rem 2rem;
  }

  .hero-logo {
    width: 70%;
  }

  .gradient-text {
    font-size: 25px;
  }

  .countdown-card {
    width: 98%;
  }

}

@media (min-width: 992px) {
  .countdown-card {
    padding: 2rem 2.5rem;
  }
}

/* ---------------------------------------------------------------------
   16. REDUCED MOTION
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}