/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Oswald', sans-serif;
    background-image: url('img/bg-day.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Dark mode background */
@media (prefers-color-scheme: dark) {
    body {
        background-image: url('img/bg-night.jpg');
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Video Wrapper - Matches SVG frame aspect ratio (992.53 / 1523.16) */
.video-wrapper {
    position: relative;
    width: 100%;
    /* max-width: 1200px; */
    padding-bottom: 65.16%; 
    background-color: transparent;
    overflow: visible;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/video-frame.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    pointer-events: none;
}

.video-wrapper iframe {
    position: absolute;
    top: 47.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 83%;
    height: 72%;
    z-index: 2;
    background-color: #000;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    flex-shrink: 0;
}

.footer__logo-link {
    display: block;
    transition: opacity 0.3s ease;
}

.footer__logo-link:hover {
    opacity: 0.8;
}

.footer__logo {
    display: block;
    width: 100px;
    height: auto;
}

@media (max-width: 768px) {
    .footer__logo {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0;
    }

    .footer__logo {
        width: 60px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .logo {
        max-width: 200px;
    }

    .video-wrapper {
        /* No additional styles needed */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
        gap: 1rem;
    }

    .logo {
        max-width: 150px;
    }
}

/* Loading state for iframe */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(235, 68, 57, 0.3);
    border-top-color: #EB4439;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
