/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Open+Sans:wght@400;600&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f8f9fb;
  color: #333;
  line-height: 1.6;
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 20px;
  color: #222;
}

header .logo {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: #c248e8;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #c248e8;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 150px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #c248e8;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #c248e8;
}

/* Services Section */
.services-grid,
.features-grid,
.plans-grid,
.testimonials-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.service-card,
.plan-card,
.feature,
.testimonial {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.plan-card .price {
  font-size: 1.5rem;
  color: #c248e8;
  font-weight: bold;
  margin: 10px 0;
}

.plan-card.featured {
  border: 2px solid #c248e8;
}

/* Forms */
form {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

textarea {
  min-height: 100px;
}

.confirmation {
  margin-top: 1rem;
  color: green;
  display: none;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 20px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #dec5fe;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: #dec5fe;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
}

.modal-content .close:hover {
  color: #333;
}

/* Testimonials */
.testimonial {
  font-style: italic;
  color: #444;
}

.testimonial-author {
  margin-top: 1rem;
  font-weight: bold;
  color: #c248e8;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  header .logo {
    font-size: 1.5rem;
  }

  .hero {
    padding: 60px 10px;
  }

  h1, h2, h3 {
    font-size: 1.3rem;
  }

  .plan-card .price {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.5rem 1rem;
  }
}
