/* Варіант 1: style.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --primary-color: #3498DB;
  --secondary-color: #2980B9;
  --accent-color: #1ABC9C;
  --light-color: #ECF0F1;
  --dark-color: #34495E;
  --gradient-primary: linear-gradient(135deg, #1ABC9C 0%, #3498DB 100%);
  --hover-color: #2980B9;
  --background-color: #ECF0F1;
  --text-color: #2C3E50;
  --border-color: rgba(52, 152, 219, 0.2);
  --divider-color: rgba(44, 62, 80, 0.1);
  --shadow-color: rgba(44, 62, 80, 0.15);
  --highlight-color: #F39C12;
  --main-font: 'Oswald', sans-serif;
  --alt-font: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--alt-font);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--main-font);
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section:not(.hero-section) {
    padding-top: 10dvh;
    padding-bottom: 10dvh;
}

.hover-underline {
    position: relative;
    text-decoration: none;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Header Styles */
.header-main {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.header-main a {
    color: var(--light-color);
}

.header-main .logo img {
    height: 40px;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-color);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
        padding: 20px 0;
        box-shadow: 0 10px 10px var(--shadow-color);
    }
    #mobile-menu-toggle:checked ~ .navigation {
        display: block;
    }
    .navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .header-main {
        justify-content: center;
    }
    .mobile-menu-btn {
        position: absolute;
        right: 30px;
    }
}

/* Hero Section */
.hero-section {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('./img/bg.jpg') no-repeat center center/cover;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--main-font);
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 5px 5px 10px var(--shadow-color), -5px -5px 10px rgba(255,255,255,0.5);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--highlight-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #E67E22;
    transform: translateY(-2px);
}

/* Neumorphism general styles */
.neumorph-card {
    background: var(--background-color);
    border-radius: 20px;
    box-shadow: 8px 8px 16px var(--shadow-color), -8px -8px 16px rgba(255,255,255,0.8);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.neumorph-card:hover {
    transform: translateY(-5px);
}

/* Content Sections */
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.content-wrapper.reverse-wrap {
    flex-direction: row-reverse;
}

.content-image-wrapper {
    flex: 0 0 40%;
}

.content-wrapper.reverse-wrap .content-image-wrapper {
    flex: 0 0 50%;
}

.content-text-wrapper {
    flex: 1;
}

.rounded-image {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.shadow-neumorph {
    box-shadow: 10px 10px 20px var(--shadow-color), -10px -10px 20px rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    .content-wrapper, .content-wrapper.reverse-wrap {
        flex-direction: column;
        text-align: center;
    }
    .content-image-wrapper, .content-wrapper.reverse-wrap .content-image-wrapper {
        width: 100%;
    }
}

/* Divider Section */
.divider-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.divider-line {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    max-width: 300px;
}

.divider-text {
    padding: 0 20px;
    font-family: var(--main-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
}

/* CTA Sections */
.cta-section {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: #ffffff;
}

/* Features Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.feature-item {
    padding: 20px 30px;
    position: relative;
    width: calc(50% - 40px);
    margin-bottom: 30px;
}

.feature-item:nth-child(odd) {
    left: 0;
}

.feature-item:nth-child(even) {
    left: calc(50% + 40px);
}

.feature-icon {
    position: absolute;
    top: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    z-index: 2;
    box-shadow: 0 0 10px var(--shadow-color);
}

.feature-item:nth-child(odd) .feature-icon {
    right: -65px;
}

.feature-item:nth-child(even) .feature-icon {
    left: -65px;
}

@media (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }
    .feature-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        left: 0 !important;
    }
    .feature-item:nth-child(odd) .feature-icon,
    .feature-item:nth-child(even) .feature-icon {
        left: 6px;
        right: auto;
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    text-align: center;
}

.stars {
    color: var(--highlight-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--main-font);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: 20px;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s;
    position: relative;
    padding-right: 40px;
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: rgba(255,255,255,0.5);
    padding: 0 20px;
}

.faq-toggle:checked ~ .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 20px 20px;
}

footer a {
    color: var(--accent-color);
}

footer .logo img {
    height: 50px;
}