/* --- GLOBÁLNÍ PROMĚNNÉ A NASTAVENÍ --- */
:root {
--bg-dark: #0f1211;
    --bg-secondary: #1a201e;
    --primary-color: #2d9c73;
    --text-light: rgba(255, 255, 255, 1);
    --text-green: rgba(166, 255, 212, 1);
    --text-darkgreen: rgba(78, 186, 141, 1);
    --text-blue: rgba(0, 184, 255, 1);
    --text-grey: rgba(150, 176, 170, 1);
    --header-height: 60px;
    --transition: all 0.2s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
}

/* ==========================================================================
   LOKÁLNÍ FONTY (Podpora latin-ext pro CZ znaky ě, š, č, ř, ž, ů...)
   ========================================================================== */

/* --- POPPINS (Nadpisy, Menu, Bio) --- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-v24-latin-ext-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-v24-latin-ext-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-v24-latin-ext-600.woff2') format('woff2');
}

/* --- SOURCE SANS 3 (Běžný text, Popisky) --- */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-v19-latin-ext-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-v19-latin-ext-italic.woff2') format('woff2');
}

/* Muj Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #23302a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body); /* Vše bude defaultně Source Sans */
    font-size: 16px;
    line-height: 1.6; 
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-width: 360px;
}

/* Třída pro zákaz skrolování pozadí, když je modal otevřený */
body.no-scroll {
    overflow: hidden;
}

/* --- VÝJIMKY PRO NADPISY A UI PRVKY (Poppins) --- */
h1, h2, h3, h4, h5, h6,
nav ul li a,
.btn,
.bio,             
.skill-front,     
.skill-back,
.item-caption
{
    font-family: var(--font-heading);
}

html,
body {
    cursor: default;
}

a,
button,
.skill-card [role="button"] {
    cursor: pointer;
}

.no-break {
    white-space: nowrap;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* --- NAVIGACE --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(8, 16, 12, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(45, 156, 115, 0.1);
    
    /* Animace při načtení */
    opacity: 0;
    transform: translateY(-100%);
    animation: navDown 0.5s ease-out forwards;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    padding-top: 5px; /* menu vertikalne uprostred */
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

/* VÝCHOZÍ STAV ČÁRKY (skrytá) */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* AKTIVNÍ STAV (pro všechna zařízení - přidává JavaScript) */
nav ul li a.active {
    color: var(--primary-color);
}
nav ul li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* HOVER EFEKT (pouze pro PC s myší) */
@media (hover: hover) and (pointer: fine) {
    nav ul li a:hover {
        color: var(--primary-color);
    }
    nav ul li a:hover::after {
        transform: translateX(-50%) scaleX(1);
    }
}

/* --- SEKCE --- */
section {
    scroll-margin-top: var(--header-height);
    padding: 2.5rem 0;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* --- KDO JSEM --- */
.profile-section {
    text-align: center;
    background: radial-gradient(circle at top, #16201b 0%, var(--bg-dark) 50%);
    padding-top: calc(var(--header-height) + 2.5rem);
}

.profile-photo-container {
    margin-top: -1rem;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    padding: 5px;
    background:
        linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,        
        conic-gradient(from var(--angle), rgba(205, 251, 229, 1), rgba(45, 156, 115, 1), rgba(45, 156, 115, 1), rgba(205, 251, 229, 1)) border-box;

    border: 2.7px solid rgba(0, 0, 0, 0);
       
    margin-bottom: 1.5rem;

    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s ease,
        filter 0.5s ease; 
}

.profile-photo:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 15px rgba(45, 156, 115, 0.2),
        0 0 30px rgba(205, 251, 229, 0.1);
    filter: brightness(1.05);
}

/* pro gradient kolem profilovky */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.bio {
    color: var(--text-green);
    max-width: 370px;
    padding-top: 0.5rem;
    margin: 0.4rem auto 1rem;
    font-size: 1.2rem;
    line-height: 1.6rem;
}

.bio2 {
    color: var(--text-darkgreen);
    max-width: 330px;
    padding-top: 0.5rem;
    margin: 1.5rem auto 1.9rem;
    font-size: 1rem;
    font-style: italic;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 46px;
    padding: 0 1.2rem;
    margin: 0;

    color: var(--text-darkgreen);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);

    background-color: rgba(36, 128, 94, 0.25);
    transform: translateY(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    opacity: 0.8;
}

.btn svg {
    display: block;
    /* Odstraní drobné spodní odsazení pod SVG */
}

.btn:hover {
    opacity: 1;
    color: var(--text-light);
    transform: scale(1.05);
    filter: brightness(1.25);
}

/* --- CO UMÍM --- */
.skills-section {
    background-color: var(--bg-secondary);
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.skills-column {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    
}

.skills-column:hover {
    border-color: rgba(45, 156, 115, 0.25);
    box-shadow: 0 0 25px rgba(45, 156, 115, 0.025);
}

.skills-column, .gallery-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.skills-column:hover .bg-icon {
    transform: scale(1.05) rotate(-8deg);
}

.bg-icon {
    position: absolute;
    bottom: -10%;
    right: -15%;
    width: 350px;
    height: 350px;
    color: var(--text-green);
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-10deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.6s ease;
    will-change: transform, opacity;
    /* Optimalizace pro hladký pohyb */
}

.skills-column h3 {
    color: var(--text-green);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.skills-column h3,
.skills-flex,
.skill-text {
    position: relative;
    z-index: 1;
}

.skills-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 12px;
    justify-content: space-evenly; /* zarovnani pilulek na stred */
}

/* aby neposkakoval text během změny čísla */
#days-experience {
    display: inline-block;
    min-width: 4ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
    /* Všechny číslice budou stejně široké */
    -moz-font-feature-settings: "tnum";
    -webkit-font-feature-settings: "tnum";
    font-feature-settings: "tnum";
}

/* FLIP KARTY */
.skill-card {
    perspective: 1200px;
    /* Zvýšení perspektivy pro přirozenější hloubku */
    cursor: pointer;
}

.skill-card-inner {
    position: relative;
    display: inline-grid;
    width: 100%;
    min-width: 180px;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1.35), box-shadow 0.5s ease;
    transform-style: preserve-3d;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    will-change: transform;
    transform: translateZ(0);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.skill-card.flipped .skill-card-inner {
    transform: rotateY(180deg);    
}

.skill-card.flipped .skill-back {
    box-shadow: 0 0 20px rgba(45, 156, 115, 0.25);
    border-color: var(--primary-color);
    transition: box-shadow 0.3s ease;
}

.skill-front,
.skill-back {
    font-size: 0.9rem;
    font-weight: 600;
    grid-area: 1 / 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* vyhlazení hran při rotaci */
    outline: 1px solid transparent;

}

.skill-front {
    background-color: rgba(12, 28, 24, 1);
    color: var(--primary-color);
    border: 2px solid rgba(45, 156, 115, 0.3);
    z-index: 2;
    transition: border 0.15s ease-out;
}

.skill-front:hover {
    /*background-color: rgba(16, 48, 32, 1);*/
    border: 2px solid rgba(45, 156, 115, 1);
}

.skill-back {
    background-color: var(--primary-color);
    color: rgba(12, 24, 16, 1);
    transform: rotateY(180deg) translateZ(1px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.skill-text {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-grey);
    text-align: left;
}

/* --- UKÁZKY (GALERIE) --- */

.portfolio-caption {
    text-align: center;
    font-size: 1rem;
    color: var(--text-darkgreen);
    font-style: italic;
    margin-top: 0;
    margin-bottom: 3rem;
    line-height: 1.5;
    /* max-width: 430px;*/
    letter-spacing: 0.01em;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.gallery-item {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.gallery-img-trigger {
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(45, 156, 115, 0.25);
}

.image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.image-item img:hover {
    opacity: 0.85;
}

.gallery-item a {
    color: var(--text-darkgreen);
    transition: var(--transition);
}

.gallery-item a:hover {
    color: var(--text-blue);
    transition: var(--transition);
}

.item-caption {
    padding: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-grey);
    text-align: center;
    background-color: var(--bg-secondary);
}

.text-item {
    padding: 2rem;
    justify-content: center;
    text-align: center;
}

.text-item p {
    color: var(--text-grey);
}

.text-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- STYL PRO VIDEO POLOŽKU --- */
.video-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* vycentrování: neviditelný prostor nad nadpis */
.video-item::before {
    content: "";
    margin-bottom: auto;
}

.video-item p {
    margin-top: 10px;
    line-height: 1.6;
}

.gallery-pills {
    margin-top: auto; 
    /* padding: 15px; */
    z-index: 2;
}

.clickable-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* Ikonka externího odkazu */
.external-link-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 18px;
    height: 18px;
    color: var(--text-grey);
    opacity: 0.6;
    z-index: 3;
    transition: var(--transition);    
}

.clickable-card:hover .external-link-icon {
    opacity: 1;
    color: var(--primary-color);
    transform: translate(2px, -2px);
}

/* Vodoznak YouTube na pozadí */
.yt-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; /* Velikost loga */ 
    height: auto;
    fill: rgba(255, 255, 255, 0.055);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.video-item h3, 
.video-item p {
    position: relative;
    z-index: 2;
}

.video-item:hover .yt-watermark {
    width: 65%; /* Velikost loga */ 
    fill: rgba(255, 255, 255, 0.035);
    
}

/* --- TECHNOLOGICKÉ PILULKY (PILLS) --- */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.pill {
    color: var(--primary-color);
    background-color: rgba(12, 28, 24, 1);
    border: 1px solid rgba(45, 156, 115, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    white-space: nowrap;
}

/* Specifické pro Modal (větší) */
.modal-pills {
    margin-bottom: 20px; /* Mezera nad obrázkem */
    
}
.modal-pills .pill {
    padding: 2px 15px;
    font-size: 12px;
}

/* Specifické pro Galerii (menší, dole v kartě) */
.gallery-pills {
    margin-top: auto;
    padding-top: 15px;
}
.gallery-pills .pill {
    padding: 2px 10px;
    font-size: 11px;
}

/* --- MODÁLNÍ OKNO --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal-content {
    max-width: 90vw;
    max-height: 77vh;
    margin-bottom: 5px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s ease-out;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hlavní titulek v modalu */
#caption {
    margin: 0 auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 5px 0 0 0;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.2rem;
}

/* Delší popis pod titulkem */
#description {
    margin: 0 auto;
    display: block;
    width: 80%;
    max-width: 600px;
    text-align: center;
    color: #ccc;
    padding: 10px 0 20px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- NAVIGACE V MODÁLU --- */

/* --- TLAČÍTKO ZAVŘÍT (KŘÍŽEK) --- */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 2200;
    
    /* Vzhled tlačítka (kruh) */
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    
    /* Vycentrování křížku uvnitř kruhu */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Typografie křížku */
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    line-height: 1;
    
    cursor: pointer;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: #fff;
    background-color: #8b0000;
    text-decoration: none;
}

/* --- NAVIGAČNÍ ŠIPKY V MODALU --- */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    /* Vycentrování šipky uvnitř kruhu */
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: #fff;

    transition: var(--transition);
    user-select: none;
    z-index: 2100;
}

/* --- ÚPRAVA OBSAHU ŠIPEK (SVG) --- */
.prev svg,
.next svg {
    width: 40px;       /* Velikost ikony uvnitř kruhu */
    height: 40px;
    display: block;    /* Odstraní nechtěné mezery pod obrázkem */
    stroke: #fff;
}

.prev {
    left: 20px;
    transform: translateY(-50%) rotate(180deg) !important; 
}

.next {
    right: 20px;
    transform: translateY(-50%); 
}

.prev:hover,
.next:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- ANIMACE SWIPE HINT (RUČIČKA) --- */
.swipe-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 60px;
    height: 60px;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    display: none;

    transform-origin: 50% 100%;
}

.swipe-hint svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8)); 
}

/* --- ZOBRAZENÍ SWIPE NÁPOVĚDY NA VŠECH DOTYKOVÝCH ZAŘÍZENÍCH --- */
@media (pointer: coarse) {
    .swipe-hint {
        display: block;
        animation: swipe-gesture 2.5s ease-in-out 0.5s forwards;
    }
}

@keyframes swipe-gesture {
    0% {
        opacity: 0;
        /* Start na středu */
        transform: translateX(-50%) rotate(0deg) scale(0.8);
    }
    10% {
        opacity: 1;
        /* Objevení na středu */
        transform: translateX(-50%) rotate(0deg) scale(1);
    }
    25% {
        /* Pohyb DOLEVA + náklon vlevo */
        /* -50% (střed) - 150% (pohyb) = -200% */
        transform: translateX(-200%) rotate(-15deg) scale(1);
    }
    50% {
        /* Pohyb DOPRAVA + náklon vpravo */
        /* -50% (střed) + 150% (pohyb) = 100% */
        transform: translateX(100%) rotate(15deg) scale(1);
    }
    75% {
        /* Návrat na střed */
        opacity: 1;
        transform: translateX(-50%) rotate(0deg) scale(1);
    }
    100% {
        /* Zmizení */
        opacity: 0;
        transform: translateX(-50%) rotate(0deg) scale(1);
    }
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(74, 93, 85, 1);
    font-size: 0.85rem;
    line-height: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(8, 12, 9, 0.75);
}

.smiley {
    font-size: 1rem;
    vertical-align: text-top;
    padding: 0 0.15rem 0 0;
}

/* UVODNI ANIMACE */
/* Navigace - objeví se jako první */
header {
    animation: navDown 0.5s ease-out forwards;
}

/* Profilová fotka */
.profile-photo-container {
    opacity: 0;
    /* Výchozí stav před animací */
    animation: profileIntro 0.25s ease-out forwards;
    animation-delay: 0.2s;
}

/* Jméno a Bio text */
.profile-section h1,
.profile-section .bio {
    opacity: 0;
    animation: contentFadeUp 0.4s ease-out forwards;
    animation-delay: 0.3s;
}

.profile-section .bio2 {
    opacity: 0;
    animation: contentFadeUp 0.4s ease-out forwards;
    animation-delay: 0.35s;
}

/* Sekce "Co dělám" a "Ukázky" */
.skills-section,
.portfolio-section {
    opacity: 0;
    animation: contentFadeUp 0.5s ease-out forwards;
    animation-delay: 0.4s;
}

/* Tlačítko kontaktu */
.contact-info {
    opacity: 0;
    /*  max-width: 40%; */
    animation: contentFadeUp 0.3s ease-out forwards;
    animation-delay: 0.45s;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2.7rem;
}

/* Animace pro profilovou fotku (s rozostřením) */
@keyframes profileIntro {
    0% {
        opacity: 0;
        transform: scale(1.1);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Jemný výsuv a zvětšení pro texty a nadpisy */
@keyframes contentFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Speciální animace pro navigační lištu (seshora) */
@keyframes navDown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVITA --- */
@media (max-width: 768px) {
    nav ul {
        gap: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

.prev, .next {
        display: flex;
        
        top: auto;
        bottom: 20px;
        background-color: rgba(0, 0, 0, 0.3); /* Méně výrazné pozadí */
    }

     .prev { left: 10px; }
    .next { right: 10px; }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .skills-wrapper {
        /* Přepne sloupce pod sebe */
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-column h3 {
        text-align: center;
    }

    .skills-flex {
        justify-content: center;
    }
       skill-card-inner {
         min-width: 13px; /* zrušení minimální šířky */
    }
}



@media (max-width: 480px) {

    .skills-column {
        padding: 1.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .skills-flex {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .skill-card {
        height: auto;
        min-height: 44px;
        width: 100%;
    }

    .skill-front,
    .skill-back {
        font-size: 0.9rem;
        padding: 10px;
        white-space: normal;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* --- DESKTOP LAYOUT PROFILU --- */
@media (min-width: 769px) {
    .profile-section .container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        text-align: left;
        padding: 4rem 0;
    }

    .profile-photo-container {
        margin-top: 0;
        flex-shrink: 0;
    }

    .profile-photo {
        margin-bottom: 0;
    }

    .bio {
        margin: 0.4rem 0 1rem;
        max-width: 100%;
    }

    .bio2 {
        margin: 1.5rem 0 1.9rem;
        max-width: 100%;
    }

    .contact-info {
        justify-content: flex-start;
    }
}