/* ========================================
   HERO SLIDER STYLES
   Modern carousel for product showcase
   ======================================== */

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background: var(--color-background);
}

/* Slide Container */
.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 Content Layout */
.hero-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--space-16) var(--space-6);
    min-height: 600px;
}

.hero-slide-text {
    padding-right: var(--space-8);
}

.hero-slide-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-image img {
    max-width: 100%;
    max-height: 600px;
    /* Increased from 550px */
    width: auto;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
    object-position: center;
    /* Show full image without cropping on all devices */
}

/* Slide Titles & Text */
.hero-slide h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--color-text-primary);
}

.hero-slide h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.hero-slide p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-slide-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Slide Buttons */
.hero-slide-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    color: var(--color-primary);
}

.slider-arrow:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-prev {
    left: var(--space-6);
}

.slider-arrow-next {
    right: var(--space-6);
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: var(--space-3);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    width: 32px;
    border-radius: var(--radius-full);
}

/* Feature Grid in Slides */
.hero-slide-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.hero-feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.hero-feature-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--color-text-primary);
}

.hero-feature-text p {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Dual Image Layout (for product collages) */
.hero-slide-dual-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.hero-slide-dual-image img {
    width: 100%;
    height: auto;
}

/* Stats Display */
.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-6);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Product Badge Overlay */
.product-badge-overlay {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1A2332;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    z-index: 3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-slider {
        min-height: 500px;
    }

    .hero-slide-content {
        gap: var(--space-8);
        padding: var(--space-12) var(--space-4);
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow-prev {
        left: var(--space-4);
    }

    .slider-arrow-next {
        right: var(--space-4);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: auto;
    }

    .hero-slide-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-8) var(--space-4);
        min-height: auto;
    }

    .hero-slide-text {
        padding-right: 0;
        text-align: center;
    }

    .hero-slide h1 {
        font-size: 2rem;
    }

    .hero-slide h2 {
        font-size: 1.75rem;
    }

    .hero-slide p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slide-buttons {
        justify-content: center;
    }

    .hero-slide-features {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        justify-content: center;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow-prev {
        left: var(--space-2);
    }

    .slider-arrow-next {
        right: var(--space-2);
    }

    .slider-dots {
        bottom: var(--space-4);
    }

    .hero-slide-dual-image {
        grid-template-columns: 1fr;
    }

    /* Mobile image adjustments - ensure full visibility */
    .hero-slide-image img {
        max-height: none;
        /* Remove height restriction on mobile */
        width: 100%;
        height: auto;
    }
}

/* Animation Effects */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide.active .hero-slide-text {
    animation: slideInFromLeft 0.8s ease-out;
}

.hero-slide.active .hero-slide-image {
    animation: slideInFromRight 0.8s ease-out 0.2s backwards;
}

.hero-slide.active .hero-slide-badge {
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.hero-slide.active .hero-slide-buttons {
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .hero-slide,
    .slider-arrow,
    .slider-dot,
    .hero-slide.active .hero-slide-text,
    .hero-slide.active .hero-slide-image,
    .hero-slide.active .hero-slide-badge,
    .hero-slide.active .hero-slide-buttons {
        animation: none;
        transition: none;
    }
}