/**
 * Hero Slider Styles
 * Dynamic hero banner system with multiple slide types
 */

/* Hero Section Base */
#hero-section {
    position: relative;
    overflow: hidden;
}

/* Hero Slides Container */
.hero-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Hero Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Transitions */
.hero-slide.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.hero-slide.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

.hero-slide.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.hero-slide.slide-in-right {
    animation: slideInRight 1s ease-out;
}

.hero-slide.slide-out-left {
    animation: slideOutLeft 1s ease-out;
}

.hero-slide.slide-out-right {
    animation: slideOutRight 1s ease-out;
}

/* Navigation Dots */
.hero-nav-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1);
}

.hero-nav-dot.active {
    background-color: white !important;
    transform: scale(1.25);
    border-color: white;
}

/* Navigation Arrows */
.hero-nav-prev,
.hero-nav-next {
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Hide navigation arrows on mobile by default */
@media (max-width: 768px) {
    .hero-nav-prev,
    .hero-nav-next,
    button.hero-nav-prev,
    button.hero-nav-next,
    #hero-section .hero-nav-prev,
    #hero-section .hero-nav-next,
    #hero-section button.hero-nav-prev,
    #hero-section button.hero-nav-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: scale(0) !important;
    }
}

.hero-nav-prev:hover,
.hero-nav-next:hover {
    background-color: rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.1);
}

.hero-nav-prev:active,
.hero-nav-next:active {
    transform: scale(0.95);
}

/* Progress Bar */
.hero-progress-bar {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

/* Blueprint to Reality Layers */
.blueprint-layer,
.reality-layer {
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.blueprint-layer {
    z-index: 1;
}

.reality-layer {
    z-index: 2;
}

/* Transformation Button */
#transformation-trigger {
    position: relative;
    z-index: 10;
}

#transformation-trigger:hover .fa-magic {
    animation: pulse 1s infinite;
}

/* Floating Elements Animation */
.floating-element {
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes animate-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes animate-float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes animate-float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.animate-float {
    animation: animate-float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: animate-float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-slow {
    animation: animate-float-slow 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Slide Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes slideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

/* Content Animations */
.animate-fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    #hero-section {
        min-height: 100vh;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .hero-nav-prev,
    .hero-nav-next {
        display: none !important; /* Hide arrows on mobile - users can use dots instead */
    }
    
    .hero-nav-dot {
        width: 12px;
        height: 12px;
        /* Larger touch targets for mobile */
    }
    
    .floating-element {
        display: none; /* Hide floating elements on mobile for performance */
    }
    
    /* Optimize text for mobile readability */
    .hero-slide h1 {
        line-height: 1.1;
        word-break: break-word;
    }
    
    /* Touch-friendly interactive elements */
    .touch-manipulation {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 640px) {
    .hero-nav-prev,
    .hero-nav-next {
        display: none !important; /* Extra mobile breakpoint to ensure arrows are hidden */
    }
    
    .hero-nav-dot {
        width: 10px;
        height: 10px;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    #hero-section {
        min-height: 80vh;
    }
    
    .hero-slide h1 {
        font-size: 3.5rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1440px) {
    #hero-section {
        min-height: 70vh;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .blueprint-layer,
    .reality-layer,
    .floating-element,
    .hero-nav-dot,
    .hero-nav-prev,
    .hero-nav-next,
    .hero-progress-bar {
        animation: none !important;
        transition: none !important;
    }
    
    .hero-slide.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-slide:not(.active) {
        opacity: 0;
        visibility: hidden;
    }
}

/* Focus States for Accessibility */
.hero-nav-dot:focus,
.hero-nav-prev:focus,
.hero-nav-next:focus,
#transformation-trigger:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-nav-dot {
        border: 3px solid white;
    }
    
    .hero-nav-prev,
    .hero-nav-next {
        background-color: black !important;
        color: white !important;
        border: 2px solid white;
    }
    
    .hero-progress-bar {
        background: white !important;
    }
}

/* Print Styles */
@media print {
    #hero-section {
        position: static;
        height: auto;
        min-height: auto;
    }
    
    .hero-slide:not(.active) {
        display: none;
    }
    
    .hero-nav-dot,
    .hero-nav-prev,
    .hero-nav-next,
    .hero-progress-bar,
    .floating-element {
        display: none !important;
    }
}

/* CRITICAL: Force hide navigation arrows on mobile - highest priority */
@media screen and (max-width: 768px) {
    .hero-nav-prev,
    .hero-nav-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
}
