/* --- Variables & Reset --- */
:root {
    --primary: #0F172A;
    /* Deep Blue */
    --secondary: #1E293B;
    /* Lighter Blue */
    --accent: #00E5FF;
    /* Electric Cyan */
    --accent-hover: #00B2CC;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #22c55e;

    --font-main: 'Manrope', sans-serif;
    --trans: 0.3s ease;
    --shadow: 0 10px 30px -10px rgba(0, 229, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- Typography & Utilities --- */
.text-gradient {
    background: linear-gradient(90deg, var(--white), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--trans);
    text-align: center;
}

.btn--primary {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow);
}

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

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

.btn--outline:hover {
    border-color: var(--white);
    color: var(--white);
}

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

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.nav {
    display: flex;
    align-items: center;
}

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

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

.nav__close,
.burger {
    display: none;
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Оновлене фото: Рукостискання (Pexels ID 3184429) */
    background: url('https://images.pexels.com/photos/3184429/pexels-photo-3184429.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
    margin-top: -70px;
    /* Offset header */
    padding-top: 70px;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.feature-card {
    background: var(--secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--trans);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card__title {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature-card__text {
    color: var(--text-muted);
}

/* --- Services (Masonry-like Grid) --- */
.bg-dark {
    background-color: #0b1120;
}

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

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

.service-card__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--trans);
}

.service-card:hover .service-card__img {
    transform: scale(1.05);
}

.service-card__content {
    padding: 20px;
}

.service-card__content h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

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

.review-card {
    background: var(--secondary);
    border-radius: 12px;
    padding: 30px;
    transition: var(--trans);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 229, 255, 0.2);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.review-card__info {
    flex: 1;
}

.review-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.review-card__position {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.review-card__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-card__rating {
    color: #FFD700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-card__text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Contact --- */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--secondary);
    border-radius: 20px;
    padding: 50px;
    overflow: hidden;
}

.contact__list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-main);
    transition: var(--trans);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-message {
    text-align: center;
    min-height: 20px;
    font-size: 0.9rem;
}

.form-message.error {
    color: var(--danger);
}

.form-message.success {
    color: var(--success);
}

/* --- Footer --- */
.footer {
    background: #020617;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.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 ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__col ul li a:hover {
    color: var(--accent);
}

.footer__col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary);
    border-top: 1px solid var(--accent);
    padding: 15px 0;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 2000;
    display: flex;
    justify-content: center;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    padding: 0 20px;
}

.cookie-banner__content a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
}

/* --- Modals --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--trans);
}

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

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: var(--secondary);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    padding: 30px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: var(--trans);
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal__body {
    margin-top: 20px;
    color: var(--text-muted);
}

.modal__body h3 {
    color: var(--white);
    margin-top: 15px;
    margin-bottom: 10px;
}

/* --- Media Queries (Mobile) --- */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--secondary);
        flex-direction: column;
        padding-top: 80px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: var(--white);
        font-size: 2rem;
        cursor: pointer;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .burger span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--white);
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.2rem;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .section-title {
        font-size: 2rem;
    }
}