/* Home Page - Split Screen Styles */
body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100vh;
    animation: fadeInScale 0.8s ease-out;
}

.split-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-section:hover {
    flex-grow: 1.05;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.overlay.blue {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 102, 204, 0.75) 100%);
}

.overlay.green {
    background: linear-gradient(135deg, rgba(0, 102, 51, 0.85) 0%, rgba(0, 204, 102, 0.75) 100%);
}

.split-section:hover .overlay {
    opacity: 0.6;
}

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

.content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    max-width: 600px;
    animation: slideInContent 0.8s ease-out 0.3s backwards;
}

.logo {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-image {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: fadeInScale 0.8s ease-out 0.5s backwards;
    transition: transform 0.4s ease;
}

.split-section:hover .logo-image {
    transform: scale(1.08);
}

.tagline {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    animation: slideInContent 0.8s ease-out 0.6s backwards;
}

.description {
    font-size: 16px;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    max-width: 500px;
    animation: slideInContent 0.8s ease-out 0.7s backwards;
}

.enter-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: white;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInContent 0.8s ease-out 0.8s backwards;
}

.enter-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Language Switcher for Home Page */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    animation: slideInFromRight 0.6s ease-out 0.4s backwards;
    backdrop-filter: blur(10px);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.language-switcher a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.language-switcher a:hover {
    background: rgba(0, 100, 255, 0.1);
    color: #0064ff;
    transform: translateY(-2px);
}

.language-switcher a.active {
    background: #0064ff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 100, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .logo-image {
        max-width: 180px;
    }

    .tagline {
        font-size: 18px;
    }

    .description {
        font-size: 14px;
    }

    .enter-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .container,
    .split-section,
    .content,
    .logo-image,
    .tagline,
    .description,
    .enter-button,
    .language-switcher {
        animation: none !important;
    }
    
    .split-section:hover {
        flex-grow: 1;
    }
}