@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #f2c14e; /* Gold */
  --primary-hover: #e89b3c;
  --bg-dark: #0f1015;
  --bg-surface: #1a1c25;
  --bg-main: #20222d;
  --text-white: #ffffff;
  --text-main: #ffffff;
  --text-muted: #8a8d99;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: var(--bg-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

main {
  padding-top: 120px;
}

.lang-bar {
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.lang-select {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-select option {
  color: #000;
}

.header-container {
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.menu-trigger .bar {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-center {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-logo {
  max-height: 36px;
  border-radius: 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--primary);
}

.site-footer {
  background: var(--bg-surface);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}

.btn-cta {
  background: var(--primary);
  color: #14151a;
  padding: 10px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
}

.btn-cta:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Drawer Sidebar */
.drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 320px;
  height: 100%;
  background: var(--bg-surface);
  z-index: 2000;
  transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  left: 0;
  box-shadow: 20px 0 60px rgba(0,0,0,0.5);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.drawer-header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.drawer-header .logo img {
  max-height: 2.25rem;
  display: block;
}

.close-drawer {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

.drawer-menu {
  list-style: none;
  flex: 1;
}

.drawer-menu li {
  margin-bottom: 20px;
}

.menu-divider {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 0 0 20px !important;
  opacity: 0.6;
}


.drawer-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

.drawer-menu a:hover, .drawer-menu a.active {
  color: var(--primary);
  padding-left: 10px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 1500;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.drawer-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Image lightbox (click-to-enlarge) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* Hero Section */
.hero-full {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
  z-index: -1;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15,16,21,0.2), rgba(15,16,21,0.9));
}

.hero-inner {
  max-width: 800px;
  padding-left: 40px;
}

.badge {
  display: inline-block;
  background: rgba(242, 193, 78, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(242, 193, 78, 0.2);
}

.main-title {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.main-title .highlight {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 48px;
}

.btn-gold {
  background: var(--primary);
  color: #14151a;
  padding: 18px 40px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition);
}

.btn-gold:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Sections */
.landing-section {
  padding: 120px 0;
  background: var(--bg-dark);
}

.section-header-center {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Modern Event Cards */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 40px;
}

.event-card-modern {
  text-decoration: none;
  color: inherit;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.event-card-modern:hover {
  transform: translateY(-10px);
}

.card-image {
  position: relative;
  height: 300px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card-modern:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.card-type {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #fff;
  color: #000;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-body {
  padding: 32px;
}

.card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .main-title { font-size: 3.5rem; }
  .hero-inner { padding: 0 24px; }
  .header-container { padding: 0 20px; }
  .main-header { padding: 15px 0; }
  main { padding-top: 100px; }
  .brand-center { font-size: 1rem; }
  .header-nav { gap: 16px; }
  .event-grid { grid-template-columns: 1fr; }
}

html {
  scroll-behavior: smooth;
}

/* ===== Event Detail Page (index.html) ===== */

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  max-width: 760px;
  padding: 60px 24px 100px;
}

.view-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 24px 0 20px;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #14151a;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Generic "no data" placeholder for missing images/content */
.no-data-box {
  width: 100%;
  min-height: 200px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

/* About */
.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  order: 1;
}

.about-image {
  order: 2;
}

.about-text .section-title {
  margin-bottom: 24px;
}

.rich-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  white-space: pre-line;
}

/* Project cards (competition projects) */
.event-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.event-card .body {
  padding: 28px;
}

.event-card .body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Participant cards (per-person registration data, repeated for team_size) */
.participant-card {
  background: var(--bg-main);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 28px;
}

.participant-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.participant-card-name {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.participant-check {
  display: none;
  flex-shrink: 0;
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 700;
}

.participant-check.complete {
  display: inline-block;
}

.participant-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.participant-card.collapsed .participant-chevron {
  transform: rotate(-90deg);
}

.participant-card-body {
  margin-top: 20px;
}

.participant-card.collapsed .participant-card-body {
  display: none;
}

.participant-badge {
  display: inline-block;
  background: rgba(242, 193, 78, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 6px 18px;
  border-radius: 100px;
}

.participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.meal-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Registration form */
.form-container {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 5vw, 3.75rem);
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: 48px;
}

.form-header .section-title {
  margin-bottom: 12px;
}

form.registration label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

form.registration input,
form.registration select,
form.registration textarea {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

form.registration input:focus,
form.registration select:focus,
form.registration textarea:focus {
  outline: none;
  border-color: var(--primary);
}

form.registration input[type="file"] {
  cursor: pointer;
}

form.registration button[type="submit"] {
  width: 100%;
  background: var(--primary);
  color: #14151a;
  border: none;
  border-radius: 100px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.size-row {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: clamp(0.875rem, 4vw, 1.25rem);
}

.size-row-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: clamp(0.75rem, 3vw, 1rem);
  padding-right: clamp(1.5rem, 8vw, 2rem);
}

.size-row-fields label {
  min-width: 0;
}

.remove-size-row {
  position: absolute;
  top: clamp(0.75rem, 3vw, 0.875rem);
  right: clamp(0.75rem, 3vw, 0.875rem);
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 50%;
  color: #ef4444;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.remove-size-row:hover {
  background: rgba(239, 68, 68, 0.2);
}

.qty-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.qty-stepper:focus-within {
  border-color: var(--primary);
}

.qty-stepper button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  width: clamp(1.75rem, 8vw, 2.75rem);
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}

.qty-stepper button:hover {
  color: var(--primary);
}

.qty-stepper input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: none !important;
  text-align: center;
  padding: 14px 4px !important;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

form.registration button[type="submit"]:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .hero-content { padding: 40px 20px 80px; }
  .section-grid { grid-template-columns: 1fr; }
  .about-image { order: 1; }
  .about-text { order: 2; }
  .form-container { padding: 32px; }
}
