:root {
  /* Light theme with vibrant gradients */
  --bg: #f0f4f8;
  --bg-alt: #e8f0f7;
  --card: rgba(255, 255, 255, 0.9);
  --text: #1a202c;
  --muted: #4a5568;
  --brand: #3b82f6;   /* blue */
  --brand-2: #2563eb; /* darker blue */
  --accent: #8b5cf6;  /* purple */
  --accent-2: #ec4899; /* pink */
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes gradientShift {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}
html { scroll-behavior: smooth; }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.3s ease;
}
.brand:hover {
  filter: brightness(0.9);
}
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}
.nav-list {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}
.nav-list a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-list a:hover::before,
.nav-list a.active::before {
  width: 80%;
}
.nav-list a:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}
.nav-list a.active { 
  background: rgba(59, 130, 246, 0.15);
  color: var(--brand);
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(ellipse 1200px 600px at 50% -100px, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 1000px 500px at 60% -150px, rgba(139, 92, 246, 0.1), transparent 60%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 48px);
  line-height: 1.2;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--brand) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
  position: relative;
  z-index: 1;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-subtitle {
  color: var(--muted);
  margin: 0 0 32px;
  animation: fadeInUp 0.8s ease 0.2s both;
  position: relative;
  z-index: 1;
}
.hero-cta { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before {
  left: 100%;
}
.btn:hover { 
  transform: translateY(-3px) scale(1.05); 
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}
.btn.primary { 
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: none; 
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn.primary:hover { 
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
  filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Sections */
.section { 
  padding: 80px 0; 
  position: relative;
  z-index: 1;
}
.section.alt { 
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--border); 
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.section h2 { 
  margin-top: 0; 
  font-size: clamp(24px, 4vw, 32px);
  background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 12px;
}
.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
}
.skip-link { position: absolute; left: -999px; top: -999px; background: #000; color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; }

/* Logos */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.logo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.logo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.logo-card:hover::before {
  opacity: 1;
}
.logo-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25), var(--shadow-glow);
  background: rgba(255, 255, 255, 0.95);
}
.logo-card img { 
  max-width: 100%; 
  max-height: 64px; 
  object-fit: contain;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}
.logo-card:hover img {
  transform: scale(1.1);
}
.centered { text-align: center; }

#organizers .logos-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}


#organizers .logo-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#organizers .logo-card img {
  width: 100%;
  height: auto;
  transform: scale(2.4);
  transform-origin: center;
}

#organizers .logo-card:nth-child(2) img {
  transform: scale(4.8);
}

#sponsors .logos-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

#sponsors .logo-card img {
  max-height: 90px;
}

#sponsors .logo-card:nth-child(3) img {
  max-height: 130px;
}

#sponsors .logo-card:nth-child(4) img {
  max-height: 140px;
}

#sponsors .logo-card:nth-child(5) img {
  max-height: 180px;
  transform: scale(1.2);
  transform-origin: center;
}

/* Lists and tables */
.steps { 
  padding-left: 24px; 
  list-style: none;
  counter-reset: step-counter;
}
.steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  padding: 12px 16px 12px 48px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9em;
  color: white;
}
.steps li:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(8px);
  border-left-color: var(--accent);
}
.actions { 
  margin-top: 24px; 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
}

.table-wrap { 
  overflow-x: auto; 
  border: 1px solid var(--border); 
  border-radius: 16px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; min-width: 580px; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.table thead th { 
  text-align: left; 
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}
.table tbody tr { 
  transition: all 0.3s ease;
}
.table tbody tr:hover { 
  background: rgba(59, 130, 246, 0.08);
  transform: scale(1.01);
}
.table tbody tr:last-child td {
  border-bottom: none;
}

.links { 
  display: grid; 
  gap: 12px; 
  padding-left: 0;
  list-style: none;
}
.links li {
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.links li:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(8px);
}
.links a { 
  color: var(--brand); 
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.links a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}
.links a:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.links a:hover { 
  color: var(--accent);
}

.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.rule-card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 24px; 
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.rule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.rule-card:hover::before {
  transform: scaleX(1);
}
.rule-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25), var(--shadow-glow);
  background: rgba(255, 255, 255, 0.95);
}
.notice.small { 
  color: var(--muted); 
  font-size: 13px; 
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
}
.notice.small a {
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s ease;
}
.notice.small a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  padding: 32px 0; 
  color: var(--muted); 
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}
.site-footer .small { font-size: 12px; }

/* Map */
.map-embed { 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.4s ease;
}
.map-embed:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25), var(--shadow-glow);
  transform: translateY(-4px);
}
.map-embed iframe { width: 100%; height: min(60vh, 520px); display: block; }

/* Responsive nav */
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .nav-list { 
    display: none; 
    position: absolute; 
    right: 16px; 
    top: 56px; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px; 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    flex-direction: column; 
    gap: 8px; 
    box-shadow: var(--shadow);
    min-width: 180px;
  }
  .nav-list.open { display: flex; }
}

/* Focus styles */
:focus-visible { 
  outline: 2px solid var(--brand); 
  outline-offset: 2px; 
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

/* Scroll animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Add subtle glow effects */
.section {
  animation: fadeInUp 0.6s ease both;
}

/* Enhanced link styles */
.links a {
  position: relative;
  padding-left: 8px;
  transition: all 0.3s ease;
}
.links a::before {
  content: '→';
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: all 0.3s ease;
}
.links a:hover::before {
  opacity: 1;
  left: -16px;
}
.links a:hover {
  color: var(--brand);
  padding-left: 12px;
}

/* Contact section enhancements */
#contact p {
  font-size: 1.1em;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border-left: 3px solid var(--brand);
  transition: all 0.3s ease;
}
#contact p:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(8px);
  border-left-color: var(--accent);
}
#contact a {
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}
#contact a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.3s ease;
}
#contact a:hover::after {
  width: 100%;
}
#contact a:hover {
  color: var(--accent);
}

/* Add glow effect to hero title on hover */
.hero h1 {
  transition: filter 0.3s ease;
}
.hero:hover h1 {
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

/* Enhanced section headings */
.section h3 {
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.3em;
  position: relative;
  padding-left: 16px;
}
.section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: 2px;
}


