/* 
* La Tienda de Don Goyo - Parallax Effects
* Styles for parallax scrolling effects
*/

/* Parallax Hero Section */
.parallax-hero {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 8rem;
    overflow: hidden;
}

/* Video Hero Section */
.video-hero {
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.parallax-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.parallax-hero-content {
    max-width: 800px;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
}

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

.parallax-hero h1 {
    color: white;
    font-size: 5.2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.parallax-hero h2 {
    color: var(--light-color);
    font-size: 2.4rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.parallax-hero .btn-primary {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.parallax-hero .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Parallax Sections */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: var(--spacing-xl) 0;
    position: relative;
}

.parallax-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .parallax-hero, .parallax-section {
        background-attachment: scroll; /* Disable fixed attachment on mobile for better performance */
    }
    
    .parallax-hero h1 {
        font-size: 3.8rem;
    }
    
    .parallax-hero h2 {
        font-size: 2rem;
    }
}
