/* ============================================================
   RIGHT CONSULTANCY — Premium Hero Slider
   ============================================================ */

/* --- Root Variables --- */
:root {
    --hero-height: 92vh;
    --hero-min-height: 640px;
    --hero-max-height: 920px;
    --hero-overlay-start: rgba(8, 14, 30, 0.78);
    --hero-overlay-end: rgba(15, 25, 50, 0.55);
    --hero-accent: #ffc107;
    --hero-brand: #1F0182;
    --hero-text: #ffffff;
    --hero-text-muted: rgba(255, 255, 255, 0.8);
    --hero-transition: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Hero Section Container --- */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #080e1e;
}

.hero-slider-section .carousel {
    width: 100%;
}

/* --- Slide Item --- */
.hero-slider-section .carousel-item {
    height: var(--hero-height);
    min-height: var(--hero-min-height);
    max-height: var(--hero-max-height);
    position: relative;
    overflow: hidden;
}

/* --- Background Image Layer --- */
.hero-slider-section .hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1);
    transition: transform 8s ease-out;
    will-change: transform;
}

.hero-slider-section .carousel-item.active .hero-slide-bg {
    transform: scale(1.06);
}

/* --- Gradient Overlay --- */
.hero-slider-section .hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* Left-to-right gradient: denser text side, lighter image side */
    background: linear-gradient(
        105deg,
        rgba(8, 14, 30, 0.88) 0%,
        rgba(12, 22, 45, 0.72) 40%,
        rgba(15, 28, 55, 0.50) 65%,
        rgba(20, 35, 65, 0.35) 100%
    );
}

/* Subtle pattern overlay for texture */
.hero-slider-section .hero-slide-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/shape/shape-1.png');
    opacity: 0.05;
    pointer-events: none;
}

/* --- Content Wrapper --- */
.hero-slider-section .hero-slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-slider-section .hero-slide-inner {
    max-width: 680px;
    width: 100%;
    padding: 40px 0;
}

/* --- Badge / Tagline --- */
.hero-slider-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--hero-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 24px;

    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-slider-section .hero-badge i {
    font-size: 0.85rem;
}

.hero-slider-section .carousel-item.active .hero-badge {
    opacity: 1;
    transform: translateY(0);
}

/* --- Headline --- */
.hero-slider-section .hero-headline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--hero-text);
    margin-bottom: 20px;
    letter-spacing: -0.02em;

    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s;
}

.hero-slider-section .hero-headline .accent {
    color: var(--hero-accent);
    position: relative;
}

.hero-slider-section .carousel-item.active .hero-headline {
    opacity: 1;
    transform: translateY(0);
}

/* --- Description --- */
.hero-slider-section .hero-description {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: var(--hero-text-muted);
    margin-bottom: 32px;
    max-width: 580px;

    /* Animation */
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.hero-slider-section .carousel-item.active .hero-description {
    opacity: 1;
    transform: translateY(0);
}

/* --- CTA Buttons --- */
.hero-slider-section .hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    /* Animation */
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease 0.75s, transform 0.6s ease 0.75s;
}

.hero-slider-section .carousel-item.active .hero-cta-group {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider-section .hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hero-accent);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--hero-accent);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.25);
}

.hero-slider-section .hero-btn-primary:hover {
    background: #e6ac00;
    border-color: #e6ac00;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.35);
}

.hero-slider-section .hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--hero-text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

.hero-slider-section .hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--hero-text);
    transform: translateY(-2px);
}

/* --- Decorative accent line on left side --- */
.hero-slider-section .hero-slide-inner::before {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--hero-accent);
    margin-bottom: 24px;
    border-radius: 2px;

    /* Animation */
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.hero-slider-section .carousel-item.active .hero-slide-inner::before {
    opacity: 1;
    transform: scaleX(1);
}

/* --- Carousel Indicators (Bottom bar style) --- */
.hero-slider-section .carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 5%;
    right: auto;
    margin: 0;
    justify-content: flex-start;
    z-index: 10;
    gap: 6px;
}

.hero-slider-section .carousel-indicators [data-bs-slide-to] {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.4s ease;
    cursor: pointer;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-slider-section .carousel-indicators [data-bs-slide-to].active {
    width: 52px;
    background-color: var(--hero-accent);
}

.hero-slider-section .carousel-indicators [data-bs-slide-to]:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.55);
}

/* --- Slide counter next to indicators --- */
.hero-slider-section .hero-slide-counter {
    position: absolute;
    bottom: 36px;
    right: 5%;
    z-index: 10;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.hero-slider-section .hero-slide-counter .current {
    color: var(--hero-accent);
    font-size: 1.1rem;
    font-weight: 800;
}

/* --- Navigation Arrows --- */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.hero-slider-section:hover .carousel-control-prev,
.hero-slider-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider-section .carousel-control-prev {
    left: 24px;
}

.hero-slider-section .carousel-control-next {
    right: 24px;
}

.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-slider-section .carousel-control-prev-icon,
.hero-slider-section .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* --- Fade transition refinement --- */
.hero-slider-section .carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1s;
    transform: none;
}

.hero-slider-section .carousel-fade .carousel-item.active,
.hero-slider-section .carousel-fade .carousel-item-next.carousel-item-start,
.hero-slider-section .carousel-fade .carousel-item-prev.carousel-item-end {
    z-index: 1;
    opacity: 1;
}

.hero-slider-section .carousel-fade .active.carousel-item-start,
.hero-slider-section .carousel-fade .active.carousel-item-end {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s 1s;
}

/* --- Bottom section divider --- */
.hero-slider-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #1F0182 0%, #ffc107 50%, #1F0182 100%);
    z-index: 15;
    pointer-events: none;
}


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

/* --- Wide Desktop (1920px+) --- */
@media (min-width: 1920px) {
    :root {
        --hero-height: 85vh;
        --hero-max-height: 960px;
    }

    .hero-slider-section .hero-slide-inner {
        max-width: 750px;
    }

    .hero-slider-section .hero-slide-content {
        max-width: 1600px;
    }
}

/* --- Large Desktop (1440px) --- */
@media (min-width: 1440px) and (max-width: 1919px) {
    .hero-slider-section .hero-slide-inner {
        max-width: 700px;
    }
}

/* --- Laptop/Compact Desktop (1024px) --- */
@media (max-width: 1200px) {
    :root {
        --hero-min-height: 580px;
    }

    .hero-slider-section .hero-slide-content {
        padding: 0 40px;
    }

    .hero-slider-section .hero-slide-inner {
        max-width: 600px;
    }

    .hero-slider-section .carousel-indicators {
        left: 40px;
    }

    .hero-slider-section .hero-slide-counter {
        right: 40px;
    }
}

/* --- Tablet (768px) --- */
@media (max-width: 991px) {
    :root {
        --hero-height: 80vh;
        --hero-min-height: 540px;
        --hero-max-height: 700px;
    }

    .hero-slider-section .hero-slide-content {
        padding: 0 32px;
    }

    .hero-slider-section .hero-slide-inner {
        max-width: 520px;
    }

    .hero-slider-section .hero-headline {
        font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    }

    .hero-slider-section .hero-description {
        font-size: 0.95rem;
    }

    .hero-slider-section .hero-btn-primary,
    .hero-slider-section .hero-btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next {
        display: none;
    }

    .hero-slider-section .carousel-indicators {
        left: 32px;
    }

    .hero-slider-section .hero-slide-counter {
        right: 32px;
    }

    .hero-slider-section .hero-slide-overlay {
        background: linear-gradient(
            135deg,
            rgba(8, 14, 30, 0.90) 0%,
            rgba(12, 22, 45, 0.75) 50%,
            rgba(15, 28, 55, 0.60) 100%
        );
    }
}

/* --- Large Mobile (430px) --- */
@media (max-width: 767px) {
    :root {
        --hero-height: auto;
        --hero-min-height: 520px;
        --hero-max-height: none;
    }

    .hero-slider-section .carousel-item {
        height: auto;
        min-height: var(--hero-min-height);
        max-height: none;
    }

    .hero-slider-section .hero-slide-content {
        padding: 100px 24px 80px;
        align-items: flex-start;
    }

    .hero-slider-section .hero-slide-inner {
        max-width: 100%;
        padding: 0;
    }

    .hero-slider-section .hero-headline {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-slider-section .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-slider-section .hero-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
        margin-bottom: 18px;
    }

    .hero-slider-section .hero-cta-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-slider-section .hero-btn-primary,
    .hero-slider-section .hero-btn-secondary {
        justify-content: center;
        padding: 13px 24px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .hero-slider-section .carousel-indicators {
        bottom: 24px;
        left: 24px;
    }

    .hero-slider-section .hero-slide-counter {
        display: none;
    }

    .hero-slider-section .hero-slide-overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 14, 30, 0.55) 0%,
            rgba(8, 14, 30, 0.85) 40%,
            rgba(8, 14, 30, 0.92) 100%
        );
    }

    .hero-slider-section .hero-slide-inner::before {
        width: 36px;
        margin-bottom: 18px;
    }
}

/* --- Standard Mobile (375px) --- */
@media (max-width: 430px) {
    :root {
        --hero-min-height: 480px;
    }

    .hero-slider-section .hero-slide-content {
        padding: 90px 20px 70px;
    }

    .hero-slider-section .hero-headline {
        font-size: 1.5rem;
    }

    .hero-slider-section .hero-description {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .hero-slider-section .hero-badge {
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    .hero-slider-section .carousel-indicators {
        left: 20px;
        bottom: 20px;
    }
}

/* --- Small Mobile (320px) --- */
@media (max-width: 375px) {
    :root {
        --hero-min-height: 440px;
    }

    .hero-slider-section .hero-slide-content {
        padding: 80px 16px 64px;
    }

    .hero-slider-section .hero-headline {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .hero-slider-section .hero-description {
        font-size: 0.82rem;
        margin-bottom: 20px;
    }

    .hero-slider-section .hero-btn-primary,
    .hero-slider-section .hero-btn-secondary {
        padding: 11px 20px;
        font-size: 0.85rem;
    }
}


/* ============================================================
   REDUCED MOTION ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-slider-section .hero-slide-bg {
        transition: none !important;
        transform: none !important;
    }

    .hero-slider-section .carousel-item {
        transition-duration: 0.01s !important;
    }

    .hero-slider-section .hero-badge,
    .hero-slider-section .hero-headline,
    .hero-slider-section .hero-description,
    .hero-slider-section .hero-cta-group,
    .hero-slider-section .hero-slide-inner::before {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next {
        opacity: 1 !important;
        transition: none !important;
    }
}
