/* Добавен е шрифтът Oswald специално за логото */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Poppins:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    
    /* Защита: Забранява маркирането на текст */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    background-color: #050508;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Модерни светещи сфери във фона */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.5;
    animation: drift 15s infinite alternate ease-in-out;
}
.orb-1 { width: 400px; height: 400px; background: #8a2be2; top: 10%; left: -10%; }
.orb-2 { width: 350px; height: 350px; background: #00d4ff; bottom: -10%; right: -5%; }
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Хедър / Навигация */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 8, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 12px 50px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
    background: rgba(5, 5, 8, 0.85);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

/* Лого - Твърд корпоративен шрифт */
.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 3D Въртящ се символ за безкрайност */
.logo-infinity {
    display: inline-block;
    color: #00d4ff;
    font-size: 36px;
    animation: flipInfinity 4s linear infinite;
    transform-origin: center;
    filter: drop-shadow(0 0 12px #00d4ff);
}

nav ul { display: flex; list-style: none; gap: 35px; }
nav ul li a {
    color: #bbb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
}
nav ul li a::after {
    content: ''; position: absolute; width: 0%; height: 2px;
    background: #00d4ff; bottom: -5px; left: 0; transition: 0.3s;
    box-shadow: 0 0 10px #00d4ff;
}
nav ul li a:hover { color: #fff; text-shadow: 0 0 15px rgba(0, 212, 255, 0.8); }
nav ul li a:hover::after { width: 100%; }

/* Начало */
.hero {
    height: 100vh; display: flex; justify-content: center;
    align-items: center; text-align: center; padding: 0 20px;
}
.hero-content h1 {
    font-size: 65px; margin-bottom: 25px;
    background: linear-gradient(to right, #00d4ff, #d800ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(216, 0, 255, 0.4));
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero-content p {
    font-size: 20px; margin-bottom: 45px; color: #c4c4c4;
    max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* Бутон */
.pulse-btn {
    display: inline-block; padding: 16px 45px;
    background: linear-gradient(45deg, #00d4ff, #8a2be2);
    color: #fff; text-decoration: none; border-radius: 50px;
    font-weight: 600; letter-spacing: 1px; position: relative;
    z-index: 1; overflow: hidden; transition: 0.4s;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}
.pulse-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, #8a2be2, #00d4ff);
    z-index: -1; transition: opacity 0.4s ease; opacity: 0;
}
.pulse-btn:hover::before { opacity: 1; }
.pulse-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 212, 255, 0.6); }

/* Секции Общи */
.services, .contacts { padding: 100px 50px; text-align: center; position: relative; z-index: 2; }
.section-title {
    font-size: 42px; margin-bottom: 70px; color: #fff; text-transform: uppercase;
    letter-spacing: 3px; position: relative; display: inline-block; font-weight: 800;
}
.section-title::after {
    content: ''; position: absolute; width: 50%; height: 3px;
    background: #00d4ff; bottom: -15px; left: 25%; box-shadow: 0 0 15px #00d4ff; border-radius: 5px;
}

/* Картотеки */
.cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; }
.card {
    background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(16px);
    padding: 45px 30px; border-radius: 25px; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden;
}
.card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.2) inset;
    border-color: rgba(0, 212, 255, 0.4);
}
.card i {
    font-size: 50px; background: linear-gradient(45deg, #00d4ff, #d800ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 25px; transition: 0.5s;
}
.card-icon-wrapper { position: relative; display: inline-block; }
.float-icon { position: absolute; font-size: 20px !important; top: -10px; right: -25px; animation: bounce 2s infinite; }
.card h3 { font-size: 22px; margin-bottom: 15px; font-weight: 600; color: #fff; }
.card p { color: #a3a3a3; font-size: 15px; line-height: 1.8; }

/* Контакти */
.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.contact-box {
    background: linear-gradient(145deg, rgba(20,20,25,0.8) 0%, rgba(5,5,8,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 40px 20px;
    transition: 0.4s; backdrop-filter: blur(10px);
}
.contact-box:hover { border-color: #8a2be2; box-shadow: 0 10px 40px rgba(138, 43, 226, 0.15); transform: translateY(-10px); }
.icon-ring {
    width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    background: rgba(0, 212, 255, 0.1); border: 2px solid #00d4ff; box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); transition: 0.4s;
}
.icon-ring i { font-size: 28px; color: #00d4ff; }
.contact-box:hover .icon-ring { background: #00d4ff; box-shadow: 0 0 30px #00d4ff; }
.contact-box:hover .icon-ring i { color: #000; }
.icon-ring.viber { border-color: #7360f2; box-shadow: 0 0 15px rgba(115, 96, 242, 0.3); }
.icon-ring.viber i { color: #7360f2; }
.contact-box:hover .icon-ring.viber { background: #7360f2; box-shadow: 0 0 30px #7360f2; }
.icon-ring.telegram { border-color: #0088cc; box-shadow: 0 0 15px rgba(0, 136, 204, 0.3); }
.icon-ring.telegram i { color: #0088cc; }
.contact-box:hover .icon-ring.telegram { background: #0088cc; box-shadow: 0 0 30px #0088cc; }
.contact-box h3 { font-size: 20px; color: #fff; margin-bottom: 10px; }
.contact-box .highlight { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.contact-link { display: inline-block; font-size: 20px; font-weight: 800; color: #00d4ff; text-decoration: none; margin-bottom: 8px; transition: 0.3s; }
.contact-link:hover { text-shadow: 0 0 10px #00d4ff; }
.contact-box .sub-text { font-size: 13px; color: #777; text-transform: uppercase; letter-spacing: 1px; }
.text-glow { background: linear-gradient(90deg, #00d4ff, #8a2be2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 8px rgba(138,43,226,0.6)); }

/* Футър */
footer { text-align: center; padding: 35px 20px; background: #020203; border-top: 1px solid rgba(255, 255, 255, 0.05); }
footer p { color: #666; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

/* Анимации */
@keyframes flipInfinity {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media(max-width: 768px) {
    header { flex-direction: column; padding: 15px; gap: 15px; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero-content h1 { font-size: 40px; }
    .services, .contacts { padding: 80px 20px; }
    .section-title { font-size: 32px; }
}