/* --- CSS VARIABLES --- */
:root {
    --brand-navy: #041B33;
    --brand-blue: #18508F;
    --brand-accent: #3A90E5;
    --text-light: #F8F9FA;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- BASE STYLES --- */
body {
    font-family: var(--font-primary);
    background-color: var(--text-light);
    color: var(--brand-navy);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.tracking-tight { letter-spacing: -0.5px; }
.tracking-widest { letter-spacing: 2px; }
.fs-7 { font-size: 0.8rem; }
.text-accent { color: var(--brand-accent); }

/* --- NAVBAR STYLES --- */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.nav-scrolled {
    padding: 12px 0;
    background-color: rgba(4, 27, 51, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Adjust logo scaling container */
.brand-logoimg {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.navbar.nav-scrolled .brand-logoimg {
    height: 38px;
}





/* 1. Completely remove Bootstrap's default broken caret arrow */
.navbar-nav .dropdown-toggle::after {
    display: none !important;
}

/* 2. Keep text and custom icon aligned inline without touching the parent nav-item */
.navbar-nav .dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 6px; /* Adjusts the space between 'Products' and the arrow icon */
}

/* 3. Smooth animation for the chevron */
.dropdown-caret-icon {
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}

/* Rotates the chevron when the dropdown is open */
.navbar-nav .dropdown-toggle.show .dropdown-caret-icon {
    transform: rotate(180deg);
}







.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 12px;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--brand-accent) !important;
}

/* Underline link effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--brand-accent);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- NAVBAR DROPDOWN HOVER FIX (DESKTOP ONLY) --- */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Ensures the menu doesn't disappear when moving the mouse down */
        animation: fadeDropdown 0.3s ease forwards;
    }
}

@keyframes fadeDropdown {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE DROPDOWN (MEGA MENU) --- */
@media (min-width: 992px) {
    .mega-dropdown-menu {
        width: 100%;
        max-width: 900px;
        left: 50% !important;
        transform: translateX(-50%) translateY(20px) !important;
        background-color: rgba(4, 27, 51, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 25px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3);
        backdrop-filter: blur(10px);
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }
    .nav-item.dropdown:hover .mega-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px) !important;
    }
}

@media (max-width: 991px) {
    .mega-dropdown-menu {
        background-color: rgba(255, 255, 255, 0.05);
        border: none;
        padding: 10px;
        margin-top: 5px;
    }
    .navbar-collapse {
        background-color: var(--brand-navy);
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* --- MOBILE NAVBAR SCROLL FIX --- */
@media (max-width: 991px) {
    /* Target the collapsible menu area */
    #navbarContent {
        /* Set max height to the screen height minus the logo/hamburger header area (approx 70-80px) */
        max-height: calc(100vh - 80px);
        /* Enable vertical scrolling */
        overflow-y: auto;
        /* Add a little padding at the bottom so the last button isn't cut off */
        padding-bottom: 20px;
        /* Smooth scrolling for iOS devices */
        -webkit-overflow-scrolling: touch; 
    }

    /* Optional: Style the scrollbar to make it look clean on mobile */
    #navbarContent::-webkit-scrollbar {
        width: 6px;
    }
    #navbarContent::-webkit-scrollbar-track {
        background: transparent;
    }
    #navbarContent::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }
}

.dropdown-header-custom {
    color: var(--brand-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 0 0 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 6px 0;
    background: transparent !important;
    transition: var(--transition);
}
.dropdown-item:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Custom Hamburger Icon */
.custom-toggler { border: none; padding: 0; }
.custom-toggler:focus { box-shadow: none; }
.toggler-line {
    display: block;
    width: 28px;
    height: 2px;
    background-color: #fff;
    margin: 6px 0;
    transition: var(--transition);
}

/* --- Fix Hamburger Menu Spacing --- */
@media (max-width: 991px) {
    .custom-toggler {
        margin-right: 15px; /* Adds clean breathing room on the right side */
    }
    
    /* Optional: Ensure the brand logo has matching space on the left */
    .navbar-brand {
        margin-left: 15px;
    }
}

/* --- BROCHURE BUTTONS --- */
.btn-brochure-mobile {
    background-color: transparent;
    color: #fff !important;
    border: 2px solid var(--brand-accent);
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
}

/* Floating Action Desktop Button */
.floating-brochure-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ef4444; /* Premium structural red for crisp accent pull */
    color: #fff !important;
    text-decoration: none;
    z-index: 1040;
    display: flex;
    align-items: center;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 50px; /* Initially shows just icon shape circle */
}
.floating-brochure-btn .btn-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.floating-brochure-btn .btn-text {
    padding-right: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.floating-brochure-btn:hover {
    max-width: 220px; /* Smooth slider display reveal */
    transform: scale(1.05) translateY(-3px);
}
.floating-brochure-btn:hover .btn-text {
    opacity: 1;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 95px; /* Stacks 15px above the 50px brochure button */
    right: 30px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #fff !important;
    text-decoration: none;
    z-index: 1040;
    display: flex;
    align-items: center;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); /* Green shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 50px; /* Initially shows just icon shape circle */
}

.floating-whatsapp-btn .btn-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Slightly larger to fit the WhatsApp icon beautifully */
    flex-shrink: 0;
}

.floating-whatsapp-btn .btn-text {
    padding-right: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-whatsapp-btn:hover {
    max-width: 220px; /* Smooth slider display reveal */
    transform: scale(1.05) translateY(-3px);
}

.floating-whatsapp-btn:hover .btn-text {
    opacity: 1;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    width: 100%;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Changed to 90deg. Left side is 75% opaque for text, right side fades to 20% to reveal video */
    background: linear-gradient(90deg, rgba(4, 27, 51, 0.75) 0%, rgba(4, 27, 51, 0.20) 100%);
    z-index: 2;
}
.text-gradient {
    background: linear-gradient(90deg, #FFFFFF 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.badge-custom {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}
.btn-primary-custom {
    background: var(--brand-accent);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary-custom:hover {
    background: #2b7fcb;
    color: #fff;
    transform: translateY(-2px);
}
.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@media (max-width: 991px) {
    .hero-section h1 { font-size: 2.5rem; }
}

/* --- MOBILE NAVIGATION BREAKING SPACE FIX --- */
@media (max-width: 991px) {
    .hero-section {
        /* Disables middle alignment on mobile so we can control top spacing */
        align-items: flex-start !important; 
        /* Adds safe padding at the top so content sits below the logo and hamburger icon */
        padding-top: 140px !important; 
        /* Ensures the section still looks rich if content expands */
        height: auto !important;
        min-height: 100vh;
    }

    .badge-custom {
        /* Adds slightly smaller text and margins for a balanced mobile aesthetic */
        font-size: 0.75rem;
        margin-top: 10px;
        padding: 6px 12px;
    }
}






















/* --- ABOUT US SECTION --- */
.py-6 { padding-top: 100px; padding-bottom: 100px; }
.about-section { background-color: #ffffff; }

/* Image and Floating Badge */
.about-image-wrapper { z-index: 1; }
.experience-badge {
    position: absolute;
    bottom: -25px;
    left: -25px;
    background: var(--brand-navy);
    padding: 25px 35px;
    border-radius: 12px;
    border-bottom: 4px solid var(--brand-accent);
    z-index: 2;
}

@media (max-width: 991px) {
    .experience-badge {
        left: 20px;
        bottom: -20px;
        padding: 15px 25px;
    }
}

/* --- INTERACTIVE INDUSTRY CARDS --- */
.industry-card {
    background: var(--text-light); /* Off-white base */
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 35px 30px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: default;
}

/* The dark background that slides up */
.industry-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: var(--brand-navy);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card base states */
.card-icon {
    font-size: 2.5rem;
    color: var(--brand-accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.industry-card h4 { transition: var(--transition); }
.industry-desc {
    font-size: 0.95rem;
    color: #6c757d;
    transition: var(--transition);
    margin-bottom: 0;
    line-height: 1.6;
}

/* The Hidden Products List */
.product-reveal {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    max-height: 0; /* Animating max-height is smoother than height */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-reveal span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transform: translateX(-15px);
    opacity: 0;
    transition: all 0.4s ease;
}

/* --- THE HOVER ANIMATION (THE MAGIC) --- */
.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(4, 27, 51, 0.12);
    border-color: transparent;
}

/* Background slides up */
.industry-card:hover::before { transform: translateY(0); }

/* Text inverts to white */
.industry-card:hover .card-icon,
.industry-card:hover h4 {
    color: #ffffff;
}

.industry-card:hover .industry-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px; /* Creates space for the reveal */
}

/* Product list reveals */
.industry-card:hover .product-reveal {
    opacity: 1;
    max-height: 150px;
    margin-top: 25px;
    padding-top: 20px;
}

/* Products slide in one by one (Staggered effect) */
.industry-card:hover .product-reveal span {
    transform: translateX(0);
    opacity: 1;
}
.industry-card:hover .product-reveal span:nth-child(1) { transition-delay: 0.1s; }
.industry-card:hover .product-reveal span:nth-child(2) { transition-delay: 0.2s; }
.industry-card:hover .product-reveal span:nth-child(3) { transition-delay: 0.3s; }
/* --- MOBILE UX: ALWAYS VISIBLE INDUSTRY CARDS --- */
@media (max-width: 991px) {
    /* Disable the dark hover background for mobile touch */
    .industry-card::before { 
        display: none; 
    }
    
    /* Disable the hover lift */
    .industry-card:hover {
        transform: none;
        box-shadow: none;
    }

    /* Force the product list to be open and visible */
    .industry-card .product-reveal {
        opacity: 1;
        max-height: 300px; /* Gives plenty of room */
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1); /* Subtle dark border for the light card */
    }

    /* Change product text to dark so it's readable on the white card */
    .industry-card .product-reveal span {
        color: var(--brand-navy); 
        transform: translateX(0);
        opacity: 1;
    }
}



/* --- CINEMATIC SEAMLESS GALLERY TICKER --- */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    background-color: #ffffff;
}

/* Fades the sides out elegantly for a high-end visual drop-off */
.ticker-wrapper::before,
.ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
.ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 20%, rgba(255, 255, 255, 0) 100%);
}
.ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 20%, rgba(255, 255, 255, 0) 100%);
}

/* The horizontal flex track running the animation loop */
.ticker-track {
    display: flex;
    width: calc(350px * 10); /* Calculates exact track width based on slide count */
    animation: continuousScroll 35s linear infinite;
}

/* Pause flow on hover to allow detailed inspection */
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-slide {
    width: 330px;
    height: 220px;
    margin: 0 10px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(4, 27, 51, 0.06);
    cursor: pointer;
}

.ticker-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Interactive Glassmorphism Overlay Card */
.slide-overlay {
    position: absolute;
    bottom: -100%; /* Hidden off-card initially */
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(4, 27, 51, 0.75);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
}

.slide-overlay h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.slide-overlay span {
    font-size: 0.8rem;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* --- TICKER INTERACTIVE HOVER EFFECTS --- */
.ticker-slide:hover img {
    transform: scale(1.1);
}

.ticker-slide:hover .slide-overlay {
    bottom: 0; /* Slides up smoothly into view */
}

/* Smooth CSS hardware-accelerated movement logic */
@keyframes continuousScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-350px * 5), 0, 0); /* Shifts exactly by half the total track width */
    }
}

/* Mobile responsive handling */
@media (max-width: 991px) {
    .ticker-wrapper::before,
    .ticker-wrapper::after {
        width: 50px; /* Reduces gradient mask size on smaller viewports */
    }
    .ticker-slide {
        width: 260px;
        height: 180px;
    }
    .ticker-track {
        width: calc(280px * 10);
        animation-duration: 25s; /* Moves slightly faster on mobile to look dynamic */
    }
    @keyframes continuousScroll {
        0% { transform: translate3d(0, 0, 0); }
        100% { transform: translate3d(calc(-280px * 5), 0, 0); }
    }
    /* Keep overlay permanently partially visible on mobile for better touch UX */
    .slide-overlay {
        bottom: 0;
        padding: 12px;
        background: rgba(4, 27, 51, 0.85);
    }
    .slide-overlay h5 { font-size: 0.9rem; }
    .slide-overlay span { font-size: 0.7rem; }
}






















/* --- COMPACT NATIVE INFINITE SLIDER --- */
.slider-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: default !important;
}

.slider-container-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    cursor: default !important;
}

/* Card sizing calculations based on column viewport maps */
.custom-slide-card {
    flex: 0 0 calc(33.333% - 16px); /* exactly 3 cards desktop */
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: transparent;
    transition: transform 0.3s ease;
    user-select: none;
}

.custom-slide-card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 240px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
}

.card-info-bottom {
    background: #ffffff;
    padding: 30px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(4, 27, 51, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.card-info-bottom h4 {
    color: var(--brand-navy);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-info-bottom p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: auto;
    width: fit-content;
}

.card-action-btn .icon-circle {
    width: 28px;
    height: 28px;
    background-color: #fbd38d;
    color: #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.card-action-btn:hover { color: var(--brand-accent); }
.card-action-btn:hover .icon-circle {
    transform: translateX(5px);
    background-color: var(--brand-accent);
    color: #ffffff;
}

/* Navigation Buttons */
.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(4, 27, 51, 0.1);
    background-color: #ffffff;
    color: var(--brand-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--brand-navy);
    color: #ffffff;
    border-color: var(--brand-navy);
}

/* Responsiveness overrides */
@media (max-width: 991px) {
    .custom-slide-card { flex: 0 0 calc(50% - 12px); } /* 2 cards on tablet */
}
@media (max-width: 767px) {
    .custom-slide-card { flex: 0 0 100%; } /* 1 card on mobile */
}





















/* --- SECTION 4: GLOBAL FOOTPRINT STYLES --- */
.supply-chain-section {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Counter Metrics Layout */
.counter-card {
    padding: 15px 10px;
}

.counter-number-wrapper {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, #FFFFFF 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Interactive Region Cards */
/* --- SECTION 4: GLOBAL FOOTPRINT SPACING REPAIRS --- */

/* Turn the card into a flex column to manage internal spacing */
.hub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 30px; /* Increased top/bottom padding for more internal breathing room */
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(58, 144, 229, 0.1);
    color: var(--brand-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

/* Fix the cramped text and force the layout to stretch */
.hub-card p {
    line-height: 1.7; /* Slightly looser line-height for better readability */
    margin-bottom: 30px !important; /* Forces a hard gap between text and the tag */
    flex-grow: 1; /* Pushes the tag below it to the absolute bottom of the card */
}

/* Push the tag to the bottom and ensure it has its own space */
.hub-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-accent);
    background: rgba(58, 144, 229, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-top: auto; /* This is the magic rule that locks it to the bottom */
    transition: all 0.3s ease;
}

/* Hover Micro-interactions */
.hub-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(58, 144, 229, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hub-card:hover .hub-icon-box {
    background: var(--brand-accent);
    color: #ffffff;
    transform: scale(1.05);
}

.hub-card:hover .hub-tag {
    background: #ffffff;
    color: var(--brand-navy);
}

/* Alignment fixes for counter rows on mobile viewports */
@media (max-width: 991px) {
    .counter-row {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 30px;
    }
}














/* --- SECTION 5: DYNAMIC SHOWCASE CONSOLE --- */
.services-section {
    background-color: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.text-navy {
    color: var(--brand-navy);
}

/* Custom left-side navigation pills */
.custom-service-pills {
    gap: 12px;
}

/* INACTIVE TAB STATE (Fixes visibility completely) */
.custom-service-pills .nav-link {
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 18px 24px;
    color: var(--brand-navy) !important; /* Force dark navy text for the heading */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

/* Ensure the heading specifically stays dark */
.custom-service-pills .nav-link .h6 {
    color: var(--brand-navy) !important;
}

/* Make the inactive icon clearly visible */
.custom-service-pills .pill-icon {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    color: var(--brand-accent) !important; /* Force the electric blue color */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Ensure the subtext is a readable dark gray */
.custom-service-pills .nav-link .custom-subtext {
    color: #475569 !important; /* Slate-700 for better contrast */
    font-weight: 400;
}


/* --- HOVER EFFECT --- */
.custom-service-pills .nav-link:hover {
    background-color: #f1f5f9;
    transform: translateX(5px);
}


/* --- ACTIVE TAB STATE --- */
.custom-service-pills .nav-link.active {
    background-color: var(--brand-navy) !important;
    border-color: var(--brand-navy) !important;
    box-shadow: 0 10px 25px rgba(4, 27, 51, 0.2);
    transform: translateX(8px);
}

/* Force active heading to be white */
.custom-service-pills .nav-link.active h6 {
    color: #ffffff !important;
}

/* Force active subtext to be light gray */
.custom-service-pills .nav-link.active .custom-subtext {
    color: #cbd5e1 !important; 
}

/* Force active icon box to invert colors */
.custom-service-pills .nav-link.active .pill-icon {
    background-color: var(--brand-accent) !important;
    color: #ffffff !important;
    box-shadow: none;
}

/* Right-Side Showcase Panel */
.showcase-panel-wrapper {
    height: 100%;
}

.showcase-card {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    transition: all 0.4s ease;
}

.showcase-img {
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.line-height-lg { line-height: 1.7; }
.showcase-specs li {
    font-size: 0.95rem;
    color: #475569;
}

/* Desktop Crossfade Speed */
@media (min-width: 992px) {
    .tab-pane.fade { transition: opacity 0.3s linear; }
}

/* --- MOBILE OVERRIDES (STACKED CARDS) --- */
@media (max-width: 991px) {
    /* Force all tab panes to display sequentially on mobile */
    .showcase-panel-wrapper .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 24px;
    }
    
    /* Adjust card height for stacked mobile view */
    .showcase-card {
        min-height: auto;
    }
}














/* --- SECTION 6: LOGO MARQUEE / LINE CARD --- */

.logo-marquee-wrapper {
    width: 100%;
    padding: 20px 0;
}

/* Gradient masks for smooth fade-in and fade-out at the edges of the screen */
.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.logo-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}
.logo-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

/* The actual moving track */
.logo-marquee-track {
    width: max-content;
    /* 40s determines the speed. Lower = faster */
    animation: scrollBrands 40s linear infinite; 
}

/* Pauses the slider if a user hovers over it to look at a logo */
.logo-marquee-wrapper:hover .logo-marquee-track {
    animation-play-state: paused;
}

/* Replicating the Card Style from your reference image */
.brand-card {
    width: 160px;
    height: 160px;
    background-color: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.brand-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* Hover Interactions */
.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(4, 27, 51, 0.08) !important;
}

.brand-card:hover img {
    transform: scale(1.05);
}

/* The Infinite Animation Logic */
@keyframes scrollBrands {
    0% { transform: translateX(0); }
    /* Moves exactly halfway through the flex container (which perfectly hides the duplicated set) */
    100% { transform: translateX(calc(-50% - 12px)); } /* 12px accounts for half the gap */
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .logo-marquee-wrapper::before,
    .logo-marquee-wrapper::after {
        width: 60px; /* Smaller fade masks on phones */
    }
    .brand-card {
        width: 120px;
        height: 120px;
        padding: 15px;
        border-radius: 16px;
    }
}
























/* --- SECTION 7: PREMIUM SVG FOOTER --- */
.premium-site-footer {
    background-color: #f8fafc; /* Matches previous section to seamlessly blend the CTA */
    padding-top: 60px;
    z-index: 10;
}

/* Pre-Footer Floating CTA Card */
.footer-cta-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 50px;
    position: relative;
    z-index: 5;
    margin-bottom: -80px; /* Pulls the card down to overlap the SVG border perfectly */
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--brand-accent) 0%, #2b7fcb 100%);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 5px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(58, 144, 229, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(58, 144, 229, 0.4);
    color: #ffffff;
}

.btn-cta-primary i {
    transition: transform 0.3s ease;
}
.btn-cta-primary:hover i {
    transform: translateX(5px);
}

/* SVG Geometric Slant Top Border */
.footer-svg-border {
    display: block;
    width: 100%;
    height: 120px; /* Adjusts the steepness of the slant */
    margin-bottom: -1px; /* Prevents weird 1px gaps on some browsers */
}

/* Main Footer Container */
.footer-main-content {
    background-color: var(--brand-navy);
    padding-top: 100px;
    position: relative;
    /* Ultra-subtle SVG dot-mesh background pattern for industrial texture */
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.footer-logo {
    height: 80px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Social Buttons */
.social-btn {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background-color: var(--brand-accent);
    transform: translateY(-5px);
    border-color: var(--brand-accent);
    box-shadow: 0 10px 20px rgba(58, 144, 229, 0.3);
}

/* SVG Enhanced Headings */
.footer-heading-svg {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-heading-svg::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-accent) 0%, transparent 100%);
}

/* Modern Footer Links */
.footer-links-modern li {
    margin-bottom: 14px;
}

.footer-links-modern a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links-modern a::before {
    content: '';
    display: inline-block;
    width: 0px;
    height: 2px;
    background-color: var(--brand-accent);
    margin-right: 0px;
    transition: all 0.3s ease;
}

.footer-links-modern a:hover {
    color: #ffffff;
}

.footer-links-modern a:hover::before {
    width: 12px;
    margin-right: 10px;
}

/* Modern Contact Information */
.footer-contact-modern li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact-modern a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-modern a:hover {
    color: var(--brand-accent);
}

.contact-icon-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(58, 144, 229, 0.1);
    color: var(--brand-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 0.9rem;
}

/* Bottom Bar */
.footer-bottom-bar {
    background-color: rgba(0, 0, 0, 0.15); /* Slightly darker bottom lip */
}

.border-light-subtle {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .footer-cta-card {
        padding: 30px;
        text-align: center;
    }
    .footer-main-content {
        padding-top: 120px; /* Accounts for the overlapping CTA on mobile */
    }
}
@media (max-width: 767px) {
    .footer-svg-border {
        height: 60px; /* Less aggressive slant on mobile */
    }
}
















/* --- ABOUT PAGE BANNER --- */
.about-hero-banner {
    height: 350px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
    position: relative;
    padding-top: 80px; 
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6zM36 4V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* Breadcrumb Styling */
.breadcrumb {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb-item a {
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--brand-accent) !important;
}

/* Fix for Active Breadcrumb Visibility */
.custom-breadcrumb-active {
    color: rgb(36 145 254 / 79%) !important;
    font-weight: 700;
}

/* Responsive adjustment */
@media (max-width: 767px) {
    .about-hero-banner {
        height: 250px;
        padding-top: 60px;
    }
}




























/* ABOUT US PAGE */
/* --- PREMIUM IMAGE HERO BANNER --- */

.page-hero-banner {
    /* Set your background image here */
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates the modern parallax scrolling effect */
    height: 350px;
    margin-top: 0; /* Adjust this if your navbar is fixed and overlaps the top */
}

/* Gradient overlay: Dark navy on the left for text, fading to transparent on the right */
.banner-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(4, 27, 51, 0.9) 0%, rgba(4, 27, 51, 0.3) 100%);
    z-index: 1;
}

/* --- BREADCRUMB STYLING --- */
.custom-banner-breadcrumb {
    margin: 0;
    padding: 0;
}

.custom-banner-breadcrumb .breadcrumb-item {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.custom-banner-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-banner-breadcrumb .breadcrumb-item a:hover {
    color: #ffffff;
}

/* Active Page Color (Using your exact accent blue) */
.custom-banner-breadcrumb .breadcrumb-item.active {
    color: rgb(36 145 254 / 79%); 
}

/* Custom separator using FontAwesome instead of standard slash */
.custom-banner-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "\f105"; /* FontAwesome Angle Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 12px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .page-hero-banner {
        height: 350px;
        background-attachment: scroll; /* Turn off parallax on mobile for better performance */
    }
}

@media (max-width: 767px) {
    .page-hero-banner {
        height: 300px;
    }
    .page-hero-banner h1 {
        font-size: 2.75rem;
    }
    .custom-banner-breadcrumb .breadcrumb-item {
        font-size: 0.75rem;
    }
}





/* --- ABOUT PAGE: CONTENT SECTIONS --- */

.line-height-lg {
    line-height: 1.8;
}

.bg-accent-light {
    background-color: rgba(58, 144, 229, 0.1);
}

/* 1. Philosophy Floating Card Overlay */
.philosophy-floating-card {
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 85%;
    border-top: 4px solid var(--brand-accent);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.philosophy-floating-card:hover {
    transform: translateY(-10px);
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* 2. Mission & Vision Interactive Dark Cards */
.mv-interactive-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The subtle glowing gradient border effect on hover */
.mv-interactive-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(58, 144, 229, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.mv-interactive-card > * {
    position: relative;
    z-index: 2;
}

.mv-interactive-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(58, 144, 229, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mv-interactive-card:hover::before {
    opacity: 1;
}

/* 3. Core Values Grid */
.value-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    border-left: 3px solid transparent; /* Prepare for hover border */
    transition: all 0.3s ease;
}

.value-number {
    position: absolute;
    top: -15px;
    right: 10px;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    font-family: monospace;
    transition: all 0.4s ease;
    z-index: 0;
}

.value-card > h4, .value-card > p {
    position: relative;
    z-index: 1;
}

.value-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--brand-accent);
    box-shadow: 0 15px 30px rgba(4, 27, 51, 0.06) !important;
}

.value-card:hover .value-number {
    transform: scale(1.1);
    opacity: 0.4 !important;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .philosophy-floating-card {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: -30px; /* Pulls it up over the image slightly on mobile */
    }
    .mt-md-5 {
        margin-top: 0 !important; /* Removes staggered effect on mobile so they stack normally */
    }
}


















/* --- QUALITY PAGE STYLES --- */

/* 1. Floating ISO Shield Card (Glassmorphism Effect) */
.quality-shield-card {
    position: absolute;
    bottom: 40px;
    left: -30px; /* Overlaps the edge of the image */
    width: 220px;
    
    /* The Glassmorphism Magic */
    background: rgba(255, 255, 255, 0.15); /* Highly transparent white */
    backdrop-filter: blur(16px); /* Blurs the image behind it */
    -webkit-backdrop-filter: blur(16px); /* For Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle glossy edge */
    border-bottom: 4px solid var(--brand-accent); /* Your signature blue bottom edge */
    
    z-index: 3;
    transition: transform 0.4s ease;
}

.quality-shield-card:hover {
    transform: translateY(-8px);
}

/* 2. Testing & Inspection Cards */
.testing-card {
    border: 1px solid rgba(0,0,0,0.03);
    border-top: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.testing-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(58, 144, 229, 0.08);
    color: var(--brand-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.testing-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--brand-accent);
    box-shadow: 0 15px 35px rgba(4, 27, 51, 0.06) !important;
}

.testing-card:hover .testing-icon-wrapper {
    background: var(--brand-accent);
    color: #ffffff;
    transform: scale(1.05) rotate(5deg);
}

/* 3. Compliance List & TPI Grid */
.compliance-list li {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.tpi-box {
    transition: all 0.3s ease;
    cursor: default;
}

.tpi-box:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-4px);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .quality-shield-card {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%); /* Centers the badge on mobile */
        width: 80%; /* Expands width for better mobile fit */
    }
    
    .quality-shield-card:hover {
        transform: translate(-50%, -5px);
    }
}






















/* --- CONTACT & LOCATIONS STYLES --- */

/* --- UPGRADED CONTACT CARDS --- */

/* --- UPGRADED CONTACT CARDS --- */

.contact-premium-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(4, 27, 51, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* Decorative Gradient Top Line */
.contact-premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand-accent), #2b7fcb);
    transition: height 0.3s ease;
}

.contact-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(4, 27, 51, 0.08) !important;
    border-color: rgba(58, 144, 229, 0.15);
}

.contact-premium-card:hover::before {
    height: 6px; /* Thickens slightly on hover */
}

/* Status/Type Badge */
.card-badge {
    position: absolute;
    top: 15px; 
    right: 15px;
    background: rgba(58, 144, 229, 0.1);
    color: var(--brand-accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
}

/* Modern Squircle Icon Box */
.icon-box-modern {
    width: 50px; 
    height: 50px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 14px;
}

/* Stylish Clickable Map Links */
.map-link {
    color: var(--brand-navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(58, 144, 229, 0.4);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: var(--brand-accent);
    text-decoration-color: var(--brand-accent);
}

/* --- UPGRADED BUTTONS --- */

/* Richer WhatsApp Gradient */
.btn-contact-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.btn-contact-wa:hover {
    background: linear-gradient(135deg, #1ebd5a 0%, #0f7a6e 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Richer Email Button */
.btn-contact-email {
    background-color: var(--brand-navy);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-contact-email:hover {
    background-color: var(--brand-accent);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 144, 229, 0.3);
}

/* Map Wrapper & Glassmorphism Overlay */
.map-wrapper {
    background: #e2e8f0; /* Fallback skeleton loading color */
}

.map-glass-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    min-width: 220px;
    z-index: 5;
    /* Gentle floating animation */
    animation: floatOverlay 4s ease-in-out infinite;
}

@keyframes floatOverlay {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .contact-iframe {
        height: 400px !important;
        min-height: auto !important;
    }
}






















/* --- EDITORIAL PRODUCT CATALOG STYLES --- */

/* 1. Sticky Category Index */
.sticky-category-header {
    position: sticky;
    top: 120px; /* Sits nicely below your fixed navbar as user scrolls */
    z-index: 10;
}

/* 2. Technical Data Cards */
.tech-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(4, 27, 51, 0.06);
    border-radius: 16px;
    padding: 12px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-product-card:hover {
    box-shadow: 0 20px 40px rgba(4, 27, 51, 0.08);
    border-color: rgba(58, 144, 229, 0.4);
    transform: translateY(-5px);
}

/* Image Container - Framed look */
.tech-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9; /* Skeleton placeholder color */
}

.tech-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-product-card:hover .tech-img-wrapper img {
    transform: scale(1.06); /* Subtle zoom on hover */
}

/* Glassmorphism Badge inside image */
.tech-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--brand-navy);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Text Content Area */
.tech-content {
    padding: 20px 10px 10px 10px;
}

.tech-action i {
    transition: transform 0.3s ease;
}

.tech-product-card:hover .tech-action i {
    transform: translateX(6px);
}

/* 3. Dark Theme Overrides for Fittings Section */
.tech-product-card.card-dark {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.tech-product-card.card-dark:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(58, 144, 229, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .sticky-category-header {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}








/* --- PRODUCT DETAILS CONTENT STYLES --- */

/* 1. Hero Image Frame */
.product-hero-frame {
    border: 1px solid rgba(4, 27, 51, 0.05);
    background: #f1f5f9;
}

.product-main-img {
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-hero-frame:hover .product-main-img {
    transform: scale(1.05); /* Gentle pan effect on hover */
}

.product-hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--brand-navy);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Quick Highlight Icons */
.icon-circle-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* 2. Interactive Grade Pills */
.grade-pill {
    background: #ffffff;
    border: 1px solid rgba(4, 27, 51, 0.1);
    color: var(--brand-navy);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.grade-pill:hover {
    background: var(--brand-navy);
    color: #ffffff;
    border-color: var(--brand-navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(4, 27, 51, 0.15);
}

/* 3. Tech Specification Table */
.tech-spec-table th, .tech-spec-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(4, 27, 51, 0.05);
}

.tech-spec-table tr {
    transition: background-color 0.3s ease;
}

.tech-spec-table tr:hover {
    background-color: #f8fafc; /* Highlights the row slightly on hover */
}

.tech-spec-table .w-35 {
    width: 35%; /* Keeps the left column uniform */
}

/* 4. Application Cards */
.application-card {
    transition: all 0.4s ease;
    border-left: 4px solid transparent !important;
}

.application-card:hover {
    background: #ffffff !important;
    border-left-color: var(--brand-accent) !important;
    box-shadow: 0 15px 35px rgba(4, 27, 51, 0.06) !important;
    transform: translateY(-5px);
}

.app-icon i {
    transition: transform 0.3s ease;
}

.application-card:hover .app-icon i {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .product-main-img {
        height: 250px;
    }
    .tech-spec-table th, .tech-spec-table td {
        display: block;
        width: 100%;
        padding: 10px 15px;
    }
    .tech-spec-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
}
















/* --- PREMIUM PRODUCT DIRECTORY SIDEBAR --- */

.catalog-sidebar {
    height: 100%;
}

.sticky-sidebar-container {
    position: sticky;
    top: 110px; /* Sits cleanly below your fixed navigation bar */
    background: #ffffff;
    border: 1px solid rgba(4, 27, 51, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(4, 27, 51, 0.03);
    z-index: 10;
}

/* Header Text Line Decoration */
.sidebar-header-box .header-accent-line {
    width: 35px;
    height: 3px;
    background-color: var(--brand-accent);
    border-radius: 2px;
}

/* Category Group Title styling */
.sidebar-nav-group .group-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
}

/* Navigation Link Items */
.sidebar-links li {
    margin-bottom: 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 10px;
    background-color: transparent;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-item .link-arrow {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

/* Hover State Interaction */
.sidebar-item:hover {
    color: var(--brand-accent);
    background-color: #f8fafc;
    border-left-color: rgba(58, 144, 229, 0.3);
    padding-left: 20px; /* Elegant push effect */
}

.sidebar-item:hover .link-arrow {
    opacity: 0.7;
    transform: translateX(0);
}

/* Active State Design (Marks the current product page) */
.sidebar-item.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #0d2a4a 100%);
    border-left-color: var(--brand-accent);
    box-shadow: 0 8px 20px rgba(4, 27, 51, 0.12);
}

.sidebar-item.active .link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--brand-accent);
}

/* --- RESPONSIVE MOBILE HANDLERS --- */
@media (max-width: 991px) {
    .sticky-sidebar-container {
        position: relative;
        top: 0;
        margin-top: 50px;
        padding: 24px;
        border-radius: 16px;
    }
}