/********** Meraki Digital - Fully Optimized CSS **********/

:root {
    --primary: #3284C5;
    --primary-dark: #28699e;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #191C24;
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
/* Disable native browser smooth scroll to prevent conflict with JS */
html, body {
    scroll-behavior: auto !important;
}
/* --- GLOBAL SETTINGS --- */
body {
    overflow-x: hidden;
    font-family: 'Open Sans', sans-serif;
    color: var(--secondary);
}

h1, h2, .fw-extra-bold {
    font-weight: 800 !important;
}

h3, h4, .fw-bold {
    font-weight: 700 !important;
}

/* --- NAVBAR & UNIFIED BRANDING --- */
.navbar.sticky-top {
    top: 0 !important;
    background: #ffffff !important;
}

.brand-logo {
    height: 50px;                 
    width: auto;
    margin-right: 15px;
    image-rendering: -webkit-optimize-contrast;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;             
    letter-spacing: 1px;          
    color: #1a1c21;               
    text-transform: uppercase;    
    display: flex;
    align-items: center;
    line-height: 1;
}

.brand-suffix {
    font-weight: 800;             
    color: var(--primary);        
    margin-left: 8px;            
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    padding: 30px 15px;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* --- CAROUSEL & HERO --- */
#header-carousel .carousel-item {
    height: 85vh;
    min-height: 500px;
    background: #000;
}

#header-carousel .carousel-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45); 
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto !important;
}

.carousel-caption h1, .carousel-caption h2 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- CORE UI COMPONENTS --- */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background: var(--primary) !important;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark) !important;
}

/* Service Cards - Premium Glass Effect */
.service-item {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px !important;
    background: #fff;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(50, 132, 197, 0.15);
    border-color: var(--primary) !important;
}

.service-item i {
    transition: 0.3s ease;
}

.service-item:hover i {
    transform: scale(1.1);
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    margin-bottom: 20px;
}

.progress-bar {
    background-color: var(--primary) !important;
    border-radius: 5px;
}

/* --- FOOTER --- */
.footer {
    background: var(--dark) !important;
}

.footer .btn-square {
    width: 40px;
    height: 40px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .brand-name { font-size: 1.2rem; }
    .brand-logo { height: 40px; margin-right: 10px; }
    .carousel-caption h1 { font-size: 2.2rem; }
    #header-carousel .carousel-item { height: 70vh; }
}

/* --- SPINNER --- */
#spinner:not(.show) {
    display: none !important;
}
