﻿body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f5f5 !important;
}

h2, h1, h3 {
    font-family: 'Montserrat', sans-serif !important;
}
 h1, h2, h3, h4, h5, h6 {
            font-family: 'Poppins', sans-serif;
        }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



        /* Navbar Container */
        .navbar {
            position: fixed !important;
            top: 0;
            width: 100%;
            color: white;
            z-index: 999;
            transition: top 0.4s ease;
            background: transparent;
        }

            .navbar.scrolled {
                background: rgba(0,0,0,0.85);
                backdrop-filter: blur(5px);
            }

        header {
            transition: all 0.3s ease !important;
        }

            header.hide {
                transform: translateY(-100%);
            }

            header.bg-active {
                background: rgba(0,0,0,0.7);
                backdrop-filter: blur(5px);
            }

        /* Logo */
        .logo img {
            max-width: 68px;
            border-radius: 50%;
        }

        .logo a {
            color: black;
            font-size: 1.5rem;
            font-weight: bold;
            text-decoration: none;
            letter-spacing: 1px;
        }

        /* Menu Links */
        .nav-menu ul {
            list-style: none;
            display: flex;
            gap: 30px;
            margin-bottom: 0;
        }

        .nav-menu a {
            color: white;
            text-decoration: none;
            font-size: 1rem;
            background-color: transparent;
            border: 1px solid transparent;
            border-radius: 5px;
            padding: 8px;
            transition: color 0.3s ease;
            font-weight: 500;
        }

            .nav-menu a:hover {
                border: 1px solid #8cb5f5;
                box-shadow: 0 0 3px #8cb5f5, 0 0 3px #8cb5f5;
            }

            .nav-menu a.active {
            }

        /* Button */
        .btn-primary {
            background: black;
            color: #004aad;
            padding: 8px 16px;
            border-radius: 25px;
            font-weight: 600;
            text-decoration: none;
            transition: background 0.3s ease;
        }

            .btn-primary:hover {
                background: #fff;
            }

        /* Mobile Menu Toggle */
        .menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
        }

            .menu-toggle span {
                width: 25px;
                height: 3px;
                background: white;
                transition: 0.3s;
            }

        .rightside {
            display: flex;
            column-gap: 30px;
            align-items: center;
        }

            .rightside a {
                font-weight: 400;
                letter-spacing: 0.5px;
            }

        .dropdown {
            position: relative;
        }

        .dropdown-menu {
            display: none !important;
            position: absolute;
            top: 130%;
            left: 0;
            background: black;
            min-width: 250px !important;
            border-radius: 6px;
            overflow: hidden;
            z-index: 10;
            padding: 0 0 !important;
        }

            .dropdown-menu li:last-child {
                border-bottom: none;
            }

            .dropdown-menu a {
                display: block;
                padding: 5px 14px;
                color: #fff;
            }

                .dropdown-menu a:hover {
                }

        /* Hover dropdown on desktop */
        .dropdown:hover .dropdown-menu {
            display: block !important;
        }

        /* Responsive Styles */
        @media (max-width: 768px) {

            .containerr {
                height: 50px;
            }

            .navbar {
            }

            .nav-menu {
                position: fixed;
                top: 70px;
                right: 0;
                flex-direction: column;
                width: 50%;
                height: 100vh;
                padding: 20px;
                background-color: black;
                border-radius: 15px;
                transform: translateX(100%);
                transition: transform 350ms cubic-bezier(.2,.8,.2,1);
                will-change: transform;
                z-index: 999;
            }

                .nav-menu .active {
                    color: #ffd633 !important;
                }

                .nav-menu a {
                    color: white;
                }

                .nav-menu ul {
                    flex-direction: column;
                    gap: 20px;
                }

                .nav-menu.show {
                    transform: translateX(0);
                }

            .hero-text {
                text-align: center;
                position: relative;
                top: 13%;
                padding: 80px 20px !important;
            }

                .hero-text p {
                    font-size: 1rem;
                    margin-: 20px 0;
                }

            .hero-logo {
                position: relative;
                top: 5%;
            }

            .hero-text h1 {
                font-size: 3rem !important;
                margin-bottom: 10px;
            }

            .butn {
                display: none !important;
            }

            .menu-toggle {
                display: flex;
            }

            .rightside ul {
                padding-left: 0 !important;
            }

            .rightside {
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 15px;
            }

            .btn-primary {
                background: #fff;
                color: black !important;
            }

            .rightside ul {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: flex-start;
            }
        }

        .footer-section a:hover {
            color: #ffd633;
            text-decoration: underline;
        }

        .footer-section ul li {
            margin-bottom: 10px;
        }

        .footer-section hr {
            opacity: 0.2;
        }

        .social-icons a {
            display: inline-block;
            margin-right: 10px;
            color: #fff;
            font-size: 18px;
            transition: 0.3s;
        }

            .social-icons a:hover {
                color: #bcbcf4;
            }

        .social-icons1 a {
            display: none;
            margin-right: 10px;
            color: #fff;
            font-size: 18px;
            transition: 0.3s;
        }

            .social-icons1 a:hover {
                color: #bcbcf4;
            }

        .but {
            background-color: white  !important;
            padding: 7px !important;
            border-radius: 5px !important;
            border: 1px solid transparent !important;
        }

            .but:hover {
                background-color: transparent !important;
                border: 1px solid #fa9ffa !important;
                box-shadow: 0 0 3px #fa9ffa, 0 0 3px #fa9ffa !important;
                color: #fff !important;
            }

                .but:hover a {
                    color: #fff !important;
                }

            .but a {
                text-decoration: none;
                color: black;
            }

        @media(max-width:768px) {
            .foot-content {
                text-align: center;
            }
        }
        /* ======== TABLET VIEW: Clean Alignment ======== */
        @media (min-width: 769px) and (max-width: 1024px) {

            .footer-section {
                padding: 50px 40px;
            }

            /* Adjust Row Layout */
            .foot-content {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                align-items: flex-start;
                gap: 35px 25px;
            }

                /* Each Column Adjusted Width */
                .foot-content > div {
                    flex: 0 0 45%;
                    max-width: 45%;
                }

            /* Logo Section */
            .footer-section .logo img {
                width: 120px;
                height: auto;
                margin-bottom: 12px;
            }

            .footer-section p {
                font-size: 0.95rem;
                line-height: 1.6;
                margin-bottom: 12px;
            }

            /* Quick Links & Contact Us Headings */
            .footer-section h5 {
                font-size: 1.05rem;
                margin-bottom: 15px;
            }

            .footer-section ul {
                padding-left: 0;
                margin-bottom: 0;
            }

                .footer-section ul li {
                    font-size: 0.95rem;
                    margin-bottom: 8px;
                    line-height: 1.5;
                }

            .social-icons a {
                display: none;
                margin-right: 10px;
                color: #fff;
                font-size: 18px;
                transition: 0.3s;
            }

            /* Social Icons Neatly Arranged */
            .social-icons1 {
                display: flex;
                gap: 12px;
                margin-top: 15px;
                flex-wrap: wrap;
            }

                .social-icons1 a {
                    display: inline-block;
                }

            /* Map Alignment */
            .footer-section iframe {
                width: 100%;
                height: 120px;
                border-radius: 10px;
                display: block;
            }

            /* Divider & Bottom Text */
            .footer-section hr {
                margin: 40px 0 20px;
            }

            .footer-section .text-center p {
                font-size: 0.9rem;
                margin-top: 10px;
            }
        }
        /* ======== TABLET RESPONSIVE HEADER ======== */
        @media (min-width: 769px) and (max-width: 1024px) {

            /* Navbar Container */
            .navbar {
                height: 80px;
                background: rgba(0, 0, 0, 0.8);
                backdrop-filter: blur(8px);
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .containerr {
                max-width: 95%;
                margin: 0 auto;
                height: 80px;
                padding: 0 35px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 25px;
            }

            /* Logo */
            .logo img {
                width: 60px;
                height: 60px;
                object-fit: cover;
                border-radius: 50%;
            }

            .logo a {
                color: #fff;
                font-size: 1.4rem;
                font-weight: 700;
                text-decoration: none;
                letter-spacing: 0.5px;
            }

            /* Navigation Menu */
            .nav-menu {
                flex: 1;
                display: flex;
                justify-content: center;
                align-items: center;
                background: transparent;
                transform: none;
                position: static;
                width: auto;
                height: auto;
                padding: 0;
            }

                .nav-menu ul {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 25px;
                    margin: 0;
                    padding: 0;
                    list-style: none;
                }

                .nav-menu a {
                    color: #fff;
                    font-size: 0.9rem;
                    font-weight: 500;
                    text-decoration: none;
                    padding: 6px 10px;
                    border-radius: 4px;
                    transition: all 0.3s ease;
                }


            /* Right-Side (Shop Now Button) */
            .butn {
                display: flex;
                align-items: center;
            }

                .butn a {
                    border-radius: 25px;
                    font-weight: 500;
                    text-decoration: none;
                    transition: all 0.3s ease;
                    white-space: nowrap;
                    font-size: 13px;
                }

            /* Rightside Alignment */
            .rightside {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 25px;
            }

                .rightside ul {
                    display: flex;
                    align-items: center;
                    gap: 25px;
                    margin: 0;
                    padding: 0;
                    list-style: none;
                }

            /* Dropdown Adjustments */
            .dropdown-menu {
                top: 120%;
                background: #000;
                border-radius: 6px;
                min-width: 220px !important;
                padding: 0;
                z-index: 1000;
            }

                .dropdown-menu a {
                    padding: 8px 14px;
                    display: block;
                    color: #fff;
                    transition: background 0.3s ease;
                }

                    .dropdown-menu a:hover {
                        background: rgba(140, 181, 245, 0.15);
                    }

            /* Hide Toggle in Tablet View */
            .menu-toggle {
                display: none !important;
            }

            /* Scroll Effect on Tablet */
            header.scrolled {
                background: rgba(0, 0, 0, 0.9);
                height: 70px;
                box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
                transition: all 0.3s ease;
            }

            /* Maintain Perfect Alignment */
            header .containerr {
                justify-content: space-between;
                align-items: center;
            }
        }




.hero {
    position: relative;
    width: 100%;
}

    .hero img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        display: block;
    }

.hero-text {
    position: relative;
    top: 20%;
    color: #fff;
    z-index: 2;
    padding: 100px 40px !important;
	align-content: center;
}

.hero-logo {
    position: relative;
    top: 20%;
    color: #fff;
    z-index: 2;
    padding: 100px 40px !important;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-: 20px 0;
}

.companies {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    
  position: relative;
}


.companies img {
  width: 200px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  backface-visibility: hidden;
  transform: translateZ(0);
}


.hero-img {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6),rgba(0,0,0,0.6)), url('/Html/img/homeimg.png') no-repeat center/cover;
    width: 100%;
}


.row {
    margin: 0 !important;
}

.hero-logo {
    z-index: 5;
}

.logo-slider-wrapper {
    width: 70%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-left: 1px solid #fa9ffa;
}

.logo-slider {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

    .logo-slider img {
        min-width: 100%;
        width: 70%;
        height: 70%;
        cursor: pointer; /* visually shows they are clickable */
    }

.sub-companies {
    background-color: #fff;
    padding: 50px 0;
}
/* ======== TABLET RESPONSIVE HERO SECTION ======== */
@media (min-width: 720px) and (max-width: 1024px) {

  /* Hero container covers header area */
  .hero {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  /* Hero background fills behind header */
  .hero-img {
    height: 110vh; /* slightly taller to balance header overlay */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6),rgba(0,0,0,0.6)), 
                url('/Html/img/homeimg.png') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  /* Center row with text + logo side by side */
  .hero-content .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 !important;
    height: 100%;
    padding: 100px 5%;
  }

  /* Left text area */
  .hero-text {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 30px 0px !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    top: 0;
    text-align: left;
  }

  .hero-text h1 {
    font-size: 2rem !important;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
  }

  .hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f3f3f3;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    max-width: 90%;
  }

  /* Right logo area */
  .hero-logo {
    flex: 0 0 45%;
    max-width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
  }

  .logo-slider-wrapper {
    width: 100%;
    height: 70%;
    margin: auto;
    overflow: hidden;
    position: relative;
    border-left: 2px solid #fa9ffa;
  }

  /* Scrolling logo slider */
  .logo-slider {
    display: flex;
    transition: transform 0.8s ease-in-out;
    align-items: center;
    height: 100%;
  }

  .logo-slider img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .logo-slider img:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }

  /* Animation for smooth one-by-one scrolling */
  

  /* Add subtle bottom fade effect for polish */
  .hero-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
    z-index: 1;
  }

  /* Ensure text and logos stay above overlay */
  .hero-text,
  .hero-logo {
    z-index: 2;
  }
}
/* ======== TABLET RESPONSIVE ======== */
@media (min-width: 700px) and (max-width: 1024px) {
  .sub-companies {
    padding: 40px 0;
  }

  .sub-companies h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
  }

  .companies {
    overflow: hidden;
    width: 100%;
    padding: 15px 0;
  }

  

  .companies img {
    width: 120px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .companies img:hover {
    transform: scale(1.05);
  }
}

/* ======== MOBILE RESPONSIVE ======== */
@media (max-width: 740px) {
  .sub-companies {
    padding: 35px 0;
  }

  .sub-companies h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .companies {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
  }

  

  .companies img {
    width: 90px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .companies img:hover {
    transform: scale(1.04);
  }

  /* Make sure logos don’t get cut off */
  .companies img:first-child {
    margin-left: 5px;
  }
}

/* ======== SMALL MOBILE (EXTRA SAFE) ======== */
@media (max-width: 480px) {
  .sub-companies {
    padding: 30px 0;
  }

  .sub-companies h2 {
    font-size: 1.4rem;
  }

  

  .companies img {
    width: 110px;
  }
 

}
/* ===============================
   TRUE CONTINUOUS INFINITE SCROLL
   =============================== */

/* ===============================
   ULTRA SMOOTH CONTINUOUS SCROLL
   =============================== */

.companies {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.scroll-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: smooth-scroll 45s linear infinite;
  transform: translate3d(0, 0, 0); /* GPU FORCE */
  column-gap: 30px;
}

/* TRUE infinite loop */
@keyframes smooth-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}



/* Default running animation */
.scroll-track {
  animation-play-state: running;
}

.companies img:hover {
  transform: scale(1.08);
}

/* Pause animation when hovering any image */
.companies img:hover {
  animation-play-state: paused;
}

.companies:hover .scroll-track {
  animation-play-state: paused;
}


/* Also pause when hovering directly on a logo (extra safety) */
.companies img:hover ~ .scroll-track,
.companies img:hover {
  cursor: pointer;
}

/* Single-line description */
.about {
    background: linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)), url('/Html/img/bag2.jpg') no-repeat center/cover;
    color: white !important;
    padding: 40px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Container */
.cards-section {
    padding: 48px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

/* Card */
.card {
    background: #00000080 !important;
    border-radius: 12px;
    padding: 28px 22px;
    box-shadow: 0 6px 18px rgba(20,30,50,0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    /* Hover lift */
    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(20,30,50,0.09);
    }

/* Title */
.card-title {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    color: #fff !important;
    font-weight: 600;
    line-height: 1.1;
}

/* Single-line description */
.card-text {
    margin: 0;
    color: #dad8d8;
    font-size: 0.95rem;
    line-height: 1.35;
    max-width: 40ch;
}

/* Small screens tweak */
@media (max-width: 480px) {
    .cards-section {
        padding: 28px 12px;
    }

    .card {
        padding: 20px;
        min-height: 120px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.9rem;
        max-width: none;
    }
}
.card-center-img {
  width: 200px;
  height: auto;
  margin: 10px auto 14px;   /* fills the empty vertical gap */
  display: block;

  opacity: 0.85;

  /* subtle glow for dark cards */
  filter: drop-shadow(0 6px 16px rgba(255, 255, 255, 0.15));

  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Slight emphasis on hover */
.cards:hover .card-center-img {
  transform: scale(1.08);
  opacity: 1;
}

/* Tablet view */
@media (max-width: 992px) {
  .card-center-img {
    width: 170px;
    margin: 8px auto 12px;
    display: block;
  }
  
}

/* Mobile view */
@media (max-width: 576px) {
  .card-center-img {
    width: 150px;
    margin: 6px auto 10px;
    display: block;
  }
}
/* ================= DESKTOP SAFETY LAYOUT ================= */
@media (min-width: 1200px) {

  /* Prevent container from ever exceeding viewport */
  .service-sec,
  .service-sec .container-fluid,
  .service-sec .sub-content {
    max-width: 100vw;
    overflow-x: visible;
    box-sizing: border-box;
  }

  /* Ensure left + right columns never push width */
  .sub-content {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .left-sub {
    max-width: 22%;
    flex: 0 0 22%;
  }

  .right-sub {
    max-width: 78%;
    flex: 0 0 78%;
  }

  /* PERFECT 5-CARD GRID — NO OVERFLOW EVER */
  .right-sub {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
  }

  /* CARD CONTAINMENT */
  .cards {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;

    padding: 16px 14px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: visible; /* content fits naturally */
  }

  /* ICON + HEADING SAFE SCALE */
  .cards i {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }

  .cards h5 {
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 6px;
    word-break: break-word;
  }

  /* IMAGE NEVER CAUSES WIDTH PUSH */
  .card-center-img {
    max-width: 140px;
    width: 100%;
    height: auto;
    margin: 8px auto 10px;
    object-fit: contain;
    display: block;
  }

  /* TEXT NEVER OVERFLOWS */
  .cards p {
    font-size: 0.82rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 0;
  }

  /* FINAL SAFETY — NOTHING CAN PUSH GRID */
  .cards *,
  .right-sub * {
    min-width: 0;
    max-width: 100%;
  }
}
/* ================= DESKTOP & TABLET FIX ================= */
@media (min-width: 768px) {

  /* REMOVE VW-BASED ROW HEIGHTS (MAIN PROBLEM) */
  .right-sub {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: auto;           /* IMPORTANT */
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
  }

  /* HARD-CONTAIN EACH CARD */
  .cards {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    height: 100%;                  /* card fills grid cell */
    max-height: 100%;              /* prevents overflow */
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 16px 14px;
  }

  /* PREVENT ANY CHILD FROM PUSHING WIDTH */
  .cards * {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* IMAGE STRICTLY CONTAINED */
  .card-center-img {
    max-width: 140px;
    width: 100%;
    height: auto;
    margin: 8px auto 10px;
    object-fit: contain;
    flex-shrink: 0;
  }

  /* TEXT NEVER OVERFLOWS CARD */
  .cards p {
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 0;
  }

  .cards h5 {
    font-size: 1rem;
    line-height: 1.3;
    word-break: break-word;
  }
}
@media (min-width: 768px) and (max-width: 1100px) {

  .right-sub {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ================= CARD OVERFLOW FIX (GLOBAL) ================= */

/* Grid must size rows by content, not viewport */
.right-sub {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: auto;              /* CRITICAL FIX */
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Card must grow with content */
.cards {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;       /* NOT space-between */
  padding: 14px;

  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;                      /* CRITICAL */
  box-sizing: border-box;
}

/* Ensure nothing inside pushes card height/width */
.cards * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Headings stay inside card */
.cards h5 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 6px 0;
  word-break: break-word;
}

/* Text NEVER overflows card */
.cards p {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Image never causes overflow */
.card-center-img {
  max-width: 140px;
  width: 100%;
  height: auto;
  margin: 8px auto 10px;
  object-fit: contain;
  flex-shrink: 0;
}

/*Boxes Section*/
.top-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 26.5vw;
    gap: 15px;
}

.box {
    position: relative;
    overflow: hidden;
}

    .box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(60%);
    }

.box2 {
    grid-column: span 2;
    background-color: #99b5d43b;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

    .box2 img {
        width: 100%;
        filter: brightness(90%);
        transition: transform 0.5s ease;
        transform-origin: left;
    }

    .box2:hover img {
        transform: translateX(-50%);
    }

.box-text {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    padding: 0 25px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease-out;
    border-left: 2px solid white;
}

.box:hover .box-text {
    bottom: 3%;
}

.box-text {
    font-family: lato;
    font-size: 14px;
    font-weight: 300;
}

.box3 img {
    filter: brightness(80%);
}

.box2 .box-text {
    color: #222;
    width: 50%;
    position: absolute;
    bottom: 15%;
    right: 0 !important;
    left: unset;
    font-size: 14px;
    line-height: 1.5;
    bottom: 10%;
    font-weight: 300;
    transform: translateY(150%);
    transition: 0.4s ease-out;
}

.box2:hover .box-text {
    transform: translateY(0);
    bottom: 15%;
}

@media(max-width:768px) {
    .box2 {
        grid-column: unset;
    }

    .top-box {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 60.5vw;
        gap: 15px;
    }

    .box2 img {
        filter: brightness(70%);
    }

    .box2:hover img {
        transform: none;
    }

    .box2 .box-text {
        position: absolute;
        bottom: 10%;
        left: 0;
        width: 100%;
        padding: 0 25px;
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        transform: none;
        transition: 0.2s ease-out;
        border-left: 2px solid white;
    }

    .box2 ul {
        margin-bottom: 0 !important;
    }

    .box2:hover .box-text {
        bottom: 3%;
    }
}

/*Shop section*/
.shop-content {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url('../img/shop.jpg') no-repeat center/cover;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 40vw;
}

.left-shop {
    color: white;
    padding: 30px;
    width: 60%;
}

.right-shop {
    width: 50%;
    padding: 20px;
    color: white;
    border-left: 2px solid white;
    margin-bottom: 15px;
}

.contact-sec {
    margin: 30px 0;
    background-color: #fff;
    padding: 30px;
}

.content-box {
    text-align: center;
}

    .content-box .but {
        background-color: black  !important;
        color: white !important;
    }

        .content-box .but a {
            color: white !important;
        }
        .content-box .but:hover{
            background-color: transparent !important;
  border: 1px solid #fa9ffa !important;
  box-shadow: 0 0 3px #fa9ffa, 0 0 3px #fa9ffa !important;
  color: #000 !important;
        }
        .content-box .but:hover a {
            color: black !important;
        }

@media(max-width:768px) {
    .shop-content {
        height: 65vw;
    }

    .left-shop {
        color: white;
        padding: 15px;
        width: 40%;
    }

        .left-shop h2 {
            font-size: 1rem;
        }

    .right-shop h2 {
        font-size: 1rem;
    }

    .right-shop {
        width: 60%;
        padding: 10px;
        color: white;
        border-left: 1px solid white;
        margin-bottom: 15px;
    }

        .right-shop p {
            font-size: 12px;
        }

        .right-shop .but {
            font-size: 12px;
            padding: 4px;
        }
}

/*Companies page section*/
.top-boox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 26.5vw;
    gap: 15px;
}

.boox {
    position: relative;
    overflow: hidden;
}

.boox1 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url('/Html/img/bag7.jpg') no-repeat center/cover;
}

.boox2 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url('/Html/img/bag8.jpg') no-repeat center/cover;
}

.boox3 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/Html/img/bag9.jpg') no-repeat center/cover;
}

.boox4 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/Html/img/bag10.jpeg') no-repeat center/cover;
}

.boox6 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/Html/img/bag11.jpg') no-repeat center/cover;
}

.boox5 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/Html/img/bag12.png') no-repeat center/cover;
}

.boox7 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/Html/img/bag13.jpg') no-repeat center/cover;
}

.boox8 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/Html/img/bag14.jpeg') no-repeat center/cover;
}

.boox9 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/Html/img/bag15.png') no-repeat center/cover;
}

.boox10 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/Html/img/bag16.png') no-repeat center/cover;
}
.boox11 {
    background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.4)), url('/Html/img/bag17.png') no-repeat center/cover;
}
.boox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    overflow: hidden;
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease;
    transform-origin: left;
}

.boox:hover img {
    transform: translateX(-100%);
}

/* TEXT STYLE */
.boox-text {
    font-family: lato;
    font-size: 14px;
    font-weight: 300;
}

.boox-text {
    color: #fff;
    width: 90%;
    position: absolute;
    bottom: 15%;
    right: 0 !important;
    left: unset;
    font-size: 14px;
    padding: 15px 10px;
    line-height: 1.5;
    bottom: 10%;
    font-weight: 300;
    transform: translateY(115%);
    transition: 0.4s ease-out;
    border-left: 2px solid #e39705;
}
/* HOVER EFFECT */

.boox:hover .boox-text {
    transform: translateY(0);
    bottom: 15%;
}

/* Tablet: 769px–1024px (if you use this) */
/* Your existing tab code can stay above or elsewhere */


/* 📱 Normal Mobile: 481px–768px */
@media (max-width: 768px) and (min-width: 481px) {
    .top-boox {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 20.5vw;
        gap: 15px;
    }

    .boox:hover .boox-text {
        transform: translateY(0);
        bottom: 0%;
        font-size: 11px;
    }
}

/* 📱 Small Mobile: 0–480px */
@media (max-width: 480px) {
    .top-boox {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 34vw; /* a bit taller for small screens */
        gap: 10px;
    }

    /* Better to always show text or slide it in without hover */
    .boox .boox-text {
        font-size: 10px;
        padding: 6px;
    }
}
/* ===== TABLET VIEW (768px–1024px) ===== */
@media (max-width: 1024px) {
  .sub-content {
    flex-direction: column;
    align-items: center;
  }

  .left-sub {
    text-align: center;
    margin-bottom: 30px;
  }

  .service-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10px;
  }

  .cards {
    padding: 18px;
  }

  .cards i {
    font-size: 1.8rem;
  }

  .cards h5 {
    font-size: 1rem;
  }

  .cards p {
    font-size: 0.85rem !important;
  }
    .col-md-3 {
    flex: 0 0 auto;
    width: 100% !important
  }
     .col-md-9 {
    flex: 0 0 auto;
    width: 100% !important;
  }
}
@media (min-width: 800px) and (max-width: 1024px) {
    .box2 .box-text {
        color: #222;
        width: 50%;
        position: absolute;
        right: 0 !important;
        left: unset;
        font-size: 13px;
        line-height: 1.0;
        font-weight: 300;
        transform: translateY(150%);
        transition: 0.4s ease-out;
        padding: 0 12px;
    }
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background-color: #369f3d;
  color: #fff;
  border-radius: 10%;
  text-align: center;
  font-size: 35px;
  line-height: 55px;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: rgba(30, 190, 93, 0);
  color: rgb(54, 159, 61);
  border: 1px solid rgb(54, 159, 61);
  box-shadow: rgb(54, 159, 61) 0px 0px 3px, rgb(54, 159, 61) 0px 0px 3px;
}
/* Visitors Section */
.visitor-section {
  margin-top: 1rem;
  padding: 5px 15px;
  background: linear-gradient(135deg, #424082, #9b9bff);
  border-radius: 5px;
  display: flex;
  justify-content: start;
  align-items: center;
  box-shadow: 0 10px 30px rgba(118, 118, 206, 0.35);
}

.visitor-box {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.visitor-box i {
  font-size: 36px;
  opacity: 0.95;
}

.visitor-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.visitor-number {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.visitor-label {
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* Hover Effect */
.visitor-section:hover {
  transform: translateY(-2px);
  transition: 0.3s ease;
  box-shadow: 0 14px 40px rgba(118, 118, 206, 0.45);
}

/* Responsive */
@media (max-width: 768px) {
  .visitor-number {
    font-size: 24px;
  }
  .visitor-box i {
    font-size: 30px;
  }
}
