/* 
 * CrownateStudio - Design Page Enhancements
 * Parametric animations and performance optimizations for the design hero.
 */

/* Breathing Scale Animation for Hero Image */
@keyframes breathingScale {
    0% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1.0);
    }
}

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

.hero-img-animated {
    animation: breathingScale 30s ease-in-out infinite;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.55) contrast(1.05); /* Optimized for text clarity */
}

#hero {
    min-height: 85vh; /* Standardizing for premium design look */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #020617;
}

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

.hero h2 {
    animation: designFadeInUp 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero p {
    animation: designFadeInUp 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s both;
}

.hero .d-flex {
    animation: designFadeInUp 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s both;
}

/* Button Interactivity */
.design-request-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.design-request-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 74, 23, 0.4) !important;
}

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