/* 
    ABC Enterprises - Industrial Website Stylesheet
    Colors: Red (#D01111), Black (#1A1A1A), White (#FFFFFF)
    Fonts: Montserrat, Poppins
*/

:root {
    --primary-color: #D01111;
    --secondary-color: #1A1A1A;
    --dark-color: #0F0F0F;
    --light-color: #F8F9FA;
    --white: #FFFFFF;
    --text-color: #444444;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}
.footer-links {
	padding-left: 0;
}
/* --- UTILITIES --- */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: #FBFBFB;
}

.text-red {
    color: var(--primary-color);
}

/* PREMIUM BUTTONS */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-custom i {
    transition: transform 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-primary-custom:hover i {
    transform: translateX(5px);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.4);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* --- NAVBAR --- */
.navbar {
    padding: 12px 0;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
    margin: 0 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* CUSTOM ANIMATED TOGGLER */
.navbar-toggler {
    border: none !important;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    transition: .5s ease-in-out;
    cursor: pointer;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* Three lines */
.navbar-toggler span:nth-child(1) { top: 0px; }
.navbar-toggler span:nth-child(2) { top: 10px; }
.navbar-toggler span:nth-child(3) { top: 20px; }

/* Transform to X */
.navbar-toggler:not(.collapsed) span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* MOBILE MENU OVERLAY FIX */
@media (max-width: 991px) {
    .navbar {
        position: relative;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        background: var(--white);
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        margin-top: 10px;
        border: 1px solid rgba(0,0,0,0.05);
        z-index: 1000;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-nav {
        margin-bottom: 20px;
    }

    .nav-link {
        margin: 10px 0 !important;
        padding: 10px 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-link::after { display: none; }

    .navbar .btn-primary-custom {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
    }
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect for "Ultra Pro" feel */
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
}

/* --- SECTION HEADINGS --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* --- PRODUCT CARDS --- */
.product-card {
    background: var(--white);
    border: 1px solid #eee;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-img {
    height: 250px;
    overflow: hidden;
}

.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: 20px;
}

.category-tag {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- INDUSTRY SECTION --- */
.industry-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 30px;
}

.industry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.industry-item:hover img {
    transform: scale(1.1);
}

.industry-item:hover .industry-overlay {
    background: rgba(208, 17, 17, 0.8);
}

.industry-overlay h4 {
    color: var(--white);
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* --- CERTIFICATES --- */
.cert-card {
    padding: 45px 30px;
    background: var(--white);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.cert-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(208, 17, 17, 0.12);
    border-color: var(--primary-color);
}

.cert-card i {
    transition: transform 0.4s ease;
    margin-bottom: 25px !important;
}

.cert-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* --- CTA SECTION --- */
.cta-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--white);
}

/* --- FOOTER --- */
footer {
    background: var(--dark-color);
    color: #bbb;
    padding: 70px 0 20px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-links li a::before {
    content: '\f105'; /* FontAwesome Chevron Right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links li a:hover::before {
    transform: translateX(5px);
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid #222;
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- PRODUCT TAB SLIDER --- */
.tab-slider-container {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.tab-slider-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-behavior: smooth;
    flex-grow: 1;
    cursor: grab;
}

.tab-slider-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-slider-wrapper .nav-pills {
    flex-wrap: nowrap !important;
    border: none;
}

.tab-slider-wrapper .nav-item {
    display: inline-block;
    flex: 0 0 auto;
}

.tab-slider-wrapper .nav-link {
    padding: 15px 30px;
    border: none;
    background: none !important; /* Force remove blue background */
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-slider-wrapper .nav-link.active {
    color: var(--primary-color) !important;
    background: transparent !important; /* Ensure no blue background */
}

.tab-slider-wrapper .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.tab-slider-wrapper .nav-link.active::after {
    width: 100%;
}

.slider-arrow {
    background: var(--white);
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* --- PREMIUM GALLERY GRID --- */
.gallery-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #ffffff; /* Clean white background */
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* DO NOT CROP: Shows full image */
    transition: transform 0.4s ease;
    padding: 10px; /* Safe space around images */
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover {
    box-shadow: 0 10px 25px rgba(208, 17, 17, 0.2);
}

/* Tab Fade Transition */
.tab-pane {
    transition: opacity 0.4s ease;
}

/* --- RESPONSIVE GRID --- */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* STRICT 2 COLUMNS */
    }
    .gallery-item {
        height: 200px;
    }
    .slider-arrow {
        width: 30px;
        height: 35px;
        font-size: 0.8rem;
    }
    .tab-slider-wrapper .nav-link {
        padding: 12px 15px;
        font-size: 0.75rem;
    }
}

/* --- FLOATING ACTION BUTTONS --- */
.floating-btns-left {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn-right {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-btn-right.show {
    opacity: 1;
    visibility: visible;
}
.fab-icon {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-size: 18px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	transition: var(--transition);
	border: none;
	cursor: pointer;
}

.fab-whatsapp { background-color: #25D366; }
.fab-call { background-color: var(--secondary-color); }
.fab-scroll-top { background-color: var(--primary-color); }

.fab-icon:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(208, 17, 17, 0.3);
}

.fab-whatsapp:hover { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }

/* --- MOBILE OPTIMIZATION (APP-LIKE UI) --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 35px;
    }

    .section-padding {
        padding: var(--section-padding) 0;
    }

    /* TYPOGRAPHY */
    h1 { font-size: 28px !important; line-height: 1.2; }
    h2 { font-size: 24px !important; line-height: 1.2; }
    h3 { font-size: 20px !important; line-height: 1.2; }
    p, .nav-link { font-size: 14px !important; line-height: 1.5; }
    
    .section-title { margin-bottom: 25px; }
    .section-title h2 { padding-bottom: 10px; }

    /* HEADER & NAVBAR */
    .navbar { padding: 8px 0; }
    .navbar.scrolled { padding: 5px 0; }
    .navbar-brand img { height: 40px !important; }
    
    /* HERO SECTION */
    .hero { 
        height: 60vh; /* Reduced from 90vh */
        background-attachment: scroll; /* Smoother on mobile */
    }
    .hero p { margin-bottom: 20px; font-size: 15px !important; }
    .hero-btns .btn { width: 100%; margin-bottom: 10px; margin-right: 0 !important; }

    /* CARDS & GRIDS */
    .category-card-premium {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
    .category-card-premium .img-wrapper { height: 180px; }
    
    .gallery-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .gallery-item { height: 160px; }
    
    .cert-card { padding: 25px 15px; }
    .cert-card i { margin-bottom: 15px !important; font-size: 2rem; }

    /* SPACING FIXES */
    .row { --bs-gutter-x: 15px; }
    .mb-5 { margin-bottom: 25px !important; }
    .mt-5 { margin-top: 25px !important; }
    
    /* CTA SECTION */
    .cta-section { padding: 40px 0; }
    
    /* FOOTER */
    footer { padding: 40px 0 20px; }
    .footer-bottom { margin-top: 30px; }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    h1 { font-size: 24px !important; }
    .hero { height: 50vh; }
    .section-padding { padding: 30px 0; }
}

/* Mobile Optimization for FABs */
@media (max-width: 768px) {
    .floating-btns-left {
        bottom: 20px;
        left: 20px;
        gap: 10px;
    }
    .floating-btn-right {
        bottom: 20px;
        right: 20px;
    }
    .fab-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.product-card-minimal .img-wrapper {
    height: 300px;
    overflow: hidden;
    background: #f4f4f4;
}

.product-card-minimal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card-minimal .product-title-overlay {
    padding: 15px 0;
    text-align: left;
}

.product-card-minimal h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
    transition: var(--transition);
}

.product-card-minimal:hover img {
    transform: scale(1.05);
}

.product-card-minimal:hover h5 {
    color: var(--primary-color);
}

/* --- HOMEPAGE CATEGORY SLIDER --- */
.category-slider-container {
    position: relative;
    padding: 0 50px;
}

.category-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

.category-card-premium {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    overflow: hidden;
}

.category-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.category-card-premium .img-wrapper {
    height: 250px;
    overflow: hidden;
}

.category-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-premium:hover img {
    transform: scale(1.1);
}

.category-card-premium .cat-title {
    background: var(--secondary-color); /* Deep professional blue like reference */
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Slider Arrows for Homepage */
.cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.cat-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.cat-arrow-left { left: 0; }
.cat-arrow-right { right: 0; }

@media (max-width: 992px) {
    .category-card-premium {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .category-card-premium {
        flex: 0 0 100%;
    }
    .category-slider-container {
        padding: 0;
    }
    .cat-arrow {
        display: none;
    }
}
