/* ========================================
   GLOBAL RESET & VARIABLES
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #222233;
  --text-primary: #eee;
  --text-secondary: #a0a0b8;
  --text-muted: #6e6e8a;
  --accent: #5a9cf5;
  --accent-light: #7db8ff;
  --accent-glow: rgba(90, 156, 245, 0.25);
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.2);
  --red-accent: #ff5566;
  --green-accent: #00d68f;
  --border-color: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --container-max: 1100px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #b8d8ff;
  text-decoration: underline;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 72px 24px 40px;
  overflow: hidden;
  background: linear-gradient(170deg, #0a0e1a 0%, #0e1428 40%, #0a1020 100%);
}

.hero-bg-anim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 40%, rgba(90, 156, 245, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 60%, rgba(0, 214, 143, 0.06) 0%, transparent 70%);
  animation: heroPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroPulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 1;
}

.hero-icon {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(90, 156, 245, 0.25);
  flex-shrink: 0;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.hero-sub:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.hero-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 8px var(--green-accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ========================================
   VIDEO SHOWCASE
   ======================================== */
.video-showcase {
  padding: 60px 0 40px;
  background: var(--bg-primary);
}

.video-showcase .container {
  max-width: 1200px;
}

.video-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.video-card {
  width: 88%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-card.offset-right {
  margin-left: auto;
  margin-right: 0;
}

.video-card.offset-left {
  margin-left: 0;
  margin-right: auto;
}

/* Side-by-side video pair */
.video-pair {
  display: flex;
  gap: 3px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s;
}

.video-card:hover .video-pair {
  box-shadow: 0 8px 40px rgba(90, 156, 245, 0.12), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.video-half {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.video-half video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.video-prompt {
  margin-top: 12px;
  padding: 0 4px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

.video-prompt::before {
  content: '"';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.video-prompt::after {
  content: '"';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
  padding: 60px 0 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
  background: linear-gradient(135deg, #fff 40%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.content-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.content-block p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block strong {
  color: var(--text-primary);
}

.content-block ul,
.content-block ol {
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.content-block li {
  margin-bottom: 8px;
}

.content-block li ul {
  margin-top: 6px;
}

.content-block h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.content-block blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 16px 0;
  background: rgba(90, 156, 245, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-block blockquote p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.intro-block {
  text-align: center;
}

.prize-note {
  color: var(--red-accent) !important;
  font-weight: 700;
  font-size: 1rem !important;
}

/* Paper links */
.paper-link {
  display: inline;
  color: var(--accent-light);
}

.paper-link:hover {
  color: #b8d8ff;
}

.link-icon {
  display: inline-block;
  font-size: 0.8em;
  margin-left: 4px;
  transition: transform 0.2s;
}

.paper-link:hover .link-icon {
  transform: translate(2px, -2px);
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  position: relative;
  align-items: baseline;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  border: 2px solid var(--bg-primary);
}

.timeline-date {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-light);
  min-width: 100px;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========================================
   FORMULA
   ======================================== */
.formula {
  text-align: center;
  padding: 20px;
  margin: 16px 0 0;
  background: rgba(90, 156, 245, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 156, 245, 0.1);
  overflow-x: auto;
}

/* ========================================
   AWARDS
   ======================================== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.award-card:hover {
  transform: translateY(-4px);
}

.award-card.champion {
  border-color: rgba(255, 215, 0, 0.2);
}

.award-card.champion:hover {
  box-shadow: 0 8px 32px var(--gold-glow);
}

.award-card.innovation {
  border-color: rgba(90, 156, 245, 0.2);
}

.award-card.innovation:hover {
  box-shadow: 0 8px 32px var(--accent-glow);
}

.award-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.award-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.award-prize {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #ffb700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.award-extra {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.award-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.site-footer p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-sub {
  font-weight: 400 !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 4px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero {
    padding: 48px 16px 32px;
    min-height: auto;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .hero-icon {
    width: 64px;
    height: 64px;
  }

  .video-card {
    width: 100%;
  }

  .video-card.offset-right,
  .video-card.offset-left {
    margin-left: 0;
    margin-right: 0;
  }

  .video-pair {
    flex-direction: column;
  }

  .content-block {
    padding: 20px;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .subsection-title {
    font-size: 1.15rem;
  }
}
