/* Základní reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    scroll-behavior: smooth;
    
}


body{
    background-color: #000000;
}
/* Odkazy a seznamy */
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* ===================================== */
/* A. ZÁHLAVÍ (HEADER) */
/* ===================================== */

#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    padding: 15px 0;
    border-bottom: 1px solid #ae7c41;

    background-color: rgba(0, 24, 8, 0.1); 
    
    padding: 15px 0;
    border-bottom: 1px solid #ae7c41;
    transition: top 0.3s ease-in-out; 

    /* === PŘIDÁNÉ ROZMAZÁNÍ POZADÍ (Frosted Glass Effect) === */
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px); 
}

/* Kontejner pro centraci obsahu (Logo + Menu) */
.nav-container {
    display: flex;
    /* CENTROVÁNÍ A OMEZENÍ ŠÍŘKY */
    max-width: 1200px; 
    width: 90%; 
    margin: 0 auto; 
    
    justify-content: space-between; 
    align-items: center;
}

/* Styly pro logo */
.logo img {
    height: 40px; 
    display: block;
}

/* Styly pro menu */
.nav-links ul {
    display: flex;
    gap: 30px; 
}

.nav-links a {
    color: #be8748; 
    font-size: 0.9em;
    padding: 5px 10px;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 

    text-decoration: none; 
    
    position: relative; 
    
    transition: color 0.3s, background-size 0.5s ease-out; 

    /* === VÝCHOZÍ STAV PODTRŽENÍ === */
    background-image: linear-gradient(#0dad72, #0dad72); 
    background-repeat: no-repeat;
    background-position: 0% 100%; 
    background-size: 0% 1px; 
}

.nav-links a:hover {
    color: #0c7a52; 
    
    /* === AKTIVACE PODTRŽENÍ === */
    background-size: 100% 1px; 
}

@media (max-width: 768px) {

    /* 1. Zmenšení velikosti písma v menu */
    .nav-links a {
        font-size: 0.8em; 
        padding: 5px; 
    }

    /* 2. Zmenšení mezery mezi položkami menu */
    .nav-links ul {
        gap: 15px; 
    }
    
    /* 3. Zmenšení mezer v navigačním kontejneru */
    .nav-container {
        width: 95%; 
        padding-left: 10px;
        padding-right: 10px;
    }

    /* 4. Zmenšení loga */
    .logo img {
        height: 30px; 
    }
}


/* ===================================== */
/* B. ÚVODNÍ SEKCÉ & OBSAH */
/* ===================================== */

.uvodni-sekce {
    padding-top: 70px; 
    height: 100vh;
    width: 100%;
    background: url('media_portfolio/uvod.png') no-repeat center center/cover;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    
    padding-top: 70px; 
    padding-bottom: 5vh; 
    border-radius: 0 0 230px 230px;
}

.graphic_designer {
    width: 75vw; 
    max-width: 10000px; 
    
}

.graphic_designer h3 {
    color: #ae7c41;
    
    /* PŘIDÁNO: Kurzíva */
    font-style: italic; 
    

    font-weight: 400; 
    margin-left: 4%;
    
}

.graphic_designer img {
    width: 100%; 
    height: auto; 
    display: block; 
    margin-top: 25vh;
    
}

/* ===================================== */
/* B.2. ÚVODNÍ SEKCÉ - SEZNAM SLUŽEB */
/* ===================================== */

.maly_text {
    width: 100%; /* Rozšíříme na 100% šířky obrazovky */
    max-width: 100%;
    
    padding: 40px 0 60px 0; /* Odsazení uvnitř bloku */
    text-align: center;
    
    color: #ae7c41; 
}


.services-list {
    display: flex;
    justify-content: center; /* Zarovná položky na střed */
    gap: 15vw; /* Velká mezera mezi položkami pro široký rozestup */
    max-width: 1200px; /* Omezení šířky, pokud je okno příliš široké */
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column; /* #01 nahoře, Design dole */
    text-align: center;
}

.service-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #ae7c41; /* Zlatavá */
    margin-bottom: 5px;
}

.service-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    font-weight: 400; /* Slabší tah */
    color: #ffffff; /* Světlejší text */
}

/* === Responzivní úprava: Menší mezery na mobilu === */
@media (max-width: 768px) {
    .services-list {
        gap: 8vw; /* Zmenšení mezery */
        padding: 0 10px;
    }

    .service-number {
        font-size: 1em;
    }

    .service-name {
        font-size: 0.8em;
    }
}

.uvodni-text h1, .uvodni-text p {
    color: #ae7c41;
}

main {
    background-color: #000000; 
    color: #cccccc;
}

main section {
    padding: 80px 10%;
    min-height: 50vh;
}



/* ===================================== */
/* D. SEKCE O MNĚ A POSTAVU */
/* ===================================== */

/* Kontejner pro Flexbox rozložení */
.about-flex-container {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 80px 10%; 
    max-width: 1400px;
    margin: 0 auto;
}

/* Sekce O MNĚ zabere většinu místa */
#about {
    flex-grow: 1; 
    padding: 0; 
    min-width: 400px; 
    
    color: #cccccc;
}

#about h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 4.5em;
    color: #ae7c41;
    margin-bottom: 25px;
}

.postava {
    height: 100vh; 
    flex-shrink: 0; 
    display: flex;
    align-items: flex-start; 
    margin-left: 50px; 
    overflow: hidden; 
}

.postava img {
    width: auto; 
    height: 100%; 
    object-fit: cover; 
    
}

@media (max-width: 900px) {
    .about-flex-container {
        flex-direction: column; 
        align-items: center;
        gap: 30px;
    }
    
    .postava {
        height: 60vh; 
        margin-left: 0;
        width: 100%;
        text-align: center;
        order: -1; 
    }

    .postava img {
        height: 100%;
        width: auto;
    }

    #about {
        min-width: unset;
        text-align: center;
    }
}



#about p {
    font-family: 'Open Sans', sans-serif; /* Použijeme čitelný font pro obsah */
    font-size: 1.15em; /* Větší a čitelnější velikost písma */
    line-height: 1.6; /* Zlepší čitelnost (mezery mezi řádky) */
    margin-top: 30px; /* Oddělí text od ikonek */
    max-width: 600px; /* Omezí šířku pro lepší čitelnost na velkých obrazovkách */
}

@media (max-width: 900px) {
    #about p {
        padding: 0 15px; /* Zajistíme, že text na mobilu nepřesahuje obrazovku */
    }
}




/* ===================================== */
/* Doplňkové styly pro IKONY SOCIÁLNÍCH SÍTÍ */
/* ===================================== */

.social-icons {
    margin-top: -10px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px;
    border-radius: 50%; /* Kulatý tvar */
    color: #cccccc; /* Barva ikonky (defaultní) */
    background-color: transparent;
    transition: all 0.3s ease;
    border: 2px solid #cccccc; /* Rámeček */
}

/* Styl pro SVG ikonku uvnitř odkazu */
.social-icons a .icon {
    width: 20px;
    height: 20px;
    stroke: currentColor; /* Důležité: Vezme barvu z rodičovského <a> elementu */
}

/* HOVER EFEKT */
.social-icons a:hover {
    color: #ae7c41; /* Změna barvy ikonky na akcentní */
    border-color: #ae7c41;
    transform: translateY(-3px); 
}

/* Úprava pro mobilní zobrazení, pokud je text zarovnán na střed */
@media (max-width: 900px) {
    #about {
        /* ... vaše stávající styly ... */
        text-align: center;
    }
    
    .social-icons {
        justify-content: center; /* Vycentrování ikonek */
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===================================== */
/* E. SEKCIE DOVEDNOSTI (#skills) */
/* ===================================== */

#skills {
    background-color: #000000;
    padding: 80px 10%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

#skills h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5em;
    color: #ae7c41;
    margin-bottom: 50px;
}

.skills-main-image {
    max-width: 300px; 
    margin: 0 auto 60px auto; 
}

.skills-main-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 30px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    background-color: #222;
}

.skill-card .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3em; 
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 10px;
    color: #ffffff;
    margin-bottom: 10px;
    transition: background-color 0.3s;
    text-align: center;
}

.skill-card .name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1em;
    color: #cccccc;
}

/* === KORPORÁTNÍ BARVY === */
.skill-card.photoshop .logo { background-color: #31A8FF; }
.skill-card.blender .logo { background-color: #F5792A; }
.skill-card.css .logo { background-color: #264DE4; }
.skill-card.html .logo { background-color: #E44D26; }
.skill-card.illustrator .logo { background-color: #FF9A00; }
.skill-card.csharp .logo { background-color: #68217A; }

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    }
}


/* ===================================== */
/* F. SEKCIE MOJE PRÁCE (#work) */
/* ===================================== */

#work {
    background-color: #000000;
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

#work h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5em;
    color: #ae7c41;
    text-align: center;
    margin-bottom: 40px;
}

#work h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    color: #cccccc;
    margin-bottom: 30px;
    text-align: center;
}

.category-content.hidden {
    display: none;
}

.category-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 15px;
}

.tab-button {
    background-color: #1a1a1a;
    color: #ae7c41;
    border: 2px solid #ae7c41;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button:hover {
    background-color: #0c7a52;
    color: #ffffff;
    border-color: #0c7a52;
}

.tab-button.active {
    background-color: #ae7c41;
    color: #000000;
    border-color: #ae7c41;
}

.carousel-container {
    position: relative;
    overflow: hidden; 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 0 50px; 
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    transform: translateZ(0); 
}

.carousel-item {
    min-width: 300px; 
    flex-shrink: 0;
    margin-right: 20px; 
    text-align: center;
    
    background-color: #111;
    padding-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    margin-bottom: 10px;
}

.carousel-item h4 {
    color: #ae7c41;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* === CAROUSEL OVLDACÍ PRVKY (ŠIPKY) === */

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    border-radius: 5px;
    opacity: 0.7;
    transition: opacity 0.3s, background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }


/* === WEB KATEGORIE STYLY === */

.web-links-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
}

.web-link-card {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: left;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid #222;
}

.web-link-card:hover {
    background-color: #222;
    transform: translateY(-3px);
}

.web-link-card h4 {
    color: #ae7c41;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.web-link-card p {
    color: #cccccc;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.web-link-card .visit-btn {
    display: inline-block;
    color: #0c7a52;
    font-weight: 700;
    transition: color 0.3s;
}

.web-link-card:hover .visit-btn {
    color: #0dad72;
}


/* ===================================== */
/* G. SEKCIE KONTAKTY (#contact) */
/* ===================================== */

#contact {
    background-color: #000000;
    padding: 80px 10%;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

#contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5em;
    color: #ae7c41;
    margin-bottom: 50px;
}

.contact-form-container {
    padding: 40px 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.contact-form-container p {
    color: #cccccc;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden; 
}

.input-group input {
    flex-grow: 1;
    padding: 15px;
    border: none;
    font-size: 1em;
    background-color: #222;
    color: #fff;
}

.input-group input::placeholder {
    color: #888;
}

#contact-button {
    padding: 15px 25px;
    background-color: #0c7a52; 
    color: #ffffff;
    border: none;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0; 
}

#contact-button:hover {
    background-color: #0dad72;
}

/* Styl pro zprávy po odeslání (simulace) */
#form-message {
    margin-top: 20px;
    padding: 10px;
    background-color: #0c7a5233; 
    color: #0dad72;
    border-radius: 5px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        gap: 15px;
    }

    .input-group input, #contact-button {
        width: 100%;
        border-radius: 8px;
    }
}


/* ===================================== */
/* H. PATIČKA (FOOTER) */
/* ===================================== */

footer {
    background-color: #0d0d0d; 
    color: #ae7c41; 
    text-align: center;
    padding: 30px 10%;
    border-top: 1px solid #1a1a1a;
    font-size: 0.9em;
}

footer p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}