/* 
 * CrownateStudio - Index Page Enhancements
 * Cinematic animations and performance optimizations for the home page hero.
 */

/* Ken Burns Effect for Hero Image */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(-1%, -1%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

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

.hero-img-animated {
    animation: kenBurns 40s ease-in-out infinite;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.85); /* Enhances text readability */
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; /* Fallback */
}

#hero .container {
    position: relative;
    z-index: 10;
}

.hero h1 {
    animation: heroTextReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
    animation: heroTextReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s both;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Button Group Animation */
.hero .d-flex {
    animation: heroTextReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s both;
}

/* Fast Loading - Alignment Helper */
.index-hero-1024 {
    aspect-ratio: 1024 / 1024;
}
