/* Custom Styles for the page layout and design elements - Enhanced Version */

:root {
    /* Define a color scheme for easy modification */
    --color-dark-blue: #011627;
    /* Primary dark background */
    --color-medium-blue: #007bff;
    /* Primary accent blue */
    --color-gold: #ffc107;
    /* Secondary accent yellow/gold */
    --color-light-gray: #e9ecef;
    /* Subtle light text/background */
    --color-white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-light-gray);
    scroll-behavior: smooth;
}

/* --- Header Section --- */
.header-bg {
    background-color: var(--color-dark-blue);
    border-bottom: 3px solid var(--color-gold);
    /* Bold gold divider */
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    /* Slightly larger logo */
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    /* Subtle glow on logo */
}

.company-name {
    line-height: 1.2;
    font-size: 16px;
    font-weight: 700;
}

.industrial-text {
    color: var(--color-medium-blue);
    font-size: 1.3em;
}

.supply-text {
    color: var(--color-gold);
    font-size: 1.3em;
}

.international-text {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    color: var(--color-light-gray);
}

.header-title {
    font-size: 3rem;
    font-weight: 900;
    /* Extra bold */
    color: var(--color-white);
    text-align: center;
    text-transform: uppercase;
}

.header-title .small-text {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: 5px;
}

/* Responsive adjustments for header */
@media (max-width: 992px) {
    .header-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* --- Product Cards Section --- */
.main {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.product-card-listing {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    border-radius: 12px;
    /* Smoother corners */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;

    /* Enhanced Transition for hover effect */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;

    /* Initial state for load-in animation */
    opacity: 0;
    transform: translateY(30px);
}

/* ENHANCED HOVER EFFECT: Lift, deep shadow, and subtle 3D tilt */
.product-card-listing:hover {
    transform: translateY(-10px) scale(1.02);
    /* More lift and slight scale */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    /* Deeper shadow */
    z-index: 20;
    /* Ensure the hovered card is on top */
}

/* Image Hover Effect: Subtle scale */
.image-box {
    position: relative;
    overflow: hidden;
    height: 220px;
    /* Slightly taller images */
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-listing:hover .image-box img {
    transform: scale(1.05) rotate(1deg);
    /* Subtle zoom and rotation */
}

.card-number {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color-gold);
    color: var(--color-dark-blue);
    padding: 8px 20px;
    font-size: 1.8rem;
    /* Larger number */
    font-weight: 900;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    /* Slanted edge effect */
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    position: relative;
    padding-bottom: 45px;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-medium-blue);
    border-bottom: 3px solid var(--color-gold);
    /* Gold underline */
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-body li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.card-body li strong {
    color: var(--color-dark-blue);
    font-weight: 700;
    margin-right: 5px;
}

.bottom-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--color-medium-blue);
    /* Blue background for tag */
    color: var(--color-white);
    padding: 5px 15px;
    font-size: 1.2rem;
    font-weight: 700;
    border-top-left-radius: 8px;
    /* Rounded corner */
}

/* --- Load-In Animation (Staggered Fade-in) --- */

/* Keyframes for the smoother slide up and fade in */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(80px);
        /* Larger initial distance */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation with delays for staggering effect, timing adjusted for impact */
.product-card-listing {
    /* Base animation setup (overwritten below for delays) */
    animation: fadeInSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Row 1 Delays */
.row:nth-child(1) .col-lg-4:nth-child(1) .product-card-listing {
    animation-delay: 0.2s;
}

.row:nth-child(1) .col-lg-4:nth-child(2) .product-card-listing {
    animation-delay: 0.4s;
}

.row:nth-child(1) .col-lg-4:nth-child(3) .product-card-listing {
    animation-delay: 0.6s;
}

/* Row 2 Delays */
.row:nth-child(2) .col-lg-4:nth-child(1) .product-card-listing {
    animation-delay: 0.8s;
}

.row:nth-child(2) .col-lg-4:nth-child(2) .product-card-listing {
    animation-delay: 1.0s;
}

.row:nth-child(2) .col-lg-4:nth-child(3) .product-card-listing {
    animation-delay: 1.2s;
}

/* Row 3 Delays */
.row:nth-child(3) .col-lg-4:nth-child(1) .product-card-listing {
    animation-delay: 1.4s;
}

.row:nth-child(3) .col-lg-4:nth-child(2) .product-card-listing {
    animation-delay: 1.6s;
}

.row:nth-child(3) .col-lg-4:nth-child(3) .product-card-listing {
    animation-delay: 1.8s;
}



/* Container to center the button */
.button-container {
    text-align: center;
    /* Centers the button */
    /* margin-top: 20px; */
    /* Adds spacing above the button */
    padding: 15px;
    border-top: 1px solid #ddd;
    /* Subtle separator line */
}

/* Styling the button itself */
.btn-details {
    display: inline-block;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;

    /* High-contrast look */
    background-color: var(--color-medium-blue);
    /* Primary blue background */
    color: var(--color-white);
    /* White text */
    border: 2px solid var(--color-medium-blue);
    border-radius: 50px;
    /* Rounded pill shape */

    transition: all 0.3s ease;
    text-decoration: none;
    /* Remove underline from <a> tag */
}

.btn-details:hover {
    background-color: var(--color-dark-blue);
    /* Dark background on hover */
    color: var(--color-gold);
    /* Gold text on hover */
    border-color: var(--color-gold);
    /* Gold border on hover */
    transform: scale(1.05);
}

/* Adjust card-body padding to account for the bottom-tag being absolute */
.card-body {
    padding-bottom: 25px;
    /* Give space for the bottom tag and button */
}