/* ==========================================
   Hero Slider Styles
   - Golden Ratio Applied (Approx. 1.618)
   ========================================== */

:root {
    /* Base size for our calculations (1rem = 16px) */
    --base-size: 1rem; 
    
    /* Typographic Scale based on Golden Ratio */
    --font-size-sm: calc(var(--base-size) / 1.618); /* ~0.618rem / 9.8px */
    --font-size-md: var(--base-size); /* 1rem / 16px */
    --font-size-lg: calc(var(--base-size) * 1.618); /* ~1.618rem / 25.8px */
    --font-size-xl: calc(var(--base-size) * 1.618 * 1.618); /* ~2.618rem / 41.8px */
    --font-size-xxl: calc(var(--base-size) * 1.618 * 1.618 * 1.618); /* ~4.236rem / 67.7px */

    /* Spacing units based on Golden Ratio */
    --space-unit: 1.618rem; /* ~25.8px */
    --space-xs: calc(var(--space-unit) / (1.618 * 2)); /* ~0.8rem */
    --space-sm: calc(var(--space-unit) / 1.618); /* 1rem */
    --space-md: var(--space-unit); /* ~1.618rem */
    --space-lg: calc(var(--space-unit) * 1.618); /* ~2.618rem */
}

.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-section);
    transition: var(--theme-transition);
}

.hero-slider {
    height: 90vh;
    max-height: 800px;
    min-height: 600px;
}

.hero-slide {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.15));
    z-index: 1;
}

.hero-slide .slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: kenburns 25s ease-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--color-text-on-dark);
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
    transition: var(--theme-transition);
}

.hero-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--color-text-on-dark);
    line-height: 1.2;
    transition: var(--theme-transition);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    color: var(--color-text-on-dark);
    opacity: 0.9;
    max-width: 550px;
    line-height: 1.5;
    transition: var(--theme-transition);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: 15px;
}

.hero-buttons .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-md);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-width: 2px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    line-height: 1.5;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.4));
    transform: scale(1.15);
}

/* Swiper Navigation - Enhanced Style */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: var(--color-text-on-dark);
    transition: var(--theme-transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: var(--color-text-on-dark);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--color-primary);
    width: 25px;
    border-radius: 5px;
    transition: var(--theme-transition);
}


/* --- Responsive Adjustments --- */

/* For Tablets */
@media (max-width: 991.98px) {
    .hero-slider {
        min-height: 550px;
    }

    .hero-title {
        font-size: calc(var(--font-size-xl) * 0.85);
    }

    .hero-subtitle {
        font-size: calc(var(--font-size-lg) * 0.9);
    }

    .hero-image img {
        max-height: 400px;
        transform: scale(1.1);
    }
}

/* For Mobile Phones */
@media (max-width: 767.98px) {
    .hero-slider {
        height: auto;
        min-height: 0;
    }

    .hero-slide {
        padding: var(--space-lg) 0;
    }

    .hero-slide .row {
        flex-direction: column-reverse;
    }

    .hero-content {
        text-align: center;
    }

    [dir="ltr"] .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: var(--font-size-lg);
    }

    .hero-subtitle {
        font-size: var(--font-size-md);
        margin-bottom: var(--space-md);
        max-width: 100%;
    }

    .hero-image {
        margin-bottom: var(--space-md);
    }

    .hero-image img {
        max-height: 220px;
        transform: scale(1);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons .btn {
        font-size: var(--font-size-sm);
        padding: var(--space-xs) var(--space-sm);
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .swiper-pagination {
        bottom: 20px !important;
    }
}
