/* Mobilné štýly pre zariadenia do 768px */
@media (max-width: 768px) {   

    /* Pozadie pre mobil */
    body {
        background-image: url('/images/layout.png'), var(--background-gradient);
        background-size: cover, cover;
        background-position: center, center;
        background-attachment: fixed;
        background-blend-mode: overlay;
        min-height: 100vh;
        width: 100vw;
        align-items: center;
        font-size: 16px; /* Základná veľkosť písma pre mobil */
    }

    /* Header */
    header {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: rgba(0, 31, 46, 0.9);
        padding: 10px 5%;
        z-index: 1000; /* Menu bude vždy nad pozadím! */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: none; /* Skrytý na desktopoch */
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color); /* Farba podľa tvojho dizajnu */
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Zobrazenie hamburger buttonu na mobiloch */
    .menu-toggle {
        display: block; /* Zobraziť na mobiloch */
    }

    /* Animácia pre otvorenie/zatvorenie menu */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 31, 46, 0.95);
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 10px;
        text-align: center;
        display: block;
        font-size: 16px;
        color: var(--text-color);
        transition: color 0.3s ease;
    }

    /* Hero Section */
    .hero {
        padding: 80px 5%;
        text-align: center;
    }

    .hero h2 {
        font-size: 32px;
        line-height: 1.4;
    }

    .hero p {
        font-size: 16px;
        margin: 10px 0;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Sekcia About */
    .about {
        padding: 40px 5%;
        text-align: center;
    }

    .about h2 {
        font-size: 2px;
        margin-bottom: 20px;
    }

    #about {
        padding: 45px 10%;
    }

    #about h3 {
        font-size: 36px;
        margin-bottom: 20px;
        color: var(--primary-color);
        text-shadow: 0 0 10px var(--shadow-color);
    }

    .about-content {
        max-width: 900px;
        margin: 0 auto;
        line-height: 1.2;
        color: var(--text-secondary);
        font-size: 13px;
        text-align: justify;
    }

    .about p {
        font-size: 1px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* Karty */
    .card-container {
        flex-direction: column;
        gap: 20px;
    }

    .card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Formuláre */
    .contact-form {
        padding: 20px;
        width: 100%;
    }

    .contact p {
        font-size: 20px;
    }

    /* Footer */
    footer {
        padding: 10px;
        font-size: 14px;
    }
}

/* Extra malé zariadenia (do 480px) */
@media (max-width: 480px) {
    body {
        background-size: cover;
        min-height: 100vh;
        width: 100vw;
    }

    /* Hero Section */
    .hero {
        padding: 60px 5%;
    }

    .hero h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Sekcia About */
    .about {
        padding: 20px 5%;
    }

    .about h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .about p {
        font-size: 14px; /* Menšia veľkosť písma pre menšie mobily */
        line-height: 1.5;
        margin-bottom: 15px;
    }

    /* Tlačidlá */
    .btn-primary {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Karty */
    .card {
        padding: 20px;
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }

    /* Sekcie */
    section {
        padding: 40px 5%;
    }

    /* Footer */
    footer {
        padding: 10px 5%;
        font-size: 12px;
        text-align: center;
    }

    /* Navigácia na mobile */
    .nav-menu {
        width: 100%;
        padding: 10px 0;
    }

    .nav-menu a {
        padding: 10px 0;
        font-size: 14px;
    }
}
