/* Modern Banner Styles */
:root {
    --mb-primary: #00f3ff; /* Neon Blue */
    --mb-secondary: #7000ff; /* Neon Purple */
    --mb-bg: #050505;
    --mb-text: #ffffff;
    --mb-glass: rgba(255, 255, 255, 0.05);
    --mb-border: rgba(255, 255, 255, 0.1);
    --mb-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --mb-radius: 16px;
    --mb-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modern-banner {
    position: relative;
    width: 100%;
    min-height: 85vh; /* Increased slightly for better look */
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--mb-bg);
    color: var(--mb-text);
    padding-top: 80px; /* Offset for fixed navbar */
}

/* Background Layers */
.mb-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 1.2s ease-in-out;
}

.mb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
    backdrop-filter: blur(8px);
}

/* Content Container */
.mb-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
}

/* Left Content - Text */
.mb-content {
    opacity: 1;
    transform: none;
}

.mb-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.mb-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.mb-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, var(--mb-secondary), var(--mb-primary));
    border-radius: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--mb-transition);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.mb-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.mb-cta:hover::before {
    left: 100%;
}

.mb-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.6);
}

/* Right Content - Carousel */
.mb-carousel-wrapper {
    position: relative;
    height: 75vh; /* Increased from 60vh */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    perspective: 1000px;
    animation: slideInRight 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateX(50px);
}

.mb-carousel-container {
    width: 320px;
    height: 100%; /* Full height of wrapper */
    background: var(--mb-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
    padding: 1.5rem;
    box-shadow: var(--mb-shadow);
    transform: rotateY(-5deg) rotateX(2deg); /* Slight 3D tilt */
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide overflow for scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.mb-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.mb-carousel-container:hover {
    transform: rotateY(0) rotateX(0);
    border-color: rgba(0, 243, 255, 0.3);
}

.mb-carousel-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    padding: 1rem 0; /* Add padding inside track */
}

.mb-carousel-item {
    position: relative;
    width: 100%;
    height: 160px; /* Fixed height for thumbnails */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    opacity: 0.6;
    transform: scale(0.95);
}

.mb-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mb-carousel-item:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.mb-carousel-item.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--mb-primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    z-index: 10;
}

.mb-carousel-item.active img {
    transform: scale(1.1);
}

/* Progress Bar */
.mb-progress-bar {
    display: none; /* Hidden as requested */
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--mb-primary);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 10;
    border-radius: 0 2px 2px 0;
}

/* Animations */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 243, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

.mb-pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .mb-title { font-size: 3rem; }
    .mb-container { gap: 2rem; }
}

@media (max-width: 900px) {
    .modern-banner {
        min-height: auto; /* evita corte em telas pequenas */
        padding-top: 90px;
        overflow: hidden;
    }
    .mb-container {
        display: block;
        padding: 1.5rem 1rem 2rem;
        gap: 1.5rem;
        text-align: center;
    }

    .mb-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    
    .mb-subtitle { margin: 0 auto 2rem; }

    .mb-carousel-wrapper {
        width: 100%;
        height: auto;
        justify-content: center;
        perspective: none;
    }

    .mb-carousel-container {
        width: 100%;
        height: 350px; /* Increased from 180px */
        transform: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1rem;
        scroll-snap-type: x mandatory;
    }

    .mb-carousel-track {
        flex-direction: row;
        width: max-content;
        height: 100%;
        padding: 0 1rem;
    }

    .mb-carousel-item {
        width: 180px; /* ligeiramente menor em mobile */
        height: 100%;
        scroll-snap-align: center;
    }
    
    .mb-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 100%
        );
    }
}

@media (max-width: 480px) {
    .modern-banner { padding-top: 70px; }
    .mb-title { font-size: 2.2rem; }
    .mb-carousel-container { height: 160px; }
    .mb-carousel-item { width: 150px; }
}
