/* 1. ZÁKLADNÉ NASTAVENIA & PREMENNÉ */
:root {
    --navy: #0a0e14;
    --silver: #e0e0e0;
    --amber: #ffb347;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-heavy: rgba(10, 14, 20, 0.8);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--silver);
    background: var(--navy);
    /* Pozadie s tvojou galaxiou a radiálnym prechodom pre lepšiu čitateľnosť textu */
    background: radial-gradient(circle at center, rgba(10,14,20,0.4) 0%, rgba(10,14,20,1) 100%), 
                url('galaxia.png') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. TYPOGRAFIA */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: white;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.label {
    color: var(--amber);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* 3. NAVIGÁCIA (Header) */
header {
    background: var(--glass-heavy);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.main-logo {
    height: 100px;
    width: auto;
    mix-blend-mode: screen; /* Odstránenie tmavého pozadia z PNG loga */
    filter: drop-shadow(0 0 10px rgba(255, 179, 71, 0.3));
    transition: var(--transition);    
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.1rem;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--silver);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--amber);
}

/* 4. LAYOUT A SEKcie */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.subpage-content {
    padding-top: 160px;
    padding-bottom: 100px;
}

/* Hero sekcia */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-center-logo {
    height: 150px;
    margin-bottom: 30px;
    mix-blend-mode: screen;
}

@keyframes galaxy-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.3) drop-shadow(0 0 30px rgba(255, 179, 71, 0.5)); }
}

#hero h1 { font-size: 4rem; margin-bottom: 15px; }
.lead { font-size: 1.4rem; font-weight: 300; max-width: 700px; margin: 0 auto 40px; }

/* 5. KOMPONENTY (Karty, Tlačidlá) */
.btn {
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-primary { background: white; color: var(--navy); border: 1px solid white; }
.btn-secondary { border: 1px solid white; color: white; margin-left: 15px; }
.btn:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); transform: translateY(-3px); }

.theory-card, .grid-box, .glass-card {
    background: var(--glass);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.theory-card:hover { border-color: var(--amber); transform: translateY(-5px); }

/* 6. ŠPECIFICKÉ MODULY (GTCF, CoFiT, CC, Research) */
.formula-box, .limit-box {
    background: rgba(255, 179, 71, 0.03);
    border: 1px solid var(--amber);
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

/* Tabuľky */
.coherence-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: var(--glass);
    border-radius: 10px;
    overflow: hidden;
}

.coherence-table th, .coherence-table td { padding: 20px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
.coherence-table th { background: rgba(255,255,255,0.1); color: var(--amber); font-size: 0.75rem; text-transform: uppercase; }

/* Dashboard a Grafy */
.dashboard { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 40px; }
.stat-card { background: var(--glass); padding: 20px; border-radius: 10px; border-left: 4px solid var(--amber); }
.stat-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--amber); }
.stat-value { font-family: var(--font-mono); font-size: 1.8rem; display: block; color: white; }

/* 7. FOOTER */
footer {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    margin-top: 100px;
}

footer p { font-size: 0.8rem; opacity: 0.6; letter-spacing: 1px; }

/* 8. RESPONZIVITA */
@media (max-width: 900px) {
    .dashboard, .philosophy-grid .container, .values-flex { grid-template-columns: 1fr; }
    #hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Pre produkciu by tu malo byť mobilné menu */
}

/* Jemná žiara pre všetky ikony a grafiku pri vstupe na web */
img[src*="favicon"], .main-logo {
    animation: initial-glow 2s ease-out;
}

@keyframes initial-glow {
    0% { filter: brightness(0.5) blur(2px); }
    100% { filter: brightness(1.2) blur(0); }
}

/* Unitary Intersection Styles */
.unitary-intersection {
    padding: 100px 0;
    background: #fff;
}

.intersection-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 60px;
}

.triad-diagram {
    position: relative;
    width: 450px;
    height: 400px;
    flex-shrink: 0;
}

.node {
    position: absolute;
    text-align: center;
    background: #f4f7f9;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid #002d5b;
    width: 160px;
    z-index: 2;
}

.top-node { top: 0; left: 50%; transform: translateX(-50%); }
.left-node { bottom: 0; left: 0; }
.right-node { bottom: 0; right: 0; }

.node-title { display: block; font-weight: bold; color: #002d5b; font-size: 0.9rem; }
.node-name { font-size: 0.8rem; color: #d4af37; text-transform: uppercase; letter-spacing: 1px; }

.core-node {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: #002d5b;
    border-radius: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0,45,91,0.3);
    z-index: 3;
}

.phi-symbol { font-size: 2rem; line-height: 1; }
.core-label { font-size: 0.7rem; font-weight: bold; }

.triangle-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.triad-details {
    text-align: left;
}

.detail-item {
    margin-bottom: 30px;
    border-left: 2px solid #d4af37;
    padding-left: 20px;
}

.detail-item h4 {
    margin: 0 0 10px 0;
    color: #002d5b;
    font-size: 1.1rem;
}

.detail-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333333;
}

@media (max-width: 900px) {
    .intersection-wrapper { flex-direction: column; }
    .triad-diagram { width: 320px; height: 280px; margin: 0 auto; }
    .node { width: 130px; padding: 10px; }
}

.coherence-separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 40px 0;
  }

.coherence-separator-small {
    border: 0;
    height: 0px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 20px 0;
  }