/* Základné resetovanie a fonty */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4; /* Svetlé pozadie pre technický vzhľad */
    margin: 0;
    padding: 0;
}

/* Kľúčové Farby */
:root {
    --primary-color: #1a2c5b; /* Tmavá, profesionálna Modrá */
    --accent-color: #f58220; /* Oranžová pre CTA (kontrast k modrej) */
    --text-dark: #222;
    --text-light: #fff;
    --section-bg: #fff;
}

/* Layout - Bočné menu a hlavný obsah */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
}

#content {
    margin-left: 280px; /* Posunutie obsahu vedľa menu */
    padding: 0;
}

/* Profil v Menu */
.profile {
    text-align: center;
    margin-bottom: 40px;
}
.profile-icon {
    color: var(--accent-color);
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    padding: 20px;
}
.profile .name {
    margin: 5px 0 0;
    font-size: 1.6em;
    text-transform: uppercase;
}
.profile .role {
    margin: 5px 0 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Navigačné Linky */
.nav-links {
    list-style: none;
    padding: 0;
}
.nav-links li a {
    display: block;
    padding: 15px 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
.nav-links li a i {
    margin-right: 15px;
}

/* VŠEOBECNÉ SEKCIE */
section {
    padding: 80px 50px;
    background-color: var(--section-bg);
    border-bottom: 1px solid #ddd;
}
.section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 40px;
    font-weight: 700;
}
.section-title i {
    margin-right: 10px;
    color: var(--accent-color);
}
.section-subtitle {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
}

/* SEKCIA: HERO */
.section-hero {
    background-color: #e9eef2;
    text-align: left;
    padding: 150px 50px;
}
.title-main {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.lead-text {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
    max-width: 800px;
}
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #e07015;
}

/* SEKCIA: SLUŽBY */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.service-item {
    flex: 1 1 45%;
    padding: 30px;
    background-color: #f9f9f9;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.service-item h3 {
    color: var(--primary-color);
    margin-top: 0;
}
.service-icon {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* SEKCIA: PARTNERI/LOGÁ */
.subsection-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}
.logo-grid img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%); /* Sivé logá pre technickú čistotu */
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
.logo-grid img:hover {
    filter: grayscale(0%); /* Zafarbenie loga pri prejdení myšou */
    opacity: 1;
}

/* SEKCIA: PORTFÓLIO */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.portfolio-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
}
.portfolio-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.portfolio-item h4 {
    color: var(--primary-color);
    padding: 15px 15px 5px;
    margin: 0;
}
.portfolio-item .tags {
    color: #666;
    font-size: 0.8em;
    padding: 0 15px 10px;
}
.view-btn {
    display: block;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 10px;
    font-weight: bold;
}

/* SEKCIA: ZRUČNOSTI */
.skills-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.skills-category {
    flex: 1 1 30%;
    min-width: 250px;
}
.skills-category h3 {
    color: var(--accent-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}
.skills-category ul {
    list-style: none;
    padding: 0;
}
.skills-category li {
    margin-bottom: 10px;
    color: #444;
}
.skills-category li i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* SEKCIA: O MNE */
.about-section {
    background-color: #f9f9f9;
}
.education-info {
    margin-top: 30px;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

/* SEKCIA: KONTAKT */
.contact-details {
    font-size: 1.1em;
    margin-bottom: 30px;
}
.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form textarea {
    resize: vertical;
}
.disclaimer-text {
    font-size: 0.85em;
    color: #999;
    margin-top: 20px;
}

/* PÄTIČKA */
footer {
    background-color: var(--text-dark);
    color: #bbb;
    padding: 20px 50px;
    text-align: center;
    font-size: 0.9em;
}
.footer-link {
    color: var(--accent-color);
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
}

/* MODAL OKNO */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% zhora a centrované */
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    position: relative;
    border-radius: 8px;
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.modal-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.modal-tech-tags {
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--primary-color);
    font-style: italic;
}

/* RESPONSIVE DESIGN (Pre mobilné zariadenia) */
@media (max-width: 900px) {
    #sidebar {
        width: 100%;
        height: auto;
        position: relative; /* Menu sa posunie na vrch */
        padding: 10px 0;
    }
    .profile {
        display: none; /* Skrytie veľkého profilu na mobile */
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .nav-links li {
        flex: 1 1 auto;
    }
    .nav-links li a {
        padding: 10px 5px;
        font-size: 0.9em;
        border-bottom: none;
    }
    .nav-links li a i {
        display: block; /* Ikonka nad textom */
        margin: 0;
    }
    
    #content {
        margin-left: 0; /* Obsah začína hneď pod menu */
    }

    section {
        padding: 40px 20px;
    }
    
    .service-grid, .skills-section {
        flex-direction: column;
    }
    
    .title-main {
        font-size: 1.8em;
    }
    
    .modal-content {
        width: 90%;
        margin: 20px auto;
    }
}

/* --- ŠTÝLY PRE KARUSEL (SLIDER) --- */
.carousel-container {
    position: relative;
    max-width: 100%; /* Obmedzí karusel, aby sa nerozťahoval mimo modalu */
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Animácia prechodu */
    width: 100%;
}

.carousel-slides img {
    flex-shrink: 0; /* Zabráni zmenšovaniu obrázkov */
    width: 100%;
    max-height: 400px; /* Obmedzenie výšky pre lepšiu prehľadnosť */
    object-fit: contain; /* Zabezpečí, že obrázok je viditeľný celý */
}

/* Ovládacie tlačidlá */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5); /* Tmavé pozadie tlačidiel */
    border: none;
    z-index: 5; /* Zabezpečí, že tlačidlá sú nad obrázkami */
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* --- NOVÉ ŠTÝLY PRE PREPÍNAČ JAZYKOV V HLAVIČKE --- */

/* --- ŠTÝLY PRE PREPÍNAČ JAZYKOV --- */

/* 1. Základné štýly: Pevná pozícia a z-index pre všetky zariadenia */
.fixed-header {
    position: fixed; 
    z-index: 1000; 
    /* Desktop defaultná poloha (upravená nižšie v media query) */
    top: 15px;      
    right: 40px;    
}

/* 2. Kontajner prepínača: Spoločné pre mobil aj desktop */
.language-switcher {
    display: flex;
    align-items: center; 
    gap: 15px; 
    padding: 8px 12px;
    white-space: nowrap; /* Zabezpečí, že vlajka a text budú na jednom riadku */
    border-radius: 5px;
    
    /* ČIERNE POZADIE PRE DESKTOP AJ MOBIL */
    background-color: rgba(0, 0, 0, 0.85); 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* 3. Všeobecné štýly pre linky */
.language-switcher a {
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    padding: 0; 
}

/* Aktívny jazyk: zvýraznený */
.lang-active {
    color: #fff !important; 
    font-weight: bold;
    border-bottom: 3px solid #ffd700; /* ŽLTÁ ČIARA */
    padding-bottom: 2px;
}

/* Neaktívny jazyk: slabšia farba */
.lang-inactive {
    color: #ccc; 
    opacity: 0.8;
}

.lang-inactive:hover {
    opacity: 1;
    color: #fff;
}


/* 4. ŠPECIFICKÉ ŠTÝLY PRE MOBILNÉ ZOBRAZENIE (do 768px) */
@media (max-width: 768px) {
    
    /* ZMENA POLOHY: Presunutie prepínača do PRAVÉHO DOLNÉHO ROHU */
    .fixed-header {
        top: auto;      /* Zrušíme top */
        bottom: 15px;   /* Nastavíme dole */
        right: 15px;    /* Nastavíme vpravo */
    }
    
    /* Hlavný obsah: Zrušíme veľký margin-top, lebo prepínač je dole */
    #content > .section-hero {
        margin-top: 20px; 
    }
}

/* 5. ŠPECIFICKÉ ŠTÝLY PRE DESKTOP (> 769px) */
@media (min-width: 769px) {
    /* Udržanie polohy Hore Vpravo */
    .fixed-header {
        top: 15px; 
        right: 40px; 
    }
    
