/********** BAM LOGISTICS - Custom CSS **********/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rubik:wght@500;600;700&display=swap');

:root {
    --primary: #C41E24;
    --primary-dark: #9B1820;
    --secondary: #5F656F;
    --navy: #02245B;
    --navy-light: #0A3A7D;
    --light: #F5F5F5;
    --dark: #02245B;
    --darker: #0A1628;
    --gold: #D4A843;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, .h1, .h2, .fw-bold { font-weight: 700 !important; font-family: 'Rubik', sans-serif; }
h3, h4, .h3, .h4, .fw-medium { font-weight: 600 !important; }
h5, h6, .h5, .h6, .fw-semi-bold { font-weight: 500 !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Selection */
::selection { background: var(--primary); color: #fff; }

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    border: none;
    transition: .5s;
}
.back-to-top:hover { background: var(--navy) !important; }

/*** Spinner ***/
#spinner {
    opacity: 0; visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    background: var(--darker) !important;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible; opacity: 1;
}
#spinner .spinner-border { border-color: var(--primary); border-right-color: transparent; }

/*** Button ***/
.btn { transition: .4s; font-weight: 500; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,30,36,.3); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: #fff; }

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0; display: flex; align-items: center; justify-content: center; font-weight: normal;
}

/*** Topbar ***/
.topbar { background: var(--darker); }
.topbar-right {
    position: relative;
    background: var(--primary);
}
.topbar-right::before {
    position: absolute; content: ""; width: 30px; height: 100%;
    top: 0; left: -15px; transform: skewX(-30deg);
    background-color: var(--primary);
}

/* Language Toggle */
.lang-toggle {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,.1); border-radius: 20px;
    padding: 3px; margin-left: 15px; cursor: pointer;
}
.lang-toggle .lang-btn {
    padding: 3px 10px; border-radius: 16px; font-size: 12px;
    font-weight: 600; color: rgba(255,255,255,.6); border: none;
    background: transparent; cursor: pointer; transition: .3s;
    text-transform: uppercase; letter-spacing: 1px;
}
.lang-toggle .lang-btn.active {
    background: var(--primary); color: #fff;
}

/*** Navbar ***/
.navbar.sticky-top { top: -100px; transition: .5s; }
.navbar .navbar-brand {
    position: relative; padding-right: 50px; height: 75px;
    display: flex; align-items: center; background: var(--navy);
}
.navbar .navbar-brand::after {
    position: absolute; content: ""; width: 50px; height: 100%;
    top: 0; right: -25px; transform: skewX(-30deg);
    background-color: var(--navy);
}
.navbar .navbar-brand img { height: 50px; position: relative; z-index: 2; }
.navbar .navbar-nav .nav-link {
    margin-right: 30px; padding: 20px 0;
    color: var(--dark); font-size: 15px; font-weight: 600;
    outline: none; text-transform: uppercase; letter-spacing: .5px;
    position: relative;
}
.navbar .navbar-nav .nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 15px; left: 0; background: var(--primary); transition: .3s;
}
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after { width: 100%; }
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: var(--primary); }

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link { margin-right: 0; padding: 10px 0; }
    .navbar .navbar-nav { border-top: 1px solid #eee; }
    .navbar .navbar-nav .nav-link::after { display: none; }
}
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block; border: none; margin-top: 0;
        top: 150%; opacity: 0; visibility: hidden; transition: .5s;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%; visibility: visible; opacity: 1;
    }
}

/*** Hero Carousel ***/
.carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center;
    background: linear-gradient(135deg, rgba(2,36,91,.85) 0%, rgba(2,36,91,.4) 50%, rgba(196,30,36,.2) 100%);
    z-index: 1;
}
.carousel-caption .hero-badge {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 6px 20px; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px;
    border-radius: 2px;
}
.carousel-caption h1 {
    font-size: 3.2rem; line-height: 1.15; font-weight: 800 !important;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.carousel-caption p.hero-sub {
    font-size: 1.1rem; opacity: .9; max-width: 550px; line-height: 1.7;
}
.carousel-control-prev, .carousel-control-next { width: 10%; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 3.5rem; height: 3.5rem;
    background-color: var(--primary); border: 12px solid var(--primary);
    border-radius: 50%;
}
.carousel-indicators [data-bs-target] {
    width: 35px; height: 4px; background: rgba(255,255,255,.5);
    border: none; border-radius: 2px;
}
.carousel-indicators .active { background: var(--primary); width: 50px; }

@media (max-width: 768px) {
    #header-carousel .carousel-item { position: relative; min-height: 500px; }
    #header-carousel .carousel-item img {
        position: absolute; width: 100%; height: 100%; object-fit: cover;
    }
    .carousel-caption h1 { font-size: 1.8rem; }
}

/*** Section Titles ***/
.section-title {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 4px 16px; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 12px; border-radius: 2px;
}
.section-heading {
    font-size: 2.5rem; color: var(--navy); line-height: 1.2;
}
.section-heading-light { color: #fff; }

/*** About ***/
.about-img-wrapper { position: relative; }
.about-img-wrapper img { border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.about-experience-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--primary); color: #fff;
    padding: 25px; text-align: center; z-index: 2;
}
.about-experience-badge h2 { font-size: 3rem; margin: 0; line-height: 1; }
.about-experience-badge span { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.about-values .value-item {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.about-values .value-item i { color: var(--primary); font-size: 18px; }

/*** Facts ***/
.facts {
    position: relative; margin: 0; padding: 80px 0;
    background: var(--navy);
}
.facts::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/bam-10.jpeg') center/cover;
    opacity: .1;
}
.facts .border { border-color: rgba(255,255,255,.15) !important; }
.facts .counter-item { position: relative; z-index: 1; text-align: center; padding: 30px 20px; }
.facts .counter-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.facts .counter-item h1 { font-size: 3rem; color: #fff; }
.facts .counter-item span { color: rgba(255,255,255,.7); font-weight: 500; }

/*** Services ***/
.service-card {
    background: #fff; border-radius: 4px; overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,.08);
    transition: .4s; position: relative; height: 100%;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,.15); }
.service-card .service-icon {
    width: 70px; height: 70px; display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; font-size: 28px;
    position: absolute; top: 0; right: 30px; z-index: 2;
}
.service-card .service-icon::after {
    content: ''; position: absolute; bottom: -10px; left: 0;
    border-left: 35px solid transparent; border-right: 35px solid transparent;
    border-top: 10px solid var(--primary);
}
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-card .service-body { padding: 30px 25px; }
.service-card .service-body h4 { color: var(--navy); margin-bottom: 12px; font-size: 1.15rem; }
.service-card .service-body p { color: var(--secondary); font-size: .9rem; line-height: 1.7; }
.service-card .service-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: .85rem;
    text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
    transition: .3s;
}
.service-card .service-link:hover { gap: 12px; }

/*** Equipment Gallery ***/
.equipment-section { background: var(--light); }
.equipment-item {
    position: relative; overflow: hidden; border-radius: 4px;
    margin-bottom: 24px;
}
.equipment-item img {
    width: 100%; height: 280px; object-fit: cover;
    transition: .5s;
}
.equipment-item:hover img { transform: scale(1.05); }
.equipment-item .equipment-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(2,36,91,.9));
    padding: 30px 20px 20px; color: #fff;
    transform: translateY(20px); opacity: 0; transition: .4s;
}
.equipment-item:hover .equipment-overlay { transform: translateY(0); opacity: 1; }
.equipment-item .equipment-overlay h5 { font-size: 1rem; margin-bottom: 4px; }
.equipment-item .equipment-overlay span { font-size: .8rem; opacity: .8; }
/* Always visible label */
.equipment-item .equipment-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(2,36,91,.7));
    padding: 20px 15px 12px; color: #fff; transition: .4s;
}
.equipment-item:hover .equipment-label { opacity: 0; }

/*** Automotive ***/
.auto-card {
    background: #fff; border-radius: 4px; overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,.08); transition: .4s;
}
.auto-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,.12); }
.auto-card img { width: 100%; height: 220px; object-fit: cover; }
.auto-card .auto-body { padding: 20px; }
.auto-card .auto-body h5 { color: var(--navy); margin-bottom: 8px; }
.auto-card .auto-body p { color: var(--secondary); font-size: .85rem; }

/*** Projects ***/
.projects-section { background: var(--darker); }
.project-item { position: relative; display: block; overflow: hidden; border-radius: 4px; }
.project-item img { width: 100%; height: 300px; object-fit: cover; transition: .6s; }
.project-item:hover img { transform: scale(1.08); }
.project-item .project-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent 40%, rgba(2,36,91,.9));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 25px; color: #fff; transition: .4s;
}
.project-item:hover .project-overlay { background: linear-gradient(transparent 20%, rgba(196,30,36,.85)); }
.project-item .project-overlay .project-tag {
    display: inline-block; background: var(--primary); padding: 3px 12px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 8px; border-radius: 2px;
    width: fit-content;
}
.project-item .project-overlay h5 { font-size: 1.1rem; margin-bottom: 4px; }
.project-item .project-overlay span { font-size: .8rem; opacity: .7; }

/*** Global Network ***/
.network-section { background: #fff; }
.network-card {
    text-align: center; padding: 40px 30px;
    border: 1px solid rgba(2,36,91,.08); border-radius: 4px;
    transition: .4s; height: 100%;
}
.network-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.network-card .network-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 32px; color: #fff;
}
.network-card h4 { color: var(--navy); margin-bottom: 10px; font-size: 1.1rem; }
.network-card p { color: var(--secondary); font-size: .85rem; line-height: 1.7; }
.network-card .network-flag { font-size: 2rem; margin-bottom: 10px; display: block; }

/*** Contact ***/
.contact-section { background: var(--light); }
.contact-info-card {
    background: var(--navy); color: #fff; padding: 40px;
    border-radius: 4px; height: 100%;
}
.contact-info-card h3 { margin-bottom: 30px; }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px;
}
.contact-info-item .icon {
    width: 45px; height: 45px; min-width: 45px;
    background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.contact-info-item h6 { margin-bottom: 4px; }
.contact-info-item span { opacity: .8; font-size: .9rem; }
.contact-form {
    background: #fff; padding: 40px; border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0,0,0,.08); height: 100%;
}
.contact-form .form-control {
    border: 1px solid #e0e0e0; border-radius: 4px;
    padding: 12px 16px; font-size: .9rem;
}
.contact-form .form-control:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(196,30,36,.1);
}

/*** Footer ***/
.footer {
    background: var(--darker); color: #B0B9AE; padding-top: 80px;
}
.footer h5 { color: #fff; margin-bottom: 25px; font-size: 1.1rem; }
.footer .footer-brand img { height: 45px; margin-bottom: 15px; }
.footer .footer-about p { font-size: .85rem; line-height: 1.7; }
.footer .btn.btn-link {
    display: block; margin-bottom: 8px; padding: 0;
    text-align: left; color: #B0B9AE; font-weight: normal;
    text-transform: capitalize; transition: .3s; text-decoration: none;
    font-size: .9rem;
}
.footer .btn.btn-link::before {
    position: relative; content: "\f105"; font-family: "Font Awesome 5 Free";
    font-weight: 900; margin-right: 10px;
}
.footer .btn.btn-link:hover { color: var(--primary); letter-spacing: 1px; box-shadow: none; }
.footer .legal-info {
    background: rgba(255,255,255,.05); padding: 15px 20px;
    border-radius: 4px; margin-top: 15px; font-size: .8rem;
}
.copyright {
    color: #B0B9AE; border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0; margin-top: 60px;
}
.copyright a { color: var(--primary); text-decoration: none; }

/*** WhatsApp Floating Button ***/
.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    text-decoration: none; transition: .3s;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1); color: #fff;
    box-shadow: 0 6px 30px rgba(37,211,102,.6);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,.7), 0 0 0 10px rgba(37,211,102,.1); }
}

/*** CTA Banner ***/
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 60px 0; position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 400px; height: 400px; border-radius: 50%;
    background: var(--primary); opacity: .1;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.8); }

/*** Animations ***/
.fade-up { opacity: 0; transform: translateY(30px); transition: .8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-30px); transition: .8s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(30px); transition: .8s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* Red accent line */
.accent-line {
    width: 50px; height: 3px; background: var(--primary);
    margin-bottom: 20px;
}
.accent-line-center { margin-left: auto; margin-right: auto; }

/* Divider */
.section-divider {
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--primary), var(--navy));
}

/*** Responsive ***/
@media (max-width: 576px) {
    .section-heading { font-size: 1.8rem; }
    .contact-info-card, .contact-form { padding: 25px; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 22px; bottom: 20px; left: 20px; }
}

/*** Page Header ***/
.page-header {
    background: linear-gradient(rgba(2, 36, 91, .85), rgba(2, 36, 91, .85)), url(../img/bam-5.jpeg) center center no-repeat;
    background-size: cover;
    padding: 100px 0;
    margin-bottom: 50px;
}
.page-header h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
