/* 
 * Angkor Stays - Home Page Video Styles
 * Styles for the video hero section on the home page
 */

/* Video Hero Section */
#home-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    border-bottom: none; /* Prevent any border at bottom */
    margin-bottom: -1px; /* Fix for any potential gap */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #000; /* Black background that matches video */
    overflow: hidden; /* Ensure no content spills out */
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Using cover to fill the space */
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
    border: none; /* Remove any border */
}

/* Video positioning */
.video-background video {
    object-position: center center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Same opacity as the original gradient */
}

/* Angkor Stays Logo Styling */
.angkor-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(0, 128, 128, 0.7); /* Teal shadow for Angkor Stays */
    z-index: 10;
    white-space: nowrap;
    max-width: 90vw; /* Ensure it never exceeds viewport width */
    text-align: center;
}

.angkor-logo span {
    display: inline-block;
    animation: fadeIn 1.5s forwards;
    opacity: 0;
    transform: translateY(20px);
    filter: drop-shadow(0 0 10px rgba(0, 128, 128, 0.5)); /* Teal drop shadow */
}

.angkor-logo span:nth-child(1) { animation-delay: 0.1s; }
.angkor-logo span:nth-child(2) { animation-delay: 0.2s; }
.angkor-logo span:nth-child(3) { animation-delay: 0.3s; }
.angkor-logo span:nth-child(4) { animation-delay: 0.4s; }
.angkor-logo span:nth-child(5) { animation-delay: 0.5s; }
.angkor-logo span:nth-child(6) { animation-delay: 0.6s; }
.angkor-logo span:nth-child(7) { animation-delay: 0.7s; }
.angkor-logo span:nth-child(8) { animation-delay: 0.8s; }
.angkor-logo span:nth-child(9) { animation-delay: 0.9s; }
.angkor-logo span:nth-child(10) { animation-delay: 1.0s; }
.angkor-logo span:nth-child(11) { animation-delay: 1.1s; }
.angkor-logo span:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #home-hero {
        height: 70vh;
    }
    
    .angkor-logo {
        font-size: 4rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 480px) {
    #home-hero {
        height: 60vh;
    }
    
    .angkor-logo {
        font-size: 2.5rem;
        letter-spacing: 0.05em;
        width: 100%;
        text-align: center;
        white-space: normal; /* Allow text to wrap if needed */
        padding: 0 10px;
        box-sizing: border-box;
    }
}
