@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
  /* Параметри з промпту (Варіант 2) */
  --font-heading: 'Merriweather', serif;
  --font-text: 'Lato', sans-serif;
  
  /* Кольори (Варіант 2) - Темна тема */
  --primary-color: #27AE60;
  --secondary-color: #16A085;
  --accent-color: #16A085;
  --light-color: #F2F2F2;
  --dark-color: #0F1021;
  --gradient-primary: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
  --hover-color: #229954;
  --background-color: #0F1021;
  --text-color: #F2F2F2;
  --text-dark: #0F1021;
  --border-color: rgba(39, 174, 96, 0.2);
  --divider-color: rgba(242, 242, 242, 0.1);

  /* Тіні для Неуроморфізму (Темна тема) */
  --shadow-light: rgba(255, 255, 255, 0.05); /* Дуже тонка біла тінь */
  --shadow-dark: rgba(0, 0, 0, 0.5); /* Темна тінь */
  --shadow-color: rgba(0, 0, 0, 0.3); /* Загальна тінь */
  
  --highlight-color: #FFEB00;
  --main-font: var(--font-heading);
  --alt-font: var(--font-text);
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--alt-font);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  color: var(--light-color); /* Світлі заголовки на темному фоні */
  font-weight: 700;
  margin-bottom: 0.5rem;
}

a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

section {
  padding-top: 10dvh;
  padding-bottom: 10dvh;
}

/* Неуроморфізм (Темна тема) */
.neumorphic {
  background: var(--background-color);
  border-radius: 20px;
  box-shadow: 
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  transition: box-shadow 0.3s ease;
}

.neumorphic:hover {
  box-shadow: 
    10px 10px 20px var(--shadow-dark),
    -10px -10px 20px var(--shadow-light);
}

.neumorphic-inset {
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: 
    inset 5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);
}

/* Кнопка */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--main-font);
  text-transform: uppercase;
  text-decoration: none;
  background: var(--gradient-primary);
  color: var(--text-dark); /* Темний текст на світлій кнопці */
  box-shadow: 4px 4px 10px var(--shadow-dark);
  transition: all 0.3s ease;
}

.btn:hover {
  color: var(--text-dark);
  text-decoration: none;
  box-shadow: 6px 6px 12px var(--shadow-dark);
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  background-color: var(--dark-color); /* Темний хедер */
  color: var(--text-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

header .navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

header .navigation li {
  margin-left: 1.5rem;
}

header .navigation a {
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--main-font);
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

header .navigation a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  text-decoration: none;
}

/* Мобільне меню */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--text-color);
}

@media (max-width: 768px) {
  header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .menu-icon {
    display: block;
    z-index: 1001;
  }

  header .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    padding: 1rem;
  }

  header .navigation ul {
    flex-direction: column;
    align-items: center;
  }

  header .navigation li {
    margin: 0.5rem 0;
  }

  #menu-toggle:checked ~ .navigation {
    display: block;
  }
}

/* Hero */
.hero {
  height: 80vh; /* [hero-screen] */
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('./img/bg.jpg') no-repeat center center/cover;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Розділювач */
.divider {
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
}
.divider h3 {
  display: inline-block;
  position: relative;
  padding: 0 1rem;
}
.divider h3::before,
.divider h3::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background-color: var(--divider-color);
}
.divider h3::before {
  right: 100%;
}
.divider h3::after {
  left: 100%;
}

/* CTA */
.cta-section {
  padding-top: 15dvh;
  padding-bottom: 15dvh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('./img/bg.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  text-align: center;
  color: var(--text-color);
}
.cta-section h2, .cta-section p {
  color: var(--text-color);
}

/* Features - Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  opacity: 0.3;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

/* Контейнер іконки */
.timeline-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  right: -25px;
  top: 20px;
  background-color: var(--primary-color);
  color: var(--text-dark); /* Темна іконка на світлому фоні */
  border: 4px solid var(--background-color);
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.left .timeline-icon {
  right: -25px;
}

.timeline-item.right .timeline-icon {
  left: -25px;
}

.timeline-content {
  padding: 1.5rem;
}

/* Мобільна адаптація Timeline */
@media (max-width: 768px) {
  .timeline::after {
    left: 25px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-item.left .timeline-icon,
  .timeline-item.right .timeline-icon {
    left: 0;
  }
}


/* Testimonials */
.testimonial-card {
  padding: 2rem;
  border-left: 5px solid var(--primary-color);
  background-color: #14162D; /* Трохи світліший фон картки */
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-color);
}
.testimonial-card span {
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--main-font);
}

/* Form & Contact */
#contact-section {
  background-color: #14162D; /* Трохи світліший фон секції */
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  background-color: var(--dark-color);
}

.form-input::placeholder {
  color: #888;
}

.contact-info i {
  color: var(--primary-color);
}

/* FAQ */
.faq-item {
  padding: 1.5rem;
  border-bottom: 2px solid var(--divider-color);
}
.faq-item:hover {
  background-color: rgba(255,255,255,0.02);
}
.faq-item h4 {
  color: var(--primary-color);
}
.faq-item p {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Footer */
footer {
  padding: 2rem 1.5rem;
  background-color: var(--dark-color);
  color: var(--text-color);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .logo img {
  height: 35px;
  filter: brightness(0) invert(1);
}

footer nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer nav li {
  margin-left: 1rem;
}

footer nav a {
  color: var(--text-color);
  text-decoration: none;
}

footer nav a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

footer .copyright {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider-color);
  font-size: 0.9rem;
}

footer .copyright a {
  color: var(--text-color);
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
  }
  
  footer .logo {
    margin-bottom: 1rem;
  }

  footer nav ul {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer nav li {
    margin: 0.25rem 0;
  }
}