/* --- ЗМІННІ --- */
:root {
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 25, 0.7);
    --text-main: #fff;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark); 
}
::-webkit-scrollbar-thumb {
    background: var(--primary); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary); 
}

/* --- SELECTION --- */
::selection {
    background: var(--primary);
    color: #000;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; /* Ховаємо стандартний курсор */ }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9000;
}

/* --- CUSTOM CURSOR --- */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor2 {
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, top 0.1s, left 0.1s; 
}

/* Ефект наведення курсору */
.cursor2.hovered {
    width: 60px;
    height: 60px;
    background: rgba(188, 19, 254, 0.2);
    border-color: var(--primary);
}

/* --- GLITCH EFFECT --- */
.glitch {
    position: relative;
    color: white;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; 
}
.glitch::before {
    left: 2px; text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px; text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); transform: skew(0.5deg); }
    10% { clip: rect(50px, 9999px, 80px, 0); transform: skew(-0.5deg); }
    100% { clip: rect(90px, 9999px, 120px, 0); transform: skew(0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(80px, 9999px, 100px, 0); transform: skew(0.3deg); }
    50% { clip: rect(10px, 9999px, 40px, 0); transform: skew(-0.3deg); }
    100% { clip: rect(120px, 9999px, 140px, 0); transform: skew(0); }
}

/* --- HEADER --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; width: 100%; top: 0; z-index: 100;
    background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; }
nav ul { display: flex; gap: 30px; list-style: none; }
nav a { text-decoration: none; color: #fff; font-weight: 500; transition: 0.3s; }
nav a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

.btn-reserve {
    padding: 12px 35px; background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--primary); color: var(--primary);
    font-family: var(--font-head); font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s; position: relative; overflow: hidden;
    cursor: none; /* Ensure custom cursor is used */
}
.btn-reserve::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.4), transparent);
    transition: 0.5s;
}
.btn-reserve:hover {
    background: var(--primary); color: #000;
    box-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary);
    transform: translateY(-2px);
}
.btn-reserve:hover::before {
    left: 100%;
}

/* --- HERO SECTION & VIDEO BG --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden;
}
.video-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: -1;
    background-image: radial-gradient(circle, transparent 20%, #050505 100%);
}
.hero-content h1 {
    font-family: var(--font-head); font-size: 4rem; line-height: 1.1; margin-bottom: 20px;
}
.hero-content span { color: var(--secondary); text-shadow: 0 0 10px var(--secondary); }
.hero-content p { font-size: 1.2rem; color: #ccc; margin-bottom: 40px; max-width: 600px; margin-inline: auto; }

/* --- SECTIONS COMMON --- */
.section { padding: 100px 5%; }
.section-title {
    text-align: center; font-family: var(--font-head); font-size: 2.5rem;
    margin-bottom: 80px; text-transform: uppercase;
}

/* --- SPECS & TILT CARDS --- */
.specs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.spec-card {
    background: var(--bg-card); padding: 40px 20px; border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05); text-align: center;
    transform-style: preserve-3d; /* Важливо для 3D */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.spec-icon { font-size: 3rem; margin-bottom: 20px; transform: translateZ(20px); }
.spec-card h3 { color: var(--primary); margin-bottom: 10px; transform: translateZ(10px); }
.spec-card p { color: #888; transform: translateZ(5px); }

/* --- PRICING --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.price-card {
    background: var(--bg-card); padding: 40px; border-radius: 20px;
    position: relative; overflow: hidden; border: 1px solid #333;
    transform-style: preserve-3d;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.price-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}
.price-card.vip { border: 1px solid var(--secondary); box-shadow: 0 0 20px rgba(188, 19, 254, 0.1); }
.price-card.vip:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.4);
}
.zone-name { color: var(--primary); font-size: 1.5rem; font-family: var(--font-head); display: block; margin-bottom: 15px; transform: translateZ(20px); }
.price { font-size: 3rem; font-weight: bold; margin-bottom: 30px; transform: translateZ(30px); }
.price span { font-size: 1rem; color: #888; }
.features li { list-style: none; margin-bottom: 10px; color: #aaa; transform: translateZ(10px); }
.features li::before { content: '>'; color: var(--secondary); margin-right: 10px; }

/* --- BOOKING FORM --- */
.form-container {
    max-width: 500px; margin: 0 auto; background: #0f0f15;
    padding: 40px; border-radius: 20px; border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
}
.form-group { margin-bottom: 20px; transform: translateZ(20px); }
.form-group label { display: block; margin-bottom: 8px; color: var(--primary); font-size: 0.9rem; }
.form-group input, .form-group select {
    width: 100%; padding: 12px; background: #050505; border: 1px solid #333;
    color: white; border-radius: 5px; outline: none; transition: 0.3s;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--secondary); box-shadow: 0 0 10px rgba(188, 19, 254, 0.3);
}

/* --- FOOTER --- */
footer {
    background: #000; padding: 50px; text-align: center; border-top: 1px solid #222;
}
.contact-info { display: flex; justify-content: center; gap: 50px; margin-bottom: 30px; flex-wrap: wrap; }
.contact-item h4 { color: var(--primary); margin-bottom: 10px; }
.copyright { color: #444; font-size: 0.8rem; }

/* --- PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-content { text-align: center; }
.loader-content .glitch { font-size: 2rem; font-family: var(--font-head); margin-bottom: 20px; }
.loader-bar {
    width: 300px; height: 4px; background: #111;
    margin: 0 auto; position: relative; overflow: hidden;
    border-radius: 2px;
}
.loader-progress {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: load 2s ease-in-out forwards;
}
@keyframes load {
    0% { width: 0%; }
    50% { width: 40%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

/* --- ANIMATED BG CANVAS --- */
#cyber-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -5; pointer-events: none;
    opacity: 0.4; /* Щоб не заважав контенту */
}

/* --- BURGER MENU --- */
.burger {
    display: none; cursor: pointer;
    flex-direction: column; gap: 5px;
    z-index: 1001;
}
.burger div {
    width: 25px; height: 3px; background: #fff;
    transition: 0.3s;
}
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(15px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: 0.4s ease-in-out; z-index: 1000;
}
.mobile-menu.active { right: 0; }
.mobile-menu ul { list-style: none; text-align: center; margin-bottom: 40px; }
.mobile-menu li { margin: 20px 0; }
.mobile-menu a {
    font-family: var(--font-head); font-size: 2rem; color: #fff;
    text-decoration: none; text-transform: uppercase;
}
.mobile-menu a:hover { color: var(--primary); }

/* Burger Animation */
.burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background: var(--primary); }
.burger.toggle .line2 { opacity: 0; }
.burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background: var(--primary); }

/* --- ICONS --- */
.spec-icon i {
    font-size: 3rem; color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 90px; /* Move toast up to avoid overlap with back-to-top */
    right: 30px;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid var(--primary);
    border-left: 5px solid var(--primary);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: translateX(200%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10002;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 2rem;
    color: var(--primary);
}

.toast-content h4 {
    color: #fff;
    margin-bottom: 5px;
    font-family: var(--font-head);
    letter-spacing: 1px;
}

.toast-content p {
    color: #aaa;
    font-size: 0.9rem;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(5, 5, 5, 0.8);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-5px);
}

/* --- MOBILE RESPONSIVE UPDATE --- */
@media (max-width: 768px) {
    .desktop-nav, .desktop-btn { display: none; }
    .burger { display: flex; }
    .hero-content h1 { font-size: 2.5rem; }
    .cursor, .cursor2 { display: none; }
    * { cursor: auto; }
}