/* styles.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Mukta', sans-serif;
    color: #333;
    scroll-behavior: smooth;
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Color Scheme */
:root {
    --primary-color: #0C86A3;
    --secondary-color: #4FBCD6;
    --accent-color: #FFFFFF;
    --background-color: #f9f9f9;
    --text-color: #555555;
    --header-height: 70px;
}

/* Top Bar with Contact Information */
.top-bar {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 5px 0;
    font-size: 0.9em;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--accent-color);
    margin-left: 15px;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--accent-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    padding: 10px 0;
}

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

/* Custom Button Styles */
.btn-custom {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-custom:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    margin-top: calc(var(--header-height) + 40px); /* Adjustment for fixed header and top bar */
    position: relative;
}

.carousel-item {
    height: 100vh;
    min-height: 400px;
    background: no-repeat center center scroll;
    background-size: cover;
    position: relative;
    display: block;
    color: var(--accent-color);
}

.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 134, 163, 0.6);
    z-index: 1;
}

.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-caption-custom h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.carousel-caption-custom p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* About Us Section */
#about {
    padding: 80px 0;
    background-color: var(--accent-color);
    text-align: center;
}

#about h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2.5em;
}

#about p {
    max-width: 800px;
    margin: auto;
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.6;
}

/* Machinery Brands Section */
#brands {
    padding: 80px 0;
    background-color: var(--background-color);
}

#brands h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 2.5em;
}

.brand-card {
    background-color: var(--accent-color);
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.brand-card img {
    max-width: 100px;
    margin-bottom: 15px;
    object-fit: contain;
}

.brand-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.brand-card p {
    color: var(--text-color);
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 1em;
}

.brand-card a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.brand-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Services Section */
#services {
    padding: 80px 0;
    background-color: var(--accent-color);
}

#services h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 2.5em;
}

.service-item {
    text-align: center;
    padding: 20px;
    background-color: var(--accent-color);
    border: 1px solid #ddd;
    border-radius: 0;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 600;
}

.service-item p {
    color: var(--text-color);
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1;
}

/* Contact Section */
#contact {
    padding: 80px 0;
    background-color: #f1f1f1;
}

#contact h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 2.5em;
}

.contact-info {
    text-align: center;
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-info a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Map */
.map-container {
    width: 100%;
    height: 400px;
    margin-top: 30px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    font-size: 1em;
}

footer a {
    color: var(--accent-color);
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .carousel-caption-custom h1 {
        font-size: 2.5em;
    }

    #brands h2, #services h2, #about h2, #contact h2 {
        font-size: 2em;
    }

    /* Hide Contact Information on Medium and Small Screens */
    .navbar-contact {
        display: none; /* Hide on medium and small screens */
    }
}

@media (max-width: 768px) {
    .carousel-caption-custom h1 {
        font-size: 2em;
    }

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

    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar a {
        margin-left: 0;
        margin-top: 5px;
    }

    .brand-card img {
        max-width: 80px;
    }

    .service-item i {
        font-size: 2.5em;
    }

    .service-item h3 {
        font-size: 1.2em;
    }

    .contact-info p {
        font-size: 1em;
    }

    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .carousel-caption-custom h1 {
        font-size: 1.8em;
    }

    .top-bar .container {
        align-items: flex-start;
    }

    .navbar-nav .nav-item .nav-link {
        margin-left: 5px;
        font-size: 0.8em;
    }
}
