/* MoonStone Theme Styles */

.slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-dot.active {
    background-color: white;
    opacity: 1;
}

/* Parallax Effects */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-slow {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
}

.parallax-fast {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
}

/* Image Text Section Styles */
.image-text-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

.image-text-section:nth-child(even) {
    flex-direction: row-reverse;
}

.image-text-section .image-container {
    flex: 0 0 50%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.image-text-section .text-container {
    flex: 0 0 50%;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.image-text-section:nth-child(even) .text-container {
    margin-left: 0;
    margin-right: auto;
}

.image-text-section:nth-child(odd) .text-container {
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 768px) {
    .image-text-section {
        flex-direction: column !important;
    }
    
    .image-text-section .image-container {
        height: 50vh;
        flex: none;
    }
    
    .image-text-section .text-container {
        padding: 3rem 2rem;
        flex: none;
        max-width: none;
        margin: 0;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.3s both;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease-out 0.6s both;
}
