:root {
    /* --- Základná schéma --- */
    --bg-color: #0A0A0A;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* --- Brandové farby & Akcenty --- */
    --brand-primary: #5399C6;       /* Hlavná modrá */
    --brand-glow: rgba(83, 153, 198, 0.6);
    --brand-glow-strong: rgba(83, 153, 198, 0.3);
    
    --accent-cyan: #00e8ff;
    --accent-purple: #a600ff;
    --accent-pink: #ff00d4;
    
    /* --- Komponenty (Glassmorphism) --- */
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(10, 10, 10, 0.85);
    --nav-border: rgba(255, 255, 255, 0.05);
    
    /* --- Gradient pre texty, tlačidlá a navigáciu --- */
    --main-gradient: linear-gradient(90deg, 
        var(--brand-primary), 
        var(--accent-cyan), 
        var(--accent-purple), 
        var(--accent-pink)
    );
    
    /* --- Animácie & Prechody --- */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 1. Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

/* --- 2. Typography --- */
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: 2rem; font-weight: 900; line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 2rem; font-weight: 900; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--brand-primary); text-align: left; }

.gradient-text {
    background: var(--main-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; 
    display: inline-block; 
    animation: pulseColor 5s ease infinite;
}

@keyframes pulseColor {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 3. Navigation --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
}
nav {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-links { display: flex; gap: 2rem; }
.nav-link {
    color: var(--text-primary); 
    font-size: 0.95rem;
    opacity: 0.8;
    transition: var(--transition);
    text-decoration: none;    
}

.nav-link:hover {
    opacity: 1;
    background: var(--main-gradient);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: pulseColor 3s ease infinite;
}

/* --- 4. Hero --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; padding-top: 80px; overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 850px; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 2.5rem; color: var(--text-secondary); }

/* --- 5. Buttons --- */
.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: none;
    z-index: 1;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--main-gradient);
    background-size: 200% 200%;
    color: #000000; 
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px var(--brand-glow-strong);
    animation: pulseColor 3s ease infinite;
}

/* --- 6. Universal Card System (TU SA TVORIA KARTIČKY) --- */
.universal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--brand-glow-strong);
    border-color: rgba(83, 153, 198, 0.5);
}

/* Rozšírené oneskorenie animácií pre všetky tvoje karty */
.universal-grid .card:nth-child(1) { transition-delay: 0.1s; }
.universal-grid .card:nth-child(2) { transition-delay: 0.2s; }
.universal-grid .card:nth-child(3) { transition-delay: 0.3s; }
.universal-grid .card:nth-child(4) { transition-delay: 0.4s; }
.universal-grid .card:nth-child(5) { transition-delay: 0.5s; }
.universal-grid .card:nth-child(6) { transition-delay: 0.6s; }
.universal-grid .card:nth-child(7) { transition-delay: 0.7s; }
.universal-grid .card:nth-child(8) { transition-delay: 0.8s; }

/* --- 7. Contact & Footer --- */
.contact { max-width: 700px; gap: 1rem; display: flex; flex-direction: column; align-items: center; }
footer { padding: 2rem; text-align: center; border-top: 1px solid var(--card-border);  opacity: 0.4;}

/* --- 8. Animations --- */
.show-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.show-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- Hamburger Menu Štýly --- */
.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed; left: -100%; top: 0;
        flex-direction: column; background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px); width: 100%; height: 100vh;
        justify-content: center; align-items: center; gap: 3rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000;
    }
    .nav-menu.active { left: 0; }
    .nav-link { font-size: 1.5rem; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}