:root {
    --primary-color: #ff6b35;
    --primary-hover: #ff8c5a;
    --secondary-color: #5c2a9d;
    --secondary-hover: #7b3fc9;
    --accent-color: #ffd166;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 70px;
  }
  
  .dark-mode {
    --primary-color: #ff8c5a;
    --primary-hover: #ff6b35;
    --secondary-color: #7b3fc9;
    --secondary-hover: #9356e5;
    --accent-color: #ffd166;
    --text-color: #f0f0f0;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --bg-alt: #1e1e1e;
    --bg-card: #2a2a2a;
    --border-color: #3a3a3a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }

  /* ensure anchor targets are visible under fixed header */
  html {
    scroll-padding-top: calc(var(--header-height) + 1rem);
  }
  
  body {
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
  }
  
  .container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  /* Typography */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
  }
  
  h4 {
    font-size: 1.25rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    color: var(--secondary-color);
  }
  
  .section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background-color: var(--secondary-color);
    color: white;
  }
  
  .btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
  }
  
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
  }
  
  .navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
  }
  
  .nav-links a:hover {
    color: var(--primary-color);
  }
  
  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
  }
  
  .theme-toggle:hover {
    background-color: var(--bg-alt);
  }
  
  .theme-toggle svg {
    width: 20px;
    height: 20px;
  }
  
  .icon-light {
    display: block;
  }
  
  .icon-dark {
    display: none;
  }
  
  .dark-mode .icon-light {
    display: none;
  }
  
  .dark-mode .icon-dark {
    display: block;
  }
  
  /* Hero Section */
  .hero {
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    background-color: var(--bg-alt);
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .hero-text {
    max-width: 700px;
  }
  
  .hero-text h1 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
  }
  
  #subheading {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
  }
  
  /* About Section */
  .about {
    padding: 5rem 0;
    background-color: var(--bg-color);
  }
  
  .video-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
  }
  
  .video-container iframe {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .description {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .location-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
  }
  
  .location-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
  }
  
  .feature-list {
    list-style-position: inside;
    margin-left: 1rem;
  }
  
  .feature-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
  }
  
  .feature-list li::before {
    content: "🏀";
    position: absolute;
    left: 0;
  }
  
  /* Schedule Section */
  .schedule {
    padding: 5rem 0;
    background-color: var(--bg-alt);
  }
  
  .schedule-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
  }
  
  .schedule-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
  }
  
  .schedule-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .schedule-card:hover .schedule-img {
    transform: scale(1.05);
  }
  
  .schedule-content {
    padding: 1.5rem;
  }
  
  .schedule-content h3 {
    margin-bottom: 0.75rem;
  }
  
  /* RSVP Section */
  .rsvp-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
  }
  
  .rsvp-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .rsvp-info {
    flex: 1;
  }
  
  .rsvp-participants {
    flex: 1;
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .rsvp-participants h3 {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .participants-list {
    background-color: var(--bg-alt);
    padding: 1rem;
    border-radius: var(--radius);
  }
  
  .participants-list p {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .participants-list p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .form-container {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  #rsvp-form {
    display: grid;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-group label {
    font-weight: 500;
  }
  
  .form-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
  }
  
  .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
  }
  
  .error {
    border: 2px solid #ff3333 !important;
    background-color: rgba(255, 51, 51, 0.05) !important;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
  }
  
  .modal-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  .modal-content {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  #modal-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
  }
  
  #modal-image {
    width: 100px;
    height: auto;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
  }
  
  #close-modal-btn {
    margin-top: 1rem;
  }
  
  /* Contact Section */
  .contact {
    padding: 5rem 0;
    background-color: var(--bg-alt);
  }

  /* center subheading and align contact card */
  .contact {
    text-align: center;
  }

  .contact-card {
    display: block;
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .contact-card h3 {
    color: var(--primary-color);
  }
  
  /* Footer */
  .footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
  }
  
  /* Responsive Design */
  @media (min-width: 768px) {
    h1 {
      font-size: 3rem;
    }
  
    h2 {
      font-size: 2.5rem;
    }
  
    .hero-content {
      flex-direction: row;
      text-align: left;
    }
  
    .hero-buttons {
      justify-content: flex-start;
    }
  
    .schedule-card {
      flex-direction: row;
    }
  
    .schedule-image {
      width: 40%;
      height: auto;
    }
  
    .rsvp-container {
      flex-direction: row;
    }
  
    #rsvp-form {
      grid-template-columns: repeat(2, 1fr);
    }
  
    #rsvp-form button {
      grid-column: span 2;
    }
  }
  
  @media (max-width: 767px) {
    .navbar-content {
      flex-direction: column;
      padding: 1rem 0;
    }
  
    .navbar {
      height: auto;
    }
  
    .nav-links {
      margin-top: 1rem;
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .video-container iframe {
      height: 250px;
    }
  }

  /* Donation Section */
  .donation-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-alt));
  }

  .donation-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
  }

  .donation-info p {
    margin-bottom: 1rem;
  }

  .donation-benefits {
    list-style: none;
    padding-left: 0;
  }

  .donation-benefits li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
  }

  .donation-benefits li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
  }

  .donation-form-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .donation-amounts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .btn.amount {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
  }

  .btn.amount:hover,
  .btn.amount.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
  }

  #donation-form .form-group input {
    width: 100%;
  }

  @media (max-width: 900px) {
    .donation-grid {
      grid-template-columns: 1fr;
    }
  }
  