/* ==================== GLOBAL ==================== */
:root {
    --gold: #d4a373;
    --gold-dark: #8c6b4a;
    --gold-glow: rgba(212, 163, 115, 0.5);
    --bg-dark: #050505;
    --panel-bg: rgba(15, 15, 15, 0.95);
    --glass-border: rgba(212, 163, 115, 0.3);
    
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; }

body {
    margin: 0; padding: 0;
    background-color: var(--bg-dark);
    color: #f0f0f0;
    font-family: var(--font-body);
    height: 100vh; width: 100vw;
    overflow: hidden;
}

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

/* ==================== 1. POZADIE & ŠACHTA ==================== */
.shaft-container {
    position: fixed; inset: 0; z-index: 0;
    background: #080808;
}

.shaft-texture {
    width: 100%; height: 200vh;
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,1) 0%, transparent 5%, transparent 95%, rgba(0,0,0,1) 100%),
        repeating-linear-gradient(0deg, transparent 0px, transparent 49px, rgba(212, 163, 115, 0.05) 50px),
        linear-gradient(90deg, #111 1px, transparent 1px);
    background-size: 100% 100%, 100% 50px, 5% 100%;
    transition: transform 1.2s cubic-bezier(0.45, 0, 0.55, 1);
    will-change: transform;
}

.cabin-frame {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    box-shadow: inset 0 0 120px rgba(0,0,0,0.9);
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 15%),
        radial-gradient(circle, transparent 60%, #000 100%);
}

.vignette {
    position: fixed; inset: 0; pointer-events: none; z-index: 2;
    background: radial-gradient(circle, transparent 40%, #000 100%);
}

/* ==================== 2. DVERE ==================== */
.elevator-doors {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9000; display: flex; pointer-events: none;
}

.door-panel {
    width: 50%; height: 100%;
    background: linear-gradient(90deg, #1a1a1a, #0a0a0a);
    position: relative;
    box-shadow: 0 0 50px #000;
    pointer-events: auto;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateX(0);
    display: flex; flex-direction: column; align-items: center;
}

.door-panel.left { border-right: 2px solid var(--gold); }
.door-panel.right { border-left: 2px solid var(--gold); }

.door-window {
    position: absolute; top: 30%; width: 60%; height: 200px;
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 40px #000;
    backdrop-filter: blur(5px);
}

.door-logo {
    position: absolute; top: 55%;
    font-family: var(--font-head); font-weight: 900; font-size: 2.5rem; letter-spacing: 5px;
    color: transparent; -webkit-text-stroke: 1px rgba(212, 163, 115, 0.3); opacity: 0.7;
}

body.doors-open .door-panel.left { transform: translateX(-100%); }
body.doors-open .door-panel.right { transform: translateX(100%); }


/* ==================== 3. OBSAH & KARTY ==================== */
.elevator-stage {
    position: relative; height: 100vh; width: 100vw;
    display: flex; justify-content: center; align-items: center;
    z-index: 10;
}

.floor {
    position: absolute; width: 100%; height: 100%;
    display: none;
    justify-content: center; align-items: center;
    padding: 20px;
    padding-bottom: 120px;
}
.floor.active { display: flex; animation: fadeIn 0.8s forwards 0.5s; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }

.content-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 35px;
    width: 100%; max-width: 600px;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    text-align: center;
    pointer-events: auto;
    position: relative;
    z-index: 20;
}
.content-card.wide { max-width: 900px; }

h1 { font-family: var(--font-head); font-size: 3rem; margin: 0; color: #fff; line-height: 1.1; }
h2 { font-family: var(--font-head); font-size: 2rem; color: var(--gold); margin-bottom: 20px; }
.gold-text { color: var(--gold); }
.icon-gold { color: var(--gold); margin-bottom: 15px; }
.subtitle { color: #888; letter-spacing: 3px; font-size: 0.9rem; margin-top: 10px; }
.separator { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 25px 0; opacity: 0.5; }
p { line-height: 1.6; color: #ccc; margin-bottom: 20px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px;
    background: var(--gold); color: #000;
    font-weight: 700; text-transform: uppercase; text-decoration: none;
    border-radius: 4px; border: none; cursor: pointer;
    font-family: var(--font-head); transition: 0.3s; margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.btn:hover { background: #fff; box-shadow: 0 0 20px var(--gold-glow); }
.btn:active { transform: scale(0.95); }
.btn.outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn.outline:hover { background: var(--gold); color: #000; }
.btn.small { padding: 8px 16px; font-size: 0.8rem; margin-top: 10px; width: 100%; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; overflow: hidden; text-decoration: none; color: #fff;
    text-align: left; transition: 0.3s; display: flex; flex-direction: column;
}
.card-item:hover { border-color: var(--gold); transform: translateY(-3px); }

/* --- OPRAVA OBRÁZKOV --- */
.img-wrapper {
    height: 160px; background: #000;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.img-wrapper img, .partner-img img {
    width: 100%; height: 100%; 
    object-fit: contain; /* Fotky budú celé viditeľné */
    transition: 0.5s;
    padding: 5px;
}
.card-item:hover img { transform: scale(1.1); }

.info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.info h3 { margin: 0 0 5px; color: var(--gold); font-size: 1.2rem; font-family: var(--font-head); }
.info p { margin: 0; font-size: 0.9rem; color: #999; margin-bottom: 15px; }

.partners-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.partner-box { width: 160px; text-align: center; padding-bottom: 15px; }
.partner-img { height: 100px; padding: 10px; }
.partner-name { padding: 10px; font-weight: bold; color: var(--gold); }

.tech-list { list-style: none; padding: 0; text-align: left; margin-bottom: 25px; }
.tech-list li {
    padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 15px;
}
.tech-list li i { color: var(--gold); font-size: 1.2rem; }
.tech-list li div small { color: #888; }

.stats-row { display: flex; justify-content: space-around; margin-top: 30px; }
.stats-row strong { font-size: 2.5rem; color: var(--gold); font-family: var(--font-head); }

.contact-list { display: flex; flex-direction: column; gap: 15px; }
.contact-item { padding: 20px; display: flex; align-items: center; gap: 20px; }
.contact-item i { font-size: 2rem; color: var(--gold); }


/* ==================== 4. PANELY ==================== */
.panel-desktop {
    position: fixed; right: 30px; top: 50%; transform: translateY(-50%);
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    padding: 20px; border-radius: 10px; border: 1px solid var(--glass-border);
    z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.brand { color: var(--gold); font-family: var(--font-head); margin-bottom: 5px; letter-spacing: 2px; }

.led-display {
    background: #000; border: 2px solid #333; width: 60px; height: 40px;
    color: var(--gold); font-family: var(--font-head); font-size: 1.8rem;
    display: flex; justify-content: center; align-items: center;
    text-shadow: 0 0 10px var(--gold-glow);
}

.status-light {
    width: 10px; height: 10px; border-radius: 50%; background: #222;
    box-shadow: inset 0 0 5px #000; border: 1px solid #444; margin-bottom: 5px; transition: 0.3s;
}
.status-light.moving { background: #ff3333; box-shadow: 0 0 8px #ff3333; }
.status-light.open { background: #33ff33; box-shadow: 0 0 8px #33ff33; }

.buttons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.floor-btn {
    width: 45px; height: 45px; background: #111; border: 1px solid #333;
    color: #666; font-family: var(--font-head); font-weight: 700; cursor: pointer; transition: 0.2s;
}
.floor-btn:hover { color: var(--gold); border-color: var(--gold); }
.floor-btn.active { background: var(--gold); color: #000; box-shadow: 0 0 15px var(--gold-glow); }

.desktop-nav {
    margin-top: 10px; padding-top: 15px; border-top: 1px solid #333;
    display: flex; flex-direction: column; gap: 8px; width: 100%;
}
.arrow-btn {
    width: 100%; height: 35px; background: transparent; border: 1px solid var(--gold);
    color: var(--gold); border-radius: 4px; cursor: pointer; font-size: 1rem; transition: 0.2s;
}
.arrow-btn:hover { background: var(--gold); color: #000; }

.panel-mobile {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 90px;
    background: var(--panel-bg); border-top: 1px solid var(--gold);
    z-index: 8500; justify-content: space-between; align-items: center; padding: 0 25px;
    backdrop-filter: blur(10px); box-shadow: 0 -10px 40px rgba(0,0,0,0.9);
}
.mob-controls { display: flex; gap: 20px; }
.big-btn {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(145deg, #222, #000);
    border: 1px solid var(--gold); color: var(--gold); font-size: 1.5rem;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); cursor: pointer;
}
.big-btn:active { background: var(--gold); color: #000; transform: scale(0.95); }


/* ==================== MEDIA QUERIES (MOBILE FIX) ==================== */
@media (max-width: 900px) {
    .panel-desktop { display: none; }
    .panel-mobile { display: flex; }
    
    .grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    
    /* Oprava zarovnania obsahu */
    .content-card {
        width: 90%; margin: 0 auto; /* Center Horizontal */
        background: rgba(10,10,10,0.95);
        max-height: 70vh;
    }
    
    .floor {
        display: none; 
        align-items: center; /* Center Vertical */
        justify-content: center;
        padding-top: 0; padding-bottom: 100px;
    }
    
    .img-wrapper { height: 180px; }
    
    .door-logo { font-size: 2rem; top: 55%; }
    .door-window { top: 20%; height: 200px; }
}