/* ============================================================================
   DIGITÁLNÍ AUTOŠKOLA - Modern Glassmorphism & Cyber Emerald Theme v2.2
   ============================================================================ */

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-color: rgba(16, 185, 129, 0.22);
    --border-glow: rgba(16, 185, 129, 0.45);
    --accent-emerald: #10b981;
    --accent-glow: #059669;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
}

#static-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.14) 0%, rgba(9, 13, 22, 0.98) 70%);
    z-index: -1;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 90px 0;
}

.text-emerald {
    color: var(--accent-emerald) !important;
}

/* NAVBAR */
nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-emerald);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-emerald);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.55);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--accent-emerald);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.95rem;
}

/* SUB BADGE & SECTION HEADERS */
.sub-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* HERO SECTION WITH BACKGROUND IMAGE & GRID */
.hero {
    position: relative;
    padding: 90px 0 100px 0;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.75) 0%, rgba(9, 13, 22, 0.96) 100%),
                url('img/bg_hero/01.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 20px 0;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.hero-pills {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-pills i {
    color: var(--accent-emerald);
}

/* PHONE MOCKUP STYLING */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup-wrapper {
    position: relative;
    padding: 20px;
}

.phone-frame {
    width: 290px;
    height: 580px;
    background: #0f172a;
    border: 8px solid #1e293b;
    border-radius: 42px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(16, 185, 129, 0.25);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7),
                0 0 50px rgba(16, 185, 129, 0.4);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 22px;
    background: #1e293b;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.phone-screen-fit {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Displays full screenshot without cropping or weird zooming! */
    background: #090d16;
    display: block;
}

.mockup-medium {
    width: 260px;
    height: 520px;
    border-radius: 38px;
}

.mockup-gallery {
    width: 220px;
    height: 440px;
    border-radius: 34px;
    border: 6px solid #1e293b;
    background: #0f172a;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

/* FLOATING GLASS BADGES */
.glass-float-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 20;
}

.glass-float-badge i {
    font-size: 1.4rem;
}

.glass-float-badge strong {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
}

.glass-float-badge small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.float-top-left {
    top: 40px;
    left: -30px;
    animation: floatAnim 4s ease-in-out infinite;
}

.float-bottom-right {
    bottom: 40px;
    right: -20px;
    animation: floatAnim 4s ease-in-out infinite 2s;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* APP SHOWCASE CARDS (DVA SVĚTY) */
.app-showcase-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.showcase-media {
    display: flex;
    justify-content: center;
}

.app-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.tag-commander {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag-student {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.showcase-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
}

.showcase-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.feature-checklist {
    list-style: none;
    margin-bottom: 25px;
}

.feature-checklist li {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
}

.feature-checklist i {
    font-size: 1.4rem;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-checklist strong {
    display: block;
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.feature-checklist p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* STORE BUTTONS INLINE */
.store-box-inline {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 18px;
    margin-top: 20px;
}

.store-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-buttons-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.store-btn-link {
    display: inline-block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.store-btn-link:hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.1);
}

.store-btn-link img {
    height: 46px;
    width: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* PAIRING BANNER */
.pairing-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 60px 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pairing-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.pairing-text h2 {
    font-size: 2.3rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.pairing-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.pairing-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p-step {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: #ffffff;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-emerald);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.pairing-cards-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.pairing-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: transform 0.25s;
}

.pairing-card:hover {
    transform: translateY(-5px);
}

.card-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-emerald);
    margin-bottom: 8px;
}

.pairing-card img {
    width: 170px;
    border-radius: 12px;
    display: block;
}

/* GALLERY TABS & CARDS */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    color: #ffffff;
    border-color: var(--accent-emerald);
}

.tab-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.gallery-tab-content {
    display: none;
    animation: fadeIn 0.35s ease-in-out;
}

.gallery-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 35px;
}

.gallery-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-emerald);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25);
}

.gallery-card-info {
    text-align: center;
}

.gallery-card-info strong {
    display: block;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.gallery-card-info small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 17, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-emerald);
}

.lightbox-content-wrapper {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px rgba(16, 185, 129, 0.3);
}

.lightbox-caption {
    margin-top: 15px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* FEATURES GRID (6 CARDS) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-emerald);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.18);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-emerald);
    margin-bottom: 22px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 70px 40px;
    text-align: center;
    margin: 40px 0 90px 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 35px;
}

/* FOOTER */
footer {
    background: #050811;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-grid h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 10px;
}

.footer-grid a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-grid a:hover {
    color: var(--accent-emerald);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.85rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .hero-grid, .showcase-grid, .pairing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions, .hero-pills {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .showcase-reversed .showcase-grid {
        display: flex;
        flex-direction: column-reverse;
    }

    .glass-float-badge {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 50px 0 60px 0;
    }

    .app-showcase-card, .pairing-banner {
        padding: 30px 20px;
    }

    .pairing-cards-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .mockup-medium {
        width: 220px;
        height: 440px;
    }

    .mockup-gallery {
        width: 180px;
        height: 360px;
    }

    .store-buttons-row {
        justify-content: center;
    }
}
