/* ===================================
   VIDEO HERO CAROUSEL - Stile ABB
   =================================== */

#video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #0f172a;
}

/* Video Backgrounds Container */
.video-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Individual Video Slide */
.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

.video-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Video Styling */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video Overlay - Dark gradient for text readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(15, 23, 42, 0.45) 50%,
        rgba(15, 23, 42, 0.65) 100%
    );
    z-index: 2;
}

/* Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Content Slides */
.hero-content-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-content-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hero Text */
.hero-text {
    max-width: 900px;
    color: white;
}

.hero-eyebrow {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(62, 205, 255, 0.15);
    border: 1px solid rgba(62, 205, 255, 0.4);
    border-radius: 50px;
    color: #6ed9ff;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.text-highlight {
    color: #3ecdff;
    text-shadow: 0 0 40px rgba(62, 205, 255, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 18px 36px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary.btn-hero {
    background: #3ecdff;
    color: white;
    box-shadow: 0 4px 20px rgba(62, 205, 255, 0.4);
}

.btn-primary.btn-hero:hover {
    background: #1a8ba3;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(62, 205, 255, 0.6);
}

.btn-secondary.btn-hero {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary.btn-hero:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* Carousel Controls Container */
.hero-controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Dots Navigation */
.carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dots .dot.active {
    width: 40px;
    border-radius: 6px;
    background: #3ecdff;
    box-shadow: 0 0 20px rgba(62, 205, 255, 0.6);
}

.carousel-dots .dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

/* Prev/Next Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.carousel-arrow.prev {
    left: 40px;
}

.carousel-arrow.next {
    right: 40px;
}

.carousel-arrow:hover {
    background: rgba(62, 205, 255, 0.9);
    border-color: #3ecdff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(62, 205, 255, 0.5);
}

.carousel-arrow i {
    font-size: 1.5rem;
}

/* Pause/Play Button */
.video-control {
    position: absolute;
    bottom: 60px;
    right: 50px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.video-control:hover {
    background: rgba(62, 205, 255, 0.9);
    border-color: #3ecdff;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(62, 205, 255, 0.5);
}

.video-control i {
    font-size: 1.75rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
    margin: 10px auto 0;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

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

/* ===================================
   RESPONSIVE
   =================================== */

/* Large Desktop */
@media (min-width: 1600px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* Desktop */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .btn-hero {
        padding: 16px 32px;
        font-size: 1rem;
    }

    .carousel-arrow {
        width: 50px;
        height: 50px;
    }

    .carousel-arrow.prev {
        left: 30px;
    }

    .carousel-arrow.next {
        right: 30px;
    }

    .video-control {
        right: 30px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    #video-hero {
        height: 100svh; /* Safari viewport fix */
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-eyebrow {
        font-size: 0.75rem;
        padding: 8px 20px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
    }

    /* Hide video on mobile, use fallback images */
    .hero-video {
        display: none;
    }

    .video-slide {
        background-size: cover;
        background-position: center;
    }

    .video-slide[data-slide="0"] {
        background-image: url('/common/assets/img/hero-fallback-1.webp');
    }

    .video-slide[data-slide="1"] {
        background-image: url('/common/assets/img/hero-fallback-2.webp');
    }

    .video-slide[data-slide="2"] {
        background-image: url('/common/assets/img/hero-fallback-3.webp');
    }

    /* Hide arrows on mobile */
    .carousel-arrow {
        display: none;
    }

    /* Move controls to bottom */
    .hero-controls {
        bottom: 40px;
    }

    .video-control {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .btn-hero {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }

    .hero-controls {
        bottom: 30px;
    }

    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dots .dot.active {
        width: 32px;
    }
}
