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

body {
    font-family: Arial, sans-serif;
    background: #f4ecff;
    color: #2d134d;
    line-height: 1.6;
}

/* HEADER */

header {
    background: #b58cff;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

nav a {
    text-decoration: none;
    color: #2d134d;
    margin-left: 25px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: white;
}

/* HERO SECTION */

.hero {
  text-align: center;
  padding: 100px 20px;
}

/* --- New Text Box Container --- */
.hero-text-box {
  background-color: #ffffff;                  /* Creates the white box around the words */
  border-radius: 12px;                        /* Rounds the corners to match your cards */
  padding: 40px;                              /* Space inside the box around text */
  max-width: 800px;                           /* Limits box width so it doesn't stretch too far */
  margin: 0 auto 35px auto;                   /* Centers the box and creates a 35px gap below it */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); /* Gives it a clean, soft shadow */
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #1a1a1a;                             /* Changes text to dark charcoal for white background contrast */
}

.hero p {
  max-width: 100%;                            /* Allows text to fill the container box naturally */
  margin: 0;
  font-size: 1.2rem;
  color: #4a4a4a;                             /* Softer dark color for readability */
}

.hero-btn {
  display: inline-block;
  margin-top: 0;                              /* Set to 0 because the box margin handles the splitting space now */
  padding: 15px 35px;
  background: #7b2cff;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #5d16d1;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 60px 10%;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card h2 {
    margin-bottom: 15px;
    color: #7b2cff;
}

/* CONTACT FORM */

.contact-section {
    padding: 80px 10%;
}

.contact-section h1 {
    margin-bottom: 30px;
    text-align: center;
}

form {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
}

form button {
    background: #7b2cff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

form button:hover {
    background: #5d16d1;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 30px;
    background: #b58cff;
    margin-top: 50px;
}

/* MOBILE */

@media(max-width: 768px) {

    header {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}