:root {
    --primary: #f5c400;
    --dark: #0f172a;
    --gray: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fff;
    color: var(--dark);
    line-height: 1.6;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    color: #eee;

}



.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-logo img {
    height: 90px;
    width: auto;
    max-width: 80px;
    object-fit: cover;

}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

nav a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    height: 100vh;
    margin-top: 50px;
    overflow: hidden;
}

/* EACH SLIDE */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 6s infinite;
}

/* IMAGES */
.slide1 {
    background-image: url("/images/img5.jpeg");
    animation-delay: 0s;
}

.slide2 {
    background-image: url("/images/img6.png");
    animation-delay: 2s;
}

.slide3 {
    background-image: url("/images/img7.png");
    animation-delay: 4s;
}

/* FADE ANIMATION */
@keyframes heroFade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    margin: auto;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 37, 37, 0.7);
    padding: 40px;
    border-radius: 16px;
}

.hero h1 {
    font-size: 48px;
    color: #faf4f4;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #faf4f4;
    margin-bottom: 30px;
}

.btn {
    padding: 14px 30px;
    background: #000;
    color: #faf4f4;
    border-radius: 30px;
    text-decoration: none;
}


/* ================= SLIDE ANIMATION ================= */

@keyframes slideHero {
    0% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(0);
    }

    33% {
        transform: translateX(-100%);
    }

    63% {
        transform: translateX(-100%);
    }

    66% {
        transform: translateX(-200%);
    }

    96% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(0);
    }
}




/* ================= ABOUT ================= */
.about {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    font-weight: 400;
    margin-left: 40px;
}

.about img {
    height: 400px;
    width: 600px;
    margin-top: 15px;
    border-radius: 600;
    box-sizing: border-box;

}

/* ================= SERVICES ================= */

.services-grid {
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.section-title {
    text-align: center;
    margin: 0 auto 40px;
    margin-top: 20px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
}

.section-title span {
    color: var(--primary);
}


/* IMAGE SERVICE CARD */
.services-grid .service-card {
    position: relative;
    height: 260px;
    padding: 25px;
    border-radius: 18px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: 0.4s ease;
}

/* OVERLAY */
.services-grid .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.25));
}

/* TEXT ABOVE OVERLAY */
.services-grid .service-card h3,
.services-grid .service-card p {
    position: relative;
    z-index: 2;
}

/* HOVER EFFECT */
.services-grid .service-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* BACKGROUND IMAGES */
.services-grid .hvac {
    background-image: url("/images/HAVC.jpg");
}

.services-grid .mep {
    background-image: url("/images/Mp.png");
}

.services-grid .cleanroom {
    background-image: url("/images/Clean_Room.jpg");
}

.services-grid .amc {
    background-image: url("/images/AMC.jpg");
}

.services-grid .electrical {
    background-image: url("/images/Electrical.png");
}

.services-grid .plumbing {
    background-image: url("/images/Fire_Fighting.png");
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== COMPACT COMPANY STATS ===== */
.container.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    /* smaller gap */
    padding: 40px 0;
    /* reduced section height */
}

/* CARD */
.container.services .service-card {
    background: #1f2937;
    /* dark blue-grey */
    border-radius: 10px;
    padding: 18px 14px;
    /* smaller card size */
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: all 0.25s ease;
}

/* TOP ACCENT BAR */
.container.services .service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

/* NUMBER */
.container.services .service-card h3 {
    font-size: 26px;
    /* reduced size */
    font-weight: 700;
    color: #38bdf8;
    /* steel blue */
    margin-bottom: 2px;
}

/* TEXT */
.container.services .service-card p {
    font-size: 13px;
    color: #d1d5db;
    margin: 0;
    letter-spacing: 0.2px;
}

/* HOVER – SUBTLE */
.container.services .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .container.services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .container.services {
        grid-template-columns: 1fr;
    }
}

/* LIMIT WIDTH + CENTER SECTION */
.container.services {
    max-width: 1250px;
    /* prevents full screen stretch */
    margin: 0 auto;
    /* centers the section */
    padding: 40px 20px;
    /* left & right breathing space */

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}


/* ================= FOOTER ================= */
footer {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}


/* ================= RESPONSIVE ================= */
@media(max-width:900px) {

    .about,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }
}

@media(max-width:768px) {
    nav ul {
        position: absolute;
        top: 70px;
        right: 20px;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        border-radius: 16px;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* ================= ANIMATION ================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= NAVBAR ================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */


.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 80px;
    /* make it big */
    width: auto;
    /* keep original ratio */
    max-width: 175px;
    /* prevent over-stretch */
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    /* change if needed */
}


/* MENU */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    position: relative;
}

/* UNDERLINE */
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #f5c400;
    transition: .3s;

}

.nav-menu a:hover::after {
    width: 100%;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 0;
    background: #fff;
    min-width: 240px;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s;
}

.dropdown-menu a {
    display: block;
    padding: 12px 22px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f5c400;
    color: #000;
}

/* DESKTOP HOVER */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* SOCIAL */
.nav-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-social a {
    text-decoration: none;
    color: #0f172a;
    font-size: 20px;
    /* icon size */
}

.nav-social a:hover {
    color: #f5c400;
}


/* MOBILE */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

@media(max-width:900px) {
    .nav-menu ul {
        position: absolute;
        top: 80px;
        right: 30px;
        flex-direction: column;
        background: #fff;
        width: 260px;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
        display: none;
    }

    .nav-menu ul.show {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }
}

.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* COMMON PAGE SECTION */
.page-section {
    padding: 80px 0;
    background: #f8fafc;
}

.page-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.lead {
    text-align: center;
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* CONTENT BOX */
.content-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* MISSION LIST */
.mission-list {
    list-style: none;
}

.mission-list li {
    font-size: 17px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.mission-list li:last-child {
    border-bottom: none;
}

/* ================= LEADERSHIP TEAM ================= */

.page-section {
    padding: 80px 0;
    background: #f7f9fc;
}

.page-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}

.page-section .lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 16px;
}

/* Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Card */
.team-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Image */
.team-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #eef3ff;
    margin-bottom: 18px;
}

/* Text */
.team-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-card span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 12px;
}

.team-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ================= CERTIFICATIONS ================= */

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.cert-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

/* Certificate Image */
.cert-card img {
    max-width: 120px;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.cert-card:hover img {
    transform: scale(1.08);
}

/* Text */
.cert-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ===== VISION & MISSION ===== */
.vision-mission {
    background: #f9fafc;
    padding: 80px 0;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.vm-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vm-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.vm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f5c400, #e6b800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #000;
}

.vm-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.vm-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.feature-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.service-wrapper img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 20px;
}

/* Mission List */
.mission-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.mission-list li {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.mission-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #f5c400;
    font-weight: bold;
}

/* ===== HVAC HERO ===== */
.hvac-hero {
    background: url("/images/img6.png") center/cover no-repeat;
    height: 65vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hvac-hero .hero-content {
    position: relative;
    color: #fff;
    text-align: center;
}

.hvac-hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

/* ===== FEATURES ===== */
.feature-section {
    background: #f8f9fc;
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-12px);
}

.feature-card i {
    font-size: 36px;
    color: #f5c400;
    margin-bottom: 15px;
}

/* ===== PROCESS ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.process-step {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.process-step span {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #f5c400;
    padding: 10px 15px;
    border-radius: 30px;
    font-weight: 600;
}

.cta-section {
    background: #f5c400;
    padding: 80px 20px;
    margin-top: 80px;
    /* space from previous section */
    text-align: center;
}

.cta-section h2,
.cta-section p {
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 32px;
    border-radius: 8px;
    /* square-safe */
    background: #000;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 650px;
}