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

:root {
  /* Colors */
  --bg-dark: #0a0f1a;
  --bg-panel: #111827;
  --bg-panel-hover: #1f2937;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --accent-blue: #3b82f6;
  --accent-cyan: #00e5ff;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(17, 24, 39, 0.7);
  
  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Layout */
  --nav-height: 100px;
  --container-width: 1200px;
}



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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.05), transparent 25%);
}

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

/* Typography */
h1, h2, h3, h4, .brand {
  font-family: var(--font-display);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-dot {
  width: 16px;
  height: 16px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.6125rem 1.225rem; /* ~30% reduction from 0.875rem 1.75rem */
  font-size: 0.75rem;         /* ~30% reduction from 1rem (roughly) */
}

@media (max-width: 768px) {
  .btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.65rem;
    border-radius: 4px;
  }
}


.btn-primary {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 6rem 0;
  padding-top: calc(var(--nav-height) + 2rem);
}

.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(var(--nav-height) + 0.6rem);
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
  z-index: -1;
  border-radius: 50%;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  flex: 1; /* This pushes brand and lang-switch to the sides */
}


.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Education Cards */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Dashboard Style (Current Analysis) */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.analysis-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.match-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.match-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.stat-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.stat-value.cyan { color: var(--accent-cyan); }
.stat-value.green { color: var(--accent-green); }

.analysis-footer {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: rgba(16, 185, 129, 0.05);
  border-left: 2px solid var(--accent-green);
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Past Events List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 3fr;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  gap: 1rem;
}

.history-item .result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.result.win { color: var(--accent-green); }
.result.lose { color: var(--accent-red); }

.history-item .takeaway {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Upcoming Placeholders */
.upcoming-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 1rem;
  color: var(--text-muted);
}

.upcoming-placeholder svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: #06090f;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-panel);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.social-links a:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.disclaimer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  :root {
    --nav-height: auto;
  }
  
  .navbar {
    height: auto;
    padding: 1rem 0;
  }

  .navbar .container {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .nav-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .nav-buttons {
    display: contents; /* Makes buttons direct children of grid wrapper */
  }

  .lang-switch {
    display: block;
    width: 100%;
  }

  .lang-switch #lang-toggle {
    width: 100%;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.65rem !important;
  }

  .brand {
    font-size: 2.2rem;
  }

  .hero h1 { font-size: 2.5rem; }
  
  /* Prevent content overlap with the new 3x2 navbar */
  section, .hero {
    padding-top: 240px !important;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .stats-row {
    flex-wrap: wrap;
  }
}
