:root {
      --primary-bg: #f9f9f9; /* Light background */
      --secondary-bg: #2d2d2d; /* Slightly lighter section */
      --highlight: #9b4df2; /* Vibrant purple */
      --accent: #cb9ef7; /* Light Purple accent */
      --text-light: #f5f5f5; /* Light text */
      --text-muted: #b5b5b5; /* Muted text */
      --card-bg: linear-gradient(135deg, var(--accent), var(--highlight));
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: Arial, sans-serif;
    }

    body {
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, sans-serif;
      background-color: var(--primary-bg);
      color: var(--text-light);
      line-height: 1.6;
    }

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

    nav {
      padding: 20px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      font-weight: bold;
      font-size: 24px;
      color: var(--highlight);
    }

    .nav-links a {
      margin-left: 30px;
      text-decoration: none;
      color: var(--text-light);
    }

    .hero {
      padding: 30px 0;
      text-align: center;
    }

    .hero h1 {
      font-size: 48px;
      margin-bottom: 20px;
      color: var(--highlight);
    }

    .hero p {
      font-size: 20px;
      color: var(--text-muted);
      margin-bottom: 40px;
    }

    .cta-button {
      background: var(--highlight);
      color: white;
      padding: 15px 30px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 500;
      display: inline-block;
      transition: background 0.3s;
    }

    .cta-button:hover {
      background: var(--accent);
    }

    .cards {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin: 50px 0;
      flex-wrap: wrap; /* Allows wrapping to a new row on smaller screens */
    }

    .card-container {
      perspective: 1000px;
      width: 250px;
    }

    .card1 {
      position: relative;
      width: 100%;
      height: 250px;
      transform-style: preserve-3d;
      transition: transform 0.6s;
    }

    .card1:hover {
      transform: rotateY(180deg);
    }

    .card1-front,
    .card1-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 15px;
      padding: 20px;
      color: var(--text-light);
      background: var(--card-bg);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }

    .card1-back {
      transform: rotateY(180deg);
      background: var(--highlight);
    }

    .form-container {
      margin-top: 50px;
      background-color: var(--secondary-bg);
      padding: 30px;
      border-radius: 15px;
      width: 90%;
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .form-container h2 {
      color: var(--highlight);
      margin-bottom: 20px;
    }

    .form-container input {
      width: calc(100% - 20px);
      padding: 15px;
      margin-bottom: 20px;
      border: none;
      border-radius: 5px;
      font-size: 1em;
    }

    .form-container button {
      width: 100%;
      padding: 15px;
      border: none;
      background: var(--highlight);
      color: white;
      font-size: 1.2em;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .form-container button:hover {
      background: var(--accent);
    }

    .error-box {
      background-color: #ffcccc;
      border: 1px solid #ff0000;
      color: #900;
      padding: 10px;
      margin-bottom: 20px;
      border-radius: 5px;
    }

    /* Add styles for the modal box */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      background-color: #9b4df2; /* Vibrant purple */
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      width: 90%;
      max-width: 400px;
    }

    .modal-content p {
      margin: 0;
      padding: 10px 0;
    }

    .close-modal {
      margin-top: 10px;
      background-color: #007bff;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .close-modal:hover {
      background-color: #0056b3;
    }