/* Premium, Professional 3D Enhancements */

/* --- 1. Tactile 3D Buttons --- */
.btn, .btn-primary, .btn-primary-custom, .btn-light-custom, .scube-carousel-btn, .product-btn, .category-btn {
    border-radius: 8px !important;
    /* Creating a subtle 3D base using box-shadow */
    box-shadow: 0 4px 0 var(--accent-blue, #0047b3), 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    transform: translateY(0);
    border: none !important; /* Overriding flat borders to maintain 3D illusion */
}

/* Hover: Slight lift, intensified shadow */
.btn:hover, .btn-primary:hover, .btn-primary-custom:hover, .btn-light-custom:hover, .scube-carousel-btn:hover, .product-btn:hover, .category-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0 var(--accent-blue, #0047b3), 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Active (Click): The button physically pushes down */
.btn:active, .btn-primary:active, .btn-primary-custom:active, .btn-light-custom:active, .scube-carousel-btn:active, .product-btn:active, .category-btn:active {
    transform: translateY(4px) !important;
    box-shadow: 0 0 0 var(--accent-blue, #0047b3), 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* --- 2. Premium Card Hover Effects --- */
/* Target all card-like elements including product cards across pages */
.card, .product-card, .news-card, .why-card, .expertise-btn, .experience-box, .strengths-box, 
.flow-product-card, .tubing-product-card, .completion-product-card, .wireline-product-card {
    border-radius: 16px !important;
    /* Soft baseline shadow */
    box-shadow: 0 4px 12px rgba(2, 32, 76, 0.05), 0 1px 3px rgba(2, 32, 76, 0.03) !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    /* Inner light border for glass/premium feel */
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    position: relative;
    overflow: hidden;
}

.card, .product-card, .news-card, .why-card, .flow-product-card, .tubing-product-card, .completion-product-card, .wireline-product-card {
    background: #ffffff;
}

/* Hover: Elegant lift with a wide, diffused shadow */
.card:hover, .product-card:hover, .news-card:hover, .why-card:hover, .expertise-btn:hover,
.flow-product-card:hover, .tubing-product-card:hover, .completion-product-card:hover, .wireline-product-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(2, 32, 76, 0.12), 0 8px 16px rgba(2, 32, 76, 0.06) !important;
    z-index: 2;
}

/* --- 3. Dynamic Image & Media Depth --- */
/* Target image wrappers */
.gallery-img, .intro-image, .product-img, .facility-image-wrapper img, .integrity-image-wrapper img,
.flow-product-img, .tubing-product-img, .completion-product-img, .wireline-product-img {
    border-radius: 12px !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease !important;
    /* Slight baseline depth for standalone images */
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}

/* Image scaling on hover when inside a card or wrapper */
.card:hover img, .product-card:hover img, .flow-product-card:hover .flow-product-img, 
.tubing-product-card:hover .tubing-product-img, .completion-product-card:hover .completion-product-img,
.wireline-product-card:hover .wireline-product-img, .gallery-img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* --- 4. Floating Navbar & Dropdowns --- */
/* Soft frosted glass aesthetic for the navbar */
.navbar {
    background: #ffffff !important;
    /* removed frosted glass effects */
    box-shadow: 0 4px 20px rgba(2, 32, 76, 0.08) !important;
    transition: all 0.3s ease;
}

/* Floating, highly legible dropdown menus */
.dropdown-menu {
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 15px 35px rgba(2, 32, 76, 0.15), 0 5px 15px rgba(2, 32, 76, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 10px 0 !important;
    transform-origin: top;
    animation: dropdownPop 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes dropdownPop {
    0% { opacity: 0; transform: scaleY(0.95) translateY(-10px); }
    100% { opacity: 1; transform: scaleY(1) translateY(0); }
}

.dropdown-item {
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f0f7ff !important;
    color: var(--primary-blue) !important;
    padding-left: 20px !important; /* Gentle right-shift on hover */
}

/* --- 5. Inputs & Forms --- */
.form-control, .form-select {
    border-radius: 8px !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02) !important;
    border: 1px solid #e0e6ed !important;
    background-color: #fcfcfd !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 32, 76, 0.08), 0 0 0 3px rgba(2, 32, 76, 0.1) !important;
    border-color: var(--primary-blue) !important;
    transform: translateY(-1px);
}

/* Custom PDF Button matching the pill design */
.custom-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #ffffff;
    color: #2b70fa;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 0 #0d47a1, 0 5px 10px rgba(0,0,0,0.1);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: auto;
    text-transform: capitalize;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.custom-pdf-btn i {
    color: #e3242b;
    font-size: 1.0rem;
}

.custom-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #0d47a1, 0 8px 15px rgba(0,0,0,0.15);
    color: #2b70fa;
}

.custom-pdf-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #0d47a1, 0 2px 5px rgba(0,0,0,0.2);
}


/* Ensure footer contact alignment across all tabs */
.footer-contact { padding-left: 20px; }
.footer-contact i { width: 20px; color: var(--accent-blue); margin-right: 10px; flex-shrink: 0; }
.footer-contact p { margin-bottom: 10px; color: #aaa; display: flex; align-items: center; gap: 5px; white-space: nowrap; }

@media (max-width: 1200px) {
    .footer-contact { padding-left: 10px; }
    .footer-contact p { font-size: 0.8rem; }
}
@media (max-width: 992px) {
    .footer-contact { padding-left: 0; }
}
@media (max-width: 768px) {
    .footer-contact p { white-space: normal; }
}


/* --- SYNCHRONIZED GLOBAL LAYOUT CSS (Header & Footer) --- */
/* --- Top Bar --- */

        .top-bar {
            background-color: #fff;
            border-bottom: 1px solid #eee;
            font-size: 0.75rem;
            font-weight: 500;
            padding: 10px 0;
        }

        .top-bar i { color: var(--primary-blue); margin-right: 5px; }
        
        .top-bar span {
            display: inline-flex;
            align-items: center;
            margin-right: 25px;
            gap: 5px;
            white-space: nowrap;
        }
        
        .top-bar span i {
            flex-shrink: 0;
        }
        
        .top-bar .row {
            align-items: center;
        }
        
        .top-bar-left, .top-bar-right {
            display: flex;
            flex-wrap: nowrap;
            gap: 20px;
            align-items: center;
            justify-content: flex-start;
        }
        
        .top-bar-right {
            justify-content: flex-end;
        }
        
        @media (max-width: 1400px) {
            .top-bar span {
                margin-right: 15px;
                font-size: 0.7rem;
            }
            .top-bar-left, .top-bar-right {
                gap: 12px;
            }
        }
        
        @media (max-width: 1200px) {
            .top-bar span {
                margin-right: 10px;
            }
        }



        /* --- Navbar --- */

        .navbar {

            padding: 15px 0;

            background-color: #fff;

            box-shadow: 0 2px 10px rgba(0,0,0,0.05);

            z-index: 100;

        }

        .navbar-collapse {

            overflow: visible !important;

        }

        .navbar-nav {

            overflow: visible !important;

        }

        .navbar-brand { font-weight: 500; color: var(--primary-blue); font-size: 1.8rem; line-height: 1; }

        .navbar-brand span { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 2px; }

        .nav-link { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; color: var(--primary-blue) !important; margin: 0 10px; }

        .nav-link:hover { color: var(--accent-blue) !important; }

       

        /* Dropdown styling */

        .dropdown-toggle::after { display: none !important; }

        .dropdown-menu {

            border-radius: 8px;

            border: 1px solid #eee;

            box-shadow: 0 5px 15px rgba(0,0,0,0.1);

            min-width: 200px;

            padding: 8px 0;

            animation: fadeIn 0.2s ease-in;

            z-index: 1000 !important;

            position: absolute;

            top: 100% !important;

            display: none;

            left: 0;

        }

        .nav-item.dropdown:hover .dropdown-menu {

            display: block;

        }

        .nav-item.dropdown {

            position: relative;

        }

        .dropdown-menu .dropdown-item {

            color: var(--primary-blue);

            font-size: 0.85rem;

            padding: 10px 20px;

            transition: all 0.2s ease;

            white-space: nowrap;

        }

        .dropdown-menu .dropdown-item:hover {

            background-color: #f0f4f8;

            color: var(--accent-blue);

        }

        .dropdown-menu .dropdown-item:active {

            background-color: #f0f4f8;

            color: var(--accent-blue);

        }

        @keyframes fadeIn {

            from { opacity: 0; transform: translateY(-10px); }

            to { opacity: 1; transform: translateY(0); }

        }

        .btn-primary-custom {

            background-color: var(--primary-blue);

            color: #ffffff !important;

            border-radius: 0;

            font-weight: 500;

            padding: 10px 24px;

            font-size: 0.85rem;

            border: 2px solid var(--primary-blue);

            transition: all 0.3s ease;

        }

        .btn-primary-custom:hover { background-color: transparent; color: var(--primary-blue); }



        /* --- Hero Carousel Slider --- */
        #scubeHeroCarousel {
            position: relative;
        }
        .hero-slide-bg {
            position: relative;
            background-size: cover;
            background-position: center;
            height: 85vh;
            min-height: 600px;
        }
        .hero-slide-bg::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(to right, rgba(2, 32, 76, 0.95) 0%, rgba(2, 32, 76, 0.6) 100%);
        }
        .hero-slide-bg > .container {
            position: relative;
            z-index: 2;
            height: 100%;
        }
        .hero-content {
            border-left: 4px solid white;
            padding-left: 30px;
            margin-top: 20vh;
        }
        .hero-controls-wrapper {
            position: absolute;
            bottom: 0;
            right: 0;
            display: flex;
            align-items: center;
            z-index: 10;
        }
        .scube-indicators {
            position: relative;
            margin: 0;
            margin-right: 20px;
            bottom: 0;
        }
        .scube-indicators button {
            width: 30px !important;
            height: 3px !important;
            background-color: rgba(255,255,255,0.4) !important;
            border: none !important;
        }
        .scube-indicators button.active {
            background-color: #fff !important;
        }
        .scube-nav-btns {
            display: flex;
        }
        .scube-carousel-btn {
            background-color: var(--primary-blue);
            color: white;
            border: none;
            width: 55px;
            height: 55px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.3s;
        }
        .scube-carousel-btn:hover {
            background-color: var(--accent-blue);
        }
        .scube-carousel-btn.prev {
            border-right: 1px solid rgba(255,255,255,0.1);
        }
        .hero-title { font-family: 'Oswald', sans-serif !important; font-size: 3.5rem; font-weight: 500; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }
        .hero-subtitle { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; display: block; }
        .hero-text { font-size: 1rem; max-width: 600px; margin-bottom: 30px; font-weight: 500; }
        .btn-light-custom {
            background-color: white; color: var(--primary-blue); border-radius: 0; font-weight: 500; padding: 12px 30px; border: 2px solid white;
        }
        .btn-light-custom:hover { background-color: transparent; color: white; }



        
        @media (max-width: 768px) {
            .hero-controls-wrapper {
                bottom: 20px !important;
                right: 50% !important;
                transform: translateX(50%) !important;
                width: 100% !important;
                justify-content: center !important;
                padding: 0 15px !important;
            }
            .scube-indicators {
                margin-right: 15px !important;
            }
            .scube-carousel-btn {
                width: 45px !important;
                height: 45px !important;
            }
            .hero-content {
                padding-bottom: 120px !important;
                margin-top: 15vh !important;
            }
            .hero-title {
                font-size: 2.5rem !important;
            }
            .btn-light-custom, .btn-primary-custom {
                padding: 10px 15px !important;
                font-size: 0.8rem !important;
                width: 100%;
                margin-bottom: 10px;
            }
            .hero-buttons-wrapper {
                flex-direction: column;
                gap: 10px !important;
            }
            .hero-buttons-wrapper a {
                width: 100%;
            }
        }

        /* --- Section Titles --- */

        .section-subtitle { font-size: 0.75rem; font-weight: 500; color: #777; letter-spacing: 2px; text-transform: uppercase; position: relative; display: inline-block; padding-left: 40px; }

        .section-subtitle::before { content: ''; position: absolute; left: 0; top: 50%; width: 30px; height: 1px; background-color: #777; }

        .section-title { font-size: 2.2rem; font-weight: 500; color: var(--primary-blue); margin-bottom: 20px; text-transform: uppercase; }



        /* --- Intro Section --- */

        .intro-section { padding: 80px 0; background-color: #fff; }

        .intro-image-wrapper { position: relative; }

        .intro-image { width: 100%; object-fit: cover; }

        .experience-box {

            position: absolute; bottom: -20px; right: -20px; background-color: var(--primary-blue); color: white; padding: 30px; text-align: center; border: 4px solid white;

        }

        .experience-box h3 { font-size: 2rem; font-weight: 500; margin: 0; }

        .experience-box p { font-size: 0.8rem; margin: 0; text-transform: uppercase; letter-spacing: 1px; }



        /* --- Products Section --- */

        .products-section { padding: 80px 0; background-color: var(--light-bg); }

        .product-card { background: #fff; text-align: left; transition: transform 0.3s ease; height: 100%; border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05);}

        .product-card:hover { transform: translateY(-5px); }

        .product-img { height: 180px; width: 100%; object-fit: contain; padding: 20px; background-color: #fff; }

        .product-card-body { padding: 20px; }

        .product-card h5 { font-size: 1.1rem; font-weight: 500; color: var(--primary-blue); }

        .product-card p { font-size: 0.85rem; color: #666; }

        /* --- News Section --- */
        .news-section { padding: 80px 0; }
        .news-card:hover { transform: translateY(-5px); }
        .news-card .card-title { font-size: 1.1rem; line-height: 1.3; }
        .news-card .card-text { font-size: 0.9rem; line-height: 1.5; }



        /* --- Why Choose Us --- */

        .why-choose-us { background-color: var(--primary-blue); padding: 80px 0; color: white; }

        .why-title { text-align: center; margin-bottom: 50px; }

        .why-card { background: white; padding: 30px; color: var(--text-dark); height: 100%; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

        .why-icon { color: var(--accent-blue); font-size: 2rem; margin-bottom: 15px; }

        .why-card h5 { font-weight: 500; font-size: 1.1rem; margin-bottom: 10px; text-transform: uppercase;}

        .why-card p { font-size: 0.85rem; color: #555; margin: 0; }



        /* --- Expertise & Strengths --- */

        .expertise-section { padding: 80px 0; }

        .expertise-btn { width: 100%; text-align: left; background: white; border: 1px solid #ddd; padding: 15px 20px; font-weight: 500; color: var(--primary-blue); border-radius: 0; margin-bottom: 15px; font-size: 0.9rem; }

        .expertise-btn i { color: var(--accent-blue); width: 25px; }

        .strengths-box { background-color: var(--secondary-blue); color: white; padding: 40px; height: 100%; }

        .strengths-box h3 { font-weight: 500; margin-bottom: 30px; }

        .strength-item { display: flex; align-items: flex-start; margin-bottom: 20px; }

        .strength-icon { font-size: 1.5rem; margin-right: 15px; color: #8cb4f5; }

        .strength-text h6 { font-weight: 500; margin-bottom: 5px; font-size: 1rem; }

        .strength-text p { font-size: 0.85rem; color: #ccc; margin: 0; }



        /* --- Media Gallery --- */

        .media-section { padding: 80px 0; background-color: var(--light-bg); }

        .gallery-img { width: 100%; height: 250px; object-fit: cover; margin-bottom: 24px; transition: opacity 0.3s; }

        .gallery-img:hover { opacity: 0.8; cursor: pointer; }



        /* --- CTA Banner --- */

        .cta-banner { background-color: var(--secondary-blue); padding: 50px 0; color: white; }

        .cta-banner h2 { font-weight: 500; margin-bottom: 10px; }



        /* --- Footer --- */

        .footer { background-color: var(--primary-blue); color: white; padding: 60px 0 20px; font-size: 0.85rem; }

        .footer h5 { font-weight: 500; font-size: 1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }

        .footer-links { list-style: none; padding: 0; margin: 0; }

        .footer-links li { margin-bottom: 10px; }

        .footer-links a { color: #aaa; text-decoration: none; transition: color 0.3s; }

        .footer-links a:hover { color: white; }

        .footer-contact i { width: 20px; color: var(--accent-blue); margin-right: 10px; flex-shrink: 0; }

        .footer-contact p { margin-bottom: 10px; color: #aaa; display: flex; align-items: center; gap: 5px; white-space: nowrap; }

        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 40px; text-align: center; color: #777; font-size: 0.75rem; }

    