:root {
    --primary-red: #e11d2e;
    --primary-black: #ffffff;
    /* now background */
    --secondary-black: #f5f5f5;
    /* light gray section */
    --white: #0f0f0f;
    /* now text */
    --text-gray: #555555;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c41828;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: #ffffff;
}

.mobile-only {
    display: none;
}

h1,
h2,
h3 {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.5px;
}

section {
    padding: 80px 0;
}

/* --- Header & Navbar --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    align-items: center;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--primary-red);
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.9;
    text-align: center;
    width: 100%;
}



@media (max-width: 480px) {
    .brand-name {
        font-size: 1.1rem;
    }

    .brand-tagline {
        font-size: 0.55rem;
        letter-spacing: 8px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
    /* pehle 30px tha */
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 8px 10px;
    /* click area better */
}

.nav-links a .arrow {
    font-size: 0.7rem;
    margin-left: 10px;
    /* pehle 5px tha */
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links li {
    position: relative;
}

/* --- Dropdown Menu --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--primary-red);
    padding: 10px 0;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    padding-left: 25px;
}

.nav-links a .arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: var(--transition);
}

.nav-links li:hover .arrow {
    transform: rotate(180deg);
}

.nav-cta {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.15) rotate(0.02deg);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.85));
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.slider-btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 40px;
}

.slider-next {
    right: 40px;
}

@media (max-width: 768px) {
    .slider-btn {
        top: auto;
        bottom: 30px;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .slider-btn:hover {
        transform: scale(1.1);
    }

    .slider-prev {
        left: calc(50% - 50px);
    }

    .slider-next {
        right: calc(50% - 50px);
    }
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* --- Stats Ticker Section --- */
.stats-ticker {
    background-color: var(--primary-red);
    color: #ffffff;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 50px;
    white-space: nowrap;
}

.ticker-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
}

.ticker-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.ticker-track:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .ticker-item {
        padding: 0 30px;
        gap: 10px;
    }

    .ticker-number {
        font-size: 1.3rem;
    }

    .ticker-text {
        font-size: 0.8rem;
    }
}

/* --- About Section --- */
.about {
    background-color: var(--secondary-black);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* --- Products Section --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
}

.product-img {
    height: 250px;
    background-color: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* --- Certificates Page --- */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.certificate-card {
    background-color: #ffffff;
    position: relative;
    aspect-ratio: 1 / 1.414;
    /* A4 Ratio */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: var(--transition);
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(225, 29, 46, 0.95);
    /* Primary Red with opacity */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
    pointer-events: none;
    color: #ffffff;
}

.certificate-card:hover .cert-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cert-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.cert-overlay p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 25px;
}

.cert-overlay .btn {
    background: #ffffff;
    color: var(--primary-red);
    padding: 10px 25px;
    font-weight: 600;
}

.cert-overlay .btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

/* --- Certificates Section --- */
.certificates {
    background-color: var(--secondary-black);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cert-item {
    background: #ffffff;
    padding: 30px;
    border-left: 5px solid var(--primary-red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.cert-item h3 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.cert-item p {
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- Why Choose Us (Removed duplicates) --- */

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.contact-item label {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-item a,
.contact-item span {
    font-size: 1.2rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: #111;
    color: #ffffff;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.copyright {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.why-us {
    padding: 80px 0;
    background-color: #ffffff;
    overflow: visible;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
}

.feature {
    text-align: left;
    padding: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    height: auto;
    min-height: min-content;
}

.feature h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    word-wrap: break-word;
}

.feature h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.feature p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
    word-wrap: break-word;
}

.about-hero {
    background: linear-gradient(rgba(15, 15, 15, 0.7), rgba(15, 15, 15, 0.7)), url('../images/about-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 120px 0 80px;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.feature h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.feature h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.feature p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* --- About Page Specifics --- */
.capability-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.capability-item {
    background: #ffffff;
    padding: 30px;
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.capability-item:hover {
    transform: translateX(10px);
}

.capability-item h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-ov-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.product-ov-item {
    background: var(--secondary-black);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--white);
    border: 1px solid #eee;
    transition: var(--transition);
}

.product-ov-item:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
    transform: scale(1.05);
}

/* --- Testimonials --- */
.testimonials-section {
    background-color: var(--secondary-black);
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.testimonial-author h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- FAQ --- */
.faq-section {
    padding: 100px 0;
    background: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background: var(--secondary-black);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: #ffffff;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 25px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav {
        height: 70px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        z-index: 2000;
        transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
        top: 0;
    }

    .nav-links li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1rem;
        justify-content: center;
        padding: 4px 0;
    }

    /* Mobile Dropdown Fix */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: #f9f9f9;
        margin-top: 10px;
        width: 100%;
        border-top: none;
        border-left: 3px solid var(--primary-red);
        padding: 10px 0;
    }

    .dropdown-menu a {
        font-size: 0.9rem;
        padding: 12px 20px;
        white-space: normal;
        line-height: 1.4;
    }

    .nav-links li.active .dropdown-menu {
        display: block;
    }

    .mobile-only {
        display: block !important;
        margin-top: 20px;
    }

    .desktop-only {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
        z-index: 2001;
    }

    .menu-toggle span {
        transition: var(--transition);
    }

    .nav-cta {
        gap: 15px;
    }

    @media (max-width: 480px) {
        .logo {
            font-size: 1.1rem;
            gap: 8px;
        }

        .logo img {
            height: 35px;
        }

        .nav-cta .btn-primary {
            padding: 8px 12px;
            font-size: 0.75rem;
        }

        /* Hide "Get Quote" text on very small screens if still overlapping, 
           but first let's try just reducing padding/font */
    }

    .footer-grid {
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        padding: 120px 0 80px;
        clip-path: none;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* --- Diagonal Shapes --- */
.diagonal-bg {
    position: relative;
    background-color: var(--secondary-black);
    padding: 100px 0;
    overflow: hidden;
}

.diagonal-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: var(--primary-red);
    transform: skewY(-3deg);
    z-index: -1;
}

.diagonal-shape-left {
    position: relative;
}

.diagonal-shape-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-red);
    transform: skewX(-15deg);
}

/* --- Mission & Vision --- */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: var(--secondary-black);
    padding: 40px;
    border-top: 4px solid var(--primary-red);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.mv-card p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* --- Business Details Card --- */
.biz-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.biz-card {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.biz-card label {
    display: block;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.biz-card span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

/* --- About Hero Specific --- */
.hero.about-hero {
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('infinity_flow_about_hero_1777548337673.png');
    background-size: cover;
    background-position: center;
}

/* --- Contact Page Specific --- */
.contact-hero {
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('infinity_flow_contact_hero_1777548554055.png');
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 400px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* --- Contact Form --- */
.inquiry-form {
    background: #ffffff;
    padding: 40px;
    border-left: 5px solid var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25d366;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    transition: var(--transition);
    border-radius: 4px;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
}

/* --- Map Embed --- */
.map-container {
    height: 450px;
    width: 100%;
    background-color: #eee;
    margin-bottom: 80px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.5) contrast(1.1);
}

/* --- Business Hours --- */
.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.hours-list li span:first-child {
    color: var(--text-gray);
}

.hours-list li span:last-child {
    font-weight: 700;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Products Page Specific --- */
.products-hero {
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('infinity_flow_products_hero_1777548734346.png');
    background-size: cover;
    background-position: center;
}

/* --- Stats Section --- */
.stats-section {
    padding: 80px 0;
    background: var(--secondary-black);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-red);
    display: block;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Industries We Serve --- */
.industries-section {
    padding: 100px 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.industry-card {
    background: #000000;
    padding: 60px 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    /* Consistent opacity for background image */
    transition: var(--transition);
    z-index: -1;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary-red);
    transition: var(--transition);
    z-index: 3;
}

.industry-card:hover::before {
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 15px 40px rgba(225, 29, 46, 0.15);
}

.industry-card:hover .card-bg {
    opacity: 0.6;
    /* Slightly clear image on hover for depth, but no blur */
    transform: scale(1.05);
}

.industry-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    color: var(--primary-red);
    /* Industrial theme color for icons */
}

.industry-card h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.industry-card p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* --- Quality Manufacturing --- */
.quality-section {
    padding: 100px 0;
    background: var(--secondary-black);
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.quality-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.quality-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.quality-image:hover img {
    transform: scale(1.05);
}

.quality-content h2 {
    margin-bottom: 30px;
}

.quality-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.q-feature {
    display: flex;
    gap: 15px;
}

.q-feature i {
    color: var(--primary-red);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.q-feature i svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.q-feature h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.q-feature p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--primary-red);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background: var(--secondary-black);
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.faq-question {
    width: 100%;
    padding: 20px 30px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f9f9f9;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px 30px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- Final CTA Section --- */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background-color: var(--primary-red);
    background-image: linear-gradient(rgba(225, 29, 46, 0.9), rgba(225, 29, 46, 0.9)),
        url('infinity_flow_manufacturing_quality_png_1777550262195.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: #ffffff !important;
    /* Force white for title */
    text-transform: uppercase;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
}

.final-cta .btn-primary {
    background-color: #ffffff;
    color: var(--primary-red);
}

.final-cta .btn-primary:hover {
    background-color: #f5f5f5;
    color: #c41828;
}

.final-cta .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.final-cta .btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-red);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .quality-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .quality-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* --- Page Header Hero --- */
.page-header {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
        url('infinity_flow_about_hero_1777548337673.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background-color: var(--secondary-black);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.legacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* --- Capability List --- */
.capability-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.capability-item {
    background: #ffffff;
    padding: 20px;
    border-left: 3px solid var(--primary-red);
    transition: var(--transition);
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.capability-item:hover {
    background: #fdfdfd;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* --- Product Overview List --- */
.product-ov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.product-ov-item {
    padding: 15px;
    background: #ffffff;
    border: 1px solid #eee;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.product-ov-item:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .legacy-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Product Page Specific --- */
.product-hero {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
        url('industrial_valve_plant_background_1777547974671.png');
    background-size: cover;
    background-position: center;
}

.product-detail-section {
    padding: 80px 0;
}

.product-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.sidebar-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.spec-table th,
.spec-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.spec-table th {
    background: rgba(225, 29, 46, 0.1);
    color: var(--white);
    font-weight: 600;
    width: 35%;
}

.spec-table td {
    color: var(--text-gray);
}

.spec-table tr:hover {
    background: #f9f9f9;
}

.product-features-list {
    list-style: none;
    margin-top: 20px;
}

.product-features-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-gray);
}

.product-features-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}



/* --- Content-Aligned Intro Image --- */
.product-intro-img {
    display: block;
    margin: 30px 0;
    /* Align to left/start like text */
    width: 100%;
    /* Match the content column width */
    max-width: 100%;
    height: 300px;
    /* Controlled height to prevent excessive pushing */
    object-fit: cover;
    /* Professional cropping */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-intro-img:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .product-intro-img {
        height: 200px;
        margin: 20px 0;
    }
}

/* --- Product Pages Responsiveness --- */
@media (max-width: 992px) {
    .product-grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-hero {
        padding: 100px 0 60px;
    }

    .product-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .spec-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .spec-table th,
    .spec-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
        min-width: 120px;
        /* Prevent cramped cells */
    }

    .sidebar-card {
        padding: 20px;
    }

    .product-hero h1 {
        font-size: 1.8rem;
    }

    .product-detail-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .spec-table th {
        width: 40%;
    }

    .product-features-list li {
        font-size: 0.9rem;
        padding-left: 25px;
    }
}

/* --- Global Responsive Fixes --- */
.hero-btns {
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-btns {
        justify-content: center;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

/* --- Certificates Page Styling --- */
.certificates-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) !important;
    /* Premium dark background */
    padding: 120px 0 80px;
    margin-bottom: 0;
    /* Align with next section */
}

.certificates-header h1 {
    color: #ffffff !important;
}

.certificates-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 1.2rem !important;
    max-width: 800px;
    margin: 0 auto !important;
    font-weight: 400 !important;
    line-height: 1.6;
}

.cert-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.cert-quality-grid .sidebar-card h4 {
    color: var(--primary-red);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cert-quality-grid .sidebar-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

@media (max-width: 992px) {
    .cert-quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cert-quality-grid {
        grid-template-columns: 1fr;
    }

    .certificates-header {
        padding: 80px 0 40px;
    }

    .certificates-header h1 {
        font-size: 2.5rem;
    }
}

/* --- Unified Premium Header (Dark Gradient) --- */
.page-header,
.product-hero,
.products-hero,
.contact-hero,
.about-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) !important;
    padding: 120px 0 80px;
    text-align: center;
    /* Center align for premium look */
}

.page-header h1,
.product-hero h1,
.products-hero h1,
.contact-hero h1,
.about-hero h1 {
    color: #ffffff !important;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.page-header p,
.product-hero p,
.products-hero p,
.contact-hero p,
.about-hero p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 1.2rem !important;
    max-width: 800px;
    margin: 0 auto !important;
    font-weight: 400 !important;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .page-header,
    .product-hero,
    .products-hero,
    .contact-hero {
        padding: 80px 0 60px;
    }
}

/* Ensure hero content block is centered */
.page-header .hero-content,
.product-hero .hero-content,
.contact-hero .hero-content,
.about-hero .hero-content {
    margin: 0 auto !important;
    text-align: center;
}

/* --- Matching Index.html Hero Layout --- */
.page-header,
.product-hero,
.products-hero,
.contact-hero,
.about-hero,
.certificates-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) !important;
    padding: 120px 0 80px;
    text-align: left !important;
    /* Match index.html left alignment */
}

.page-header .hero-content,
.product-hero .hero-content,
.products-hero .hero-content,
.contact-hero .hero-content,
.about-hero .hero-content,
.certificates-header .hero-content {
    max-width: 800px;
    margin: 0 !important;
    /* Align to left */
    text-align: left !important;
}

.page-header h1,
.product-hero h1,
.products-hero h1,
.contact-hero h1,
.about-hero h1,
.certificates-header h1 {
    color: #ffffff !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    /* Match index.html size */
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase;
}

.page-header p,
.product-hero p,
.products-hero p,
.contact-hero p,
.about-hero p,
.certificates-header p {
    color: rgba(255, 255, 255, 0.8) !important;
    /* Light gray/white for dark bg */
    font-size: 1.2rem !important;
    max-width: 650px !important;
    /* Match index.html constrained width */
    margin-bottom: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin-left: 0 !important;
}

@media (max-width: 768px) {

    .page-header h1,
    .product-hero h1,
    .contact-hero h1 {
        font-size: 2.2rem !important;
    }

    .page-header p,
    .product-hero p,
    .contact-hero p {
        font-size: 1.1rem !important;
    }
}

/* --- Home Cert Grid Fix (3x2) --- */
.home-cert-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.certificate-card {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .home-cert-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .home-cert-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Updated Product Overview with Images --- */
.product-ov-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px !important;
}

.product-ov-item {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 10px 15px !important;
    text-align: left !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    border-left: 4px solid var(--primary-red) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.product-ov-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 4px;
}

.product-ov-item span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

@media (max-width: 480px) {
    .product-ov-grid {
        grid-template-columns: 1fr !important;
    }

    .product-ov-item {
        gap: 15px;
    }

    .product-ov-item img {
        width: 60px;
        height: 60px;
    }

    .product-ov-item span {
        font-size: 1rem;
    }
}

/* --- Square 1:1 Product Range Grid --- */
.product-ov-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    /* Force 3 columns */
    gap: 25px !important;
}

.product-ov-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 1 / 1 !important;
    padding: 20px !important;
    background: #ffffff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    transition: var(--transition) !important;
    position: relative !important;
    border-left: none !important;
    /* Remove previous side border */
}

.product-ov-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red) !important;
}

.product-ov-item img {
    width: 70% !important;
    height: 70% !important;
    object-fit: contain !important;
    transition: var(--transition);
}

.product-ov-item span {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--white) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .product-ov-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .product-ov-grid {
        grid-template-columns: 1fr !important;
    }

    .product-ov-item span {
        font-size: 0.85rem !important;
    }
}

/* --- Product Range Gallery (Industry Style) --- */
.product-range-gallery {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

.product-gallery-item {
    background: #0a0a0a !important;
    /* Dark background */
    padding: 60px 30px !important;
    border-radius: 12px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: var(--transition) !important;
    z-index: 1 !important;
}

.product-gallery-item .item-bg {
    position: absolute !important;
    top: 10% !important;
    left: 10% !important;
    width: 80% !important;
    height: 80% !important;
    background-size: contain !important;
    /* Keep the valve visible */
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.6 !important;
    /* Visible but not overpowering */
    transition: var(--transition) !important;
    z-index: -2 !important;
}

.product-gallery-item .item-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)) !important;
    z-index: -1 !important;
}

.product-gallery-item h3 {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    z-index: 2 !important;
}

.product-gallery-item:hover {
    transform: scale(1.02) !important;
    border-color: var(--primary-red) !important;
}

.product-gallery-item:hover .item-bg {
    opacity: 0.9 !important;
    transform: scale(1.1) !important;
}

@media (max-width: 992px) {
    .product-range-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .product-range-gallery {
        grid-template-columns: 1fr !important;
    }
}

/* --- Exact Industry Style for Product Gallery --- */
.product-range-gallery {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    /* Match industries-grid gap */
}

.product-gallery-item {
    background: #000000 !important;
    /* Match industry-card background */
    padding: 60px 40px !important;
    /* Match industry-card padding */
    border-radius: 8px !important;
    /* Match industry-card radius */
    aspect-ratio: 1 / 1 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: var(--transition) !important;
    z-index: 1 !important;
}

.product-gallery-item .item-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    /* EXACT match with card-bg */
    background-position: center !important;
    opacity: 0.45 !important;
    /* EXACT match with card-bg */
    transition: var(--transition) !important;
    z-index: -1 !important;
}

.product-gallery-item h3 {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    /* Match industry-card h3 size if possible */
    font-weight: 700 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    text-transform: none !important;
    /* Match industry-card style */
}

.product-gallery-item .item-overlay {
    display: none !important;
    /* Industry card doesn't use a separate overlay div, it uses opacity on bg */
}

.product-gallery-item:hover {
    transform: translateY(-10px) !important;
    /* Match industry-card hover */
}

.product-gallery-item:hover .item-bg {
    opacity: 0.7 !important;
    transform: scale(1.1) !important;
}

.product-gallery-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 5px !important;
    height: 0 !important;
    background: var(--primary-red) !important;
    transition: var(--transition) !important;
    z-index: 3 !important;
}

.product-gallery-item:hover::before {
    height: 100% !important;
}

.product-gallery-item {
    justify-content: flex-end !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 40px !important;
    /* Balanced padding for bottom-left text */
}

.product-gallery-item h3 {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
}

/* --- Finalized Product Slider (Infinite & Responsive) --- */
.product-slider-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding: 0 50px;
}

.product-slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.product-slider-track {
    display: flex !important;
    gap: 30px !important;
    width: max-content !important;
    transition: transform 0.5s ease-in-out;
}

.product-slider-track .product-gallery-item {
    flex: 0 0 auto !important;
    aspect-ratio: 1 / 1 !important;
    /* Precise width is set via JS for perfect layout */
}

.product-prev,
.product-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    cursor: pointer;
}

.product-prev {
    left: 0 !important;
}

.product-next {
    right: 0 !important;
}

@media (max-width: 600px) {
    .product-slider-container {
        padding: 0 40px;
    }
}

/* --- Pinterest-style Masonry Gallery --- */
.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    break-inside: avoid;
    /* Prevent splitting across columns */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}


.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}


@media (max-width: 992px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-masonry {
        column-count: 1;
    }
}

/* --- Mobile Dropdown & Visibility Fix --- */
@media (max-width: 768px) {
    .nav-links a {
        color: #333 !important;
    }

    .dropdown-menu a {
        color: #555 !important;
        text-align: center;
    }

    .nav-links li.active .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* --- 2-Column Banner Grid --- */
.header-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    filter: invert(1) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    /* Invert colors for dark bg */
    mix-blend-mode: screen;
    /* Remove black background (which was originally white) */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 992px) {
    .header-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-image {
        display: none;
        /* Hide image on smaller tablets/phones to keep focus on text */
    }
}

/* --- Centered Single Column Hero for Individual Product Pages --- */
.page-header .hero-content.centered-hero-content {
    margin: 0 auto !important;
    text-align: center !important;
    max-width: 800px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-header .hero-content.centered-hero-content h1,
.page-header .hero-content.centered-hero-content p {
    text-align: center !important;
}

.page-header .hero-content.centered-hero-content p {
    margin-left: auto !important;
    margin-right: auto !important;
}