/* Modern Reset & Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at center, #15161e 0%, #08090d 100%);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
    perspective: 1000px;
}

/* Atmospheric Ambient Background Glow */
body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

/* Video Wrapper for Premium Cinema Display Look */
.video-container {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    aspect-ratio: 16 / 9; /* fallback, will be overridden by actual video dimensions */
    border-radius: 20px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6), 
        0 0 40px rgba(99, 102, 241, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: scale(0.95);
    opacity: 0;
    animation: floatIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-container:hover {
    transform: scale(0.97) translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8), 
        0 0 50px rgba(99, 102, 241, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* The Video Element */
.video-container video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: calc(85vh - 12px);
    object-fit: contain;
    border-radius: 14px;
    background-color: #000;
}

/* Custom Animation for Load-in */
@keyframes floatIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Subtle Breathing Pulse for background glow */
@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}
