* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Language selector overlay styles - body styles removed to allow main content scrolling */

.language-selector-overlay {
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.language-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 72px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #ffffff;
    margin-bottom: 80px;
    text-align: center;
}

.language-cards {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.language-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    padding: 40px 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    overflow: visible;
}

.language-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.3) 3px,
            rgba(255, 255, 255, 0.3) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.3) 3px,
            rgba(255, 255, 255, 0.3) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.2) 2px,
            rgba(255, 255, 255, 0.2) 3px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.2) 2px,
            rgba(255, 255, 255, 0.2) 3px
        );
    background-size: 8px 8px, 8px 8px, 4px 4px, 4px 4px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 8px;
    z-index: -1;
    pointer-events: none;
}

.language-card:hover::before {
    opacity: 1;
    transform: translate(-2px, -2px);
}

.language-card:hover {
    transform: translateY(-10px);
}

.flag-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.language-name {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0;
}

/* Language Selector Overlay */
.language-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: #000000;
}

.video-background-selector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background-selector video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay-selector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.main-content {
    width: 100%;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
        margin-bottom: 60px;
    }
    
    .language-cards {
        gap: 30px;
    }
    
    .language-card {
        padding: 30px 40px;
    }
}

