* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #FFFFFF;
    color: #000000;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Changed to stretch to allow custom alignment */
    width: 100%;
    max-width: none;
    padding: 0 5rem;
}

.logo {
    height: 85px;
    margin-left: 0;
    margin-right: auto;
    align-self: center; /* Keep logo vertically centered */
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
    margin-right: 0;
    align-self: flex-end; /* Align nav-links to bottom of navbar */
}

.nav-links li {
    margin-left: 2rem;
    margin-right: 0;
    padding:10px;
    position: relative; /* Added for dropdown positioning */
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    position: relative; /* Added for pseudo-element positioning */
    display: inline-block; /* Ensure proper width for underline */
}

.nav-links a:hover::after, .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Position underline just below text */
    left: 0;
    width: 100%; /* Full width of menu item text */
    height: 2px;
    background: #FF0000; /* Red underline */
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Position below Services item */
    left: 0;
    background: #FFFFFF;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
    z-index: 1000;
    min-width: 150px;
    opacity: 0; /* Start hidden for fade-in */
    animation: fadeIn 0.3s ease-in forwards; /* Fade-in animation */
}

.dropdown:hover .dropdown-menu {
    display: block; /* Show on hover for desktop */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px); /* Slight upward slide for smoothness */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    margin: 0;
    padding: 0.5rem 1rem;
}

.dropdown-menu a {
    color: #000000;
    font-weight: 400; /* Lighter weight for sub-items */
    display: block;
}

.dropdown-menu a:hover::after, .dropdown-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    
    right: 1rem;
    height: 3px;
    background: #FF0000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 0;
    align-self: center; /* Keep hamburger centered vertically */
}

.hamburger span {
    background: #000000;
    height: 3px;
    width: 25px;
    margin: 4px 0;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    position: relative;
    border-style: solid;
    border-color: #000000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0; /* Start hidden for fade-in */
    animation: fadeInUp 0.5s ease-in 0.2s forwards; /* Fade-in with delay */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0; /* Start hidden for fade-in */
    animation: fadeInUp 0.5s ease-in 0.4s forwards; /* Fade-in with delay */
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center buttons horizontally */
    gap: 1rem; /* Space between buttons */
}

.hero .btn {
    opacity: 0;
}

.hero .btn:nth-child(1) {
    animation: fadeInUp 0.5s ease-in 0.6s forwards; /* Request a Quote */
}

.hero .btn:nth-child(2) {
    animation: fadeInUp 0.5s ease-in 0.8s forwards; /* Place an Order */
}

.hero .btn:nth-child(3) {
    animation: fadeInUp 0.5s ease-in 1.0s forwards; /* Concrete Calculator */
}

/* Fade-in and slide-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* Start 30px below final position */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* End at natural centered position */
    }
}

.btn {
    background: #000080;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
}

.btn:hover {
    background: #FF0000;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #FFFFFF;
}

.about-content {
    display: flex;
    align-items: center; /* Vertically align text and image */
    gap: 2rem; /* Space between text and image */
}

.about-text {
    flex: 1; /* Take available space */
    text-align: left; /* Align text to the left */
}

.about-text h2 {
    font-size: 2rem;
    color: #FF0000;
    margin-bottom: 1.5rem;
}

.about-text p {
    max-width: 500px; /* Limit text width for readability */
    margin-bottom: 2rem;
}

.about-text .btn {
    width: fit-content; /* Button width adapts to content */
}

.about-image {
    flex: 1; /* Take available space */
    max-width: 400px; /* Limit image width */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Match service cards */
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2); /* Match product cards */
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: #F5F5F5;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #FF0000;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h3 {
    font-size: 1.2rem;
    color: #3C3B6E;
    margin-bottom: 0.5rem;
}

.testimonial-card span {
    font-size: 0.9rem;
    color: #666;
}

/* Products Section */
.products {
    padding: 4rem 0;
    background: #FFFFFF;
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #FF0000;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    display: block; /* Ensure the <a> behaves as a block for full card clickability */
    text-decoration: none; /* Remove default link underline */
    color: inherit; /* Inherit text color */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover transition */
}

.product-card:hover {
    transform: scale(1.05); /* Slight scale-up on hover */
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.3); /* Stronger shadow on hover */
}

.product-card-content {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
    text-align: center;
}

.product-card-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-content h3 {
    margin: 1rem 0;
    color: #000080;
}

.product-card-content p {
    padding: 0 1rem 1rem;
}

/* Contact Section for index.html */
.contact-home {
    padding: 4rem 0;
    background: #F5F5F5;
}

.contact-home h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #FF0000;
}

.contact-grid-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info-home p {
    margin-bottom: 1rem;
}

.contact-map-home iframe {
    width: 100%;
    border-radius: 10px;
}

/* contact.html css */
.contact {
    padding: 4rem 0;
    background: #FFFFFF;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-header h2 {
    font-size: 2rem;
    color: #FF0000;
}

.contact-image {
    max-width: 400px;
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #3C3B6E;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.contact-info label {
    font-weight: 700;
    color: #333;
}

.contact-info input,
.contact-info textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-info textarea {
    resize: vertical;
}

.contact-info .btn {
    background: #3C3B6E;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.contact-info .btn:hover {
    background: #FF0000;
}

.contact-maps h3 {
    font-size: 1.5rem;
    color: #3C3B6E;
    margin-bottom: 1rem;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.map-card {
    background: #F5F5F5;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-card h4 {
    font-size: 1.2rem;
    color: #3C3B6E;
    margin-bottom: 0.5rem;
    text-align: center;
}

.map-card iframe {
    width: 100%;
    border-radius: 5px;
}

/* Footer */
footer {
    background: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin: 0.5rem 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
        align-items: center; /* Revert to center for mobile layout */
    }

    .logo {
        margin-left: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 95px;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        padding: 1rem 0;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .dropdown-menu {
        display: none;
        position: static; /* Stack naturally in mobile */
        box-shadow: none; /* Remove shadow for mobile */
        padding: 0.5rem 0;
        background: #F5F5F5; /* Slightly different background for hierarchy */
        opacity: 0; /* Start hidden for fade-in */
        animation: fadeIn 0.3s ease-in forwards; /* Fade-in animation */
    }

    .dropdown-menu.active {
        display: block; /* Show when toggled in mobile */
    }

    .dropdown-menu li {
        padding: 0.5rem 1rem;
    }

    .dropdown-menu a {
        font-weight: 400;
    }

    .hamburger {
        display: flex;
        margin-right: 0;
    }

    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
     .hero-buttons {
        gap: 0.75rem; /* Slightly smaller gap for mobile */
    }
    
    .about-content {
        flex-direction: column; /* Stack text and image vertically */
        align-items: center; /* Center content */
    }

    .about-text {
        text-align: left; /* Keep left-aligned text */
        width: 100%; /* Full width for mobile */
    }

    .about-text p {
        max-width: none; /* Remove max-width for mobile */
    }

    .about-image {
        max-width: 100%; /* Full width for image */
        margin-top: 2rem; /* Space above image */
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr; /* Stack cards in mobile */
    }

    .contact-grid-home {
        grid-template-columns: 1fr; /*index.html*/
    }
    
    .contact-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-image {
        max-width: 100%;
        margin-top: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info form {
        max-width: none;
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}