/* --- Proměnné pro Tmavý Režim a Starou Zlatou (Bronz) --- */
:root {
    --color-primary: #0a0a0a;       /* Hluboká černá pro pozadí */
    --color-secondary: #FFFFFF;     /* Bílá (pro text a nadpisy) */
    
    /* STARÁ ZLATÁ / BRONZ - Tmavší, matnější, luxusní (#ffce64) */
    --color-accent: #ffce64;        
    
    --color-text: #cccccc;          /* Jemně šedý text */
    --color-glass-bg: rgba(20, 20, 20, 0.7); /* Tmavší sklo */
    
    /* Luxusní ohraničení - Bronzová s průhledností */
    --color-border-gold: rgba(191, 161, 95, 0.25); 
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* OPRAVA: Zákaz horizontálního posouvání stránky */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 50px; 
    scroll-behavior: smooth;   
}

/* --- Základní Reset a Tmavé Pozadí --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: #050505; /* Téměř čistá černá */
}

body.no-scroll {
    overflow: hidden;
}

/* --- LUXUSNÍ HIERARCHIE (Bronz do Černa) --- */

/* H1, H2 - Metalický gradient + KONTURA PÍSMA (Obrys) */
h1, h2 {
    font-family: var(--font-heading);
    line-height: 1.2;
    
    /* ZMĚNA: Menší tučnost a větší rozestupy */
    font-weight: 500; 
    letter-spacing: 2px;
    
    /* GRADIENT DO ČERNA: Bronz -> Hnědá -> Černá */
    
    
    background-size: 100% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
    
    text-shadow: none; 

    /* KONTURA (OBRYS PÍSMEN) */
    -webkit-text-stroke: 1px rgba(191, 161, 95, 0.4); 
    
    /* Bez boxu */
    border: none;
    padding: 0;
    display: block; 
    background-color: transparent;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    
    /* Reset centrování */
    margin-left: auto;
    margin-right: auto;

    /* Vertikální gradient: Bronz nahoře, tmavá dole */
    background: linear-gradient(180deg, #ffce64 0%, #4a3a1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* H3 a menší nadpisy - Čistá bílá */
h3 {
    font-family: var(--font-heading);
    line-height: 1.3;
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
    color: #e6e6e6; 
    text-shadow: none;
    font-weight: 600;
}

/* --- LOGO --- */
.logo-d {
    color: #5fb138; 
    font-weight: bold; 
    font-size: 1.7rem; 
    background: none; 
    -webkit-text-fill-color: #5fb138;
    text-shadow: none;
}

.logo-site {
    color: #9d9e9e; 
    font-weight: bold; 
    font-size: 1.7rem; 
}

.logodsite {
    max-width: 80%;
    padding-block: 20px;
    padding-inline: 0 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-description {
    text-align: center;
    margin-bottom: 60px;
    color: #888;
    font-size: 1.1rem;
}

section {
    padding: 100px 0;
}

/* --- Tlačítka (Bronz Metal Style) --- */
.cta-button {
    display: inline-block;
    
    /* GRADIENT DO ČERNA: Bronz -> Tmavá hnědá -> Černá */
    background: linear-gradient(145deg, #ffce64 0%, #5e481c 60%, #1a1a1a 100%);
    
    color: #fff; 
    padding: 15px 30px;
    text-decoration: none;
    
    /* OHRANIČENÍ: Tmavá bronzová */
    border: 1px solid #5e481c; 
    
    cursor: pointer;
    border-radius: 4px; 
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); 
    letter-spacing: 0.5px;
}

.cta-button:hover {
    /* Zesvětlení při hoveru */
    background: linear-gradient(145deg, #d4bb7e 0%, #8c6e30 60%, #2b2b2b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 161, 95, 0.15);
    color: #fff;
    border-color: #ffce64;
}

.cta-button-secondary {
    display: inline-block;
    color: var(--color-accent); 
    background-color: transparent;
    border: 1px solid var(--color-accent); /* Bronzový border */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px; 
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.cta-button-secondary:hover {
    background-color: rgba(191, 161, 95, 0.1); 
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}


/* --- 1. Navigační Lišta --- */
.main-header {
   position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a4a4a;
    text-decoration: none;
    z-index: 101; 
}

/* Hamburger Ikona */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--color-accent); 
    cursor: pointer;
    z-index: 101;
}

/* Navigace */
nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: #aaaaaa;
    margin-left: 30px;
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--color-accent); 
}

/* Mobilní hlavička menu */
.mobile-menu-header {
    display: none;
}

/* Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1900; 
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}


/* --- 2. Hero Sekce --- */
.hero-section {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.65)), url('img/bg-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}


@media (max-width: 520px) {
.hero-section
 {
    background-size: auto;
    background-position: center;
    background-attachment: scroll;
}}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 520px;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    /* Font weight je definovan vyse v h1, h2 */
    
    /* Gradient do černa s bronzovou */
    background-image: linear-gradient(160deg, #ffce64 0%, #6b5220 82%, #2e2e2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 30px;
}

.hero-image {
    max-width: 500px;
    padding-left: 20px;
}

.hero-image img {
    width: 110%;
    height: auto;
    display: block;
    object-fit: contain;
    margin-bottom: -25%;
    filter: brightness(0.9);
}


/* --- 3. Sekce O mně --- */
.about-me-section {
    background-color: var(--color-primary);
}

.about-me-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.about-text {
    flex: 1;
    max-width: 55%;
}

.about-text h2 {
    text-align: left; 
    margin-bottom: 25px;
    font-size: 2.2rem;
    display: block; 
}

.story-section {
    margin-top: 40px;
    padding: 25px;
    /* LUXUSNÍ ODŘÍZNUTÍ BORDEREM - Bronz */
    border: 1px solid var(--color-border-gold); 
    background-color: rgba(20, 20, 20, 0.5);
    border-radius: 4px;
}

.story-section h3 {
    color: #e6e6e6;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-shadow: none;
}

.story-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.story-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.story-list li i {
    color: var(--color-accent); 
    margin-right: 10px;
    font-size: 1rem;
    padding-top: 3px;
    opacity: 0.8;
}

.skills-grid {
    background: var(--color-glass-bg);
    /* LUXUSNÍ ODŘÍZNUTÍ BORDEREM - Bronz */
    border: 1px solid var(--color-border-gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px; 
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.5);
    flex: 1;
    max-width: 40%;
    padding: 30px;
}

.skills-grid h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #FFFFFF; 
    background: none;
    -webkit-text-fill-color: initial;
}

.skill-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--color-text);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05); 
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item i {
    font-size: 2rem;
    margin-right: 15px;
    width: 30px;
    /* Ikony gradient s bronzovou */
    background: linear-gradient(135deg, #ffce64, #3b2d10);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- 4. Portfolio/Projekty (CAROUSEL) --- */
.portfolio-section {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.65)), url('img/bg-portfolio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden; 
}

@media (max-width: 520px) {
.portfolio-section
 {
    background-size: auto;
    background-position: center;
    background-attachment: scroll;
}}

.carousel-wrapper {
    position: relative;
    padding: 0 10px;
}

.projects-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 5px 40px 5px;
    scrollbar-width: none;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

/* Karta projektu - Temná s luxusním bronz borderem */
.project-card {
    max-width: 400px;
    flex: 0 0 auto;
    
    background: rgba(20, 20, 20, 0.8);
    /* LUXUSNÍ ODŘÍZNUTÍ BORDEREM */
    border: 1px solid var(--color-border-gold); 
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px; 
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8); 
    border-color: rgba(191, 161, 95, 0.5); /* Při hoveru výraznější bronz */
}

/* Obrázek */
.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    opacity: 0.85; 
    transition: opacity 0.3s;
}

.project-card:hover img {
    opacity: 1;
}

.card-content {
    padding: 20px;
}

/* Tech-tag - Temný */
.tech-tag {
    background-color: rgba(0, 0, 0, 0.4); 
    color: #a0a0a0;
    padding: 5px 10px;
    border-radius: 3px; 
    font-size: 0.85rem;
    margin-top: 10px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: monospace;
}

/* Ovládací šipky (desktop) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 10, 10, 0.95);
    /* Border: Tmavá bronzová */
    border: 1px solid #5e481c;
    
    color: var(--color-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.carousel-btn:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

/* --- FIX: Šipky pro Utility --- */
#prev-apps-utils, #next-apps-utils {
    top: 50%; 
    margin-top: 0;
}

#prev-apps-utils {
    left: -5px; 
}

#next-apps-utils {
    right: -5px; 
}


/* Animace zatřesení */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* --- Scroll Hint --- */
.scroll-hint {
    display: none; 
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    margin: 10px auto 20px auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    padding: 10px 30px; 
    background: rgba(30, 30, 30, 0.8);
    /* LUXUSNÍ ODŘÍZNUTÍ BORDEREM */
    border: 1px solid var(--color-border-gold);
    
    border-radius: 30px;
    
    color: rgba(255, 255, 255, 0.5); 
    font-size: 0.85rem; 
    font-weight: 400; 
    text-transform: uppercase;
    letter-spacing: 1px;
    
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.scroll-hint:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(0, 0, 0, 0.9);
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.hint-arrow {
    animation: bounceRight 1.5s infinite ease-in-out;
    font-size: 1.1rem; 
    padding: 10px; 
    margin: -10px 0; 
    color: var(--color-accent);
}

.hint-arrow-left {
    font-size: 1.1rem; 
    padding: 10px; 
    margin: -10px 0; 
    color: var(--color-accent);
    transition: color 0.3s; animation: bounceLeft 1.5s infinite ease-in-out;
}

.hint-arrow-left:hover {
    color: #fff;
}

.scroll-hint .hint-arrow-left {
    display: none;
}

/* Styly pro text "Více" */
.hint-text {
    transition: opacity 0.3s, cursor 0.3s;
}

.hint-text.active-link {
    cursor: pointer;
    opacity: 1;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

@keyframes bounceLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-6px); }
}

/* --- 5. Aplikace zdarma --- */
.apps-section {
    padding: 100px 0;
    background-color: var(--color-primary);
}

.featured-app-card {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Velmi tmavá karta */
    background: linear-gradient(135deg, #121212, #080808);
    /* LUXUSNÍ ODŘÍZNUTÍ BORDEREM */
    border: 1px solid var(--color-border-gold);
    
    padding: 40px;
    border-radius: 6px; 
    margin-bottom: 50px;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
    
    min-width: 320px;
    max-width: 500px;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.featured-app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9); 
    border-color: rgba(191, 161, 95, 0.4);
}

.featured-app-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.featured-app-icon i {
    font-size: 3.5rem;
    /* Gradient do černa */
    background: linear-gradient(135deg, #ffce64, #2e2410);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.featured-app-info h3 {
    font-size: 2rem;
    background: none;
    -webkit-text-fill-color: initial;
    color: #e6e6e6;
    margin-bottom: 15px;
    text-shadow: none;
}

.featured-app-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #999;
}

.featured-app-info .cta-link {
    color: var(--color-accent);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.app-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 0 auto;
}

.app-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #aaa;
    background: rgba(255, 255, 255, 0.02);
    /* Jemnější border pro malé položky */
    border: 1px solid rgba(191, 161, 95, 0.15);
    
    border-radius: 4px; 
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
    
    min-width: 200px; 
    margin-right: 1.5rem; 
    flex-shrink: 0;
}

.app-link:hover {
    background-color: rgba(191, 161, 95, 0.05);
    border-color: #ffce64;
    transform: translateY(-2px);
    color: #ddd;
}

/* Ikony utilit - Bronz */
.app-link i {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ffce64, #3b2d10);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 15px;
    width: 25px; 
    text-align: center;
}

.app-link span {
    font-weight: 600;
}

/* --- 6. Služby/Expertíza --- */
.services-section {
    background: linear-gradient(to top, rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.65)), url('img/bg-portfolio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 520px) {
.services-section
 {
    background-size: auto;
    background-position: center;
    background-attachment: scroll;
}}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-box {
    text-align: center;
    background: rgba(20, 20, 20, 0.6);
    /* LUXUSNÍ ODŘÍZNUTÍ BORDEREM */
    border: 1px solid var(--color-border-gold);
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    /* OPRAVA: Změna na poloprůhlednou zlatou, aby tolik nesvítila */
    border-color: rgba(191, 161, 95, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8); /* Přidán stín pro konzistenci s projekty */
}

.service-box i {
    font-size: 3rem;
    /* Gradient do černa */
    background: linear-gradient(135deg, #ffce64, #2e2410);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.service-box h3 {
    color: #e6e6e6; 
}

/* --- Sekce Pro Bono (Charita) --- */
.pro-bono-container {
    margin-top: 60px;
    background: rgba(10, 10, 10, 0.5); 
    /* LUXUSNÍ ODŘÍZNUTÍ BORDEREM */
    border: 1px solid var(--color-border-gold);
    
    border-radius: 6px; 
    padding: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.pro-bono-content {
    display: flex;
    align-items: center;
    gap: 30px;
   }

.pro-bono-icon i {
    font-size: 3.5rem;
    /* Srdce bronzové do černa */
    background: linear-gradient(to bottom, #ffce64, #4a3a1a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 1;
}

.pro-bono-text {
    flex: 2;
    min-width: 300px;
}

.pro-bono-text h3 {
    margin-bottom: 10px;
    color: #e6e6e6;
    font-size: 1.5rem;
    text-align: left; 
}

.pro-bono-text p {
    margin-bottom: 10px;
    color: #a0a0a0;
}

.small-note {
    font-size: 0.9rem;
    color: #666 !important;
    font-style: italic;
}

.small-note i {
    color: var(--color-accent); 
    margin-right: 5px;
}

.pro-bono-action {
    flex: 1;
    text-align: right;
    min-width: 200px;
}

/* --- 7. Reference --- */
.references-section {
    background-color: transparent;
}

.testimonial {
    max-width: 800px;
    margin: 30px auto 0;
    font-style: italic;
    font-size: 1.3rem;
    color: #aaa;
    border-left: 5px solid #5e481c; /* Tmavá bronzová linka */
    padding-left: 20px;
}

.testimonial footer {
    color: #e6e6e6;
    font-weight: bold;
    text-shadow: none;
    margin-top: 10px;
}

/* --- 8. Kontakt --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.contact-form-wrapper {
    flex: 2;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #0f0f0f;
    color: #e0e0e0;
    border-radius: 4px; 
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffce64;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8); 
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form .cta-button {
    color: #fff;
    width: auto;
}

.contact-info {
    flex: 1; margin-top: 5%;
}

.contact-info h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #e6e6e6; 
}

.contact-info p {
    margin-bottom: 10px;
    color: #aaa;
}

.contact-info i {
    color: var(--color-accent);
    margin-right: 10px;
    opacity: 0.8;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #666;
    font-size: 1.8rem;
    margin-right: 15px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

/* --- 9. Patička (Footer) --- */
.main-footer {
    background-color: #000;
    color: #444;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    display: block; 
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #444;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.copyright {
    margin-top: 15px;
}

.copyright a {
    color: #666;
    text-decoration: none;
}
.copyright a:hover {
    color: var(--color-accent);
}

/* --- Cookies Lišta --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f0f0f; 
    color: #ccc;
    padding: 15px 0;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    border-top: 1px solid #333;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; 
}

.cookie-text {
    flex: 2;
    min-width: 300px; 
}

.cookie-text p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

.small-cookie-info {
    font-size: 0.8rem;
    color: #666;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
}

.cookie-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    white-space: nowrap; 
    margin-top: 0 !important; 
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

p {
    margin-bottom: 15px;
}

/* ========================================= */
/* RESPONZIVNÍ DESIGN & MOBILNÍ MENU */
/* ========================================= */

@media (max-width: 520px) {
    h2 {
        font-size: 2rem;
    }

    .carousel-btn {
        display: none;
    }
    
    .scroll-hint {
        display: inline-flex;
        width: 90%; 
        justify-content: space-between; 
        max-width: 350px;
    }
    
    /* --- Moderní Mobilní Carousel --- */
    .projects-carousel {
        scroll-snap-type: x mandatory;
        padding: 20px 0px 10px 0px; 
        gap: 15px;
    }

    .project-card, 
    .featured-app-card { 
        max-width: 100% !important;
        scroll-snap-align: center;   
        margin-right: 0 !important;  
    }
    
    /* OPRAVA: Utility karty nebudou pod sebou, ale vedle sebe */
    .utils-group-slide .app-link {
        flex-direction: row !important;
        text-align: left !important;
        justify-content: flex-start !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        scroll-snap-align: center;
    }
    
    .utils-group-slide .app-link i {
        margin-right: 15px !important;
        margin-bottom: 0 !important;
        font-size: 1.2rem !important;
        width: 25px !important;
    }

    .carousel-wrapper {
        padding: 0 0px; 
    }

    /* Zbytek carouselu */
    .projects-carousel .app-link {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px;
    }
    
    .projects-carousel .app-link i {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 2rem; 
        width: auto;
    }

    .featured-app-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .featured-app-info h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 900px) {
    
    .hero-content, .about-me-content, .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text, .about-text {
        text-align: left;
        max-width: 100%; margin-top: 100px;
    }
    
    .hero-text h1 {
        font-size: 1.9rem;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .about-text, .skills-grid, .contact-info, .contact-form-wrapper {
      max-width: 100%;
      margin: 0 auto;
    }

    /* --- MENU PRO MOBILY --- */

    .main-header {
        z-index: 2001;
    }

    .nav-content {
        justify-content: space-between; 
    }

    .logo {
        margin-right: auto;
        z-index: 1500; 
    }

    .hamburger {
        display: block; 
        z-index: 1500;
    }

    nav#main-nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 260px; 
        height: 100vh;
        background-color: #0f0f0f;
        z-index: 2000; 
        display: flex;
        flex-direction: column;
        padding: 0;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.8);
        border-left: 1px solid #222;
    }

    nav#main-nav.active {
        right: 0; 
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: left;
    }

    nav ul li a {
        display: block;
        margin: 0;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.02);
        font-size: 1.1rem;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        border-bottom: 1px solid #222;
        background: rgba(191, 161, 95, 0.05);
    }

    .menu-title {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.2rem;
        color: var(--color-accent);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    #close-menu-btn {
        font-size: 1.5rem;
        color: #fff;
        cursor: pointer;
        transition: color 0.3s;
    }

    #close-menu-btn:hover {
        color: var(--color-accent);
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .cookie-text {
        width: 100%;
        min-width: 0;
        margin-bottom: 15px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-btn {
        flex: 1; 
        text-align: center;
    }
}

@media (max-width: 768px) {
    .pro-bono-content {
        flex-direction: column;
        text-align: center;
    }

    .pro-bono-text h3 {
        text-align: center;
    }
    
    .pro-bono-action {
        text-align: center;
        width: 100%;
    }
}

/* ========================================= */
/* ALERTY A FORMULÁŘE */
/* ========================================= */

.alert {
    padding: 15px;
    border-radius: 4px; 
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}
.alert-success {
    background-color: rgba(6, 95, 70, 0.2);
    color: #d1fae5;
    border: 1px solid #065f46;
}
.alert-danger {
    background-color: rgba(153, 27, 27, 0.2);
    color: #fecaca;
    border: 1px solid #991b1b;
}

/* Patička formuláře */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.gdpr-box {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem; 
    color: #666;        
    text-align: left;
    flex: 1;            
    max-width: 82%;     
}

.gdpr-row {
    display: flex; 
    gap: 8px; 
    align-items: flex-start; 
}

.gdpr-row input[type="checkbox"] {
    margin-top: 2px; 
    width: auto !important;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--color-accent); 
}

.gdpr-row label {
    cursor: pointer; 
    line-height: 1.3; 
    margin-bottom: 0;
    color: #888;
}

.gdpr-link {
    text-decoration: underline; 
    cursor: pointer; 
    color: #666;        
    font-size: 0.7rem;  
    opacity: 0.8;
    transition: opacity 0.3s;
    display: block;
    margin-top: 2px;
}

.gdpr-link:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* Modal Styles */
#gdprModal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 0;
    border-radius: 4px; 
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.9);
    position: relative;
    animation: fadeIn 0.3s;
    color: #ccc; 
    text-align: left;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    border: 1px solid #333;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    border-radius: 4px 4px 0 0; 
}
.modal-header h3 { margin: 0; font-size: 1.3rem; color: #fff; font-weight: 600; }
.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

.modal-body { 
    padding: 30px; 
    line-height: 1.7; 
    overflow-y: auto; 
    font-size: 0.95rem;
}

.modal-body h4 { 
    margin-top: 25px; 
    margin-bottom: 10px; 
    color: #e0e0e0; 
    font-size: 1.1rem; 
    font-weight: 600; 
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    display: inline-block;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 15px; color: #aaa; }
.modal-body ul { padding-left: 20px; margin-bottom: 15px; color: #aaa; }
.modal-body li { margin-bottom: 5px; }
.modal-body strong { color: #ccc; }

@media (max-width: 600px) {
    .form-actions {
        flex-direction: column-reverse; 
        align-items: flex-end; 
    }
    .gdpr-box {
        max-width: 100%;
        text-align: left; 
    }
    .gdpr-link {
       margin-left: 20px;
    }
    .gdpr-row {
        justify-content: flex-end; 
        flex-direction: row-reverse; text-align: left; 
    }
    .contact-form .cta-button {
        width: 100%; 
    }
}

/* Neviditelný kontejner pro skupinu utilit */
.utils-group-slide {
    min-width: 300px; 
    max-width: 350px;
    
    display: flex;
    flex-direction: column;
    gap: 12px; 
    
    scroll-snap-align: start;
    padding: 0 5px;
    
    background: transparent; 
}

.utils-group-slide h3 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: #e6e6e6; 
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

.utils-group-slide .app-link {
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .utils-group-slide {
        min-width: 350px; 
    }

    .hero-section {
        /* Zajistí, že sekce bude mít dost místa i s hlavičkou */
        padding-top: 100px; /* Více než výška hlavičky (80px) */
        height: auto; 
        min-height: 93vh;
    }


}

.card-content a {
    text-decoration: none;
    color: inherit; 
}

.card-content a h3 {
    text-decoration: none;
    color: inherit;
}