/* public/css/landing.css */

.landing {
    width: 100%;
    height: 90vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.landing-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Background Styles */
.landing-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.bg-section {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.bg-section.active {
    opacity: 1;
    visibility: visible;
}

/* Section images container */
.section-images {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.section-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.section-image.active {
    opacity: 1;
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Content Styles */
.landing-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.content-section {
    position: absolute;
    top: var(--top, 50%);
    right: var(--right, 50%);
    transform: translate(50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
    max-width: 70vw;
    text-align: right;
    pointer-events: none;
}

.content-section.active {
    opacity: 1;
    visibility: visible;
}

.landing-title {
    font-size: calc(var(--font-size-large) * 2);
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
    transition: transform 0.3s ease-in-out;
    transform-origin: right center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.landing-subtitle {
    font-size: var(--font-size-large);
    font-weight: 500;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease-in-out;
    transform-origin: right center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.landing-description {
    font-size: var(--font-size-base);
    color: var(--light-gray);
    max-width: 100%;
    line-height: 1.8;
    transition: transform 0.3s ease-in-out;
    transform-origin: right center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Text Hover Effects */
.landing-container:hover .content-section.active .landing-title {
    transform: scale(1.03);
}

.landing-container:hover .content-section.active .landing-subtitle {
    transform: scale(1.02);
}

.landing-container:hover .content-section.active .landing-description {
    transform: scale(1.01);
}

/* Navigation Dots */
.slide-indicators {
    position: absolute;
    bottom: 40px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 12px;
    z-index: 3;
    pointer-events: auto;
}

.slide-indicator {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.slide-indicator:hover {
    opacity: 0.8;
}

.slide-indicator.active {
    opacity: 1;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light);
    transition: all 0.3s ease;
}

.slide-indicator.active .indicator-dot {
    width: 14px;
    height: 14px;
    /* background-color: var(--secondary); */
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing {
        height: 80vh;
        min-height: 500px;
    }
    
    .landing-title {
        font-size: calc(var(--font-size-large) * 1.5);
    }
    
    .landing-subtitle {
        font-size: calc(var(--font-size-base) * 1.2);
    }
    
    .landing-description {
        font-size: var(--font-size-small);
        max-width: 300px;
    }
    
    .content-section {
        max-width: 350px;
        padding: 20px;
    }
    
    .slide-indicators {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .landing {
        height: 70vh;
        min-height: 400px;
    }
    
    .landing-title {
        font-size: calc(var(--font-size-large) * 1.2);
    }
    
    .landing-subtitle {
        font-size: var(--font-size-base);
    }
    
    .landing-description {
        font-size: var(--font-size-small);
        max-width: 250px;
    }
    
    .content-section {
        max-width: 280px;
        padding: 15px;
    }
    
    .slide-indicators {
        bottom: 15px;
        gap: 8px;
    }
}