/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #01889F; /* TRK blue/teal from logo */
    --secondary-color: #333333;
    --accent-color: #E31937; /* TRK red */
    --light-color: #F0F2F5; /* A softer light grey */
    --dark-color: #212529;
    --text-color-muted: #6c757d; /* Slightly darker muted text */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Stronger, softer shadow */
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Even stronger on hover */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #ffffff; /* Ensure a clean white background */
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 120px;
    color: white;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://placehold.co/1920x1080/333333/FFFFFF?text=Modern+Infrastructure') center/cover no-repeat fixed; /* Added a placeholder image and fixed background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Make hero section taller */
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.8rem; /* Slightly larger */
    font-weight: 700;
    margin-bottom: 1.8rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Stronger text shadow */
    letter-spacing: -0.05rem;
}

.hero-content p {
    font-size: 1.6rem; /* Slightly larger */
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0 15px; /* More spacing between buttons */
    padding: 14px 35px; /* Larger padding */
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    background-image: linear-gradient(45deg, var(--primary-color) 0%, #006b82 100%); /* Subtle gradient */
}

.btn-primary:hover {
    background-color: #006b82; /* Slightly darker teal */
    border-color: #006b82;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color); /* Thicker border */
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.section {
    padding: 100px 0; /* Consistent padding */
    background-color: white; /* Default background for sections */
}

.section:nth-of-type(even) {
    background-color: var(--light-color); /* Alternate background for sections */
}

.section-title {
    font-size: 3rem; /* Larger title */
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color); /* Accent line under title */
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.35rem;
    text-align: center;
    color: var(--text-color-muted);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Product Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
    background-color: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.card-body h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 1.7rem;
}

.card-body p.text-muted {
    font-size: 1.05rem;
    color: var(--text-color-muted) !important;
}

.card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.card-body ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-color-muted);
}

.card-body .display-4 {
    font-size: 3.5rem;
    color: var(--accent-color); /* Icon color */
}

/* Image in Cards */
.card-image-top {
    width: 100%;
    height: 250px; /* Fixed height for product images */
    object-fit: cover; /* Ensure images cover the area without distortion */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Call to Action Section */
.bg-primary {
    background-color: var(--primary-color) !important;
    background-image: linear-gradient(to right, var(--primary-color) 0%, #006b82 100%) !important; /* Gradient for CTA */
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    background-color: #e2e6ea;
    border-color: #e2e6ea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark-color); /* Darker footer */
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 20px;
}

.footer p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px; /* Slightly larger */
    height: 65px; /* Slightly larger */
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Larger icon */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    z-index: 99;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-cta:hover {
    transform: scale(1.15) translateY(-5px); /* More pronounced hover effect */
    background-color: #c0102a;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    .hero-content p {
        font-size: 1.4rem;
    }
    .section-title {
        font-size: 2.8rem;
    }
    .section-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 150px 0 100px;
        min-height: 60vh;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    .section {
        padding: 80px 0;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
    }
    .card-body h4 {
        font-size: 1.5rem;
    }
    .card-body p.text-muted {
        font-size: 1rem;
    }
    .floating-cta {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        bottom: 25px;
        right: 25px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 70px;
        min-height: 50vh;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 0 10px 15px 10px; /* Stack buttons vertically on smaller screens */
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
        padding-bottom: 10px;
    }
    .section-title::after {
        height: 3px;
        width: 60px;
    }
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }
    .card-image-top {
        height: 200px;
    }
    .floating-cta {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 90%;
        margin: 10px auto;
    }
    .card-body .display-4 {
        font-size: 3rem;
    }
    .card-body h4 {
        font-size: 1.4rem;
    }
    .card-body p.text-muted {
        font-size: 0.9rem;
    }
}
/* Add this to your existing styles */
.card-img-top {
    width: 100%;
    height: 200px; /* Set a fixed height for all images */
    object-fit: cover; /* This ensures images cover the space while maintaining aspect ratio */
    object-position: center; /* Centers the image within the frame */
}

/* Optional: If you want the cards themselves to be equal height */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    flex: 1; /* This makes the card body take up remaining space */
}
/* Elevators section */
#elevators .card-img-top {
    height: 220px;
}

/* Escalators section */
#escalators .card-img-top {
    height: 250px;
}

/* Generators section */
#generators .card-img-top {
    height: 200px;
}

/* Boreholes section */
#boreholes .card-img-top {
    height: 180px;
}
