/* Import technicznego fontu */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

.video-container {
    margin-top: 30px;
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #001427;
}

/* Stylizacja filmu */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay z gradientem dla lepszej czytelności */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 20, 39, 0.4) 0%, rgba(0, 20, 39, 0.7) 100%);
    z-index: 2;
}

/* Treść główna */
.video-content {
    position: relative;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    max-width: 1100px;
    z-index: 3;
    font-family: 'Montserrat', sans-serif;
}

/* Napisy z silnym shadow (bez tła) zgodnie z Twoją prośbą */
.video-content h2 {
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
    /* Wielowarstwowy cień zapewnia czytelność na każdym filmie */
    text-shadow: 
        0px 4px 15px rgba(0, 0, 0, 0.9),
        0px 0px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.video-content p {
    font-weight: 500;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.9);
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.4s;
}

/* Akcent dla nazwy firmy */
.video-content h2 span {
    color: var(--brand);
}

/* PRZYCISK PAUZY - PRAWY GÓRNY RÓG */
#video-control {
    position: absolute;
    top: 80px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 48px; /* Rozmiar zoptymalizowany pod dotyk WCAG */
    height: 48px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px); /* Efekt szkła */
    transition: all 0.3s ease;
}

#video-control:hover, #video-control:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: 3px solid #00a8ff;
    outline-offset: 4px;
}

.icon-pause::before {
    content: "II";
    font-family: Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.video-paused .icon-pause::before {
    content: "▶";
    margin-left: 3px;
}

/* Animacja pojawiania się */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsywność dla mobile */
@media (max-width: 768px) {
    .video-container {
        height: 70vh;
        margin-top: 50px;
    }
    #video-control {
        top: 60px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
}

.lang-switcher {
    margin-left: 20px;
    display: flex;
    align-items: center;
    position: absolute;
    right: 3px;
    top: 30px;
}

.lang-switcher button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}

.lang-switcher button:hover {
    transform: scale(1.1); /* Delikatne powiększenie po najechaniu */
}

.lang-switcher button img {
    width: 30px; /* Rozmiar flagi */
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Jeśli chcesz, żeby było idealnie przyklejone w headerze obok menu */
@media (max-width: 992px) {
    .lang-switcher {
        margin-left: 10px;
    }
}