/* Глобальні стилі */
:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #3b82f6;
    --card-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* logo change start: ЗАБОРОНА ВИДІЛЕННЯ ТЕКСТУ ДЛЯ ВСЬОГО САЙТУ */
    -webkit-user-select: none; /* Для Safari */
    -ms-user-select: none;     /* Для старого IE/Edge */
    user-select: none;         /* Стандартна властивість */
    /* logo change end */
}

.form input,
.form textarea {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: rgba(15, 23, 42, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    z-index: 101;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Нові стилі для неонового логотипу */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px; /* Відступ між іконкою та текстом */
}

.logo-icon {
    max-height: 35px; /* Висота іконки */
    width: auto;
    display: block;
    /* Трохи піднімаємо, щоб вирівняти з текстом */
    position: relative;
    top: -1px;
    filter: drop-shadow(0 0 5px var(--accent-color)); /* Додаємо свій ефект світіння для іконки */
}

.logo-text {
    font-size: 26px; /* Трохи більший, як раніше */
    font-weight: bold;
    color: #fff; /* Основний колір тексту - білий */
    letter-spacing: 2px;
    
    /* СВІТІННЯ: 4 шари тіней створюють глибокий неон */
    text-shadow: 
        0 0 5px #fff,
        0 0 10px var(--accent-color),
        0 0 20px var(--accent-color),
        0 0 40px var(--accent-color);
        
    /* АНІМАЦІЇ: Поєднуємо дві анімації */
    animation: 
        neon-glow 2.5s ease-in-out infinite, /* Дихання (плавно) */
        neon-flicker 8s linear infinite;    /* Мерехтіння (випадково) */
}

/* АНІМАЦІЯ 1: Плавне "дихання" світла */
@keyframes neon-glow {
    0%, 100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px var(--accent-color),
            0 0 20px var(--accent-color),
            0 0 35px var(--accent-color);
    }
    50% {
        text-shadow: 
            0 0 2px #fff,
            0 0 5px var(--accent-color),
            0 0 10px var(--accent-color),
            0 0 25px var(--accent-color);
    }
}

/* АНІМАЦІЯ 2: Випадкове мерехтіння (ефект старого неону) */
@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        /* Текст повністю світиться */
        color: #fff;
        text-shadow: 0 0 5px #fff, 0 0 10px var(--accent-color), 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
    }
    19%, 21%, 23%, 24%, 54%, 56% {
        /* Текст миттєво згасає (стає сірим) */
        color: #475569;
        text-shadow: none;
    }
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.nav a:hover { color: var(--accent-color); }

/* Hero */
.hero {
    padding: 150px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover { background: #2563eb; }

/* Services */
.services { padding: 80px 0; }
.services h2 { text-align: center; margin-bottom: 40px; font-size: 32px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-5px); }
.service-card h3 { margin-bottom: 15px; color: var(--accent-color); }

/* ================= СЕКЦІЯ КОНТАКТІВ ТА ФОРМА ================= */
.contacts { 
    padding: 100px 0; 
    background: var(--card-bg); 
}

.contacts h2 { 
    text-align: center; 
    margin-bottom: 50px; 
    font-size: 36px;
}

.contacts-wrapper {
    display: grid;
    /* Змінюємо пропорції: форма займає трохи більше місця (1.2fr) ніж текст (1fr) */
    grid-template-columns: 1fr 1.2fr; 
    gap: 60px;
    align-items: center; /* Вирівнюємо по центру по вертикалі */
}

/* Ліва частина з текстом */
.contact-info {
    padding-right: 20px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 20px;
    font-size: 18px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.info-list a:hover {
    color: var(--accent-color);
}

/* Права частина: КАРТКА ФОРМИ */
.form {
    background: rgba(15, 23, 42, 0.6); /* Темніший фон для контрасту */
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Глибока тінь */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Збільшена відстань між полями */
    width: 100%;
}

/* Поля вводу */
.form input, .form textarea {
    width: 100%;
    padding: 18px 20px; /* Робимо поля вищими та зручнішими для кліку */
    font-size: 16px;
    background: var(--bg-color);
    border: 2px solid #334155; /* Товстіша рамка */
    color: var(--text-color);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.form textarea {
    min-height: 150px;
    resize: vertical; /* Дозволяємо розтягувати тільки вниз */
}

/* Ефект при кліку (Focus) на поле */
.form input:focus, .form textarea:focus { 
    border-color: var(--accent-color); 
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); /* М'яке синє світіння навколо поля */
}

/* Велика кнопка відправки */
.form .btn {
    padding: 20px;
    font-size: 18px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

#formStatus { 
    text-align: center; 
    margin-top: 15px; 
    font-size: 16px;
    font-weight: bold; 
}
/* Footer */
.footer { text-align: center; padding: 30px 0; border-top: 1px solid #334155; }

/* About Section */
.about {
    padding: 80px 0;
    background: rgba(15, 23, 42, 0.3);
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #334155;
    text-align: center;
}

.about-content p {
    color: #cbd5e1;
    margin-bottom: 20px;
    font-size: 18px;
}

.about-content strong {
    color: var(--accent-color);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(59, 130, 246, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--accent-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: var(--bg-color);
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 50px;
    font-size: 18px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid #334155;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.portfolio-icon {
    font-size: 64px;
    text-align: center;
    padding: 30px 0 10px;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid #334155;
}

.portfolio-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.portfolio-content p {
    color: #cbd5e1;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Теги технологій */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Кнопка-посилання в портфоліо */
.portfolio-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding-top: 15px;
    border-top: 1px solid rgba(51, 65, 85, 0.5); 
}

.portfolio-link:hover {
    color: #fff;
    transform: translateX(5px); 
}

/* Process Section (Як замовити) */
.process {
    padding: 80px 0;
}

.process h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.step {
    background: var(--bg-color);
    padding: 30px 20px;
    border-radius: 12px;
    position: relative;
    border: 1px solid #334155;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.step h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.step p {
    color: #94a3b8;
    font-size: 15px;
}

/* Contacts Layout Update */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    padding-right: 20px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 15px;
    font-size: 16px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-list a:hover {
    color: var(--accent-color);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--card-bg); 
}

.faq h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-color);
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    list-style: none; 
    transition: color 0.3s ease;
}

.faq-item summary:hover {
    color: var(--accent-color);
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '×';
    font-size: 28px;
}

.faq-content {
    padding: 0 20px 20px;
    color: #cbd5e1;
    line-height: 1.6;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    margin-top: 10px;
    padding-top: 15px;
}

/* ================= АНІМОВАНИЙ ФОН ================= */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    background: var(--bg-color); 
}

#canvas-bg.menu-active {
    z-index: 98; /* Піднімаємо фон ПІД меню */
}

.hero, .process, .portfolio { background: transparent; }
.services, .contacts, .faq { background: rgba(30, 41, 59, 0.6); backdrop-filter: blur(5px); }

/* ================= ТЕЛЕФОН У МЕНЮ ================= */
.header-phone {
    font-weight: bold;
    color: var(--accent-color) !important;
    border: 1px solid var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
}
.header-phone:hover {
    background: var(--accent-color);
    color: #fff !important;
}

/* ================= ПЛАВАЮЧІ КНОПКИ (WIDGETS) ================= */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite; 
}

.float-btn:hover {
    transform: scale(1.1);
    animation: none; 
}

.telegram-btn { background-color: #2AABEE; }
.phone-btn { background-color: #10b981; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(42, 171, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(42, 171, 238, 0); }
}

.phone-btn { animation: pulse-green 2s infinite; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (min-width: 769px) {
    .hide-on-pc { display: none !important; }
}

/* ================= МОБІЛЬНЕ МЕНЮ (Гамбургер) ================= */
.hamburger {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    z-index: 105; 
    position: relative;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= ЄДИНИЙ БЛОК АДАПТИВНОСТІ (max-width: 768px) ================= */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100vw;
        height: 100vh; 
        background: rgba(15, 23, 42, 0.95); 
        z-index: 99; 
        opacity: 0; /* Меню невидиме */
        pointer-events: none; /* Пропускає кліки */
        transition: opacity 0.5s ease; 
    }

    .nav.active { 
        opacity: 1; /* Робимо видимим */
        pointer-events: all; 
    }

    .nav a {
        margin: 20px 0; 
        font-size: 26px; 
        font-weight: bold;
        text-align: center;
        opacity: 0; /* Текст невидимий спочатку */
        transform: translateY(20px); /* Трохи опущений вниз */
        transition: all 0.5s ease;
    }

    /* Анімація появи тексту знизу вгору */
    .nav.active a {
        opacity: 1;
        transform: translateY(0);
    }
    .nav.active a:nth-child(1) { transition-delay: 0.2s; }
    .nav.active a:nth-child(2) { transition-delay: 0.3s; }
    .nav.active a:nth-child(3) { transition-delay: 0.4s; }
    .nav.active a:nth-child(4) { transition-delay: 0.5s; }

    .header-phone {
        display: none; /* Ховаємо в меню, бо є плаваюча кнопка знизу */
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info { text-align: center; padding-right: 0; }
    .info-list li { justify-content: center; }
    .floating-widgets { bottom: 20px; right: 20px; }
    .float-btn { width: 50px; height: 50px; }
}


    /* Легке підсвічування для картки проєкту "Без Неї" */
    .highlight-card {
        border: 1px solid rgba(255, 98, 0, 0.2) !important;
        position: relative;
    }
    
    .highlight-card::before {
        content: 'NEW';
        position: absolute;
        top: 15px;
        right: 15px;
        background: #FF6200;
        color: white;
        font-size: 10px;
        font-weight: 900;
        padding: 2px 8px;
        border-radius: 10px;
        letter-spacing: 1px;
    }

    .highlight-card .portfolio-icon {
        color: #FF6200; /* Твій фірмовий колір проекту */
    }

    .portfolio-link {
        display: inline-block;
        margin-top: 15px;
        color: #FF6200;
        text-decoration: none;
        font-weight: bold;
        font-size: 14px;
        transition: 0.3s;
    }

    .portfolio-link:hover {
        transform: translateX(5px);
        opacity: 0.8;
    }
