:root {
    /* Random Palette: Cyber Industrial */
    --primary: #C0FF00;
    /* Acid Lime */
    --secondary: #00F0FF;
    /* Cyan */
    --bg-dark: #0B1C2C;
    /* Deep Navy */
    --bg-darker: #050E17;
    --text-light: #F0F4F8;
    --text-gray: #8B9BB4;
    --error: #FF4D4D;

    --font-main: 'Exo 2', sans-serif;
    --container-width: 1200px;
    --header-height: 70px;
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--primary);
    color: var(--bg-darker);
}

.btn--primary:hover {
    background-color: #fff;
    box-shadow: 0 0 15px var(--primary);
}

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

.btn--outline:hover {
    background-color: var(--secondary);
    color: var(--bg-darker);
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(11, 28, 44, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

/* Nav Desktop */
.nav__list {
    display: flex;
    gap: 30px;
}

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

.nav__close {
    display: none;
}

.burger {
    display: none;
    background: none;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Pexels: Dark Coding Environment (Theme: IT/Dev) */
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    /* Альтернативний варіант (абстракція): https://images.pexels.com/photos/2061168/pexels-photo-2061168.jpeg */
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 28, 44, 0.9) 0%, rgba(11, 28, 44, 0.6) 100%);
}

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

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

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

.hero__title .highlight {
    color: var(--primary);
}

.hero__actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

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

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

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(192, 255, 0, 0.15);
}

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

/* Services */
.bg-dark {
    background-color: var(--bg-darker);
}

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

.service-item {
    background: var(--bg-dark);
    padding: 20px;
    text-align: center;
    border-radius: var(--radius);
    transition: var(--transition);
    /* Добавлена плавность */
}

/* Новый ховер для всех карточек */
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(192, 255, 0, 0.15);
    /* Тень с цветом primary */
}

.highlight-item {
    border: 1px solid var(--primary);
    transition: var(--transition);
    /* Добавлена плавность */
}

/* Ховер для выделенной карточки */
.highlight-item:hover {
    background-color: var(--bg-dark);
    /* Сохраняем темный фон */
    box-shadow: 0 5px 15px rgba(192, 255, 0, 0.3);
    /* Более яркая тень */
    transform: translateY(-5px);
}

/* Testimonials Styles (Update in style.css) */
.testimonials__slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: var(--bg-darker);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(192, 255, 0, 0.1);
}

.testimonial__author {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

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

.testimonial__info {
    flex: 1;
}

.testimonial__text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-light);
}

.testimonial__name {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
}

/* Contact */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

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

.form {
    background: var(--bg-darker);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form__group {
    margin-bottom: 15px;
    position: relative;
}

.form input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: var(--radius);
    font-family: inherit;
}

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

.form__captcha {
    display: flex;
    align-items: center;
    /* Центруємо вертикально */
    justify-content: center;
    /* Вирівнюємо по лівому краю */
    gap: 15px;
    /* Відступ між рівнянням та полем */
    margin-bottom: 15px;
}

#captchaQuestion {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    /* Забороняємо перенос тексту (8 + 0 =) на новий рядок */
    line-height: 1;
}

/* Перевизначаємо ширину тільки для інпуту капчі */
.form__captcha input#captchaInput {
    width: 80px !important;
    /* Робимо поле компактним */
    min-width: 80px;
    text-align: center;
    padding: 10px;
    margin: 0;
    /* Прибираємо зайві зовнішні відступи */
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    display: block;
    height: 16px;
}

.form-loader {
    text-align: center;
    margin-top: 10px;
    color: var(--secondary);
}

.form-success {
    text-align: center;
    margin-top: 10px;
    color: var(--primary);
}

/* Footer */
.footer {
    background: #000;
    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(--text-light);
    margin-bottom: 20px;
}

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

.footer__col ul li a {
    color: var(--text-gray);
}

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

.footer__col p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-darker);
    border: 1px solid var(--secondary);
    padding: 20px;
    border-radius: var(--radius);
    z-index: 900;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--bg-dark);
    z-index: 1001;
    border-radius: var(--radius);
    padding: 30px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
}

.modal-overlay.active {
    display: block;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
}

.modal__content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.modal__content h4 {
    margin-top: 15px;
    color: var(--secondary);
}

.modal__content ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: var(--bg-darker);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        background: none;
        color: #fff;
    }
}

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

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

    .hero__actions {
        flex-direction: column;
    }
}