/* --- Základné nastavenia a Premenné (Moderná pestrá paleta) --- */
:root {
    /* Pôvodné farby loga */
    --logo-pink: #E274B2;
    --logo-yellow: #E7BE3A;
    --logo-green: #379D73;
    --logo-purple: #8A4CD2;
    --logo-orange: #EA7F29;
    --logo-blue: #357BD7;
    --logo-red: #D13F39;

    /* Moderné textové a podkladové farby */
    --text-dark: #1e1b4b; /* Hlboká, moderná tmavomodrá namiesto tvrdej sivej/čiernej */
    --text-light: #6366f1; /* Svetlejší, no stále výrazný fialovo-modrý tón pre podnadpisy */
    --text-muted: #6b7280; /* Jemná sivá pre bežné odstavce */

    --bg-main: #ffffff;
    --bg-light: #f8fafc; /* Veľmi svieža, jemne modrastá biela pre striedanie sekcií */

    /* Moderné prvky - zaoblenia a prechody */
    --radius-sm: 8px;
    --radius-md: 16px; /* Väčšie zaoblenie kariet pre moderný "app" look */
    --radius-pill: 50px; /* Úplne guľaté tlačidlá */
    --shadow-soft: 0 10px 25px rgba(30, 27, 75, 0.05);
    --shadow-hover: 0 20px 40px rgba(138, 76, 210, 0.15); /* Jemne fialový tieň pri hoveri */

    --max-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-muted);
    background-color: var(--bg-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    letter-spacing: -0.02em; /* Moderný detail: jemne zrazené písmená v nadpisoch */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Pomocné triedy (Utility) --- */
.text-center { text-align: center; }

/* --- Moderné Tlačidlá --- */
.btn-primary, .btn-secondary, .btn-white {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.5px;
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--logo-purple), var(--logo-pink));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(226, 116, 178, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(138, 76, 210, 0.5);
    color: #ffffff;
}

.btn-secondary {
    background-color: rgba(138, 76, 210, 0.08);
    color: var(--logo-purple);
    margin-left: 10px;
}
.btn-secondary:hover {
    background-color: var(--logo-purple);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(138, 76, 210, 0.3);
}

.btn-white {
    background-color: #ffffff;
    color: var(--logo-purple);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* --- Layout Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}

/* Farebné nadpisy sekcií */
.section:nth-of-type(1) .section-header h2 { color: var(--logo-purple); }
.section:nth-of-type(2) .section-header h2 { color: var(--logo-green); }
.section:nth-of-type(3) .section-header h2 { color: var(--logo-orange); }
.section:nth-of-type(4) .section-header h2 { color: var(--logo-blue); }

.section-header .line {
    width: 60px;
    height: 6px;
    margin: 0 auto 20px;
    border-radius: var(--radius-pill);
}

/* Osviežené čiary pod nadpismi s gradientmi */
.section:nth-of-type(1) .section-header .line { background: linear-gradient(90deg, var(--logo-purple), var(--logo-pink)); }
.section:nth-of-type(2) .section-header .line { background: linear-gradient(90deg, var(--logo-green), var(--logo-yellow)); }
.section:nth-of-type(3) .section-header .line { background: linear-gradient(90deg, var(--logo-orange), var(--logo-red)); }
.section:nth-of-type(4) .section-header .line { background: linear-gradient(90deg, var(--logo-blue), var(--logo-green)); }

.subtitle { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* --- Navigácia --- */
.navbar {
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Moderný efekt rozmazania pozadia pod menu */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 150px;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}
/* Dekoratívny farebný pásik úplne hore */
.navbar::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--logo-purple), var(--logo-pink), var(--logo-orange), var(--logo-yellow), var(--logo-green), var(--logo-blue), var(--logo-red));
}

.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo-link { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 125px; width: auto; object-fit: contain; }

.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 2px;
    background: linear-gradient(45deg, var(--logo-purple), var(--logo-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links { display: flex; align-items: center; gap: 35px; }
.nav-links a {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

/* Farebné prechody v menu */
.nav-links li:nth-child(1) a:hover { color: var(--logo-pink); }
.nav-links li:nth-child(2) a:hover { color: var(--logo-blue); }
.nav-links li:nth-child(3) a:hover { color: var(--logo-green); }
.nav-links li:nth-child(4) a:hover { color: var(--logo-orange); }

.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: var(--logo-purple); }

/* --- Moderná Farebná Hero Sekcia --- */
.hero {
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Nádherný jemný moderný mesh gradient */
    background: radial-gradient(circle at 15% 50%, rgba(226, 116, 178, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(55, 157, 115, 0.15), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(138, 76, 210, 0.15), transparent 25%),
    var(--bg-light);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; text-align: center; margin: 0 auto; }
.hero h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 900;
}
.hero h1 span {
    background: linear-gradient(45deg, var(--logo-purple), var(--logo-pink), var(--logo-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.3rem; margin-bottom: 40px; color: var(--text-muted); }
.hero-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* --- O nás (Pestré štatistiky) --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-card {
    padding: 35px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: none;
}
/* Moderné jemné pozadia pre štatistiky */
.stat-card:nth-child(1) { background-color: rgba(209, 63, 57, 0.08); }
.stat-card:nth-child(1) h3 { color: var(--logo-red); }
.stat-card:nth-child(2) { background-color: rgba(55, 157, 115, 0.08); }
.stat-card:nth-child(2) h3 { color: var(--logo-green); }
.stat-card:nth-child(3) { background-color: rgba(53, 123, 215, 0.08); }
.stat-card:nth-child(3) h3 { color: var(--logo-blue); }
.stat-card:nth-child(4) { background-color: rgba(231, 190, 58, 0.12); }
.stat-card:nth-child(4) h3 { color: var(--logo-orange); }

.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.stat-card h3 { font-size: 2.5rem; margin-bottom: 5px; font-weight: 800; }
.stat-card p { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dark); }

/* --- Projekty --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
}
.project-card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-soft);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
/* Farebná linka na vrchu každej karty pre pestrosť */
.project-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; transition: var(--transition);
}
.project-card:nth-child(7n+1)::before { background-color: var(--logo-blue); }
.project-card:nth-child(7n+2)::before { background-color: var(--logo-green); }
.project-card:nth-child(7n+3)::before { background-color: var(--logo-orange); }

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.project-card:hover::before { height: 10px; }

.icon-box {
    width: 65px; height: 65px;
    border-radius: 20px; /* Moderný "squircle" tvar */
    display: flex; align-items: center; justify-content: center; margin-bottom: 25px;
    transition: var(--transition);
}
/* Ikonky sú od začiatku farebné s jemným tieňom */
.project-card:nth-child(7n+1) .icon-box { background: linear-gradient(135deg, var(--logo-blue), #6db0ff); box-shadow: 0 8px 20px rgba(53, 123, 215, 0.3); }
.project-card:nth-child(7n+2) .icon-box { background: linear-gradient(135deg, var(--logo-green), #56dfa6); box-shadow: 0 8px 20px rgba(55, 157, 115, 0.3); }
.project-card:nth-child(7n+3) .icon-box { background: linear-gradient(135deg, var(--logo-orange), #ffae62); box-shadow: 0 8px 20px rgba(234, 127, 41, 0.3); }

.icon-box i { font-size: 1.8rem; color: #ffffff; }
.project-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.project-card p { flex-grow: 1; }

/* --- Náš Tím --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    text-align: center;
}
.team-member {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-soft);
}
.team-member:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.member-photo {
    width: 140px; height: 140px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    padding: 5px; /* Priestor pre farebný okraj */
    background: linear-gradient(135deg, var(--logo-purple), var(--logo-pink));
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}
/* Striedanie gradientov na fotkách */
.team-member:nth-child(4n+1) .member-photo { background: linear-gradient(135deg, var(--logo-blue), var(--logo-green)); }
.team-member:nth-child(4n+2) .member-photo { background: linear-gradient(135deg, var(--logo-pink), var(--logo-orange)); }
.team-member:nth-child(4n+3) .member-photo { background: linear-gradient(135deg, var(--logo-yellow), var(--logo-red)); }

.member-photo img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%; border: 4px solid #ffffff;
}
.team-member h3 { font-size: 1.4rem; margin-bottom: 5px; }
.team-member .role {
    color: var(--logo-purple); font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
}

/* --- Články / Novinky --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 30px;
}
.news-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: none;
    display: flex;
    flex-direction: column;

    /* --- TOTO JE TÁ OPRAVA --- */
    position: relative;
    z-index: 1;
}

/* Pridáme aj jemné zosilnenie z-indexu pri hoveri, aby sa predišlo akýmkoľvek chybám prekrývania */
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}
.news-image { width: 100%; height: 240px; object-fit: cover; }
.news-content { padding: 35px; display: flex; flex-direction: column; flex-grow: 1; }

.news-content .date {
    font-size: 0.85rem; font-weight: 700; color: var(--logo-pink);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px;
}
.news-content h3 { font-size: 1.4rem; margin-bottom: 15px; line-height: 1.4; transition: var(--transition); }

/* Farebné nadpisy pre články */
.news-card:nth-child(7n+1) .news-content h3 { color: var(--logo-blue); }
.news-card:nth-child(7n+2) .news-content h3 { color: var(--logo-purple); }
.news-card:nth-child(7n+3) .news-content h3 { color: var(--logo-orange); }
.news-card:nth-child(7n+4) .news-content h3 { color: var(--logo-green); }

.news-content p { margin-bottom: 25px; flex-grow: 1; }
.read-more {
    font-weight: 800; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px;
    transition: var(--transition); align-self: flex-start;
}
.news-card:nth-child(7n+1) .read-more { color: var(--logo-blue); }
.news-card:nth-child(7n+2) .read-more { color: var(--logo-purple); }
.news-card:nth-child(7n+3) .read-more { color: var(--logo-orange); }
.news-card:nth-child(7n+4) .read-more { color: var(--logo-green); }

.read-more::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2;
}
.read-more:hover { gap: 15px; opacity: 0.8; }

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, #1e1b4b, #2d1a4d); /* Luxusný tmavofialový moderný prechod */
    color: #cbd5e1;
    padding: 100px 0 0;
    position: relative;
}
footer::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--logo-purple), var(--logo-pink), var(--logo-orange), var(--logo-yellow), var(--logo-green), var(--logo-blue), var(--logo-red));
}
.footer-content {
    display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 60px; padding-bottom: 70px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-col h4 {
    font-size: 1.1rem; margin-bottom: 25px; color: #ffffff;
    text-transform: uppercase; letter-spacing: 1.5px;
}
.contact-info li, .links li { margin-bottom: 15px; display: flex; align-items: flex-start; }
.contact-info i { margin-right: 15px; color: var(--logo-pink); margin-top: 5px; font-size: 1.2rem; }
.links a:hover { color: var(--logo-yellow); transform: translateX(5px); display: inline-block; transition: var(--transition); }
.footer-bottom { text-align: center; padding: 30px 0; color: #64748b; font-size: 0.9rem; }

/* =========================================
   --- RESPONZIVITA (MEDIA QUERIES) ---
   ========================================= */

@media (max-width: 968px) {
    .section { padding: 80px 0; }
    .hero h1 { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-content { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 120px; left: 0; width: 100%;
        background-color: rgba(255, 255, 255, 0.98); flex-direction: column; padding: 30px 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1); text-align: center;
        border-bottom: 3px solid var(--logo-purple); z-index: 999;
    }
    .nav-links li { width: 100%; padding: 15px 0; }
    .nav-links.active { display: flex; }
    .hamburger { display: block; padding: 10px; }

    .logo-img { height: 75px; }
    .logo-title { font-size: 1.4rem; }
    .logo-subtitle { display: none; } /* Na mobile skryjeme dlhý podnadpis pre čistotu */

    .hero-content { text-align: left; }
    .hero h1 { font-size: 2.8rem; }

    .btn-primary, .btn-secondary { width: 100%; margin: 0; margin-bottom: 15px; }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }

    .stat-card { padding: 25px 15px; }
    .stat-card h3 { font-size: 2rem; }
    .project-card, .news-content, .team-member { padding: 25px; }
}

/* =========================================
   --- ŠTÝLY PRE PODSTRÁNKU ČLÁNKU ---
   ========================================= */
.article-hero { padding-top: 60px; padding-bottom: 40px; text-align: center; }
.article-hero .date {
    display: inline-block; padding: 6px 16px; background: rgba(234, 127, 41, 0.1);
    color: var(--logo-orange); border-radius: var(--radius-pill); font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; font-size: 0.85rem;
}
.article-hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; font-weight: 900; }
.article-container { max-width: 800px; margin: 0 auto; }

.featured-image {
    width: 100%; height: 450px; border-radius: var(--radius-md);
    margin-bottom: 50px; object-fit: cover; box-shadow: var(--shadow-soft);
}
.article-text p { font-size: 1.15rem; margin-bottom: 25px; color: var(--text-dark); line-height: 1.8; }
.article-text h2 { font-size: 2rem; margin: 50px 0 25px; font-weight: 800; }

.article-text h2:nth-of-type(6n+1) { color: var(--logo-purple); }
.article-text h2:nth-of-type(6n+2) { color: var(--logo-blue); }
.article-text h2:nth-of-type(6n+3) { color: var(--logo-pink); }
.article-text h2:nth-of-type(6n+4) { color: var(--logo-green); }

.article-text ul { list-style-type: none; margin-bottom: 40px; padding: 0; }
.article-text li {
    font-size: 1.15rem; margin-bottom: 15px; color: var(--text-dark);
    display: flex; align-items: flex-start;
}
.article-text li::before {
    content: "•"; color: var(--logo-orange); font-size: 2rem;
    line-height: 1rem; margin-right: 15px;
}

.article-gallery { margin-top: 80px; padding-top: 40px; border-top: 2px dashed rgba(0,0,0,0.05); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.gallery-item {
    width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-md);
    transition: var(--transition); cursor: pointer; object-fit: cover;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-hover); }

.news-card.skryty, .skryty { display: none !important; }