:root {
    --primary-red: #D9232E;
    --primary-red-hover: #b01c25;
    --primary-yellow: #FFC107;
    --primary-yellow-hover: #e0a800;
    --light-bg: #FFFFFF;
    --section-gray: #F4F6F8;
    --text-main: #333333;
    --text-muted: #6c757d;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    width: 100%;
    color: var(--text-main);
    background-color: var(--light-bg);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #222;
}

/* Custom Colors & Utilities */
.text-red {
    color: var(--primary-red) !important;
}

.text-gray-light {
    color: #adb5bd !important;
}

.text-gray-dark {
    color: #495057 !important;
}

.bg-red {
    background-color: var(--primary-red) !important;
}

/* Red Button */
.btn-red {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-red:hover {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 35, 46, 0.4);
    color: white;
}

/* Yellow Button */
.btn-yellow {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-yellow:hover {
    background-color: var(--primary-yellow-hover);
    border-color: var(--primary-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.hover-red:hover {
    color: var(--primary-red) !important;
    transition: color 0.2s ease;
}

/* Navigation */
#mainNav {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    color: var(--text-main);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-red) !important;
}

.navbar-dark .navbar-brand img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navbar-brand .bg-red {
    min-width: 32px;
    text-align: center;
}

/* Navbar Dark Support (White Text) */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-red) !important;
}

.navbar-dark .navbar-brand {
    color: #fff !important;
}

/* Nested Dropdown CSS - Responsive */
.dropdown-menu li {
    position: relative;
}

/* Desktop: Flyout */
@media (min-width: 992px) {
    .dropdown-menu .dropdown-submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }

    .dropdown-menu .dropdown-item:hover>.dropdown-submenu {
        display: block;
    }

    .dropdown-menu>li:hover>.dropdown-submenu {
        display: block;
    }
}

/* Mobile: Stacked */
@media (max-width: 991px) {
    .dropdown-menu .dropdown-submenu {
        position: static;
        display: block;
        margin-left: 1.5rem;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding-top: 0;
        padding-bottom: 0;
    }

    .dropdown-menu .dropdown-item {
        white-space: normal;
    }
}

/* Hero Section (Home) */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    background: radial-gradient(circle at center, #ffffff 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
}

/* LIGHT Page Header (Like Home Page) */
.page-header-light {
    background: radial-gradient(circle at center, #ffffff 0%, #f3f4f6 100%);
    padding: 160px 0 80px;
    /* Reduced top padding slightly as it's not full screen */
    color: #333;
    margin-top: 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-light h1 {
    color: #222;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Breadcrumbs for Light Header */
.page-header-light .breadcrumb-item.active {
    color: #6c757d;
    /* Muted gray for active item */
}

.page-header-light .breadcrumb-item+.breadcrumb-item::before {
    color: #adb5bd;
}

.page-header-light .breadcrumb-item a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.page-header-light .breadcrumb-item a:hover {
    color: var(--primary-red);
}

/* Section Spacing */
.section-spacer {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Images */
.rounded-4 {
    border-radius: 1rem !important;
}

/* Premium Feature Box (About Page) */
.feature-box {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-red);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(217, 35, 46, 0.1);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.feature-box:hover .feature-icon-wrapper {
    background: var(--primary-red);
    color: #fff;
    transform: rotateY(360deg);
}



/* Service Card (Home) */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.card-img-wrapper {
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.card-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Service Cards (Services Page) */
.service-card-premium {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: none;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-img-container {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-premium:hover .service-img-container img {
    transform: scale(1.1);
}



.service-content {
    padding: 1.5rem;
}

.service-content h4 {
    color: var(--primary-red);
}

/* Stats Section */
.stats-section {
    background: #111;
    color: #fff;
    padding: 80px 0;
    position: relative;
}

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

/* Timeline (About) */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    border-left: 2px solid #eee;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-red);
}

.timeline-item:last-child {
    border-left: none;
}


/* Form Controls */
.form-control {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #333;
    padding: 0.8rem 1rem;
}

.form-control:focus {
    background-color: #fff;
    color: #333;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(217, 35, 46, 0.1);
}

/* Modal */
.modal-content {
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
}

/* Footer */
footer {
    background-color: #0c0c0c;
    color: #fff;
    border-top: none;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

footer a.text-muted:hover {
    color: var(--primary-red) !important;
}

footer hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

footer h5 span {
    color: #fff !important;
}

footer h5 span.text-red {
    color: var(--primary-red) !important;
}

/* Client Logo Card Hover Effect */
.client-logo-card {
    transition: all 0.3s ease;
}

.client-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-red) !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {

    .page-header,
    .page-header-light {
        padding: 120px 0 60px;
        clip-path: none;
    }

    .hero-section {
        padding-top: 80px;
        min-height: 100vh;
        /* Force full screen height */
        padding-bottom: 40px;
        display: flex;
        align-items: center;
        /* Center content vertically */
    }

    .hero-section h1 {
        font-size: 2.2rem;
        /* Slightly smaller for better fit */
        line-height: 1.2;
    }

    .display-2 {
        font-size: 2.2rem;
    }

    .navbar {
        background-color: #ffffff !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        max-height: 70vh;
        overflow-y: auto;
        border-top: 1px solid #f0f0f0;
    }

    .section-spacer {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .feature-box {
        margin-bottom: 1rem;
    }

    .service-img-container {
        height: 200px;
    }

    .text-center-mobile {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 70px;
        /* Account for navbar */
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .display-2 {
        font-size: 1.75rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        /* Full width buttons on very small screens */
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Fix button container to stack on mobile */
    .hero-section .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .section-spacer {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* Equipment Catalog Styles */
.category-title {
    border-left: 5px solid var(--primary-red);
    padding-left: 1rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.img-caption {
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 0.85rem;
    font-size: 1rem;
}

.catalog-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.catalog-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

/* Page Header Dark Bar - As per Screenshot */
.page-dark-header {
    background-color: #000;
    color: #fff;
    padding: 2.5rem 0;
    margin-top: 80px;
    /* Offset for fixed nav */
    text-align: center;
}

.page-dark-header h1 {
    margin: 0;
    font-weight: 800;
    color: #fff;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.section-title-box {
    background: #f8f9fa;
    border-left: 5px solid var(--primary-red);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0 8px 8px 0;
}

.catalog-section {
    padding: 60px 0;
}

/* Sticky Call Button */
.sticky-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Moved back to right */
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-red);
    color: white !important;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
}

.sticky-call-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.sticky-call-btn i {
    font-size: 1.3rem;
    animation: phone-shake 3s infinite;
}

@keyframes phone-shake {

    0%,
    90%,
    100% {
        transform: rotate(0deg);
    }

    92% {
        transform: rotate(10deg);
    }

    94% {
        transform: rotate(-10deg);
    }

    96% {
        transform: rotate(5deg);
    }

    98% {
        transform: rotate(-5deg);
    }
}

@media (max-width: 768px) {
    .sticky-call-btn {
        bottom: 20px;
        right: 20px;
        /* Moved back to right */
        left: auto;
        /* Reset left */
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Footer responsive improvements */
    footer {
        padding-bottom: 20px !important;
        /* Reset padding */
    }

    footer .col-lg-3,
    footer .col-lg-2,
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }

    footer h6 {
        font-size: 1rem;
    }

    footer .small {
        font-size: 0.875rem !important;
        opacity: 1 !important;
        /* increased visibility */
    }

    footer .text-white-50 {
        color: rgba(255, 255, 255, 0.8) !important;
        /* Increased contrast */
        opacity: 1 !important;
    }

    /* Contact section mobile improvements */
    #contact .col-lg-5,
    #contact .col-lg-7 {
        padding: 2rem !important;
    }

    /* Client logo cards mobile */
    .client-logo-card {
        padding: 1.5rem !important;
    }

    .client-logo-card img {
        max-height: 60px !important;
    }
}