/* ==========================================================================
   Responsive & UI Enhancements for Beyond Beta Advisors L.L.C-FZ
   Ensures seamless presentation on mobile (320px+), tablets, and desktops
   ========================================================================== */

/* Universal Responsive Helpers */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure WOW animated elements don't get stuck hidden */
.wow {
    visibility: visible !important;
}

/* Full-Bleed Cinematic Hero Slider (25% Soft Background Blur & Clear Visibility) */
.slider-four .single-slider {
    position: relative;
    overflow: hidden;
    background-color: #0b1a33;
    display: flex;
    align-items: center;
    min-height: 820px;
    padding: 240px 0 120px !important; /* Clears the 170px negative margin of the menu area with generous breathing space */
}

/* Dedicated Background Image Layer with 25% Soft Blur */
.hero-bg-layer {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(3px);
    -webkit-filter: blur(3px);
    transform: scale(1.05);
    z-index: 0;
    pointer-events: none;
    will-change: transform, filter;
}

/* Subtle, transparent gradient overlay so photographic background stays vivid and recognizable */
.slider-four .single-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 26, 51, 0.42) 0%,
        rgba(17, 38, 74, 0.26) 45%,
        rgba(11, 26, 51, 0.52) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.slider-four .single-slider > .container {
    position: relative;
    z-index: 2;
    padding-top: 25px; /* Ensures company tag is fully visible well below the navbar */
}

.hero-tag {
    display: inline-block;
    padding: 8px 26px;
    background: rgba(11, 26, 51, 0.85);
    border: 1.5px solid #16b5cb;
    color: #16b5cb !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-title-clean {
    font-size: 52px;
    line-height: 1.18;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 22px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.95);
    letter-spacing: -0.5px;
}

.hero-desc-clean {
    color: #ffffff !important;
    font-size: 19px;
    line-height: 32px;
    max-width: 820px;
    margin: 0 auto 35px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.95);
    font-weight: 500;
}

.slider-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-block;
    padding: 15px 36px;
    background: #16b5cb;
    color: #ffffff !important;
    border: 2px solid #16b5cb;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(22, 181, 203, 0.45);
}
.hero-btn-primary:hover {
    background: #139cb0;
    border-color: #139cb0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 181, 203, 0.6);
}

.hero-btn-secondary {
    display: inline-block;
    padding: 15px 36px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.hero-btn-secondary:hover {
    background: #ffffff;
    color: #11264a !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Pillars Cards */
.pillar-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Breadcrumb Spacing */
.breadcrumb-area .container {
    margin-top: 140px;
}

/* Desktop Navbar Single-Line Layout */
@media (min-width: 992px) {
    .second-menu .main-menu {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    .second-menu .main-menu nav > ul {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        margin: 0;
        padding: 0;
    }
    .second-menu .main-menu ul li {
        margin-left: 28px !important;
        white-space: nowrap !important;
        display: inline-block;
    }
    .second-menu .main-menu ul li:first-child {
        margin-left: 0 !important;
    }
    .second-menu .main-menu ul li a {
        white-space: nowrap !important;
        font-size: 15px !important;
        font-weight: 600 !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .second-menu .main-menu ul li {
        margin-left: 18px !important;
    }
    .second-menu .main-menu ul li a {
        font-size: 14px !important;
    }
}

/* Header & Mobile Navigation */
.mean-container a.meanmenu-reveal {
    border: 1px solid #16b5cb !important;
    color: #16b5cb !important;
    margin-top: -46px !important;
    right: 15px !important;
    border-radius: 4px;
}

.mean-container a.meanmenu-reveal span {
    background: #16b5cb !important;
}

.mean-container .mean-nav {
    background: #11264a !important;
    border-top: 2px solid #16b5cb !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.mean-container .mean-nav ul li a {
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
}

.mean-container .mean-nav ul li a:hover {
    color: #16b5cb !important;
    background: rgba(22, 181, 203, 0.1) !important;
}

/* TABLET BREAKPOINT (max-width: 991px) */
@media (max-width: 991px) {
    .hero-title-clean {
        font-size: 38px !important;
        line-height: 1.25 !important;
    }
    .hero-desc-clean {
        font-size: 17px !important;
        line-height: 28px !important;
    }
    .slider-four .single-slider {
        min-height: 680px !important;
        padding: 190px 0 80px !important;
    }
    .header-top {
        display: none !important;
    }
    .menu-area {
        padding: 15px 0;
    }
    .second-menu .logo img {
        max-height: 44px !important;
        max-width: 200px;
    }
    .about-p {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
    .services-08 {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
    .breadcrumb-area .container {
        margin-top: 100px !important;
    }
}

/* MOBILE BREAKPOINT (max-width: 767px) */
@media (max-width: 767px) {
    .slider-four .single-slider {
        min-height: 580px !important;
        padding: 140px 0 60px !important;
    }
    .hero-tag {
        font-size: 11px !important;
        padding: 6px 16px !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 16px !important;
    }
    .hero-title-clean {
        font-size: 28px !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
    }
    .hero-desc-clean {
        font-size: 15px !important;
        line-height: 24px !important;
        margin-bottom: 25px !important;
    }
    .slider-btn-group {
        flex-direction: column;
        gap: 10px;
    }
    .hero-btn-primary, .hero-btn-secondary {
        width: 100% !important;
        max-width: 280px !important;
        margin: 5px auto !important;
        text-align: center;
        padding: 13px 20px !important;
        display: block !important;
    }
    .breadcrumb-area {
        min-height: 280px !important;
    }
    .breadcrumb-area .container {
        margin-top: 85px !important;
    }
    .breadcrumb-title h1 {
        font-size: 26px !important;
    }
    .section-title h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    .second-title h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    .progress-outer {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        margin-bottom: 30px;
    }
    .progress-outer li {
        width: 33.33%;
        padding: 0 5px;
        margin-bottom: 20px;
    }
    .progress-box {
        margin: 0 auto;
    }
    .contact-bg02 {
        padding: 25px 18px !important;
    }
    .footer-top {
        padding-bottom: 40px !important;
    }
    .footer-widget {
        margin-bottom: 30px;
    }
}

/* SMALL MOBILE (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title-responsive {
        font-size: 22px;
    }
    .hero-glass-container {
        padding: 20px 12px;
    }
    .second-menu .logo img {
        max-height: 38px !important;
        max-width: 170px;
    }
    .progress-outer li {
        width: 100%;
        margin-bottom: 25px;
    }
    .single-services {
        padding: 20px 15px;
    }
}
