/* 1. CSS Custom Properties Setup */
:root {
  --primary-pink: #FF2A93;       /* Main high-visibility pink from the logos */
  --bg-dark: #0B0B0B;            /* Deep black for main layout backgrounds */
  --bg-card: #1F1F1F;            /* Charcoal gray for section cards and containers */
  --accent-teal: #00A896;        /* High-energy secondary teal for subtle highlights */
  --accent-orange: #FF6B00;      /* Secondary racing orange for alerts/subtitles */
  --text-light: #FFFFFF;         /* Bright white for crisp readability */
  --text-muted: #A0A0A0;         /* Soft gray for less important paragraph text */
}

/* 2. Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Arial Black', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 3. Typography & Section Headers */
.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  text-transform: uppercase;
}

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

.section-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 30px;
  border-left: 6px solid var(--primary-pink);
  padding-left: 15px;
}

.text-muted {
  color: var(--text-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}

/* 4. Navigation Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(11, 11, 11, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span {
  color: var(--primary-pink);
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-left: 20px;
  font-weight: bold;
  transition: color 0.2s ease;
}

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

/* 5. Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(11,11,11,1) 40%, rgba(255, 42, 147, 0.15) 100%);
  border-bottom: 3px solid var(--primary-pink);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin: 20px 0 40px 0;
  color: var(--text-muted);
  font-family: system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 6. Buttons (High Contrast Rules Applied) */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-pink);
  /* Pure black text provides the highest contrast ratio over the vibrant pink */
  color: var(--bg-dark); 
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  font-size: 1rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.03);
  background-color: #ff54ab; /* Slightly brighter pink for hover feedback */
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary-pink);
  padding: 10px 20px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-pink);
  color: var(--bg-dark);
}

/* 7. Layout Sections */
.section-block {
  padding: 80px 0;
}

/* 8. Event Schedule List Layout (--bg-card) */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.schedule-card {
  background-color: var(--bg-card);
  padding: 25px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-right: 4px solid var(--bg-card);
  transition: border-right-color 0.2s ease;
}

.schedule-card:hover {
  border-right-color: var(--primary-pink);
}

.schedule-card h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 8px 0;
}

/* 9. Athlete Cards Layout (--bg-card) */
.athlete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.athlete-card {
  background-color: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.athlete-card:hover {
  transform: translateY(-5px);
}

.athlete-image-placeholder {
  height: 250px;
  background: linear-gradient(45deg, #111, #2a2a2a);
  position: relative;
}

/* Diagonal slice line for that aggressive racing aesthetic */
.athlete-image-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-pink);
}

.athlete-details {
  padding: 25px;
}

.athlete-details h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 10px 0;
}

/* 10. Badges (Teal and Orange Accents applied here) */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  color: var(--text-light);
}

.badge-deka {
  background-color: var(--accent-teal);
}

.badge-ocr {
  background-color: var(--accent-orange);
}

/* 11. Responsive Tweak */
@media (max-width: 768px) {
  .schedule-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .btn-secondary {
    width: 100%;
  }
}

/* 12. About Section Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.about-lead {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-content p.text-muted {
  margin-bottom: 15px;
}

/* Metrics Column Container */
.about-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Individual Metric Cards utilizing --bg-card */
.metric-box {
  background-color: var(--bg-card);
  padding: 20px 25px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* Aggressive vertical indicator lines inside the metric boxes */
.metric-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.accent-line-teal { background-color: var(--accent-teal); }
.accent-line-orange { background-color: var(--accent-orange); }
.accent-line-pink { background-color: var(--primary-pink); }

.metric-val {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 5px;
}

.metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Tweak for Smaller Screens */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

