/* Základné nastavenia */
:root {
    --primary-color: #007bff; /* Modrá pre akcenty */
    --secondary-color: #6c757d; /* Šedá */
    --text-color: #333;
    --heading-color: #212529;
    --background-light: #f8f9fa;
    --background-dark: #e9ecef;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, /* macOS, iOS */
                 BlinkMacSystemFont, /* Chrome na macOS */
                 "Segoe UI", /* Windows */
                 Roboto, /* Android */
                 Oxygen-Sans, /* Linux */
                 Ubuntu, /* Linux */
                 Cantarell, /* Linux */
                 "Helvetica Neue", /* fallback */
                 sans-serif; /* všeobecný fallback */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--heading-color);
    line-height: 1.4;
    margin-top: 0;
    max-width: 600px;
}

h1 { font-size: 1.6em; font-weight: 600; }
h2 { font-size: 1.4em; font-weight: 600; margin-bottom: 30px; }
h3 { font-size: 1.2em; font-weight: 400; }

p {
    margin-top: .4em;
    margin-bottom: .4em;
}
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* Hero sekcia */
.hero-section {
    background-color: #ffffff;
    padding-top: 80px;
    border-bottom: 1px solid var(--border-color);
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.4em;
    color: #000;
    margin-bottom: 10px;
}

.hero-content h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 0px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1em;
    color: var(--secondary-color);
    max-width: 600px;
}

.hero-image {
    flex: 1;
    text-align: right;
    display: flex;
    align-items: flex-end;
    max-width: 580px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Všeobecné sekcie */
.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}
.white {
    background-color: white;
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    text-align: left;
    position: relative;
}


/* Karty */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    text-decoration: none;
}

.card h3 {
    margin-bottom: 0px;
    color: var(--heading-color);
}

.card p {
    font-size: 0.95em;
    color: var(--secondary-color);
    flex-grow: 1; /* Aby paragraf zabral dostupný priestor */
}

.learn-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Špeciálne karty */
.academy-card {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 25px;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.academy-card h3 {
    color: #fff;
}

.academy-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.academy-card .button {
    background-color: #fff;
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.academy-card .button:hover {
    background-color: var(--background-dark);
    color: var(--primary-color);
    text-decoration: none;
}

.demo {
    display: flex;
    gap: 48px;
}
.demo > * {
  flex: 1;
}
.demo-image {
    overflow: hidden;
}
.demo-image img {
  width: 100%;
  object-fit: cover; /* prispôsobí a orezáva, zachová pomer strán */
}
.demo-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* horizontálne */
}
.demo-text h3 {
    margin-bottom: 0;
}
.demo-text p {
    font-size: 0.95em;
    color: var(--secondary-color);
}
.demo-text p:last-of-type {
    margin-bottom: 24px;
}
.demo-text .button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.demo-text .button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.product-card {
    min-height: 180px; /* Pre udržanie konzistentnej výšky */
}

.highlight-section {
    background-color: var(--background-dark);
}

/* Aside bloky */
.note-aside {
    background-color: #fff3cd; /* Svetlo žltá */
    border-left: 5px solid #ffc107; /* Oranžová lišta */
    padding: 20px 25px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 5px;
    color: #664d03; /* Tmavší text */
    font-style: italic;
}

/* Workflow zoznam */
.workflow-list {
    list-style-type: decimal;
    padding-left: 25px;
    font-size: 1.1em;
    line-height: 1.8;
}

.workflow-list li {
    margin-bottom: 10px;
}

/* Product list container (špeciálne rozloženie pre túto sekciu) */
.product-list-container {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.product-list-container .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}


/* Modálne okno (modal) */
.modal {
    display: none; /* Skryté predvolene */
    position: fixed; /* Zostáva na mieste aj pri scrollingu */
    z-index: 1000; /* Nad všetkým ostatným obsahom */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Povoliť scrolling ak je obsah väčší */
    background-color: rgba(0,0,0,0.7); /* Tmavé pozadie s priehľadnosťou */
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% zhora a centrované horizontálne */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Šírka modálneho okna */
    max-width: 900px; /* Maximálna šírka */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s forwards;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

/* Responzívny video kontajner pre YouTube */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 pomer strán (výška/šírka) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 5px; /* Zaoblené rohy pre video */
    margin-top: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Animácie */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsívne úpravy */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content h3 {
        font-size: 1.5em;
    }

    .section h2 {
        text-align: center;
    }

    .section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.2em; }

    .hero-section {
        padding: 50px 0;
    }

    .section {
        padding: 40px 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-header .logo {
        font-size: 1.3em;
    }
}