/* Base Styles */
:root {
  --primary-color: #7e57c2;
  --secondary-color: #009688;
  --accent-color: #ffc107;
  --dark-color: #212121;
  --light-color: #ffffff;
  --text-color: #1a1a1a;
  --gradient-start: #fdfcfb;
  --gradient-end: #e2d1c3;
  --header-height: 80px;
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(
      to bottom right,
      var(--gradient-start),
      var(--gradient-end)
    )
    fixed;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
}

ul {
  list-style: none;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--light-color);
  border: 2px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: lowercase;
  letter-spacing: -1px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background-color: var(--dark-color);
  height: 2px;
  width: 24px;
  position: relative;
  transition: var(--transition);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  bottom: -8px;
}

/* Hero Section */
.hero-section {
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--light-color);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--light-color);
  animation: fadeInDown 1.5s;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1.5s;
}

/* About Section */
.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition);
}

.about-image:hover {
  transform: perspective(1000px) rotateY(0);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 30px;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.benefit-item {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials-section {
  background-color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 30px;
  padding-bottom: 20px;
}

.testimonials-slider::-webkit-scrollbar {
  height: 8px;
}

.testimonials-slider::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 10px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

.testimonial {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .testimonial {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (min-width: 1024px) {
  .testimonial {
    flex: 0 0 calc(33.333% - 20px);
  }
}

.testimonial-content {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 5rem;
  color: rgba(126, 87, 194, 0.1);
  font-family: Georgia, serif;
  line-height: 0.8;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-author h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.testimonial-author p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  background-color: var(--light-color);
  color: var(--text-color);
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-toggle {
  opacity: 0;
  position: absolute;
  cursor: pointer;
  z-index: -1;
}

.faq-toggle:checked ~ .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--light-color);
  transition: max-height 0.5s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 1000px;
}

.faq-answer p {
  padding: 20px;
  margin: 0;
}

/* Contact Section */
.contact-section {
  background-color: rgba(255, 255, 255, 0.7);
}

.form-errors {
  background-color: rgba(255, 87, 87, 0.2);
  border-left: 4px solid #ff5757;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.form-errors p.error {
  margin: 5px 0;
  color: #d32f2f;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.2);
}

.contact-form .checkbox {
  display: flex;
  align-items: center;
}

.contact-form .checkbox input {
  width: auto;
  margin-right: 10px;
}

.contact-form .checkbox label {
  margin: 0;
}

.form-submit {
  margin-top: 30px;
}

.form-submit button {
  width: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-info p {
  opacity: 0.7;
}

.footer-contact address p {
  margin-bottom: 10px;
  opacity: 0.7;
}

.footer-contact a,
.footer-legal a {
  color: var(--light-color);
  opacity: 0.7;
  transition: var(--transition);
}

.footer-contact a:hover,
.footer-legal a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-legal ul li {
  margin-bottom: 10px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--light-color);
  padding: 20px 0;
  z-index: 9999;
  transition: bottom 0.5s ease;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-consent .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-consent p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-consent a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Legal Pages */
.legal-section {
  padding: 100px 0;
}

.legal-container {
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-container h1 {
  margin-bottom: 30px;
}

.legal-content h2 {
  font-size: 1.5rem;
  text-align: left;
  margin: 40px 0 20px;
}

.legal-content h2::after {
  margin: 10px 0 0;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
  list-style-type: disc;
}

.legal-content ul li {
  margin-bottom: 10px;
}

/* Thanks Page */
.thanks-section {
  display: flex;
  align-items: center;
  text-align: center;
}

.thanks-container {
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  padding: 60px;
  max-width: 700px;
  margin: 0 auto;
}

.thanks-icon {
  margin: 0 auto 30px;
  width: 80px;
  height: 80px;
  animation: scaleIn 0.5s ease;
}

.thanks-actions {
  margin-top: 40px;
}

/* Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
  }

  .nav-toggle:checked ~ nav {
    transform: translateY(0);
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  nav ul li {
    margin: 0 0 15px;
  }

  nav ul li:last-child {
    margin-bottom: 0;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 60px 0;
  }

  .cookie-consent .container {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .legal-container,
  .contact-form-container,
  .thanks-container {
    padding: 30px 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
