/* Root Variables for Colors */
:root {
    --brand-primary: #DC143C; /* Crimson */
    --brand-secondary: #FFD700; /* Bright Yellow */
    --brand-accent: #26A69A; /* Teal */
    --background-light: #F9F9F9; /* Light Gray */
    --background-blue: #E3F2FD; /* Pastel Blue */
    --background-green: #E8F5E9; /* Pastel Green */
    --background-pink: #FCE4EC; /* Pastel Pink */
    --text-dark: #333333; /* Dark Text */
    --text-light: #FFFFFF; /* Light Text */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Playfair Display', serif;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--brand-primary); /* Crimson for section titles */
    text-align: center;
    margin-bottom: 40px;
}

/* Custom Colors */
.text-brand-blue {
    color: var(--brand-blue) !important;
}

.text-brand-green {
    color: var(--brand-green) !important;
}

.bg-brand-blue {
    background-color: var(--brand-blue) !important;
}

.bg-brand-green {
    background-color: var(--brand-green) !important;
}

/* General Button Styles */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #b11234; /* Darker Crimson */
    transform: translateY(-2px);
}

.btn-success {
    background-color: #DC143C; /* Crimson for success buttons */
    border-color: #DC143C;
    color: #FFFFFF;
}

.btn-success:hover, .btn-success:focus {
    background-color: #b11234; /* Darker crimson on hover */
    border-color: #b11234;
}

.btn-outline-primary {
    color: #DC143C; /* Crimson text */
    border-color: #DC143C;
}

.btn-outline-primary:hover {
    background-color: #DC143C;
    color: #FFFFFF; /* White text on hover */
}

.btn-outline-success {
    color: #DC143C; /* Crimson text */
    border-color: #DC143C;
}

.btn-outline-success:hover {
    background-color: #DC143C;
    color: #FFFFFF; /* White text on hover */
}

.btn-brand {
    background-color: var(--brand-blue); /* Use brand blue color */
    color: #fff; /* White text */
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-brand:hover {
    background-color: #3b93cd; /* Slightly darker blue on hover */
    transform: translateY(-2px); /* Subtle lift effect */
}

.btn-secondary {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: #e6c200; /* Darker Yellow */
    transform: translateY(-2px);
}

/* Buttons for Products */
.product-button {
    background-color: #DC143C; /* Crimson background */
    color: #FFFFFF; /* White text */
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-button:hover {
    background-color: #b11234; /* Darker crimson on hover */
    transform: translateY(-2px); /* Subtle lift effect */
}

/* Default Header Style */
header.fixed-top {
    background-color: #DC143C; /* Crimson background */
    color: #FFFFFF; /* White text */
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}
header {
    position: sticky;
    top: 0;
    z-index: 1020;
     /* Ensures it stays above other elements */
}
/* Scrolled Header Style */
header.fixed-top.scrolled {
    background-color: #DC143C; /* Same crimson background while scrolling */
    color: #DC143C; /* White text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Slightly darker shadow for depth */
}

/* Navbar Links */
.navbar-light .navbar-nav .nav-link {
    color: #FFFFFF; /* White text for links */
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #FFD700; /* Gold color on hover */
}

/* Navbar Brand */
header.fixed-top .navbar-brand {
    color: #FFFFFF; /* White brand text */
    transition: color 0.3s ease;
}

#mainNav {
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-blue);
}

.nav-link {
    position: relative;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--brand-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-blue);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
   
    position: relative;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.hero-section .carousel-inner img {
    height: 100vh; /* Ensure the image covers the full height */
    object-fit: cover; /* Maintain aspect ratio and cover the section */
}

.hero-content {
    position: absolute;
    bottom: 0; /* Align content to the bottom */
    width: 100%;
    padding-bottom: 1rem; /* Adjust padding as needed */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for better readability */
    text-align: center;
    color: white;
    display: block; /* Ensure proper alignment */
    z-index: 2; /* Ensure it stays above other elements */
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-content .btn {
    background-color: #DC143C; /* Custom button color */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.hero-content .btn:hover {
    background-color: #a10f2c; /* Darker shade on hover */
}

/* Hero Section Overlay */
.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(220, 20, 60, 0.7), rgba(220, 20, 60, 0.3));
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.25rem;
    margin-top: 20px;
}

/* Hero Section Button */
.hero-section .btn-learn-more {
    background-color: var(--brand-primary); /* Primary color (Crimson) */
    color: var(--text-light); /* White text */
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-section .btn-learn-more:hover {
    background-color: #b11234; /* Darker Crimson on hover */
    transform: translateY(-2px); /* Subtle lift effect */
}

/* Card Styling */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--brand-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.2); /* Crimson shadow */
}

/* Product Card */
.product-card .product-img {
    width: 100%;
    height: 300px; /* Increase height to show full image */
    object-fit: contain; /* Ensure the full image is displayed without cropping */
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9; /* Optional: Add a background color for better visibility */
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card .category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background-color: rgba(74, 164, 222, 0.1);
    color: var(--brand-blue);
}

/* Reviews Carousel */
#reviewsCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #DC143C; /* Crimson for indicators */
    opacity: 0.5;
}

#reviewsCarousel .carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
    background-color: #b11234; /* Darker crimson for active indicator */
}

/* Form Controls */
.form-control:focus {
    border-color: #DC143C;
    box-shadow: 0 0 0 0.25rem rgba(220, 20, 60, 0.25); /* Crimson focus shadow */
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.hover-text-primary:hover {
    color: var(--brand-blue) !important;
}

.hover-text-primary-dark:hover {
    color: #3b93cd !important;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    width: 3rem;
    height: 3rem;
    padding: 0;
    line-height: 3rem;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    background-color: #DC143C;
    color: #FFFFFF;
}

#scrollToTopBtn.show {
    display: block;
    opacity: 1;
}

#scrollToTopBtn:hover {
    background-color: #b11234; /* Darker crimson on hover */
}

/* Tab pills customization */
.nav-pills .nav-link {
    border-radius: 50rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--background-light);
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--brand-primary);
    color: var(--text-light);
}

/* Category Filters */
.color-category-filter.active,
.pipe-category-filter.active {
    font-weight: 500;
    transform: scale(1.05);
}

/* Background for About, Branches, and Customer Reviews */
.section-crimson {
    background-color: #DC143C; /* Crimson background */
    color: #FFFFFF; /* White text */
    padding: 40px 20px;
    border-radius: 12px;
}

.section-crimson h2, .section-crimson h3 {
    color: #FFFFFF; /* Ensure headings are white */
}

.section-crimson p {
    color: #F8F9FA; /* Slightly lighter white for text */
}

/* About Us Section */
.about-section {
    background-color: var(--background-blue);
    color: var(--text-dark);
    padding: 60px 20px;
    border-radius: 12px;
}

.about-section h2 {
    color: var(--brand-primary);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Our Branches Section */
.branches-section {
    background-color: var(--background-light);
    padding: 60px 20px;
}

.branches-section .branch-card {
    background-color: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branches-section .branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.branches-section h3 {
    color: var(--brand-primary);
    margin-bottom: 10px;
}

/* Customer Reviews Section */
.reviews-section {
    background: linear-gradient(to right, var(--background-green), var(--background-pink));
    padding: 60px 20px;
    border-radius: 12px;
}

.reviews-section .review-card {
    background-color: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.reviews-section .review-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reviews-section .review-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.reviews-section .review-card .stars {
    color: var(--brand-secondary);
    margin-bottom: 10px;
}

/* Product Section */
.product-section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.product-section .section-title {
    margin-bottom: 40px;
    color: var(--brand-primary);
}

.product-card {
    background-color: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card .product-img {
    width: 100%;
    height: 300px; /* Increase height to show full image */
    object-fit: contain; /* Ensure the full image is displayed without cropping */
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9; /* Optional: Add a background color for better visibility */
}

.product-card h5 {
    font-size: 1.25rem;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-card .btn {
    background-color: var(--brand-primary);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.product-card .btn:hover {
    background-color: #b11234; /* Darker crimson */
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-up {
    animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    white-space: nowrap;
}

.project-item {
    flex: 0 0 auto;
    width: 300px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.project-item h5 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #333;
}

.project-item p {
    font-size: 0.9rem;
    color: #666;
}

.projects-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.projects-track {
    display: flex;
    gap: 1rem;
    animation: marquee 20s linear infinite;
}

.project-item {
    flex: 0 0 auto;
    width: 300px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.project-item h5 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #333;
}

.project-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Links */
a {
    color: var(--brand-primary);
    text-decoration: none;
}

a:hover {
    color: var(--brand-secondary); /* Green on hover */
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 40px 20px;
}

footer a {
    color: var(--brand-secondary);
}

footer a:hover {
    color: var(--text-light);
}

/* Footer Icons */
footer a i {
    color: #DC143C; /* Crimson for footer icons */
    transition: color 0.3s ease;
}

footer a i:hover {
    color: #b11234; /* Darker crimson on hover */
}

/* Footer Header Text */
footer h4 {
    color: var(--text-light);
    font-weight: bold;
}

/* Icons */
i, .icon {
    color: #DC143C; /* Crimson for all icons */
}

i:hover, .icon:hover {
    color: #b11234; /* Darker crimson on hover */
}