* {
    box-sizing: border-box;
}

body {
    padding: 10px;
    background-color: #1E1B18;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #EAE0D5;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

h2 {
    font-size: 30px;
}

/* Header */
header {
    padding: 50px;
    text-align: center;
    background-color: #2C2623;
    border-radius: 10px;
    box-shadow: 5px 5px 5px;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 25px;
    color: #B88746;
}

/* Nav */
nav { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2C2623;
    padding: 10px 20px;
    margin-top: 20px;
    box-shadow: 5px 5px 5px;
    border-radius: 10px;
} 

.nav-links {
    display: flex;
    gap: 20px;
}

nav a { 
    color: black;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    background-color: #B88746;
    border-radius: 10px;
    border: 2px solid #B88746;
    box-shadow: 3px 3px 3px;
} 

nav a:hover { 
    background-color: #E0A75D;
    transform: scale(1.03);
    transition: 0.2s ease;
}

/* Jazykové tlačítka */
.nav-lang {
    display: flex;
    gap: 10px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #B88746;
    color: black;
    font-weight: bold;
    font-size: 15px;
    padding: 10px 16px;
    border: 2px solid #B88746;
    border-radius: 10px;
    cursor: pointer;
}

.lang-btn img {
    width: 20px;
    height: auto;
    border-radius: 3px;
}

.lang-btn.active {
    background-color: #E0A75D;
}

.lang-btn:hover {
    transform: scale(1.05);
    transition: 0.2s ease;
}

.link.active {
    background-color: #E0A75D;
}

/* Buttons */
.head-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 26px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    width: 200px;
    height: 35px;
    text-align: center;
    background: #B88746;
    color: black;
    border-radius: 10px;  /* zaoblené rohy */
    font-size: 18px;
    border: 2px solid #B88746;
    margin-top: 15px;
    box-shadow: 3px 3px 3px;
}

.head-button:hover {
    background-color: #E0A75D;
    transition: background 0.3s ease-in-out;
    transform: scale(1.03);
    transition: transform 0.2s ease;
}

.about-btn {
    width: 200px;
    height: 35px;
    background: #B88746;
    border-radius: 10px;
    font-size: 18px;
    border: 2px solid #B88746;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: black;
    box-shadow: 3px 3px 3px;
}

.about-btn:hover {
    background-color: #E0A75D;
    transition: background 0.3s ease-in-out;
    transform: scale(1.03);
    transition: transform 0.2s ease;
}

.service-button {
    width: 200px;
    height: 35px;
    background: #B88746;
    border-radius: 10px;
    font-size: 18px;
    border: 2px solid #B88746;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: black;
    box-shadow: 3px 3px 3px;
}

.service-button:hover {
    background-color: #E0A75D;
    transition: background 0.3s ease-in-out;
    transform: scale(1.03);
    transition: transform 0.2s ease;
}
/* Cards */
section {
    background-color: #2C2623;
    max-width: 100%;
    padding: 25px; /* Nechává kontent uvnitř odstrčený od krajů */
    margin-top: 20px; /* Přidá vrchní mezeru pro pozici */
    box-sizing: border-box; /* Zajistí, že padding neovlivňuje šířku */
    overflow: hidden;
    flex: 1;
    box-shadow: 5px 5px 5px;
    border-radius: 10px;
}

/* About Me */
.profile-pic {
    max-width: 200px;       /* pevná šířka */
    height: auto;      
    object-fit: cover;  /* zachová proporce a ořízne přebytek */
    display: block;     /* aby margin fungovalo */
    margin: 10px auto 0 auto;     /* vycentruje uvnitř divu */
    border-style: solid; 
}

.content {
    display: flex; /* Položí věci (obrázek + text) vedle sebe */
    align-items: flex-start; /*Zarovná text k vršku obrázku */
    gap: 15px; /* Mezera mezi obrázkem a textem */
    position: relative;
}

.info {
    display: flex;
    flex-direction: column; /* Zarovná text a tlačítko vertikálně */
    justify-content: space-between;
    flex-grow: 1;
}

.cv {
    font-size: larger;
}

/* Projects & News */
.projects {
    display: grid;
    gap: 50px;
    padding: 60px 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
    display: block;
    border-radius: 10px;
    overflow: hidden; /* Obrázek se drží zaoblení */
    background: #4A413C;
    color: inherit;
    text-decoration: none;
    border: 5px solid #B88746;

    transition: transform 0.3s ease;   
}

.project-card img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 4px solid #B88746;
}

.card-content { 
    padding: 14px; 
    text-align: center;
}

.card-content h3 { margin: 0; }

.project-card:hover {
    transform: scale(1.03);
}

.popis-projektu p {
    font-size: larger;
}

/* Services */
.service-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 15px;
    text-align: center;
    margin-top: 30px;
}

.icon {
    position: relative;
    width: 100%;
    max-width: 24%;
}

.popisek {
    padding: 1.5px 0;
    width: 100%;
    font-weight: bold;
}

.popis-sluzeb {
    font-size: larger;
    margin-top: 40px;
}

/* Contacts */
.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #E0A75D;
}

.social-link:hover {
    color: #E9B776;
    text-decoration: underline;
}

.social-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.social-icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: #2C2623;
    text-align: center;
    margin-top: 20px;
    padding: 1px;
    box-shadow: 5px 5px 5px;
    border-radius: 10px;
}

/* Responsive exceptions */
@media (max-width: 768px) {
    .content {
        flex-direction: column; /* stack */
        text-align: center; /* líp to vypadá */
        gap: 10px;
    }

    .info {
        width: 100%;
        align-items: center;
    }

    .profile-pic {
        max-width: 180px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    nav a {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .popis-sluzeb {
        flex-direction: column;
        text-align: center;
    }
}

/* FIX Services + Contact – Mobile */
@media (max-width: 768px) {

    .service-icons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .icon {
        max-width: 100% !important;
    }

    .icon svg {
        width: 70px;
        height: 70px;
    }

    .social-link span {
        word-break: break-all;
    }

    .social-item {
        flex-wrap: wrap;
    }
}

/* GDPR Banner Styly - Musí být viditelné nad obsahem */
#gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Tmavá lišta */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* Větší mezera pro čitelnost */
    z-index: 9999; /* Zaručí, že je vždy nahoře */
    font-size: 0.95em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

#gdpr-banner p {
    margin: 0;
    line-height: 1.5;
}

#gdpr-banner a {
    color: #B88746; 
    text-decoration: underline;
    white-space: nowrap;
}

#gdpr-accept-btn {
    background-color: #B88746;
    color: black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
    white-space: nowrap;
}

#gdpr-accept-btn:hover {
    background-color: #9c733b;
}
