/* =========================================================
   MAHARSHI ENGITECH WEBSITE
   MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   1. GLOBAL SETTINGS
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1d3557;
    background-color: #ffffff;
    line-height: 1.6;
}


/* Remove default link styling */

a {
    text-decoration: none;
    color: inherit;
}


/* Images */

img {
    max-width: 100%;
    display: block;
}


/* Container */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   2. BRAND COLORS
   ========================================================= */

:root {

    --primary-blue: #1f477d;

    --dark-blue: #17385f;

    --light-blue: #eaf2fb;

    --red: #e52b20;

    --dark-red: #c9231a;

    --white: #ffffff;

    --light-gray: #f6f8fb;

    --gray: #666666;

    --dark: #17202a;

    --border: #dce3eb;

}




/* =========================================================
   3. HEADER / NAVBAR
   ========================================================= */

.header {

    width: 100%;

    background-color: var(--white);

    position: sticky;

    top: 0;

    z-index: 1000;

    border-bottom: 1px solid var(--border);

    transition: 0.3s ease;
}


.header-container {

    min-height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* ================= LOGO ================= */

.logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;
}


.logo img {

    width: 185px;

    height: auto;
}


/* ================= NAVIGATION ================= */

.navbar {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    margin-left: auto;
}


.nav-link {

    position: relative;

    color: var(--dark-blue);

    font-size: 14px;

    font-weight: 700;

    padding: 8px 0;

    transition: 0.3s ease;
}


.nav-link:hover {

    color: var(--red);
}


.nav-link::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -5px;

    width: 0;

    height: 2px;

    background-color: var(--red);

    transform: translateX(-50%);

    transition: 0.3s ease;
}


.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;
}


.nav-link.active {

    color: var(--red);
}


/* ================= CALL BUTTON ================= */

.header-action {

    margin-left: 10px;
}


.header-call {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 105px;

    height: 42px;

    padding: 0 18px;

    background-color: var(--red);

    color: var(--white);

    border-radius: 5px;

    font-size: 14px;

    font-weight: 700;

    transition: 0.3s ease;
}


.header-call:hover {

    background-color: var(--dark-red);

    transform: translateY(-2px);
}


/* ================= MOBILE BUTTON ================= */

.menu-button {

    display: none;

    width: 44px;

    height: 44px;

    border: none;

    border-radius: 5px;

    background-color: var(--primary-blue);

    color: var(--white);

    font-size: 24px;

    cursor: pointer;
}


/* =========================================================
   4. HERO SECTION
   ========================================================= */

.hero {

    background:

        linear-gradient(
            135deg,
            #f4f8fd 0%,
            #e5eef8 100%
        );

    padding: 90px 0;

    overflow: hidden;
}


.hero-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 60px;
}


/* Small heading */

.hero-small-title {

    display: inline-block;

    background-color: var(--primary-blue);

    color: var(--white);

    padding: 8px 18px;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 22px;
}


/* Main heading */

.hero h1 {

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.08;

    color: var(--dark-blue);

    margin-bottom: 24px;

    font-weight: 800;
}


.hero h1 span {

    display: block;

    color: var(--red);
}


/* Description */

.hero-description {

    max-width: 580px;

    font-size: 18px;

    color: var(--gray);

    margin-bottom: 32px;
}


/* Buttons */

.hero-buttons {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 26px;

    min-height: 50px;

    border-radius: 5px;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}


.btn-primary {

    background-color: var(--red);

    color: var(--white);

    border: 2px solid var(--red);
}


.btn-primary:hover {

    background-color: var(--dark-red);

    border-color: var(--dark-red);

    transform: translateY(-2px);
}


.btn-secondary {

    background-color: transparent;

    color: var(--primary-blue);

    border: 2px solid var(--primary-blue);
}


.btn-secondary:hover {

    background-color: var(--primary-blue);

    color: var(--white);

    transform: translateY(-2px);
}


/* Hero image */

.hero-image {

    position: relative;
}


.hero-image img {

    width: 100%;

    max-height: 480px;

    object-fit: cover;

    border-radius: 10px;

    box-shadow:
        0 20px 50px rgba(23, 56, 95, 0.18);
}


/* =========================================================
   5. SECTION COMMON STYLING
   ========================================================= */

section {

    padding: 90px 0;
}


.section-heading {

    text-align: center;

    max-width: 750px;

    margin: 0 auto 55px;
}


.section-heading p {

    color: var(--red);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 10px;
}


.section-heading h2 {

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.2;

    color: var(--dark-blue);

    font-weight: 800;
}


.section-heading h2 span {

    color: var(--red);
}


/* =========================================================
   6. ABOUT SECTION
   ========================================================= */

.about {

    background-color: var(--white);
}


.about-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 65px;
}


.about-image img {

    width: 100%;

    height: 430px;

    object-fit: cover;

    border-radius: 10px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.10);
}


.about-content h3 {

    font-size: 32px;

    line-height: 1.2;

    color: var(--dark-blue);

    margin-bottom: 20px;
}


.about-content p {

    color: var(--gray);

    font-size: 17px;

    margin-bottom: 18px;
}


.about-content .btn {

    margin-top: 12px;
}


/* =========================================================
   7. SERVICES SECTION
   ========================================================= */

.services {

    background-color: var(--light-gray);
}


.services-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.service-card {

    background-color: var(--white);

    border: 1px solid var(--border);

    padding: 35px 28px;

    border-radius: 8px;

    transition: 0.3s ease;

    position: relative;

    overflow: hidden;
}


.service-card::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 4px;

    height: 0;

    background-color: var(--red);

    transition: 0.3s ease;
}


.service-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 18px 40px rgba(23, 56, 95, 0.12);
}


.service-card:hover::before {

    height: 100%;
}


/* Service icon */

.service-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: var(--light-blue);

    border-radius: 8px;

    font-size: 26px;

    margin-bottom: 20px;
}


.service-card h3 {

    color: var(--dark-blue);

    font-size: 21px;

    margin-bottom: 12px;
}


.service-card p {

    color: var(--gray);

    font-size: 15px;
}


/* =========================================================
   8. INDUSTRIES SECTION
   ========================================================= */

.industries {

    background-color: var(--white);
}


.industries-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.industry-card {

    background:

        linear-gradient(
            135deg,
            var(--primary-blue),
            var(--dark-blue)
        );

    color: var(--white);

    padding: 28px 25px;

    border-radius: 7px;

    text-align: center;

    font-size: 17px;

    font-weight: 700;

    border-bottom: 4px solid var(--red);

    transition: 0.3s ease;
}


.industry-card:hover {

    transform: translateY(-5px);

    background:

        linear-gradient(
            135deg,
            var(--red),
            var(--dark-red)
        );
}


/* =========================================================
   9. WHY CHOOSE US
   ========================================================= */

.why-us {

    background-color: var(--light-blue);
}


.why-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.why-card {

    background-color: var(--white);

    padding: 30px 22px;

    text-align: center;

    border-radius: 8px;

    border-top: 4px solid var(--primary-blue);

    transition: 0.3s ease;
}


.why-card:hover {

    transform: translateY(-6px);

    border-top-color: var(--red);

    box-shadow:
        0 15px 35px rgba(23, 56, 95, 0.10);
}


.why-card h3 {

    color: var(--dark-blue);

    font-size: 19px;

    margin-bottom: 12px;
}


.why-card p {

    color: var(--gray);

    font-size: 14px;
}


/* =========================================================
   10. GALLERY
   ========================================================= */

.gallery {

    background-color: var(--white);
}


.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.gallery-item {

    height: 280px;

    overflow: hidden;

    border-radius: 8px;

    background-color: var(--light-gray);
}


.gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: 0.5s ease;
}


.gallery-item:hover img {

    transform: scale(1.08);
}


/* =========================================================
   11. CONTACT SECTION
   ========================================================= */

.contact {

    background-color: var(--light-gray);
}


.contact-container {

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 60px;

    align-items: start;
}


.contact-info {

    display: flex;

    flex-direction: column;

    gap: 18px;
}


.contact-box {

    background-color: var(--white);

    padding: 25px;

    border-left: 4px solid var(--red);

    border-radius: 6px;
}


.contact-box h3 {

    color: var(--dark-blue);

    font-size: 19px;

    margin-bottom: 8px;
}


.contact-box p {

    color: var(--gray);

    font-size: 15px;

    margin-bottom: 4px;
}


/* Contact form */

.contact-form {

    background-color: var(--white);

    padding: 35px;

    border-radius: 8px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}


.contact-form form {

    display: flex;

    flex-direction: column;

    gap: 15px;
}


.contact-form input,
.contact-form textarea {

    width: 100%;

    border: 1px solid var(--border);

    background-color: #fafbfd;

    padding: 14px 16px;

    font-family: inherit;

    font-size: 15px;

    border-radius: 5px;

    outline: none;

    transition: 0.3s ease;
}


.contact-form textarea {

    resize: vertical;
}


.contact-form input:focus,
.contact-form textarea:focus {

    border-color: var(--primary-blue);

    background-color: var(--white);

    box-shadow:
        0 0 0 3px rgba(31, 71, 125, 0.08);
}


.contact-form button {

    border: none;

    font-family: inherit;

    margin-top: 5px;
}


/* =========================================================
   12. FOOTER
   ========================================================= */

.footer {

    background-color: var(--dark-blue);

    color: var(--white);

    padding: 35px 0;
}


.footer-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;
}


.footer h3 {

    font-size: 22px;

    margin-bottom: 4px;
}


.footer p {

    color: #d7e2ef;

    font-size: 14px;
}


/* =========================================================
   13. RESPONSIVE DESIGN - TABLET
   ========================================================= */

@media (max-width: 992px) {


    .navbar {

        gap: 18px;

    }


    .navbar a {

        font-size: 14px;

    }


    .hero-container {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .hero-content {

        text-align: center;

    }


    .hero-description {

        margin-left: auto;

        margin-right: auto;

    }


    .hero-buttons {

        justify-content: center;

    }


    .about-container {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .services-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .industries-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .why-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .contact-container {

        grid-template-columns: 1fr;

        gap: 40px;

    }

}


/* =========================================================
   14. RESPONSIVE DESIGN - MOBILE
   ========================================================= */

@media (max-width: 768px)  {

    section {

        padding: 65px 0;

    }


    .container {

        width: 92%;

    }


    .header-container {

        min-height: 70px;

    }


    .logo img {

        width: 155px;

    }


    /* Hide desktop call button */

    .header-action {

        display: none;

    }


    /* Show menu button */

    .menu-button {

        display: flex;

        align-items: center;

        justify-content: center;

    }


    /* Mobile navigation */

    .navbar {

        position: absolute;

        top: 70px;

        left: 0;

        width: 100%;

        background-color: var(--white);

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        margin: 0;

        border-top: 1px solid var(--border);

        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.08);

    }


    .navbar.active {

        display: flex;

    }


    .nav-link {

        width: 100%;

        padding: 16px 5%;

        border-bottom: 1px solid var(--border);

    }


    .nav-link::after {

        display: none;

    }


    .nav-link.active {

        background-color: var(--light-blue);

    }


    /* Remaining mobile sections */

    .hero {

        padding: 65px 0;

    }


    .hero h1 {

        font-size: 42px;

    }


    .hero-description {

        font-size: 16px;

    }


    .services-grid {

        grid-template-columns: 1fr;

    }


    .industries-grid {

        grid-template-columns: 1fr;

    }


    .why-grid {

        grid-template-columns: 1fr;

    }


    .gallery-grid {

        grid-template-columns: 1fr;

    }


    .gallery-item {

        height: 250px;

    }


    .contact-container {

        grid-template-columns: 1fr;

    }


    .footer-container {

        flex-direction: column;

        text-align: center;

    }


    .cta-container {

        flex-direction: column;

        text-align: center;

    }


    .cta-button {

        width: 100%;

    }


    .cta-button .btn {

        width: 100%;

    }

}

/* =========================================================
   15. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {


    .logo img {

        width: 145px;

    }


    .hero h1 {

        font-size: 35px;

    }


    .hero-small-title {

        font-size: 11px;

        letter-spacing: 0.7px;

    }


    .hero-buttons {

        flex-direction: column;

    }


    .hero-buttons .btn {

        width: 100%;

    }


    .about-image img {

        height: 300px;

    }


    .contact-form {

        padding: 22px;

    }


}