/* 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);
}
