.hero__carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    position: relative;
    height: 100%;
    touch-action: pan-y;
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-track.is-dragging {
    cursor: grabbing;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform, opacity;
    transform-origin: center center;
    transition: transform 0.7s cubic-bezier(0.25, 1.15, 0.35, 1), 
                opacity 0.7s cubic-bezier(0.25, 1.15, 0.35, 1),
                filter 0.7s cubic-bezier(0.25, 1.15, 0.35, 1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Add blur effect to inactive slides */
.carousel-slide[aria-hidden="true"] {
    filter: blur(4px);
}

.hero__slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-20);
    gap: var(--space-6);
}

.hero__content {
    color: var(--header-text);
    z-index: 2;
    padding-right: var(--space-8);
}

.hero__title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 var(--space-4) 0;
    color: var(--header-text);
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    transition: none;
}

.hero__title--multiline {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.2;
}

.hero__title--multiline .title-line {
    display: block;
    white-space: nowrap;
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    margin: 0 0 var(--space-6) 0;
    font-family: var(--font-tertiary);
    font-weight: 200;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero__description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-light);
    margin: 0 0 var(--space-8) 0;
    max-width: 90%;
    opacity: 0.8;
}

.hero__cta {
    display: inline-block;
}

.hero__image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero__image img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 700ms cubic-bezier(0.25, 1.15, 0.35, 1),
                filter 700ms cubic-bezier(0.25, 1.15, 0.35, 1);
    will-change: transform, filter;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.hero__image img:hover {
    transform: scale(1.02);
}


.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-button:hover svg {
    fill: var(--primary);
}

.carousel-button--prev {
    left: 2rem;
}

.carousel-button--next {
    right: 2rem;
}

.carousel-button svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.carousel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.carousel-dots {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
}

.carousel-dot.is-active {
    background: var(--accent);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Pause Button */
.carousel-pause-button {
    position: relative;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: var(--space-2);
}

.carousel-pause-button:hover {
    transform: scale(1.1);
}

.carousel-pause-button:focus {
    outline: none;
}

.carousel-pause-button svg {
    width: 20px;
    height: 20px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.carousel-pause-button .play-icon {
    fill: var(--acl-red);
}

@media (max-width: 768px) {
    .carousel-pause-button {
        width: 36px;
        height: 36px;
        margin-left: var(--space-2);
    }
    
    .carousel-pause-button svg {
        width: 16px;
        height: 16px;
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .hero__slide {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--space-6);
        gap: var(--space-4);
        justify-content: center;
    }
    
    .hero__image {
        order: -1;
        max-height: 350px;
        margin-bottom: var(--space-4);
        padding: 0 var(--space-4);
    }
    
    .hero__image img {
        max-height: 300px;
    }
    
    .hero__content {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 var(--space-4);
    }
    
    .carousel-slide {
        height: auto;
        min-height: 100%;
    }
}

@media (max-width: 768px) {
    .hero__carousel {
        height: auto;
        min-height: calc(100vh - 80px);
    }
    
    .carousel-track {
        height: auto;
        min-height: calc(100vh - 80px);
    }
    
    .hero__slide {
        padding: var(--space-8) var(--space-6);
        gap: var(--space-6);
        align-content: center;
        min-height: calc(100vh - 80px);
    }
    
    .hero__image {
        padding: 0 var(--space-2);
    }
    
    .hero__image img {
        max-height: 250px;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero__description {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-6);
    }
    
    .hero__cta {
        margin-bottom: var(--space-8);
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .carousel-button--prev {
        left: var(--space-4);
    }
    
    .carousel-button--next {
        right: var(--space-4);
    }
    
    .carousel-dots {
        position: relative;
        bottom: auto;
        margin-top: var(--space-4);
        padding-bottom: var(--space-4);
    }
}

@media (max-width: 480px) {
    .hero__carousel {
        min-height: calc(100vh - 60px);
    }
    
    
    .hero__slide {
        padding: var(--space-6) var(--space-4);
        gap: var(--space-4);
        min-height: calc(100vh - 60px);
    }
    
    .hero__image {
        max-height: 250px;
        margin-bottom: var(--space-4);
    }
    
    .hero__content {
        padding-bottom: var(--space-6);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide,
    .hero__title,
    .hero__content,
    .carousel-button,
    .carousel-dot {
        animation: none !important;
        transition: none !important;
    }
    
    .carousel-track {
        will-change: auto;
    }
}