/* Root variables */
:root {
  --color-bg: #0d0d33;
  --color-bg-light: #15153d;
  --color-primary: #6b4cff;
  --color-accent: #00deba;
  --color-grey: #dedbed;
  --color-grey2: #f7f5ff;
  --container-width: 1200px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--color-bg);
  color: var(--color-grey);
  scroll-behavior: smooth;
}

/* Container */
.container {
  max-width: var(--container-width);
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  backdrop-filter: blur(10px);
  z-index: 999;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
}
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-grey);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Button */
.btn-primary {
  display: inline-block;
  /* Use primary purple background with light text for better contrast */
  background: var(--color-primary);
  color: var(--color-grey2);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 76, 255, 0.6);
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: 1rem;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: var(--color-grey);
  transition: all 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  /* Reduce the height of the hero section so there isn’t a large blank
     space below the “Apply Now” button. Using a min-height rather than
     a fixed height allows the section to shrink on smaller screens while
     still filling most of the viewport on larger displays. */
  min-height: 70vh;
  height: auto;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Updated hero image */
  background-image: url('8795b080-191a-43b6-ba06-3247d8a7801a.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 51, 0.85);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: var(--color-accent);
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero .subtitle {
  color: var(--color-grey);
  margin-bottom: 2rem;
  font-size: 1.2rem;
}
.hero-btn {
  margin-top: 1rem;
}

/* Section */
.section {
  padding: 5rem 0;
  background: var(--color-bg);
}
.section.dark {
  background: var(--color-bg-light);
}
.section h2 {
  margin-top: 0;
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

/* Override default paragraph styling for the How It Works section.  In this section
   paragraphs should align with the rest of the content instead of being
   centered within a fixed width. Removing the auto margins and max-width
   ensures the text sits flush with the left of the container on desktop and
   mobile. */
.how-section p {
  max-width: none;
  margin: 0 0 2rem;
}

/* Cards and grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-primary);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--color-accent);
  font-size: 1.2rem;
}
.card.small {
  text-align: center;
  font-weight: 600;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* Sponsor styles */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.sponsor-group h3 {
  margin-top: 0;
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.logo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.logo-card {
  background: var(--color-bg);
  border: 1px solid var(--color-primary);
  border-radius: 0.8rem;
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Producers */
.producers {
  text-align: center;
}
.producer-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.producer-card {
  background: var(--color-bg);
  border: 1px solid var(--color-primary);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 260px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.producer-photo {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}
.producer-card h3 {
  margin: 0;
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* Apply form */
.apply-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
}
.apply-form label {
  margin-bottom: 0.3rem;
  font-weight: 500;
  /* Ensure form labels use the same font and size as inputs */
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--color-grey);
}
.apply-form input,
.apply-form select {
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-primary);
  background: var(--color-bg);
  color: var(--color-grey);
  font-size: 1rem;
  /* Match font family across all form fields */
  font-family: 'Poppins', sans-serif;
}

/* Ensure all buttons within the apply form share the same font styling */
.apply-form button {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}
.apply-form input:focus,
.apply-form select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.apply-form textarea {
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-primary);
  background: var(--color-bg);
  color: var(--color-grey);
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  font-family: 'Poppins', sans-serif;
}

/* Style for the remove member button in dynamic team rows */
.remove-member {
  margin-top: 0.3rem;
  align-self: flex-start;
  background: none;
  color: var(--color-accent);
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}
.remove-member:hover {
  text-decoration: underline;
}
.apply-section .btn-primary {
  margin-top: 1rem;
  width: 100%;
}

/* Footer */
.footer {
  background: var(--color-bg-light);
  padding: 2rem 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--color-grey);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--color-accent);
}
.footer-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Show hamburger button */
  .nav-toggle {
    display: flex;
  }
  /* Hide nav by default on small screens */
  .nav-links {
    display: none;
    width: 100%;
  }
  .nav-links.open {
    display: block;
  }
  .nav-links ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--color-bg-light);
    padding: 1rem;
    margin: 0;
  }
  .nav-links ul li a {
    display: block;
    width: 100%;
    margin: 0.3rem 0;
  }
  /* Adjust nav container for stacked layout */
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 0.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
  .cards-grid, .card-grid-2, .sponsor-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Bullet list styling */
.bullet-list {
  list-style: none;
  padding-left: 0;
  /* Match the width and horizontal centering of paragraph text so lists
     align visually with headings and body copy.  Without this, lists
     are left-aligned to the container, causing misalignment with
     centered paragraphs. */
  max-width: 800px;
  margin: 1rem auto;
}
.bullet-list li {
  position: relative;
  /* Provide a bit more space on the left to accommodate the custom bullet */
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

