/* =========================
   GLOBAL
========================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    padding-top: 80px; /* for fixed navbar */
}

a {
    text-decoration: none;
}

/* =========================
   HEADER / NAVBAR
========================= */
.main-navbar {
    background: linear-gradient(120deg, #0d6efd, #001f3f);
    padding: 14px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 9999;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

.main-navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #ffc107 !important;
}

/* underline animation */
.main-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #ffc107;
    transition: 0.3s;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 100%;
}

/* Mobile menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(120deg, #0d6efd, #001f3f);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
}

/* =========================
   HERO SECTIONS
========================= */
.hero-advanced,
.contact-hero {
    background: linear-gradient(120deg, #0d6efd, #001f3f);
    padding: 80px 0;
    color: #ffffff;
}

.hero-img {
    max-height: 350px;
}

/* =========================
   SERVICES
========================= */
.service-box {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.service-box i {
    font-size: 40px;
    color: #0d6efd;
    margin-bottom: 15px;
}

.service-box:hover {
    transform: translateY(-8px);
}

/* =========================
   FEATURES
========================= */
.features-section {
    background: #f5f7fa;
    padding: 60px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    font-size: 18px;
}

.feature-list li {
    margin-bottom: 10px;
}

/* =========================
   TRUST SECTION
========================= */
.trust-box {
    background: #0d6efd;
    color: #ffffff;
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

/* =========================
   CTA SECTION
========================= */
.cta-section {
    background: linear-gradient(to right, #001f3f, #0d6efd);
    padding: 60px 0;
    color: #ffffff;
    text-align: center;
}

/* =========================
   CONTACT PAGE
========================= */
.contact-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
}

.contact-item .icon {
    width: 45px;
    height: 45px;
    background: #0d6efd;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item .text small {
    color: #6c757d;
    font-size: 13px;
    display: block;
}

.contact-item .text div {
    font-weight: 500;
}

.map-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.map-card iframe {
    width: 100%;
    min-height: 100%;
    border: 0;
}

/* =========================
   STORE PAGE ONLY
========================= */
.store-header-spacer {
    height: 80px;
    background: linear-gradient(120deg, #0d6efd, #001f3f);
}

.store-page {
    background-color: #ffffff;
    min-height: 100vh;
}

.card {
    border: none;
    border-radius: 6px;
}

.card img {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #001f3f;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
}

/* =========================
   PROJECT SLIDER (HOME)
========================= */
.projects-slider-section {
    background: #f8f9fa;
    padding: 90px 0;
}

.project-slide-img {
    height: 520px;           /* ✅ INCREASED HEIGHT */
    object-fit: cover;
    border-radius: 16px;
}

.carousel-caption {
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
    padding: 12px 18px;
}

.carousel-caption h5 {
    margin: 0;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .project-slide-img {
        height: 300px;       /* mobile height */
        border-radius: 12px;
    }
}
/* ===== FORCE SLIDER HEIGHT (FINAL OVERRIDE) ===== */
.projects-slider-section .project-slide-img {
    height: 520px !important;
    min-height: 520px !important;
    object-fit: cover !important;
}
@media (max-width: 768px) {
    .projects-slider-section .project-slide-img {
        height: 300px !important;
        min-height: 300px !important;
    }
}
.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
}

.thumb-img.active-thumb {
    border: 2px solid #0d6efd;
}
.popup-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
}



.popup-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    background: #fff;
}

.popup-thumb:hover {
    border-color: #0d6efd;
}

.popup-thumb.active-thumb {
    border: 2px solid #0d6efd;
}

/* ===== BLUE CAROUSEL ARROWS (HOME PRODUCTS SLIDER) ===== */
#productsCarousel .carousel-control-prev-icon,
#productsCarousel .carousel-control-next-icon {
    background-color: #0d6efd;   /* Bootstrap blue */
    border-radius: 50%;
    background-size: 60% 60%;
    width: 45px;
    height: 45px;
}

/* Optional: add subtle shadow */
#productsCarousel .carousel-control-prev-icon,
#productsCarousel .carousel-control-next-icon {
    box-shadow: 0 4px 12px rgba(13,110,253,0.35);
}
/* =========================
   MOBILE FIX – PRODUCTS SLIDER
========================= */
@media (max-width: 768px) {

    /* Reduce image height */
    #productsCarousel .card-img-top {
        height: 160px !important;
    }

    /* Reduce card padding */
    #productsCarousel .card-body {
        padding: 10px;
    }

    /* Smaller text */
    #productsCarousel h6 {
        font-size: 14px;
    }

    #productsCarousel .text-primary {
        font-size: 14px;
    }

    /* Buttons full width & smaller */
    #productsCarousel .btn {
        font-size: 13px;
        padding: 6px;
    }

    /* Force single product per row */
    #productsCarousel .col-md-3,
    #productsCarousel .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Move arrows inside safely */
    #productsCarousel .carousel-control-prev {
        left: 5px;
    }

    #productsCarousel .carousel-control-next {
        right: 5px;
    }

    /* Smaller arrows */
    #productsCarousel .carousel-control-prev::after,
    #productsCarousel .carousel-control-next::after {
        width: 38px;
        height: 38px;
    }

    #productsCarousel .carousel-control-prev::before,
    #productsCarousel .carousel-control-next::before {
        font-size: 18px;
    }
}
/* =================================================
   GLOBAL MOBILE UX IMPROVEMENTS (ALL PAGES)
================================================= */
@media (max-width: 768px) {

    /* General spacing */
    body {
        padding-top: 70px;
    }

    section {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Headings scale down */
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }

    p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Buttons easier to tap */
    .btn {
        min-height: 44px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Cards */
    .card {
        border-radius: 12px;
    }

    .card-body {
        padding: 12px;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 16px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
        font-size: 15px;
    }

    /* Prevent horizontal scroll bugs */
    html, body {
        overflow-x: hidden;
    }

    /* Forms */
    input, textarea, select {
        font-size: 14px;
        padding: 10px;
    }

    /* Footer */
    footer {
        font-size: 13px;
        padding: 12px 8px;
    }
}
@media (max-width: 768px) {

    .store-header-spacer {
        height: 60px;
    }

    .store-page .card-img-top {
        height: 180px;
    }

    .store-page .badge {
        font-size: 12px;
    }
}
@media (max-width: 768px) {

    #productModal .modal-dialog {
        margin: 10px;
    }

    #popupMainImage {
        height: 220px !important;
        object-fit: cover;
    }

    .popup-thumb {
        width: 50px;
        height: 50px;
    }
}
@media (max-width: 768px) {

    /* Home products slider */
    #productsCarousel .card-img-top {
        height: 160px !important;
    }

    /* Project slider */
    .project-slide-img {
        height: 260px !important;
    }

    /* Carousel dots spacing */
    .carousel-indicators {
        bottom: -25px;
    }
}
/* Smooth mobile scrolling */
html {
    scroll-behavior: smooth;
}

/* Improve tap accuracy */
a, button {
    touch-action: manipulation;
}
/* =====================================
   STORE PAGE CATEGORY MOBILE FIX
===================================== */
@media (max-width: 768px) {

    /* Category button container */
    .store-category-bar {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding: 10px 0;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar (clean look) */
    .store-category-bar::-webkit-scrollbar {
        display: none;
    }

    .store-category-bar {
        scrollbar-width: none;
    }

    /* Category buttons */
    .store-category-bar .btn {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 6px 14px;
        border-radius: 20px;
        white-space: nowrap;
    }
}



