﻿/* ============================================================
   REFRESH GLOBAL — HERO CAROUSEL (GLASS BUTTON VERSION)
   ------------------------------------------------------------
   Architecture Overview:
     1. Full-width wrapper (100vw breakout)
     2. Background-image slide system
     3. Microsoft-style dark overlay
     4. Centered caption system
     5. Corporate CTA button
     6. Floating glass control buttons (Back / Play / Pause / Forward)
     7. Fade transition (10% longer + 10% slower)
     8. Mobile optimization
   ============================================================ */



/* ============================================================
   1️⃣ HERO WRAPPER — ESCAPES BOOTSTRAP CONTAINER
   ------------------------------------------------------------
   Breaks out of Bootstrap’s container padding to achieve
   a true full-width cinematic hero.
   ============================================================ */
.hero-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

/* Ensures hero starts immediately after navbar */
.hero-section {
    margin-top: 0;
    padding-top: 0;
}



/* ============================================================
   2️⃣ HERO SLIDE — BACKGROUND IMAGE SYSTEM
   ------------------------------------------------------------
   Full-cover background with fixed height and centered framing.
   ============================================================ */
.hero-slide {
    height: 560px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}



    /* ============================================================
   3️⃣ DARK OVERLAY — MICROSOFT-STYLE DEPTH
   ------------------------------------------------------------
   Adds cinematic depth and improves text contrast.
   ============================================================ */
    .hero-slide::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.35);
        z-index: 5;
    }



/* ============================================================
   4️⃣ HERO CAPTION — CENTERED TEXT SYSTEM
   ------------------------------------------------------------
   Perfect vertical + horizontal centering for headline + subtitle.
   ============================================================ */
.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    color: #fff;
}

    .hero-caption h1 {
        font-size: 2.8rem;
        font-weight: 700;
    }

    .hero-caption p {
        font-size: 1.25rem;
        margin-top: 10px;
    }



/* ============================================================
   5️⃣ HERO CTA BUTTON — CORPORATE STYLE
   ------------------------------------------------------------
   Strong, clean, and modern call-to-action button.
   ============================================================ */
.hero-btn {
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease-in-out;
}

    .hero-btn:hover {
        background-color: #0056b3;
    }



/* ============================================================
   6️⃣ FLOATING GLASS CONTROL BUTTONS
   ------------------------------------------------------------
   • 25% smaller
   • Frosted glass effect
   • Individual floating buttons (no bar)
   • Soft shadows + hover scale
   ============================================================ */

/* Positions the control buttons at bottom center */
.hero-control-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 30;
}

/* Glass buttons */
.hero-control-btn {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0.85;
}

    /* Hover — brighter + slight scale */
    .hero-control-btn:hover {
        opacity: 1;
        transform: scale(1.15);
    }

    /* Icon inside glass button */
    .hero-control-btn i {
        font-size: 0.95rem;
        color: #fff;
    }



/* ============================================================
   7️⃣ FADE TRANSITION — MICROSOFT SMOOTH EFFECT
   ------------------------------------------------------------
   Updated:
     • Duration +10% (1.2s → 1.32s)
     • Transition curve slowed by 10%
   ============================================================ */
.carousel-fade .carousel-item {
    transition: opacity 1.32s cubic-bezier(0.25, 0.1, 0.25, 1);
}



/* ============================================================
   8️⃣ RESPONSIVE ADJUSTMENTS — MOBILE OPTIMIZATION
   ------------------------------------------------------------
   Scales down height, text, and controls for smaller screens.
   ============================================================ */
@media (max-width: 768px) {

    .hero-slide {
        height: 420px;
    }

    .hero-caption h1 {
        font-size: 2rem;
    }

    .hero-caption p {
        font-size: 1rem;
    }

    .hero-control-btn {
        width: 24px;
        height: 24px;
    }

        .hero-control-btn i {
            font-size: 0.85rem;
        }
}


