/* --- Google Fonts Import --- */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* --- CSS Змінні (Варіант 1: Світла тема) --- */
:root {
  /* Рандомні кольори: #34495E (Темно-синій), #3498DB (Синій), #ECF0F1 (Світло-сірий), #E74C3C (Червоний) */
  --primary-color: #3498DB;
  --secondary-color: #34495E;
  --accent-color: #E74C3C;
  --light-color: #ECF0F1;
  --dark-color: #2c3e50; /* Темніший варіант #34495E */
  
  --gradient-primary: linear-gradient(135deg, #3498DB 0%, #2980B9 100%); /* Градієнт на основі primary */
  --hover-color: #2980B9; /* Темніший варіант primary */
  
  /* Тема: Світла */
  --background-color: #FCFCFC;
  --text-color: #34495E;
  
  --border-color: rgba(52, 152, 219, 0.2); /* На основі primary */
  --divider-color: rgba(52, 73, 94, 0.1); /* На основі text */
  --shadow-color: rgba(52, 73, 94, 0.1); /* На основі text */
  
  --highlight-color: #F1C40F; /* Компліментарний жовтий */

  /* Рандомні шрифти */
  --main-font: 'Oswald', sans-serif;
  --alt-font: 'Open Sans', sans-serif; /* Open Sans є sans-serif, не serif, як вказано в prompt */
}

/* --- Базові стилі --- */
body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--secondary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

section {
  padding-top: 10dvh;
  padding-bottom: 10dvh;
  overflow: hidden; /* Для адаптивності */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem; /* 24px */
}

/* --- Неуроморфізм --- */
.neuromorph {
  background-color: var(--background-color);
  border-radius: 20px;
  box-shadow: 
    8px 8px 16px var(--shadow-color),
    -8px -8px 16px rgba(255, 255, 255, 0.8),
    inset 4px 4px 8px rgba(255, 255, 255, 0.5),
    inset -4px -4px 8px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.neuromorph-inset {
  background-color: var(--background-color);
  border-radius: 12px;
  box-shadow: 
    inset 5px 5px 10px var(--shadow-color),
    inset -5px -5px 10px rgba(255, 255, 255, 0.9);
}


.neuromorph-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--main-font);
  text-transform: uppercase;
  color: var(--light-color);
  background: var(--gradient-primary);
  box-shadow: 
    5px 5px 10px var(--shadow-color),
    -5px -5px 10px rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.neuromorph-button:hover {
  color: var(--light-color);
  text-decoration: none;
  box-shadow: 
    inset 3px 3px 7px var(--hover-color),
    inset -3px -3px 7px rgba(255, 255, 255, 0.4);
  transform: translateY(2px);
}

/* --- Header --- */
header {
  padding: 1.5rem 0;
  background-color: var(--secondary-color);
  color: var(--light-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px var(--shadow-color);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header .logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav li {
  margin-left: 2rem;
}

header nav a {
  color: var(--light-color);
  font-family: var(--main-font);
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.5rem;
}

header nav a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* --- CSS-Only Hamburger Menu --- */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--light-color);
  z-index: 1001;
}

@media (max-width: 768px) {
  header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .menu-icon {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 10px var(--shadow-color);
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
  }

  header nav li {
    margin: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--divider-color);
  }
  
  header nav a {
    display: block;
    padding: 1rem;
  }

  #menu-toggle:checked ~ nav {
    display: block;
  }
}


/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/bg.jpg') no-repeat center center/cover;
  padding: 0 1.5rem;
  margin-top: 70px; /* Offset for fixed header */
}

.hero h1 {
  font-size: 3.5rem; /* text-5xl */
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
  font-size: 1.25rem; /* text-xl */
  max-width: 700px;
  margin: 1rem auto 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* --- Content Section --- */
.content-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem; /* 32px */
}

.content-text {
  flex: 1 1 50%; /* 60% on large, 50% base */
}

.content-image {
  flex: 1 1 40%;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 10px 10px 20px var(--shadow-color);
}

@media (min-width: 768px) {
  .content-text-60 {
    flex-basis: 60%;
  }
  .content-image-40 {
    flex-basis: 40%;
  }
  .content-text-50 {
    flex-basis: 50%;
  }
  .content-image-50 {
    flex-basis: 50%;
  }
}

@media (max-width: 767px) {
  .content-section {
    flex-direction: column;
  }
  .content-image {
    order: -1; /* Image first on mobile */
  }
}


/* --- Section Divider --- */
.section-divider {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-divider hr {
  width: 80px;
  height: 3px;
  border: 0;
  background-color: var(--border-color);
  margin: 0 auto 1.5rem;
}

.section-divider h2 {
  font-size: 1.5rem; /* text-2xl */
  color: var(--text-color);
  opacity: 0.8;
}

/* --- CTA Section (Parallax) --- */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./img/bg.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem; /* text-4xl */
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem; /* text-xl */
  max-w: 600px;
  margin: 0 auto 1.5rem;
}

/* --- Features Section (Timeline) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 1rem 2.5rem; /* 40px */
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '\f111'; /* Font Awesome circle */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  width: 25px;
  height: 25px;
  right: -14.5px;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  color: var(--primary-color);
  background: var(--background-color);
  text-align: center;
  font-size: 0.8rem;
  line-height: 25px;
}

.timeline-item:nth-child(even)::after {
  left: -10.5px;
}

.timeline-content {
  padding: 1.5rem; /* 24px */
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 
    12px 12px 24px var(--shadow-color),
    -12px -12px 24px rgba(255, 255, 255, 0.8);
}

.timeline-content i {
  color: var(--accent-color);
  font-size: 1.5rem; /* text-2xl */
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

/* Timeline Media Query */
@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item:nth-child(odd) {
    left: 0;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-item::after {
    left: 19px;
  }
}

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* 32px */
}

.testimonial-card {
  padding: 2rem; /* 32px */
  border-left: 5px solid var(--primary-color);
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-card span {
  font-weight: 700;
  font-family: var(--main-font);
  color: var(--primary-color);
}

/* --- Contact & Form Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem; /* 48px */
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 24px */
}

.contact-form label {
  display: none; /* Placeholders are used */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  font-family: var(--alt-font);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary-color);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ Section --- */
.faq-item {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: scale(1.02);
  box-shadow: 
    10px 10px 20px var(--shadow-color),
    -10px -10px 20px rgba(255, 255, 255, 0.8);
}

.faq-item h3 {
  margin-top: 0;
  color: var(--primary-color);
}

/* --- Footer --- */
footer {
  padding: 2rem 0;
  background-color: var(--secondary-color);
  color: var(--light-color);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer .logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

footer nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

footer nav li {
  margin-left: 1.5rem;
}

footer nav a {
  color: var(--light-color);
  opacity: 0.8;
}

footer nav a:hover {
  color: white;
  opacity: 1;
}

footer .footer-bottom {
  text-align: center;
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider-color);
  font-size: 0.9rem;
  opacity: 0.7;
}

footer .footer-bottom a {
  color: var(--light-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 1.5rem;
  }
  footer nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
  }
  footer nav li {
    margin-left: 0;
  }
}