@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --primary-color: #8E44AD;
  --secondary-color: #6C3483;
  --accent-color: #9B59B6;
  --light-color: #F4ECF7;
  --dark-color: #4A235A;
  --gradient-primary: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  --hover-color: #7D3C98;
  --background-color: #FDFCFE;
  --text-color: #34495E;
  --border-color: rgba(142, 68, 173, 0.28);
  --divider-color: rgba(142, 68, 173, 0.18);
  --shadow-color: rgba(108, 52, 131, 0.14);
  --highlight-color: #E74C3C;
  --main-font: 'Montserrat', sans-serif;
  --alt-font: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  font-weight: 700;
}

header {
  background: var(--dark-color);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 15px var(--shadow-color);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header .logo img {
  height: 55px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

header .logo img:hover {
  transform: scale(1.08);
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

header nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

header nav ul li a:hover {
  color: var(--accent-color);
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  color: var(--light-color);
  font-size: 1.6rem;
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
  }

  header .logo {
    order: 2;
    margin: 0 auto;
  }

  .menu-icon {
    display: block;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
  }

  header nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  #menu-toggle:checked ~ nav {
    max-height: 550px;
  }

  header nav ul {
    flex-direction: column;
    padding: 1.2rem 0;
    gap: 0;
  }

  header nav ul li {
    text-align: center;
    padding: 0.8rem 0;
  }
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/bg.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1.3rem;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.75);
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.35rem;
  max-width: 750px;
  margin: 0 auto;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.65);
  line-height: 1.9;
}

section {
  padding-top: 10vh;
  padding-bottom: 10vh;
}

.content-section {
  background-color: var(--background-color);
}

.content-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 20px;
  align-items: center;
}

.content-section img {
  border-radius: 20px;
  box-shadow: 10px 10px 28px var(--shadow-color), -5px -5px 14px rgba(255, 255, 255, 0.6);
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.content-section img:hover {
  transform: scale(1.03);
}

.content-section .text-content {
  line-height: 1.9;
}

.content-section h2 {
  margin-bottom: 1.7rem;
  font-size: 2.6rem;
  letter-spacing: 0.5px;
}

.content-section p {
  margin-bottom: 1.2rem;
  font-size: 1.12rem;
}

@media (max-width: 768px) {
  .content-section .container {
    flex-direction: column;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
}

.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/bg.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  text-align: center;
  padding: 6.5rem 2rem;
}

.cta-section h2 {
  font-size: 2.9rem;
  margin-bottom: 1.6rem;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.8px;
}

.cta-section p {
  font-size: 1.45rem;
  max-width: 850px;
  margin: 0 auto;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.75);
  line-height: 1.8;
}

.features {
  background: linear-gradient(145deg, var(--light-color) 0%, #F8F4FC 100%);
}

.features .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.features h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3.5rem;
  letter-spacing: 0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  background: var(--background-color);
  padding: 2.3rem;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  box-shadow: 8px 8px 20px var(--shadow-color), -4px -4px 12px rgba(255, 255, 255, 0.7);
  transition: all 0.35s ease;
  position: relative;
}

.feature-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 12px 12px 30px var(--shadow-color), -6px -6px 18px rgba(255, 255, 255, 0.8);
  border-color: var(--primary-color);
}

.feature-item i {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  display: block;
}

.feature-item h3 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.feature-item p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 0 10px var(--light-color);
}

.testimonials {
  background: linear-gradient(to bottom, #FAF8FC 0%, var(--background-color) 100%);
}

.testimonials .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3.5rem;
  letter-spacing: 0.5px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2.3rem;
}

.testimonial-item {
  background: #FFFFFF;
  padding: 2.3rem;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 6px 6px 22px var(--shadow-color), -4px -4px 14px rgba(255, 255, 255, 0.85);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-item:hover {
  transform: translateY(-7px);
  box-shadow: 8px 8px 28px var(--shadow-color), -5px -5px 18px rgba(255, 255, 255, 0.9);
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.testimonial-item .name {
  font-weight: 700;
  font-style: normal;
  font-size: 1.05rem;
}

.last-features {
  background: var(--dark-color);
  padding: 6.5rem 2rem;
}

.last-features .container {
  max-width: 1200px;
  margin: 0 auto;
}

.last-features h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.8px;
}

.last-features .subtitle {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 3.5rem;
}

.last-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.3rem;
}

.last-feature-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 2.3rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 5px 5px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.35s ease;
}

.last-feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-7px);
  box-shadow: 7px 7px 24px rgba(0, 0, 0, 0.4);
}

.last-feature-item i {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  display: block;
}

.last-feature-item h3 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.contact-section {
  background-color: var(--background-color);
}

.contact-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-section .container {
    grid-template-columns: 1fr;
  }
}

.contact-info h2 {
  font-size: 2.1rem;
  margin-bottom: 2.2rem;
}

.contact-info p {
  margin-bottom: 1.2rem;
  font-size: 1.12rem;
}

.contact-info i {
  margin-right: 0.7rem;
}

.contact-form {
  background: #FFFFFF;
  padding: 2.3rem;
  border-radius: 18px;
  box-shadow: 8px 8px 24px var(--shadow-color), -4px -4px 14px rgba(255, 255, 255, 0.75);
}

.contact-form h3 {
  font-size: 1.9rem;
  margin-bottom: 1.7rem;
}

.form-group {
  margin-bottom: 1.7rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-family: var(--alt-font);
  font-size: 1.02rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--background-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.submit-btn {
  background: var(--gradient-primary);
  border: none;
  padding: 1.1rem 2.8rem;
  border-radius: 10px;
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 15px var(--shadow-color);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 20px var(--shadow-color);
}

.faq {
  background: linear-gradient(145deg, #FCFAFD 0%, var(--light-color) 100%);
}

.faq .container {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3.5rem;
  letter-spacing: 0.5px;
}

.faq-item {
  background: #FFFFFF;
  padding: 2.3rem;
  margin-bottom: 1.8rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 5px 5px 18px var(--shadow-color), -3px -3px 12px rgba(255, 255, 255, 0.7);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.faq-item:hover {
  transform: translateX(8px);
  box-shadow: 7px 7px 24px var(--shadow-color), -4px -4px 16px rgba(255, 255, 255, 0.8);
}

.faq-item h3 {
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.faq-item p {
  line-height: 1.8;
}

footer {
  background: var(--dark-color);
  padding: 3.5rem 2rem 1.2rem;
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

footer .logo img {
  height: 55px;
}

footer nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  flex-wrap: wrap;
}

footer nav ul li a {
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

footer nav ul li a:hover {
  color: var(--accent-color);
}

footer .footer-bottom {
  text-align: center;
  padding-top: 2.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer .footer-bottom a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-bottom a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  footer .footer-content {
    flex-direction: column;
    gap: 2.3rem;
  }

  footer nav ul {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
}