/* style.css */
:root {
    /* New Color Palette: Deep Space Blue & Neon Mint */
    --primary-color: #4F46E5;
    /* Indigo */
    --secondary-color: #10B981;
    /* Mint */
    --accent-color: #818CF8;
    --dark-bg: #111827;
    --light-bg: #F9FAFB;
    --text-color: #1F2937;
    --text-light: #9CA3AF;
    --white: #FFFFFF;

    --header-height: 70px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn--primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
}

/* Header */
.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__close,
.burger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.burger {
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 25px;
    justify-content: space-between;
    z-index: 1001;
}

.burger .line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding-top: var(--header-height);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(79, 70, 229, 0.6));
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Features */
.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 50px;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 300px;
    gap: 20px;
}

.service-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.service-card.large {
    grid-row: span 2;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

/* Reviews */
.reviews {
    background: var(--dark-bg);
    color: var(--white);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.review-photo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Contact */
.contact__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact__info {
    flex: 1;
    min-width: 300px;
}

.contact__list {
    margin-top: 30px;
}

.contact__list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact__list i {
    color: var(--primary-color);
}

.contact__form-wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form__group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form__group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-loader,
.form-success {
    display: none;
    text-align: center;
    margin-top: 15px;
}

.form-success {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col a:hover {
    color: var(--primary-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: var(--border-radius);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal__header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__content {
    padding: 20px;
    overflow-y: auto;
    line-height: 1.8;
}

.modal__content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.modal__content h4:first-child {
    margin-top: 0;
}

.modal__content ul,
.modal__content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.modal__content li {
    margin-bottom: 8px;
}

.modal__content strong {
    color: var(--text-color);
    font-weight: 600;
}

.modal__content p {
    margin-bottom: 15px;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    right: 20px;
    left: 20px;
    max-width: 400px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    transition: var(--transition);
}

.cookie-popup.show {
    bottom: 20px;
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 60px 30px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .nav__list li {
        width: 100%;
    }

    .nav__link {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        color: var(--text-color);
        transition: var(--transition);
    }

    .nav__link:hover {
        color: var(--primary-color);
        padding-left: 10px;
    }

    .nav__close {
        display: none;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.8rem;
        color: var(--text-color);
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav__close i {
        display: block;
    }

    .nav__close:hover {
        color: var(--primary-color);
        transform: rotate(90deg);
    }

    .nav.show .nav__close {
        display: flex;
    }

    .header.menu-open .burger {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Overlay для модального вікна */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: var(--transition);
    }

    .nav-overlay.show {
        display: block;
        opacity: 1;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .cookie-popup {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}