/* Browser compatibility fallbacks */
.parallax-hero-static-fallback .parallax-hero-layer {
    /* Fallback for browsers without parallax support */
    transform: none !important;
    transition: none !important;
}

.parallax-hero-static-fallback .parallax-hero-bg,
.parallax-hero-static-fallback .parallax-hero-mid,
.parallax-hero-static-fallback .parallax-hero-foreground {
    /* Static positioning for fallback */
    transform: scale(1.1) !important;
}

/* Fallback for browsers without CSS Grid */
.no-css-grid .parallax-hero-carousel-container {
    display: block;
}

/* Fallback for browsers without CSS Custom Properties */
.no-css-custom-properties {
    /* Use standard colors instead of CSS variables */
    --primary-color: #ff6b6b;
    --secondary-color: #ee5a24;
}

/* Hero Carousel */
.parallax-hero-carousel {
    padding: 0;
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.parallax-hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.parallax-hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.parallax-hero-carousel-slide.parallax-hero-active {
    opacity: 1;
    z-index: 2;
}

.parallax-hero-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Layer styles */
.parallax-hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* Image layers - Different zoom levels based on movement intensity */
.parallax-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Background moves least, so minimal zoom needed */
    transform: scale(1.1);
}

.parallax-hero-mid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Middle ground has moderate movement, medium zoom */
    transform: scale(1.15);
}

.parallax-hero-foreground {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Foreground moves most, so maximum zoom needed */
    transform: scale(1.25);
}

/* Landscape mode adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Increase zoom for landscape mode to prevent edge visibility */
    .parallax-hero-bg {
        transform: scale(1.25);
    }
    
    .parallax-hero-mid {
        transform: scale(1.35);
    }
    
    .parallax-hero-foreground {
        transform: scale(1.45);
    }
}

/* Additional landscape adjustments for very wide screens */
@media (orientation: landscape) and (max-height: 500px) {
    .parallax-hero-bg {
        transform: scale(1.35);
    }
    
    .parallax-hero-mid {
        transform: scale(1.45);
    }
    
    .parallax-hero-foreground {
        transform: scale(1.55);
    }
}

/* Hero content overlay */
.parallax-hero-content {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.parallax-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.parallax-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Button styles */
.parallax-hero-btn {
    display: inline-block;
    padding: 0.7rem 1rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    /* border: 2px solid transparent; */
    cursor: pointer;
    font-size: 0.9rem;
    /* Ensure button is clickable */
    position: relative;
    z-index: 25;
    pointer-events: auto;
}

.parallax-hero-btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.parallax-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.parallax-hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.parallax-hero-btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

/* Carousel Navigation */
.parallax-hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 20;
    pointer-events: none;
}

.parallax-hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.parallax-hero-prev-btn {
    left: 20px;
}

.parallax-hero-next-btn {
    right: 20px;
}

/* Carousel Indicators */
.parallax-hero-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.parallax-hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.parallax-hero-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.parallax-hero-indicator.parallax-hero-active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

/* Content section */
.parallax-hero-content-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.parallax-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.parallax-hero-content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.parallax-hero-content-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .parallax-hero-btn {
        width: 50px;
        max-width: 300px;
        text-align: center;
    }
    
    .parallax-hero-content-section {
        padding: 2rem 0;
    }
    
    .parallax-hero-container {
        padding: 0 1rem;
    }
    
    .parallax-hero-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .parallax-hero-prev-btn {
        left: 10px;
    }
    
    .parallax-hero-next-btn {
        right: 10px;
    }
    
    .parallax-hero-carousel-indicators {
        bottom: 20px;
    }
}

/* Loading animation */
.parallax-hero-content {
    animation: parallax-hero-fadeInUp 1s ease-out;
}

@keyframes parallax-hero-fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Slide transition animations */
.parallax-hero-carousel-slide {
    animation: parallax-hero-slideIn 0.8s ease-out;
}

@keyframes parallax-hero-slideIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Performance optimizations */
.parallax-hero-layer img {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .parallax-hero-layer {
        transform: none !important;
    }
    
    .parallax-hero-content {
        animation: none;
    }
    
    .parallax-hero-carousel-slide {
        animation: none;
    }
    
    .parallax-hero-nav-btn:hover {
        transform: translateY(-50%);
    }
    
    /* Disable auto-play for users with reduced motion preference */
    .parallax-hero-carousel {
        --auto-play-disabled: true;
    }
}

/* Touch-friendly mobile interactions */
@media (hover: none) and (pointer: coarse) {
    .parallax-hero-nav-btn {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .parallax-hero-indicator {
        background: rgba(255, 255, 255, 0.4);
    }
}

/* Touch and swipe feedback */
.parallax-hero-touch-active {
    /* Subtle visual feedback when touching */
    cursor: grabbing;
}

.parallax-hero-swipe-transition {
    /* Smooth transition during swipe */
    transition: all 0.3s ease-out;
}

/* Swipe direction indicators (optional visual feedback) */
.parallax-hero-carousel-container::before,
.parallax-hero-carousel-container::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 15;
}

.parallax-hero-carousel-container::before {
    left: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

.parallax-hero-carousel-container::after {
    right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Show swipe indicators on touch devices */
@media (hover: none) and (pointer: coarse) {
    .parallax-hero-carousel-container:hover::before,
    .parallax-hero-carousel-container:hover::after {
        opacity: 0.3;
    }
    
    .parallax-hero-touch-active::before {
        opacity: 0.5;
    }
    
    .parallax-hero-touch-active::after {
        opacity: 0.5;
    }
}

/* Enhanced mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
    .parallax-hero-carousel-slide {
        /* Prevent text selection during swipe */
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    /* Improve touch targets */
    .parallax-hero-nav-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .parallax-hero-indicator {
        min-width: 16px;
        min-height: 16px;
    }
}

/* Swipe animation for slide transitions */
.parallax-hero-carousel-slide {
    transition: opacity 0.8s ease-in-out, transform 0.3s ease-out;
}

.parallax-hero-swipe-transition .parallax-hero-carousel-slide {
    transition: opacity 0.4s ease-in-out, transform 0.2s ease-out;
}

/* Haptic feedback simulation (for devices that support it) */
@media (hover: none) and (pointer: coarse) {
    .parallax-hero-swipe-transition {
        /* Add subtle scale effect for haptic-like feedback */
        transform: scale(0.98);
    }
}

/* Fallback styles for older browsers */
@supports not (object-fit: cover) {
    .parallax-hero-bg,
    .parallax-hero-mid,
    .parallax-hero-foreground {
        /* Fallback for browsers without object-fit */
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .parallax-hero-nav-btn {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .parallax-hero-nav-btn {
        border: 2px solid white;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .parallax-hero-indicator {
        border: 2px solid white;
    }
}

/* Print styles */
@media print {
    .parallax-hero-carousel {
        height: auto;
        min-height: 400px;
    }
    
    .parallax-hero-carousel-nav,
    .parallax-hero-carousel-indicators {
        display: none;
    }
    
    .parallax-hero-layer {
        transform: none !important;
    }
} 