/* ==========================================================================
   1. CSS PREMENNÉ (:root) A ZÁKLADNÉ NASTAVENIA
   ========================================================================== */
:root {
    --bg-primary: #070b14;
    --bg-card: rgba(15, 23, 42, 0.55);
    --bg-nav: rgba(7, 11, 20, 0.8);
    --accent-cyan: #00f5d4;
    --accent-blue: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 245, 212, 0.35);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.12), transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(0, 245, 212, 0.08), transparent 45%);
}
/* ==========================================================================
   2. TYPOGRAFIA A POMOCNÉ TRIEDY
   ========================================================================== */
.text-accent {
    color: var(--accent-cyan);
}

.text-secondary-custom {
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    font-weight: 600;
}

.mono-small {
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.max-w-600 {
    max-width: 600px;
}

/* Vlastné štýlovanie pre HTML tag <mark> */
mark {
    background-color: rgba(0, 245, 212, 0.18);
    color: var(--accent-cyan);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

/* ==========================================================================
   3. NAVIGÁCIA (Glassmorphism Sticky Header)
   ========================================================================== */
.glass-nav {
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
}

.navbar-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-cyan);
}
/* ==========================================================================
   4. HERO SEKCIA A CANVAS POZADIE
   ========================================================================== */
.hero-section {
    min-height: 82vh;
    border-bottom: 1px solid var(--border-glass);
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.badge-tech {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--accent-cyan);
}

/* ==========================================================================
   5. NEÓNOVÉ TLAČIDLÁ (Hover animácie)
   ========================================================================== */
.btn-neon {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #04070d;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-neon:hover {
    color: #04070d;
    transform: translateY(-3px);
    box-shadow: 0 0 32px rgba(0, 245, 212, 0.65);
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 245, 212, 0.06);
}
/* ==========================================================================
   6. GLASSMORPHISM KARTY A ALERT BOX
   ========================================================================== */
.glass-alert {
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: var(--text-main);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 0 12px 30px rgba(0, 245, 212, 0.12);
}

.card-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

/* ==========================================================================
   7. BOOTSTRAP CAROUSEL (SLIDESHOW)
   ========================================================================== */
.glass-carousel {
    border-radius: 18px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.carousel-img {
    height: 460px;
    object-fit: cover;
    filter: brightness(0.75);
}

.glass-caption {
    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    bottom: 2rem;
}

[data-bs-theme="dark"] .carousel .carousel-caption.glass-caption {
    color: var(--text-main);
}
/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer-section {
    background: rgba(4, 7, 13, 0.9);
    border-top: 1px solid var(--border-glass);
}

.footer-links a,
.footer-contact-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-contact-link:hover {
    color: var(--accent-cyan);
}

/* ==========================================================================
   9. SCROLL REVEAL ANIMÁCIA (.reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responzívne úpravy pre menšie obrazovky */
@media (max-width: 768px) {
    .carousel-img {
        height: 320px;
    }
    .glass-caption {
        position: static;
        border-radius: 0;
        border: none;
    }
}

/* ==========================================================================
   10. GALÉRIA A MODÁLNE OKNO (Lightbox)
   ========================================================================== */
.gallery-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-image-button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-image-button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: -2px;
}

.glass-card:hover .gallery-img {
    transform: scale(1.05);
}

.glass-modal {
    background: rgba(10, 15, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
}

.modal-preview-img {
    max-height: 450px;
    object-fit: cover;
}
/* ==========================================================================
   11. KONTAKTNÝ FORMULÁR (.glass-input)
   ========================================================================== */
.glass-input {
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-input:focus {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: var(--accent-cyan);
    color: var(--text-main);
    box-shadow: 0 0 0 0.2rem rgba(0, 245, 212, 0.18);
}

.glass-input::placeholder {
    color: var(--text-muted);
    opacity: 0.65;
}
