/* style.css - Hlavní CSS soubor */
/* Logo SVG styly */
.logo-svg {
    vertical-align: middle;
}

.logo-svg-p {
    fill: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.logo-svg-d {
    fill: #1DB954;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
}
/* --- Základní Reset a Globální Nastavení --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Plynulý scroll pro anchor linky */
    font-size: 100%; /* 1rem = 16px */
}

body {
    font-family: 'Open Sans', sans-serif; /* Základní písmo, můžete změnit na Poppins, Lato, atd. */
    line-height: 1.6;
    color: #B3B3B3; /* Světle šedá pro text */
    background-color: #121212; /* Velmi tmavě šedá pro pozadí */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typografie --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Písmo pro nadpisy, můžete změnit */
    color: #FFFFFF; /* Bílá pro nadpisy */
    margin-bottom: 0.75em;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.8rem; } /* Velikost pro hlavní nadpis v hero sekci */
h2 { font-size: 2.2rem; } /* Velikost pro titulky sekcí */
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1em;
}

a {
    color: #1DB954; /* Zelená akcentní barva (Spotify green) */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #1ED760; /* Světlejší zelená při hoveru */
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1em;
}
ul li, ol li {
    margin-bottom: 0.3em;
}

/* --- Pomocné Třídy --- */
.container {
    width: 90%;
    max-width: 1140px; /* Maximální šířka kontejneru */
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0; /* Vertikální odsazení pro sekce */
}
@media (min-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative; /* Pro případné podtržení nebo dekorace */
}
.section-title::after { /* Jednoduché podtržení pod titulkem */
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #1DB954;
    margin: 10px auto 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px; /* Zaoblené rohy pro moderní vzhled */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #1DB954;
    color: #FFFFFF;
    border-color: #1DB954;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #1ED760;
    border-color: #1ED760;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF; /* Můžete použít #1DB954 pro zelený outline */
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #FFFFFF;
    color: #121212;
    text-decoration: none;
    transform: translateY(-2px);
}

.sr-only { /* Pro skrytí textu, ale zachování pro screen readery */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Header & Navigace --- */
#header {
    background-color: #181818; /* Trochu světlejší než hlavní pozadí */
    padding: 15px 0;
    position: fixed; /* Fixní header */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
}
.logo a:hover, .logo a:focus {
    text-decoration: none;
}
.logo .logo-p { color: #FFFFFF; }
.logo .logo-d { color: #1DB954; } /* Zelené D */

.main-nav ul {
    list-style: none;
    display: flex;
    margin-bottom: 0;
}
.main-nav li {
    margin-left: 20px;
}
.main-nav a {
    color: #B3B3B3;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
    color: #FFFFFF;
    text-decoration: none;
}
.main-nav a::after { /* Indikátor aktivní/hover položky */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1DB954;
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a:focus::after, .main-nav a.active::after {
    width: 100%;
}


.language-switcher ul {
    list-style: none;
    display: flex;
    margin-bottom: 0;
}
.language-switcher li {
    margin-left: 10px;
}
.language-switcher a {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 3px 6px;
    border: 1px solid #444;
    border-radius: 3px;
}
.language-switcher a:hover, .language-switcher a:focus {
    background-color: #1DB954;
    color: #FFFFFF;
    border-color: #1DB954;
    text-decoration: none;
}

/* Mobilní Navigace Toggle */
.mobile-nav-toggle {
    display: none; /* Skryto na desktopu */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Nad ostatními prvky headeru */
}
.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    position: relative;
    transition: background-color 0s 0.3s; /* Okamžitý přechod barvy, až po transformaci */
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    transition: transform 0.3s ease-out, top 0.3s ease-out 0.3s, bottom 0.3s ease-out 0.3s;
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -8px; }

/* Styly pro otevřené mobilní menu (přidá JS třídu 'nav-open' na body) */
body.nav-open .hamburger-icon {
    background-color: transparent; /* Střední čárka zmizí */
}
body.nav-open .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
    transition: top 0.3s ease-out, transform 0.3s ease-out 0.3s;
}
body.nav-open .hamburger-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
    transition: bottom 0.3s ease-out, transform 0.3s ease-out 0.3s;
}


/* --- Hero Sekce --- */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('placeholder-hero-bg.jpg') no-repeat center center/cover; /* Placeholder obrázek */
    /* Nahraďte 'placeholder-hero-bg.jpg' skutečným obrázkem na pozadí */
    min-height: 100vh; /* Celá výška viewportu */
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    padding-top: 100px; /* Kvůli fixnímu headeru */
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero-greeting {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1DB954; /* Zelený pozdrav */
    margin-bottom: 0.5em;
}
.hero-main-title {
    margin-bottom: 0.5em;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    color: #E0E0E0; /* Světlejší než běžný text */
}
.hero-buttons .btn {
    margin: 0 10px;
}

/* --- O mně Sekce --- */
.about-section .about-content {
    display: flex;
    flex-wrap: wrap; /* Pro mobilní zobrazení */
    align-items: center;
    gap: 40px;
}
.about-text {
    flex: 2; /* Text zabere více místa */
}
.about-image {
    flex: 1;
    text-align: center;
}
.about-image img {
    max-width: 300px; /* Nebo nastavte pevnou velikost */
    width: 100%;
    border-radius: 50%; /* Kruhový obrázek */
    border: 5px solid #1DB954; /* Zelený rámeček */
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
}

/* --- Služby Sekce --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responzivní mřížka */
    gap: 30px;
    margin-bottom: 40px;
}
.service-item {
    background-color: #181818; /* Podobně jako header */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(29, 185, 84, 0.2); /* Zelený stín při hoveru */
}
.service-item h3 {
    color: #1DB954; /* Zelené titulky služeb */
    margin-bottom: 15px;
}
.service-item ul {
    list-style: none; /* Odstranění odrážek */
    padding-left: 0;
}
.service-item ul li::before { /* Vlastní odrážka */
    content: '✓'; /* Nebo použijte SVG ikonu */
    color: #1DB954;
    margin-right: 8px;
    font-weight: bold;
}
.other-technologies, .payment-options {
    background-color: #181818;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}
.other-technologies h3, .payment-options h3 {
    color: #1DB954;
}


/* --- Portfolio Sekce --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.portfolio-item {
    background-color: #181818;
    border-radius: 8px;
    overflow: hidden; /* Aby obrázek nepřesahoval */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}
/* .portfolio-item img { * / /* Pokud byste měli obrázky projektů */
/*    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
} */
.portfolio-item-content {
    padding: 25px;
    flex-grow: 1; /* Aby obsah vyplnil dostupný prostor, pokud by byly různé výšky */
}
.portfolio-item-content h3 {
    color: #1DB954;
}
.portfolio-item-content p strong {
    color: #FFFFFF;
}

/* --- Proč já Sekce --- */
.why-me-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: stretch; /* Nově přidáno */
}

.why-me-item {
    text-align: center;
    padding: 30px;
    background-color: #181818;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Vyrovnáme hlavičku a text */
    height: 100%; /* Zajistí stejné výšky */
}

.why-me-item h3 {
    color: #1DB954;
    margin-bottom: 10px;
}
/* Zde byste mohli přidat ikony nad H3 */

/* --- Kontakt Sekce --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto 40px auto; /* Vycentrování a odsazení odspodu */
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #FFFFFF;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #222;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1DB954;
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.3);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
#form-status { /* Pro zobrazení zpráv o odeslání */
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}
.direct-contact {
    text-align: center;
    font-size: 1.1rem;
}
.direct-contact a {
    font-weight: bold;
}

/* --- Patička --- */
.footer-section {
    background-color: #0a0a0a; /* Ještě tmavší než hlavní pozadí */
    padding: 30px 0;
    text-align: center;
    color: #888;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.footer-links a {
    color: #888;
    margin: 0 10px;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: #1DB954;
}


/* --- Responzivní úpravy --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .main-nav {
        display: none; /* Skryjeme hlavní navigaci na mobilu */
        position: absolute;
        top: 100%; /* Pod headerem */
        left: 0;
        width: 100%;
        background-color: #181818;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    body.nav-open .main-nav { /* Zobrazíme při otevření */
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav li {
        margin: 10px 0;
    }

    .mobile-nav-toggle {
        display: block; /* Zobrazíme hamburger na mobilu */
    }

    .language-switcher {
        /* Můžete jej také schovat do mobilního menu, pokud je příliš mnoho položek */
        margin-left: auto; /* Posunout doprava vedle hamburgeru */
        margin-right: 10px;
    }

    .hero-section {
        min-height: auto; /* Snížení výšky na mobilu */
        padding-top: 120px; /* Větší padding kvůli fix headeru a možnému obsahu */
        padding-bottom: 60px;
    }
    .hero-buttons .btn {
        display: block; /* Tlačítka pod sebou */
        margin: 10px auto;
        width: fit-content;
    }

    .about-content {
        flex-direction: column; /* Text a obrázek pod sebou */
    }
    .about-image img {
        max-width: 250px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .logo a { font-size: 1.5rem; }
    .language-switcher a { font-size: 0.8rem; padding: 2px 4px; }
}