/* ==========================================================================
   Home Hero — element-scoped styles for the landing hero (components/home-hero)
   --------------------------------------------------------------------------
   Full-viewport hero: background image + dark overlay, a badge pill, a large
   two-tone title, a paragraph, a single CTA button and a scroll indicator.
   Shared theme tokens (--qr-*) come from qubitrp.css.
   ========================================================================== */

.home-hero {
    position: relative;
    /* Pull up under the fixed navbar so the image fills from the very top
       (cancels #page-container's padding-top). */
    margin-top: -78px;
    min-height: 100vh;
    overflow: hidden;
    animation: heroFadeIn 0.8s ease-out;
}

/* Carousel fills the hero; each slide carries its own background image */
.home-hero__carousel,
.home-hero__carousel .carousel-inner,
.home-hero__carousel .carousel-item {
    height: 100%;
}

.home-hero__carousel {
    position: absolute;
    inset: 0;
}

.home-hero__carousel .carousel-item {
    min-height: 100vh;
    padding: 96px 0 80px;          /* top pad clears the navbar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Center content only on the slide(s) Bootstrap is showing — leaving the base
   .carousel-item to Bootstrap's display:none keeps inactive slides hidden. */
.home-hero__carousel .carousel-item.active,
.home-hero__carousel .carousel-item-next,
.home-hero__carousel .carousel-item-prev {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark vignette + subtle accent glow so the artwork reads behind the text */
.home-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 50% 40%, rgba(43, 189, 246, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, rgba(8, 11, 14, 0.55) 0%, rgba(8, 11, 14, 0.70) 55%, rgba(8, 11, 14, 0.92) 100%);
    z-index: 1;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: heroSlideUp 1s ease-out 0.15s both;
}

/* ---------------------------------------------------------------- Badge pill */
.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(43, 189, 246, 0.45);
    border-radius: 999px;
    background: var(--qr-green-soft);
    color: var(--qr-green-bright);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.home-hero__badge::after {
    content: "\f078";                    /* chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.62rem;
    opacity: 0.85;
}

/* ------------------------------------------------------------------- Title */
.home-hero__title {
    margin: 0 0 22px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #ffffff;
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

/* Progressively smaller as titles get longer, so they always fit on one line */
.home-hero__title--long {
    font-size: clamp(2.1rem, 5vw, 3.75rem);
}

.home-hero__title--xlong {
    font-size: clamp(1.85rem, 4vw, 3rem);
    letter-spacing: -0.5px;
}

.home-hero__title-accent {
    color: var(--qr-green);
}

/* --------------------------------------------------------------- Paragraph */
.home-hero__desc {
    max-width: 620px;
    margin: 0 auto 40px;
    color: rgba(233, 246, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.65;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------ Button */
.home-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--qr-green) 0%, var(--qr-green-bright) 100%);
    color: #03212e;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 12px 30px rgba(43, 189, 246, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.home-hero__btn:hover {
    color: #03212e;
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 16px 40px rgba(43, 189, 246, 0.45);
}

.home-hero__btn i {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.home-hero__btn:hover i {
    transform: translateX(4px);
}

/* ---------------------------------------------------------- Dot indicators */
.home-hero__dots {
    z-index: 2;
    margin-bottom: 70px;
}

.home-hero__dots [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: background 0.2s ease, width 0.2s ease;
}

.home-hero__dots [data-bs-target].active {
    width: 24px;
    border-radius: 999px;
    background: var(--qr-green);
}

/* ------------------------------------------------------------- Scroll hint */
.home-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(233, 246, 255, 0.6);
    font-size: 1.1rem;
    text-decoration: none;
    animation: heroBounce 2s infinite;
    transition: color 0.2s ease;
}

.home-hero__scroll:hover {
    color: var(--qr-green-bright);
}

/* ------------------------------------------------------------- Animations */
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ------------------------------------------------------------------ Mobile */
@media (max-width: 767.98px) {
    .home-hero {
        min-height: 90vh;
        padding: 110px 0 70px;
    }
    .home-hero__desc { font-size: 1rem; }
    .home-hero__badge { letter-spacing: 1.2px; }
}
