/* DisabilityMatches - Homepage Specific Styles */

/* Hero Loading Animations */
@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes logoSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contentSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes buttonStagger {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Animation Classes */
.hero-logo {
    animation: logoSlideDown 0.8s ease-out 0.5s both;
}

.hero-title {
    animation: contentSlideUp 0.8s ease-out 0.8s both;
    font-size: 20px;
    text-align: center !important;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 30px;
    }
}

/* Button Animation Sequence */
.space-y-3 .flex .registration-btn:nth-child(1) {
    animation: buttonStagger 0.5s ease-out 1.1s both;
}

.space-y-3 .flex .registration-btn:nth-child(2) {
    animation: buttonStagger 0.5s ease-out 1.2s both;
}

.space-y-3 > .registration-btn {
    animation: buttonStagger 0.5s ease-out 1.3s both;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: 30vh;
    overflow: hidden;
    animation: heroFadeIn 1s ease-out;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    transform: translateZ(0);
}

.hero-slide.active {
    opacity: 1;
}

/* Hero Background Images - Desktop */
.hero-slide:nth-child(1) {
    background-image: url('../images/bg12.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('../images/bg11.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('../images/bg13.jpg');
}

/* Hero Background Images - Mobile */
@media (max-width: 768px) {
    .hero-slide:nth-child(1) {
        background-image: url('../images/bg12M.jpg');
    }

    .hero-slide:nth-child(2) {
        background-image: url('../images/bg11M.jpg');
    }

    .hero-slide:nth-child(3) {
        background-image: url('../images/bg13M.jpg');
    }
}

/* Content Overlay Glass Effect */
.content-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.content-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease-in-out;
}

.content-overlay:hover::before {
    left: 100%;
}

/* Hardware Acceleration for hero slides already handled in .hero-slide above */

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .content-panel {
        width: 100% !important;
        height: 100%;
    }
    
    .content-overlay {
        height: auto;
    }
} 