/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #b28c50;
    --dark-bg: #121212;
    --card-bg: rgba(30, 30, 30, 0.6);
    --text-color: #f4f4f4;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('obrazky/hero-img2.1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: var(--font-body);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

/* --- LOGO & INTRO --- */
.logo img {
    width: clamp(190px, 30vw, 360px);
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.intro-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* --- LANGUAGE GRID --- */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
}

.lang-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flag-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.flag-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lang-card h2 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* --- HOVER EFFECTS --- */
.lang-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.lang-card:hover .flag-wrapper img {
    transform: scale(1.1);
}

.lang-card:hover h2 {
    color: var(--primary-color);
}

/* --- ANIMATIONS --- */
.fade-in { opacity: 0; animation: fadeIn 1s forwards; }
.fade-in-delay { opacity: 0; animation: fadeIn 1s 0.3s forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .lang-grid { grid-template-columns: 1fr; max-width: 300px; margin: auto; }
}