/* Vibinyo Quality Services Custom Stylesheet */

/* Global Reset & Overflow Prevention */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
}

/* Header & Navigation */
#nav-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo-box {
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.375rem;
}

.header-logo-box img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

#nav-header.scrolled {
    background-color: rgba(0, 8, 92, 0.98) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    z-index: 50 !important;
}

#nav-header.scrolled .header-logo-box {
    background-color: #ffffff;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

#nav-header.scrolled .nav-link {
    color: #ffffff !important;
}

#nav-header.scrolled .nav-link:hover {
    color: #ff304f !important;
}

#nav-header.scrolled #navbar-toggle {
    border-color: #ffffff !important;
    color: #ffffff !important;
    opacity: 0.9;
}

/* Footer Logo Container */
.footer-logo-box {
    display: inline-block;
    background-color: #ffffff;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-logo-box img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Breadcrumb Banner Overlay */
.breadcrumb-banner-overlay {
    position: relative;
    background-color: #0e2f56;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.breadcrumb-banner-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 8, 92, 0.84) 0%, rgba(14, 47, 86, 0.74) 100%);
    z-index: 1;
}

.breadcrumb-banner-overlay > .container {
    position: relative;
    z-index: 2;
}

/* Hero Carousel Section */
.home-carousal {
    position: relative;
    height: 80vh;
    min-height: 520px;
    max-height: 720px;
    overflow: hidden;
}

.home-carousal .mySwiper,
.home-carousal .swiper-wrapper,
.home-carousal .swiper-slide {
    height: 100%;
    position: relative;
}

.home-carousal .swiper-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-carousal .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 8, 92, 0.82) 0%, rgba(0, 8, 92, 0.55) 60%, rgba(0, 8, 92, 0.25) 100%);
    z-index: 2;
}

.home-carousal .hero-content-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

/* Service Card Hover Icon Transitions */
.service-icon-box {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.service-item {
    position: relative;
    background: #ffffff;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-item .first {
    display: block;
    transition: opacity 0.2s ease;
}

.service-item .second {
    display: none;
    transition: opacity 0.2s ease;
}

.service-item:hover .first {
    display: none;
}

.service-item:hover .second {
    display: block;
}

/* Services Page Grid Cards */
.services-grid-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #0e2f56;
}

.services-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.services-grid-card img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.services-grid-card:hover img {
    transform: scale(1.04);
}

/* Client Logo Styling */
.client-logo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    width: 100%;
    padding: 1rem;
    transition: all 0.25s ease;
}

.client-logo-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.client-logo-card img {
    max-height: 48px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.25s ease;
}

.client-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.clients-logo-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 0.5rem;
}

.clients-logo-swiper .swiper-slide img {
    max-height: 48px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.25s ease;
}

.clients-logo-swiper .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Sidebar Box Shadow */
.sidebar-box-shadow {
    background: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-box-shadow a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-box-shadow a:hover {
    transform: translateX(4px);
}

/* Contact form validation errors */
label.error {
    color: #ff304f;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: block;
}
