@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

:root {
  /* site-theme: dark
    site-colors: #8E44AD, #59057B, #DDA0DD, #0F1021
    font-heading: Playfair Display
    font-text: Lato
  */
  --primary-color: #8E44AD;
  --secondary-color: #59057B;
  --accent-color: #DDA0DD;
  --light-color: #F3EBFF;
  --dark-color: #0F1021;
  --gradient-primary: linear-gradient(135deg, #DDA0DD 0%, #8E44AD 100%);
  --hover-color: #7D3C98;
  --background-color: #0F1021;
  --text-color: #ECF0F1;
  --border-color: rgba(221, 160, 221, 0.2);
  --divider-color: rgba(221, 160, 221, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-light-color: rgba(221, 160, 221, 0.05); /* Світла тінь для темного фону */
  --highlight-color: #FFEB00; /* Компліментарний */
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Lato', sans-serif;
}

/* --- Загальні стилі --- */
body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--light-color);
}

a {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--highlight-color);
}

section {
  padding-top: 10dvh;
  padding-bottom: 10dvh;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* --- Неуроморфізм (Темна тема) --- */
.neuromorph-card {
  background-color: var(--background-color);
  border-radius: 1rem;
  box-shadow: 
    8px 8px 16px var(--shadow-color),
    -8px -8px 16px var(--shadow-light-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.neuromorph-card:hover {
  box-shadow: 
    4px 4px 12px var(--shadow-color),
    -4px -4px 12px var(--shadow-light-color);
  transform: translateY(2px);
}

.neuromorph-input {
  background-color: var(--dark-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: inset 4px 4px 8px var(--shadow-color),
              inset -4px -4px 8px var(--shadow-light-color);
}

.neuromorph-input::placeholder {
  color: var(--text-color);
  opacity: 0.6;
}

/* --- Header --- */
header {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 1rem;
  border-bottom: 1px solid var(--divider-color);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo a {
  display: flex;
  align-items: center;
  font-family: var(--main-font);
  color: var(--light-color);
  text-decoration: none;
  font-size: 1.5rem;
}

header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav li {
  margin-left: 1.5rem;
}

header nav a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

header nav a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* --- Мобільне меню (CSS only) --- */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light-color);
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  header .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  header nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
  }

  header nav li {
    margin: 0.5rem 0;
  }
  
  .menu-icon {
    display: block;
    position: absolute;
    top: 1.25rem;
    right: 1rem;
  }
  
  .menu-toggle:checked + .menu-icon + nav {
    max-height: 500px; /* Достатня висота для меню */
  }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('./img/bg.jpg') no-repeat center center/cover;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* --- Parallax CTA Section --- */
.cta-parallax {
  background: linear-gradient(rgba(89, 5, 123, 0.6), rgba(15, 16, 33, 0.8)), url('./img/bg.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  color: #ffffff;
  text-align: center;
}

.cta-parallax h2 {
  color: #ffffff;
}

/* --- Features Timeline --- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--divider-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container.left {
  left: 0;
}

.timeline-container.right {
  left: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--background-color);
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-container.right::after {
  left: -16px;
}

.timeline-content {
  position: relative;
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-container.left, .timeline-container.right {
    left: 0%;
  }
  .timeline-container.left::after, .timeline-container.right::after {
    left: 15px;
  }
}

/* --- FAQ Section --- */
.faq-item {
  background-color: var(--dark-color); /* Трохи світліший за фон */
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow-color);
}
.faq-item h3 {
  color: var(--accent-color);
}

/* --- Contact Form --- */
.form-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
}

.cta-button {
  background: var(--gradient-primary);
  color: var(--dark-color);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  font-family: var(--main-font);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(142, 68, 173, 0.2);
}

.cta-button:hover {
  background: var(--hover-color);
  color: var(--light-color);
  box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .form-container {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 2rem 1rem;
  border-top: 1px solid var(--divider-color);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer .logo {
  margin-bottom: 1rem;
}

footer .logo a {
  color: var(--light-color);
  text-decoration: none;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

footer nav li {
  margin-left: 1.5rem;
}

footer nav a {
  color: var(--light-color);
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--divider-color);
  margin-top: 1rem;
}

.footer-bottom a {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    text-align: center;
  }
  footer nav ul {
    flex-direction: column;
  }
  footer nav li {
    margin: 0.25rem 0;
  }
}