/* --- Základní nastavení a Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
    /* CSS Proměnné pro dynamické barvy */
    --glow-color: #61DAFB;
    --bg-color-start: #0a192f;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: #E0E0E0;
    background-color: #0A0A0A;
    position: relative;
    overflow: hidden;
    transition: background 1s ease;
    background: radial-gradient(ellipse at bottom, var(--bg-color-start) 0%, #0A0A0A 60%);
}

#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    opacity: 0.7;
}

/* --- Header a Navigace --- */
header {
    position: fixed;
    top: 2vh;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(16, 16, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.logo-img { height: 2.5rem; margin-right: 1rem; }
.nav-links a {
    color: white; text-decoration: none; padding: 0.5rem 2rem;
    border-radius: 15px; border: 1px solid grey; transition: all 0.3s ease;
}
.nav-links a:hover {
    background-color: var(--glow-color); border-color: var(--glow-color); color: #111;
}

/* --- Hlavní sekce --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    width: 100%;
    padding: 0 6vw;
    gap: 5rem;
    position: relative;
    z-index: 10;
}

/* --- Levá část: Textový obsah --- */
.hero-content {
    flex-basis: 45%;
    max-width: 550px;
}
.hero-title { font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; }
.highlight-text {
    background: linear-gradient(45deg, var(--glow-color), #FFFFFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s ease;
}
.hero-subtitle { font-size: 1.1rem; max-width: 500px; line-height: 1.7; margin-bottom: 2.5rem; color: #A0A0A0; }

/* Karta dovednosti */
.skills-descriptions { position: relative; min-height: 280px; }
.skill-card {
    position: absolute; width: 100%;
    background: rgba(20, 20, 30, 0.5); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; padding: 2rem; backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 5;
}
.skill-card.active { opacity: 1; transform: translateY(0); z-index: 10; }
.skill-card h2 { font-size: 2.5rem; color: #FFFFFF; margin-bottom: 1rem; }
.skill-card p { font-size: 1rem; line-height: 1.6; color: #A0A0A0; min-height: 5rem; }
.certificates-section { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; margin-top: 1.5rem; }
.certificates-section h4 { color: #A0A0A0; margin-bottom: 0.5rem; }
.certificate-link {
    display: inline-block;
    background: linear-gradient(90deg, var(--glow-color), #c3a1e9);
    color: #111; padding: 0.6rem 1.2rem; border-radius: 10px; text-decoration: none;
    font-weight: 600; transition: all 0.3s ease;
}
.certificate-link:hover { transform: translateY(-3px); box-shadow: 0 8px 20px -5px var(--glow-color); }

/* === ZMĚNA ZDE: Vylepšená navigace karuselu === */
.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 5.5rem;
}

.nav-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.nav-arrow:hover {
    background-color: var(--glow-color); /* Zvýraznění pozadí při najetí */
    border-color: var(--glow-color);
    transform: scale(1.1);
}

.nav-arrow svg {
    width: 30px;
    height: 30px;
    fill: #E0E0E0;
    transition: fill 0.3s ease, transform 0.3s ease; /* Plynulá změna barvy a pozice */
}

.nav-arrow:hover svg {
    fill: #111; /* Změna barvy ikony pro lepší kontrast */
}

/* Malá animace ikony pro intuitivnější pocit */
#prev-skill:hover svg {
    transform: translateX(-3px);
}

#next-skill:hover svg {
    transform: translateX(3px);
}
/* === KONEC ZMĚN === */


/* --- Pravá část: 3D Orbitální Karusel (OPRAVENO) --- */
.hero-visuals {
    flex-basis: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
}

.skills-orbit {
    position: relative;
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
    transform: rotateX(10deg); /* Initial tilt */
}

.skill-node {
    --orbit-radius: 220px;
    position: absolute;
    top: calc(50% - 45px); left: calc(50% - 45px);
    width: 90px; height: 90px;
    border-radius: 50%;
    background-color: rgba(20, 25, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* This transform rule is the key fix. It combines the variable with static values. */
    transform: rotateY(var(--node-rotation-angle)) translateZ(var(--orbit-radius));
    transition: transform 0.5s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.skill-node img {
    width: 50px; height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(80%) opacity(0.7);
}

.skill-node:not(.active):hover {
    transform: rotateY(var(--node-rotation-angle)) translateZ(var(--orbit-radius)) scale(1.15);
    border-color: #fff;
}
.skill-node:not(.active):hover img {
    filter: grayscale(0%) opacity(1);
}

.skill-node.active {
    background-color: rgba(30, 40, 60, 0.9);
    border-color: var(--glow-color);
    transform: rotateY(var(--node-rotation-angle)) translateZ(var(--orbit-radius)) scale(1.3);
    box-shadow: 0 0 30px -5px var(--glow-color), inset 0 0 15px -5px var(--glow-color);
}
.skill-node.active img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}


/* === STYLY PRO MODÁLNÍ OKNO CERTIFIKÁTŮ === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden; /* Skryje okno i pro čtečky obrazovky */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #A0A0A0;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}
.modal-close:hover {
    color: var(--glow-color);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.certificates-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.certificates-gallery img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.certificates-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--glow-color);
}

.modal-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #A0A0A0;
    margin-top: 1.5rem;
}


/* Ostatní styly */
.notification-mobile-tablet, .languege { z-index: 1001; }
.languege{ cursor: pointer; position: absolute; z-index: 10000; width: 5vw; min-width: 50px; height: auto; top: 3vh; right:2vw; border-radius:8px ; }
.notification-mobile-tablet { display: none; } /* Přidat logiku pro zobrazení na mobilu podle potřeby */


/* === PŘIDÁNO ZDE: Responzivní úpravy pro navigaci === */
@media (max-width: 768px) {
    .carousel-navigation {
        justify-content: center; /* Vycentrování na menších obrazovkách */
        width: 100%;
    }

    .nav-arrow {
        width: 50px;  /* Zmenšení tlačítek */
        height: 50px;
    }

    .nav-arrow svg {
        width: 24px;  /* Zmenšení ikon */
        height: 24px;
    }
}