@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;700;800&display=swap');

:root {
    --primary: #ff007a;
    --primary-alt: #ff5e00;
    --secondary: #00f2ff;
    --accent: #7000ff;
    --bg: #0e0225; /* Slightly lighter and more vibrant deep purple */
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
}

[data-theme="light"] {
    --bg: #f5f7ff;
    --text: #050510;
    --text-dim: #454555;
    --glass: rgba(255, 255, 255, 0.98); /* Takmer sýto biela */
    --glass-border: rgba(0, 0, 0, 0.05);
    --secondary: #00f2ff; /* Návrat k žiarivej azúrovej */
    --primary: #ff007a;   /* Návrat k žiarivej ružovej */
}

html {
    scroll-behavior: smooth;
    height: auto !important;
    overflow-y: auto !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    overflow-y: auto !important;
    line-height: 1.4;
    transition: background-color 0.6s ease;
    min-height: 100vh;
}

#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

/* --- Larger & More Colorful Blobs --- */
.bg-visuals { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.blob {
    position: absolute;
    width: 90vw; height: 90vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 75%);
    filter: blur(140px);
    opacity: 0.2;
    animation: float 15s infinite alternate ease-in-out;
}

.blob:nth-child(2) {
    background: radial-gradient(circle, var(--primary) 0%, transparent 75%);
    top: -30%; right: -20%;
    animation-duration: 20s;
}

.blob:nth-child(3) {
    background: radial-gradient(circle, var(--secondary) 0%, transparent 75%);
    bottom: -20%; left: -30%;
    animation-duration: 18s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(15%, 15%) scale(1.2) rotate(15deg); }
}

/* --- Nav --- */
#navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 9999 !important; transition: 0.4s;
    pointer-events: auto !important;
}

nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(25px);
    height: 70px;
}

.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 1.3rem;
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.4);
}

.logo-text { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.8rem; letter-spacing: -1px; color: var(--text); display: inline-flex; align-items: baseline; gap: 0; white-space: nowrap; }
.logo-text::after { content: none; }

.logo-tld-wrapper {
    display: inline-flex;
    flex-direction: column;
    overflow: hidden;
    height: 1.2em;
    vertical-align: bottom;
    margin-left: 0;
    letter-spacing: 0;
}
.logo-tld {
    display: flex;
    flex-direction: column;
    color: var(--secondary);
    text-transform: uppercase;
    animation: slideTLD 9s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.logo-tld span {
    line-height: 1.2em;
}
@keyframes slideTLD {
    0%, 25% { transform: translateY(0); }
    33%, 58% { transform: translateY(-33.33%); }
    66%, 91% { transform: translateY(-66.66%); }
    100% { transform: translateY(0); }
}

.nav-links { 
    display: flex; 
    gap: 30px; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-item { text-decoration: none; color: var(--text-dim); font-weight: 700; font-size: 1rem; transition: 0.3s; position: relative; }
.nav-item:hover, .nav-item.active { color: var(--text); }
.nav-item.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--primary); }

/* --- Sections --- */
section { padding: 60px 8%; width: 100%; }

.hero {
    min-height: 90vh;
    display: flex; align-items: center; justify-content: space-between;
    gap: 50px; padding-top: 100px;
}

.hero-content { flex: 1.3; }
.hero-content h1 {
    font-family: 'Outfit', sans-serif; font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900; line-height: 0.9; letter-spacing: -2px; margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent), var(--primary-alt));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: flow 10s infinite linear;
    background-size: 200% auto;
}

@keyframes flow { to { background-position: 200% center; } }

.hero-content p { font-size: 1.3rem; color: var(--text-dim); margin-bottom: 40px; max-width: 600px; }

.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.image-frame {
    width: 100%; max-width: 500px; aspect-ratio: 1;
    background: var(--glass); border-radius: 40px;
    padding: 10px; border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.image-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }

/* --- Cards --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card {
    background: var(--glass); backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border); border-radius: 35px;
    padding: 30px; transition: 0.4s; position: relative; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03), inset 0 0 0 1px rgba(255,255,255,0.5);
}

[data-theme="light"] .card {
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
}

.card:hover { 
    border-color: var(--secondary); 
    transform: translateY(-10px); 
    background: rgba(255,255,255,0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

[data-theme="light"] .card:hover {
    background: rgba(255,255,255,1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

.hero-stat-card {
    position: absolute;
    top: -20px;
    left: -20px;
    padding: 15px !important;
    border-radius: 20px !important;
    z-index: 10;
}

/* --- Buttons --- */
.btn {
    padding: 18px 36px; border-radius: 16px; font-weight: 800; font-size: 1rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
    transition: 0.3s; cursor: pointer; border: none;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 10px 20px rgba(255, 0, 122, 0.3); }

/* --- Notifications --- */
#notification-hub {
    position: fixed; bottom: 30px; right: 30px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 5000; pointer-events: none;
}

.notif-bubble {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 15px 25px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: var(--text); font-size: 0.9rem;
    pointer-events: auto;
}

/* --- Cursor --- */
.cursor-dot { width: 6px; height: 6px; background: var(--primary); position: fixed; border-radius: 50%; z-index: 10000; pointer-events: none; top: 0; left: 0; }
.cursor-outline { width: 44px; height: 44px; border: 2.5px solid var(--secondary); position: fixed; border-radius: 50%; z-index: 9999; pointer-events: none; top: 0; left: 0; }

.reveal { /* Animované cez GSAP, default je viditeľné pre prípad chyby JS */ }

@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; }
    .nav-links { display: none; }
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* Scroll povolený */
body {
    overflow-x: hidden;
    overflow-y: auto;
}

#intro-particles {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2; pointer-events: none;
}

/* Intro animated background blobs */
.intro-bg {
    position: absolute; inset: 0;
    z-index: 0; overflow: hidden; pointer-events: none;
}
.intro-blob-inner {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.28;
    animation: float 15s infinite alternate ease-in-out;
}
.intro-blob-inner:nth-child(1) {
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -20%; left: -20%;
}
.intro-blob-inner:nth-child(2) {
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -20%; right: -20%;
    animation-duration: 20s;
}
.intro-blob-inner:nth-child(3) {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -20%; left: 20%;
    animation-duration: 18s;
}

.intro-logo {
    animation: logoPulse 4s ease-in-out infinite;
    position: relative;
    z-index: 5;
    margin-top: 20px; /* Odstup od vrchu */
}

.intro-logo::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(0,242,255,0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.intro-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.8); /* Zväčšíme celé logo bez rozbitia štýlov */
    margin-bottom: 50px;
    margin-top: 30px;
    filter: drop-shadow(0 0 20px rgba(0,242,255,0.2));
}

.intro-logo img {
    width: 32px; /* Originálna veľkosť z webu, zväčší ju scale */
    height: 32px;
    margin-right: 10px;
}

/* Odstránené všetky ručné prepisy loga v intre, aby sa použili tie globálne funkčné */


@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(0,242,255,0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(0,242,255,0.6)); }
}

/* Energetické pozadie */
#intro-portal::before {
    content: ''; position: absolute; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0,242,255,0.15) 0%, rgba(255,0,122,0.1) 30%, transparent 70%);
    animation: rotateBg 20s infinite linear;
    z-index: -1;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.intro-content { 
    text-align: center; 
    width: 95%; 
    max-width: 850px; 
    position: relative; 
    z-index: 10; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.intro-title { 
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    margin: 10px 0 30px 0; 
    font-weight: 900; 
    color: #fff;
    text-shadow: 0 0 20px rgba(0,242,255,0.3);
}

#intro-portal .intro-card {
    width: 280px; /* Zúžené karty */
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
    opacity: 1 !important;
    transform: none !important;
}

#intro-portal .intro-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-5px) !important;
}

#intro-portal .intro-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

#intro-portal .intro-card h3 {
    font-size: 1.3rem;
    color: #ffffff !important;
    font-weight: 800;
    margin-bottom: 10px;
}

#intro-portal .intro-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.7;
    display: block !important; /* Vrátime popis ale kratší */
}

.intro-content p {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 25px;
}

.intro-cards { 
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}
.intro-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 70px 40px; border-radius: 45px;
    cursor: pointer; transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(25px);
    position: relative;
}

.intro-card::after {
    content: ''; position: absolute; inset: 0; border-radius: 45px;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s;
}

.intro-card:hover::after { opacity: 1; }

.intro-card .icon { font-size: 80px; margin-bottom: 25px; color: var(--secondary); filter: drop-shadow(0 0 15px var(--secondary)); }
.intro-card h3 { font-size: 2rem; margin-bottom: 15px; font-weight: 900; color: white; }
.intro-card p { color: rgba(255,255,255,0.7); font-size: 1.1rem; line-height: 1.5; }

.intro-card:hover {
    transform: scale(1.05) translateY(-10px);
    background: rgba(255,255,255,0.08);
    border-color: var(--secondary);
    box-shadow: 0 0 50px rgba(0,242,255,0.2);
}

.intro-card.light:hover { 
    border-color: #ffffff; 
    box-shadow: 0 0 50px rgba(255,255,255,0.3);
}

.intro-card.light:hover .icon { color: #ffffff; }

.intro-card.dark:hover { 
    border-color: var(--primary); 
    box-shadow: 0 0 50px rgba(255,0,122,0.3);
}
.intro-card.dark:hover .icon { color: var(--primary); }

.intro-skipped #intro-portal { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 768px) {
    .intro-cards { grid-template-columns: 1fr; gap: 20px; }
    .intro-card { padding: 40px 20px; }
}
