:root {
    --brand: #582A8A;
    --brand2: #7A3CC4;

    --hero-white: #ffffff;
    --hero-text: rgba(255, 255, 255, 0.88);
    --hero-text-soft: rgba(255, 255, 255, 0.72);

    --hero-indicator-bg: rgba(255, 255, 255, 0.35);
    --hero-glass-bg: rgba(255, 255, 255, 0.08);
    --hero-glass-border: rgba(255, 255, 255, 0.12);

    --hero-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    --hero-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --hero-time-fast: 0.35s;
    --hero-time: 0.8s;
    --hero-fade-time: 1.1s;
    --hero-zoom-time: 7.5s;
    --hero-radius: 18px;
}

html {
    scroll-behavior: smooth;
}

/* =========================
   Hero Section
========================= */
.hero-section {
    position: relative;
    overflow: hidden;
    background: #0b0b15;
    margin-top: -60px !important;
    padding-bottom: 0 !important;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    min-height: 100vh;
}

.hero-section .carousel-item {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    will-change: transform;
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(8, 10, 25, 0.88) 0%, rgba(8, 10, 25, 0.62) 42%, rgba(8, 10, 25, 0.22) 100%),
        linear-gradient(180deg, rgba(88, 42, 138, 0.10) 0%, rgba(0, 0, 0, 0.20) 100%);
}

.hero-slide-inner {
    position: relative;
    z-index: 3;
    min-height: 100vh;
}

.hero-slide-inner .container,
.hero-slide-inner .row {
    min-height: 100vh;
}

/* =========================
   Content
========================= */
.hero-content {
    max-width: 680px;
    padding: 100px 0 60px;
    color: var(--hero-white);
}

.hero-title {
    margin: 0 0 18px;
    color: var(--hero-white);

    /* Font */
    font-family: "TOP LUXURY", serif;

    /* Size */
    font-size: clamp(2.4rem, 4.5vw, 4.5rem);

    /* Style */
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;

    /* Modern balancing */
    text-wrap: balance;

    /* Smooth rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-text {
    max-width: 620px;
    margin: 0 0 28px;
    color: var(--hero-text);
    font-size: 1.05rem;
    line-height: 1.8;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* =========================
   Buttons
========================= */
.hero-btn-primary,
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition:
        transform var(--hero-time-fast) var(--hero-ease),
        background var(--hero-time-fast) var(--hero-ease),
        color var(--hero-time-fast) var(--hero-ease),
        border-color var(--hero-time-fast) var(--hero-ease),
        box-shadow var(--hero-time-fast) var(--hero-ease),
        opacity var(--hero-time-fast) var(--hero-ease);
    will-change: transform;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    border: 1px solid var(--brand);
    color: var(--hero-white);
    box-shadow: 0 10px 30px rgba(88, 42, 138, 0.28);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, var(--brand2), var(--brand));
    border-color: var(--brand2);
    color: var(--hero-white);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(88, 42, 138, 0.34);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--hero-white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--hero-white);
    transform: translateY(-2px);
}

/* =========================
   Right Meta Box
========================= */
.hero-glass-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 14px;
    width: 100%;
    margin-bottom: 48px;
    padding: 12px;
}

.hero-glass-meta > a {
    position: relative;
    overflow: hidden;
    padding: 14px 16px;
    transition:
        transform var(--hero-time-fast) var(--hero-ease),
        background var(--hero-time-fast) var(--hero-ease),
        border-color var(--hero-time-fast) var(--hero-ease),
        box-shadow var(--hero-time-fast) var(--hero-ease),
        opacity var(--hero-time-fast) var(--hero-ease);
    border-radius: var(--hero-radius);
    background: var(--hero-glass-bg);
    border: 1px solid var(--hero-glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--hero-shadow);
    will-change: transform;
}

.hero-glass-meta > a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.hero-glass-meta > a {
    color: #FFFFFF;
}

.hero-glass-meta > a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity var(--hero-time-fast) var(--hero-ease);
}

.hero-glass-meta > a:hover::after {
    opacity: 1;
}

.hero-glass-meta span {
    display: block;
    margin-bottom: 4px;
    color: white;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-items:center;
    gap:.35rem;
    line-height:1.5;
    font-weight: 800;
}

.hero-glass-meta strong {
    display: block;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    word-break: break-word;
}

/* =========================
   Indicators
========================= */
.hero-indicators {
    bottom: 24px;
    margin-bottom: 0;
    z-index: 6;
}

.hero-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border: 0;
    border-radius: 999px;
    background: var(--hero-indicator-bg);
    opacity: 1;
    transition:
        width var(--hero-time-fast) var(--hero-ease),
        background var(--hero-time-fast) var(--hero-ease),
        transform var(--hero-time-fast) var(--hero-ease),
        opacity var(--hero-time-fast) var(--hero-ease);
}

.hero-indicators [data-bs-target]:hover {
    transform: scale(1.08);
}

.hero-indicators .active {
    width: 34px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
}

/* =========================
   Animation
========================= */
.hero-animate {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    will-change: transform, opacity;
}

.carousel-item.active .hero-animate {
    animation: heroFadeSlide 0.9s var(--hero-ease) forwards;
}

.carousel-item.active .hero-animate-1 { animation-delay: 0.20s; }
.carousel-item.active .hero-animate-2 { animation-delay: 0.40s; }
.carousel-item.active .hero-animate-3 { animation-delay: 0.60s; }

.carousel-item.active .hero-bg {
    animation: heroZoom var(--hero-zoom-time) var(--hero-ease) forwards;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity var(--hero-fade-time) var(--hero-ease);
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

@keyframes heroFadeSlide {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

/* =========================
   Responsive
========================= */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 760px;
        padding: 110px 0 60px;
    }

    .hero-title {
        font-size: clamp(3.5rem, 4.8vw, 4.4rem);
    }

    .hero-text {
        max-width: 660px;
        font-size: 1.1rem;
    }
}

@media (max-width: 1199.98px) {
    .hero-content {
        max-width: 620px;
        padding: 95px 0 80px;
    }

    .hero-title {
        font-size: clamp(2.4rem, 5vw, 4rem);
    }
}

@media (max-width: 991.98px) {
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item,
    .hero-slide-inner,
    .hero-slide-inner .container,
    .hero-slide-inner .row {
        min-height: 88vh;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(8, 10, 25, 0.82) 0%, rgba(8, 10, 25, 0.58) 55%, rgba(8, 10, 25, 0.42) 100%),
            linear-gradient(180deg, rgba(88, 42, 138, 0.10) 0%, rgba(0, 0, 0, 0.18) 100%);
    }

    .hero-content {
        max-width: 100%;
        padding: 110px 0 60px;
    }

    .hero-title {
        font-size: clamp(2.1rem, 6vw, 3.3rem);
    }

    .hero-text {
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-indicators {
        bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item,
    .hero-slide-inner,
    .hero-slide-inner .container,
    .hero-slide-inner .row {
        min-height: 100vh;
    }

    .hero-content {
        margin: 0 auto;
        padding: 110px 0 60px;
        text-align: center;
    }

    .hero-title {
        margin-bottom: 16px;
        font-size: clamp(1.9rem, 8vw, 2.8rem);
        line-height: 1.14;
    }

    .hero-text {
        margin: 0 auto 24px;
        font-size: 0.96rem;
        line-height: 1.75;
    }

    .hero-actions {
        justify-content: center;
        gap: 10px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
    }

    .hero-indicators {
        bottom: 16px;
    }

    .hero-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }

    .hero-indicators .active {
        width: 28px;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 9vw, 2.35rem);
    }

    .hero-text {
        margin-bottom: 20px;
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        max-width: 100%;
        padding: 12px 18px;
        font-size: 14px;
    }

    .hero-glass-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 28px;
    }

    .hero-glass-meta > a {
        padding: 12px;
    }

    .hero-glass-meta strong {
        font-size: 0.9rem;
    }
}

@media (max-width: 399.98px) {
    .hero-content {
        padding: 92px 0 60px;
    }

    .hero-title {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .hero-text {
        font-size: 0.88rem;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        min-height: 46px;
        padding: 11px 16px;
        font-size: 13px;
    }
}

@media (max-height: 700px) and (min-width: 768px) {
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item,
    .hero-slide-inner,
    .hero-slide-inner .container,
    .hero-slide-inner .row {
        min-height: 760px;
    }

    .hero-content {
        padding: 80px 0 60px;
    }
}

@media (max-width: 991.98px) and (orientation: landscape) {
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item,
    .hero-slide-inner,
    .hero-slide-inner .container,
    .hero-slide-inner .row {
        min-height: 640px;
    }

    .hero-content {
        padding: 90px 0 60px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 4vw, 2.8rem);
    }

    .hero-text {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-bg,
    .hero-animate,
    .hero-btn-primary,
    .hero-btn-secondary,
    .hero-glass-meta > a,
    .hero-indicators [data-bs-target] {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
