/* =========================================
   1. ОСНОВНИ НАСТРОЙКИ & ПРОМЕНЛИВИ
   ========================================= */
:root {
    --bg-dark: #050608;
    --accent-blue: #00d4ff;
    --accent-purple: #9d00ff;
    --text-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Скролбар дизайн */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(var(--accent-blue), var(--accent-purple)); 
    border-radius: 10px; 
}

#particles-js {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

/* =========================================
   2. НАВИГАЦИЯ
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 6%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    height: 70px;
    filter: drop-shadow(0 0 10px var(--accent-blue));
    transition: var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-blue);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* =========================================
   3. ГЛАВНА СТРАНИЦА (HERO)
   ========================================= */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.subtext {
    font-size: 1.2rem;
    opacity: 0.6;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* КИБЕР БУТОН НАПРЕД */
.btn-forward {
    position: relative;
    padding: 20px 60px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 4px;
    background: var(--glass);
    border: 2px solid var(--accent-blue);
    border-radius: 0; /* Остър дизайн */
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: var(--neon-shadow);
}

.btn-forward::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-forward:hover {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 40px var(--accent-blue);
    transform: translateY(-5px);
}

.btn-forward:hover::before {
    left: 100%;
}

/* =========================================
   4. ГРИД И КАРТИЧКИ (АНИМАЦИИ)
   ========================================= */
.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    margin: 80px 0 40px;
    font-size: 2.5rem;
    color: var(--accent-blue);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    padding: 0 8% 100px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

/* Класът за анимация, добавян от JS */
.card.reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-10px);
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    color: var(--accent-blue);
}

/* =========================================
   5. МАГАЗИН (БУТОНИ & СНИМКИ)
   ========================================= */
.shop-card .shop-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 10px;
}

.shop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.shop-card:hover .shop-img {
    transform: scale(1.15);
}

.btn-ticket {
    display: inline-block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.btn-ticket:hover {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 0 20px var(--accent-purple);
}

/* =========================================
   6. МОДАЛЕН ПРОЗОРЕЦ (FIXED SCROLL)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto; /* Позволява скрол на целия модал */
}

.modal-content {
    position: relative;
    background: #0d0f14;
    margin: 40px auto;
    padding: 50px;
    width: 95%;
    max-width: 800px;
    border-radius: 20px;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
    /* Анимация на модала */
    animation: modalIn 0.4s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.close {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 35px;
    color: var(--accent-blue);
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    transform: rotate(90deg);
    color: white;
}

#modal-body {
    color: #ccc;
    font-size: 1.1rem;
    word-wrap: break-word;
}

#modal-body h2 {
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

#modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* =========================================
   7. СТРАНИЦА ABOUT US
   ========================================= */
.about-container {
    padding: 100px 8%;
    display: flex;
    justify-content: center;
}

.about-card {
    max-width: 900px;
    line-height: 2;
    font-size: 1.1rem;
}

/* =========================================
   8. АНИМАЦИИ ПРИ ЗАРЕЖДАНЕ
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-title { animation: fadeInUp 0.8s ease-out; }
.subtext { animation: fadeInUp 1s ease-out forwards; }
.btn-forward { animation: fadeInUp 1.2s ease-out forwards; }