/* -------------------------
   Reset / Base
------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #001428, #002f5f);
    color: #ffffff;
    min-height: 100vh;
    transition: all 0.5s ease;
}

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


/* от тук (начало търси край на ред 42)*/
/* Ефектът на премигваща светкавица в червено при посочване */
header .logo:hover img {
    /* Основна червена сянка при посочване */
    filter: drop-shadow(0 0 10px #ff0000) drop-shadow(0 0 20px #fff);
    animation: flash 0.5s infinite;
}

@keyframes flash {
    0%, 100% { 
        opacity: 1; 
        filter: brightness(1) drop-shadow(0 0 5px #ff0000); 
    }
    50% { 
        opacity: 0.8; 
        filter: brightness(2) drop-shadow(0 0 25px #ff4d4d); /* По-светло червено за сияние */
    }
    70% { 
        opacity: 1; 
        filter: brightness(1.5) drop-shadow(0 0 15px #ff0000); 
    }
}

/*до тук мигащ ефект като застанеш върху логото)*

/* -------------------------
   Header
------------------------- */
header {
    position: relative;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: top 0.3s ease;
    z-index: 1000;
}

header .logo {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

header .logo img {
    height: 130px;
    cursor: pointer;
}

#main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    z-index: 1000;
    pointer-events: auto;
}

#main-nav a {
    font-weight: bold;
    transition: 0.3s;
}

#main-nav a:hover {
    color: #00eaff;
}

.header-controls {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

#theme-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    background: #00eaff;
    color: #001428;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

#theme-btn:hover {
    background: #007acc;
    color: #fff;
}

.lang-switcher {
    position: relative;
    cursor: pointer;
}

.lang-dropdown {
    position: absolute;
    top: 35px;
    right: 0;
    background: #001428;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 120px;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.lang-item img {
    width: 22px;
    height: 16px;
}

.lang-item:hover {
    background: #00eaff;
    color: black;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

/* -------------------------
   Hero / premium
------------------------- */
.hero-premium {
    text-align: center;
    padding: 100px 20px 50px 20px;
    background: linear-gradient(135deg, #001428, #002f5f);
    color: #00eaff;
    background-attachment: fixed; /* parallax */
    background-size: cover;
    transition: background 0.8s ease, color 0.8s ease;
}

.hero-premium .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 13px;
}

.hero-premium .hero-content p {
    font-size: 1.2rem;
    opacity: 0.85;
}

/* -------------------------
   Forms / Content
------------------------- */
.content, form {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea, select {
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 10px #00eaff;
}

button.submit-btn, .cta-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #00eaff;
    color: #001428;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button.submit-btn:hover, .cta-btn:hover {
    background: #007acc;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* -------------------------
   Gallery
------------------------- */
.gallery-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #001428, #002f5f);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

body.light-mode .gallery-container {
    background: linear-gradient(135deg, #e0f0ff, #cce6ff);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,234,255,0.4);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    filter: brightness(0.95);
    transition: 0.3s;
}

.gallery-img:hover {
    filter: brightness(1);
}

/* -------------------------
   Footer
------------------------- */
.footer {
    text-align: center;
    padding: 25px 10px;
    background: rgba(0,0,0,0.7);
    color: #ffffff;
    margin-top: 50px;
}

body.light-mode .footer {
    background: rgba(255,255,255,0.7);
    color: #001428;
}

/* -------------------------
   Dark / Light mode
------------------------- */
body.light-mode {
    background: linear-gradient(135deg, #e6f6ff, #cce6ff);
    color: #001428;
}

body.light-mode #theme-btn {
    background: #007acc;
    color: #fff;
}

/* -------------------------
   Fade-in анимации
------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   CTA button gradient
------------------------- */
.cta-btn {
    display: inline-block;
    padding: 15px 38px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(90deg, #00eaff, #007acc, #00eaff, #007acc);
    background-size: 300% 300%;
    animation: gradientMove 6s ease infinite;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.7s;
}

.cta-btn:hover::before {
    left: 100%;
}

/* -------------------------
   Responsive / Mobile
------------------------- */
@media (max-width: 768px) {
    header .logo img {
        height: 80px;
    }

    #main-nav {
        flex-direction: column;
        gap: 8px;
        margin-top: 100px;
        width: 100%;
    }

    #main-nav a {
        font-size: 0.9rem;
        padding-left: 10px;
    }
}

/* Фиксиран бутон Facebook горе вдясно */
.header-fb-btn {
    display: inline-block;
    margin-right: 10px; /* разстояние до бутона за темата */
    vertical-align: middle;
}

.header-fb-btn img {
    width: 32px;   /* размер на бутона */
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s;
}

.header-fb-btn img:hover {
    transform: scale(1.1);
}


/* Services logo img */

/* =========================
   BRANDS RESPONSIVE CLEAN
========================= */

/* DESKTOP */
@media (min-width: 1101px) {

    .brands-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        max-width: 1000px;
        margin: 60px auto;
        justify-items: center;
    }

    .brands-left,
    .brands-right {
        display: contents;
    }

    .brands-left img,
    .brands-right img {
        width: 170px;
        height: 90px;
        object-fit: contain;
        background: rgba(255,255,255,0.05);
        padding: 12px;
        border-radius: 10px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .brands-left img:hover,
    .brands-right img:hover {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(0,234,255,0.4);
    }
}


/* MOBILE */
@media (max-width: 1100px) {

    .brands-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin: 50px auto;
        padding: 0 20px;
        justify-items: center;
    }

    .brands-left,
    .brands-right {
        display: contents;
    }

    .brands-left img,
    .brands-right img {
        width: 140px;
        height: 75px;
        object-fit: contain;
        background: rgba(255,255,255,0.05);
        padding: 8px;
        border-radius: 8px;
    }
}
/* Пагинационни бутони - същите цветове като CTA бутоните */
.pagination a, .pagination b {
    display: inline-block;
    padding: 10px 18px;
    margin: 5px 3px;
    background: linear-gradient(90deg, #00eaff, #007acc, #00eaff, #007acc);
    background-size: 300% 300%;
    color: #fff;
    text-decoration: none;
    border-radius: 50px; /* за по-меки бутони, като CTA */
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    animation: gradientMove 6s ease infinite; /* същата анимация като CTA */
}

.pagination a:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.pagination b {
    background: #007acc; /* активна страница - по-тъмен син */
    color: #fff;
    animation: none; /* без градиент анимация за активната страница */
}