/* ============================================================
   DF AUTO – EXTREME FUTURISMUS 27. STOROČIE
   ============================================================ */

/* ===== GLOBAL ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background:
        radial-gradient(circle at 20% 10%, #00111f 0%, transparent 45%),
        radial-gradient(circle at 80% 90%, #000a1a 0%, transparent 50%),
        linear-gradient(180deg, #02040a 0%, #03060f 40%, #010308 100%);
    color: #d8eaff;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(0,200,255,0.25), transparent 60%),
        linear-gradient(300deg, rgba(0,255,180,0.18), transparent 55%),
        radial-gradient(circle at center, rgba(0,255,255,0.08), transparent 70%);
    mix-blend-mode: screen;
    opacity: 0.8;
}

/* ===== SLIDER ===== */
.slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,200,255,0.25);
    box-shadow: 0 0 35px rgba(0,255,255,0.25);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fade 20s infinite;
}

@keyframes fade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 1; }
    30% { opacity: 0; }
}

/* ===== NAVIGÁCIA ===== */
.main-nav {
    width: 100%;
    background: rgba(3, 6, 12, 0.92);
    backdrop-filter: blur(22px);
    padding: 14px 0;
    box-shadow: 0 14px 50px rgba(0,0,0,0.75);
    border-bottom: 1px solid rgba(0,200,255,0.25);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 45px;
}

.main-nav a {
    color: #d4ecff;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #00e0ff, #00ffd5);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===== HAMBURGER MENU (mobil) ===== */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(0,200,255,0.4);
    color: #d4ecff;
    font-size: 26px;
    line-height: 1;
    padding: 6px 14px;
    margin: 0 12px;
    border-radius: 8px;
    cursor: pointer;
}
@media (max-width: 900px) {
    .nav-toggle { display: inline-block; }
    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px 4px;
    }
    .main-nav.open ul { display: flex; }
    .main-nav.open ul li { border-top: 1px solid rgba(0,200,255,0.12); }
    .main-nav.open ul li a { display: block; padding: 12px 4px; font-size: 16px; }
}

/* ===== SEKCIE ===== */
.section {
    background: rgba(10,16,26,0.88);
    padding: 45px;
    margin: 50px auto;
    width: 85%;
    border-radius: 22px;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(120,200,255,0.35);
    box-shadow: 0 20px 55px rgba(0,0,0,0.85);
}

.section h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #a8d4ff;
    letter-spacing: 0.15em;
}

/* ===== SLUŽBY – KARTY ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.card {
    background: rgba(0, 20, 40, 0.75);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0,200,255,0.25);
    box-shadow: 0 0 25px rgba(0,200,255,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 35px rgba(0,255,255,0.35);
}

/* ===== GALÉRIA ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0,200,255,0.25);
    box-shadow: 0 0 20px rgba(0,200,255,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0,255,255,0.35);
}

/* ===== KONTAKT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.contact-grid svg {
    filter: drop-shadow(0 0 8px rgba(0,255,255,0.35));
    transition: 0.25s;
}

.contact-grid svg:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(0,255,255,0.55));
}

/* ===== FOOTER ===== */
.footer {
    width: 100%;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    background: rgba(3, 6, 12, 0.95);
    border-top: 1px solid rgba(0,200,255,0.25);
    font-size: 14px;
    color: #9fc5ff;
}

/* ===== MODÁLNE OKNO – REZERVÁCIA ===== */
#reservationModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 20, 0.75);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.reservation-modal-box {
    background: rgba(0, 25, 45, 0.9);
    padding: 35px;
    width: 380px;
    border-radius: 18px;
    border: 1px solid rgba(0,200,255,0.35);
    box-shadow: 0 0 45px rgba(0,255,255,0.25);
    color: #d8eaff;
    text-align: center;
}

.reservation-modal-button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #00e0ff, #00ffd5);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #001018;
    font-weight: bold;
    transition: 0.25s;
}

.reservation-modal-button:hover {
    box-shadow: 0 0 25px rgba(0,255,255,0.45);
    transform: translateY(-3px);
}

/* ===== ADMIN LOGIN MODAL ===== */
#adminLogin {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 20, 0.75);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.admin-login-box {
    background: rgba(0, 25, 45, 0.9);
    padding: 35px;
    width: 340px;
    border-radius: 18px;
    border: 1px solid rgba(0,200,255,0.35);
    box-shadow: 0 0 45px rgba(0,255,255,0.25);
    color: #d8eaff;
    text-align: center;
}

.admin-login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,200,255,0.25);
    background: rgba(0, 15, 30, 0.7);
    color: #d8eaff;
}

.admin-login-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00e0ff, #00ffd5);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #001018;
    font-weight: bold;
    transition: 0.25s;
}

.admin-login-box button:hover {
    box-shadow: 0 0 25px rgba(0,255,255,0.45);
    transform: translateY(-3px);
}
/* ===== REKLAMNÉ AKCIE – KRUHOVÝ SLIDER ===== */

.reklama-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.reklama-carousel::-webkit-scrollbar {
    display: none;
}

.reklama-item {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    scroll-snap-align: center;
    border: 2px solid rgba(0,200,255,0.35);
    box-shadow: 0 0 25px rgba(0,255,255,0.25);
}

.reklama-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* ===== LIGHTBOX ===== */

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,10,20,0.85);
    backdrop-filter: blur(18px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 18px;
    border: 1px solid rgba(0,200,255,0.35);
    box-shadow: 0 0 45px rgba(0,255,255,0.45);
}
/* (odstranene chybne 20px pravidlo) */

/* ===== RESPONZIVITA (mobily a tablety) ===== */
@media (max-width: 900px) {
    .section { width: 94%; padding: 25px 18px; margin: 25px auto; }
    .section h2 { font-size: 24px; }
    .services-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .main-nav ul { flex-wrap: wrap; gap: 14px 22px; padding: 0 12px; }
    .main-nav a { font-size: 15px; }
    .slider { height: 230px; }
    .reservation-modal-box, .admin-login-box { width: 92%; max-width: 380px; }
}
@media (max-width: 520px) {
    .services-grid, .gallery-grid { grid-template-columns: 1fr; }
    .reklama-item { width: 110px; height: 110px; }
    .slider { height: 170px; }
}
