/* ==========================================================================
   БАЗОВИ НАСТРОЙКИ И НУЛИРАНЕ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #0b0f19;
    color: #f3f4f6;
    line-height: 1.6;
    height: auto;
    display: block;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   ХЕДЪР И НАВИГАЦИЯ
   ========================================================================== */
header {
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.logo span {
    color: #38bdf8; /* Технологично синьо */
}
.back-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.back-link:hover {
    color: #fff;
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.05);
}

/* ==========================================================================
   ГЛАВЕН ЕКРАН (HERO SECTION)
   ========================================================================== */
.hero {
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at top right, rgba(30, 27, 75, 0.4), transparent);
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-weight: 300;
}
.hero span.badge {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}
.cta-button {
    display: inline-block;
    background-color: #38bdf8;
    color: #0f172a;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}
.cta-button:hover {
    background-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   СЕКЦИЯ ПРЕДИМСТВА (3 КОЛОНИ GRID)
   ========================================================================== */
.features {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.card {
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}
.card-icon {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.card p {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 300;
}

/* ==========================================================================
   СЕКЦИЯ ТЕХНОЛОГИЧЕН СТЕК (2 КОЛОНИ GRID)
   ========================================================================== */
.services-section {
    padding: 80px 0;
    background-color: #0f172a;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.service-item {
    background-color: #0b0f19;
    padding: 30px;
    border-radius: 6px;
    border-left: 4px solid #38bdf8;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.service-item h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #ffffff;
}
.service-item p {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 300;
}

/* ==========================================================================
   УНИВЕРСАЛНА ПОП-ЪП МОДАЛНА ФОРМА
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    background-color: #111827;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 1.8rem;
    background: none; 
    border: none;
    color: #94a3b8; 
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}
.close-modal:hover { 
    color: #fff; 
}
.modal-box h3 {
    font-size: 1.4rem; 
    margin-bottom: 25px; 
    color: #fff;
    text-align: center;
}
.form-group {
    margin-bottom: 20px; 
    text-align: left;
}
.form-group label {
    display: block; 
    margin-bottom: 8px; 
    font-size: 0.85rem; 
    color: #94a3b8;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%; 
    padding: 12px;
    background-color: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px; 
    color: #fff;
    font-family: inherit; 
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #38bdf8; 
    outline: none;
}
.submit-btn {
    width: 100%; 
    padding: 14px;
    background-color: #38bdf8; 
    color: #0f172a;
    border: none; 
    border-radius: 6px;
    font-weight: 600; 
    cursor: pointer;
    font-size: 1rem; 
    transition: background-color 0.3s ease;
}
.submit-btn:hover { 
    background-color: #0ea5e9; 
}
.form-status {
    margin-top: 15px; 
    font-size: 0.9rem; 
    text-align: center;
    font-weight: 500;
}

/* ==========================================================================
   БУТОН НАГОРЕ (BACK TO TOP)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover {
    background-color: #0ea5e9;
    transform: translateY(-3px);
}

/* ==========================================================================
   ФУТЪР
   ========================================================================== */
footer {
    background-color: #070a12;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}
.footer-info {
    margin-bottom: 20px;
}
.footer-info a {
    margin: 0 15px;
    color: #94a3b8;
    transition: color 0.3s ease;
}
.footer-info a:hover {
    color: #38bdf8;
}

/* ==========================================================================
   АДАПТИВНОСТ (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 968px) {
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
/* Стилизиране на GDPR банера */
.gdpr-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background-color: #1e293b;
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.gdpr-banner.show {
    bottom: 0;
}
.gdpr-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.gdpr-container p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}
.gdpr-container a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600;
}
.gdpr-container a:hover {
    color: #0ea5e9;
}
.gdpr-btn {
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.gdpr-btn:hover {
    background-color: #0ea5e9;
}

/* Адаптивност за мобилни телефони */
@media (max-width: 768px) {
    .gdpr-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .gdpr-btn {
        width: 100%;
    }
}
