/* Root variables for easy theming */
:root {
  --primary-color: #e10600; /* Classic F1 red */
  --dark-bg: #0f0f0f;
  --light-bg: #f5f5f5;
  --text-color: #ffffff;
  --accent-color: #b9b9b9;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(6px);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.nav-links li a {
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  background-image: url('../e6010c6c-66da-4c5e-89c0-f079824a2b24.png');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-color);
  max-width: 80%;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #b10504;
}

/* Countdown Section */
.countdown-section {
  background: var(--light-bg);
  color: #111;
  padding: 4rem 0;
  text-align: center;
}

.countdown-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark-bg);
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  justify-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.time-box {
  background: var(--dark-bg);
  color: var(--text-color);
  padding: 1rem;
  border-radius: 6px;
  width: 100%;
  text-align: center;
}

.time-box span:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.time-box .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
}

/* Schedule Section */
.schedule-section {
  background: var(--dark-bg);
  padding: 4rem 0;
  text-align: center;
}

.schedule-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr 2fr;
}

.schedule-header {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
}

.schedule-row:not(.schedule-header) {
  background: #1a1a1a;
  color: var(--text-color);
  border-bottom: 1px solid #2e2e2e;
}

.schedule-row:nth-child(even):not(.schedule-header) {
  background: #222;
}

.schedule-col {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}

.col-round {
  text-align: center;
}

/* Standings Section */
.standings-section {
  background: var(--light-bg);
  color: #111;
  padding: 4rem 0;
  text-align: center;
}

.standings-placeholder {
  margin-top: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 4px;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-section {
  background: var(--dark-bg);
  padding: 4rem 0;
  text-align: center;
}

.about-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-section .section-intro {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Contact Section */
.contact-section {
  background: var(--light-bg);
  color: #111;
  padding: 4rem 0;
  text-align: center;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-row {
  display: flex;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-main);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.3);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

/* Footer */
.footer {
  background: #0d0d0d;
  color: var(--accent-color);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  .hero-content h2 {
    font-size: 2.4rem;
  }
  .countdown-timer {
    grid-template-columns: repeat(2, 1fr);
  }
  .schedule-row {
    grid-template-columns: 0.8fr 2.5fr 1.8fr 1.8fr;
  }
  .contact-form .form-row {
    flex-direction: column;
  }
}