body {
    margin: 0;
    font-family: "Montserrat", sans-serif;;
    color: #333;
}

.top-bar {
    background: #222;
    color: #fff;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.top-bar .material-symbols-outlined {
    vertical-align: middle;
    margin-right: 5px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: white;
}

.navbar h2 {
    margin: 0;
    margin-top: 10px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .material-symbols-outlined.icon {
    vertical-align: middle;
    margin-right: 8px;
    font-size: 32px;
    margin-top: -8px;
}

.hero {
    background: url('crane.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 40px;
    margin-left: 50px;
}

.hero button {
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
}

.primary {
    background: #ff6600;
    border: none;
}

.primary:hover {
    color: #fff;
}

.features, .stats {
    display: flex;
    justify-content: space-around;
    padding: 40px;
    background: #f4f4f4;
}

.stats .statnum {
    color: #ff6600;
    display: flex;
    text-align: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.features > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0 20px;
}

.features > div:not(:last-child) {
    border-right: 1px solid #ddd;
}

.features .feature-icon{
    font-size: 50px;
    justify-content: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services {
    padding: 40px;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.card {
    width: 300px;
}

.card img {
    width: 100%;
     display: block;
}

/* =========================
   INDEX PAGE
   ========================= */

.image-cluster {
    padding: 40px;
}

.cluster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 180px);
    gap: 15px;
    max-width: 1100px;
    margin: auto;
}

/* IMAGE CARD */
.item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* TEXT OVERLAY */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: #fff;
}

.overlay h3 {
    margin: 0;
    font-size: 18px;
}

.overlay p {
    margin-top: 5px;
    font-size: 14px;
}

/* HOVER EFFECT */
.item:hover img {
    transform: scale(1.01);
}

.contact {
    background: #222;
    color: white;
    padding: 40px;
    text-align: center;
}

.contact form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.contact input, .contact select {
    padding: 10px;
}

.contact button {
    padding: 10px 20px;
    background: #ff6600;
    border: none;
    color: white;
    cursor: pointer;
}

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 15px;
}

/* =========================
   INNER PAGE HEADER
   ========================= */
.page-header {
    background: #222;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 36px;
}

.page-header p {
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 16px;
}

/* PAGE CONTENT */
.page-content {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

/* =========================
   PROJECTS PAGE
   ========================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    border: 1px solid #ddd;
}

.project-card img {
    width: 100%;
    display: block;
}

.project-card .project-info {
    padding: 15px;
}

.project-card h3 {
    margin: 0 0 10px;
}

/* =========================
   ABOUT PAGE
   ========================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content img {
    width: 100%;
}

.about-content p {
    font-size: 15px;
    line-height: 1.7;
}

/* TEAM / STATS */
.about-stats {
    margin-top: 60px;
}

/* =========================
   CONTACT PAGE
   ========================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    font-size: 14px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-wrapper input,
.contact-wrapper textarea,
.contact-wrapper select {
    padding: 12px;
    font-family: inherit;
}

/* =========================
   CLIENTS PAGE
   ========================= */

    .client-cluster {
        padding: 40px;
    }

    .client-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 160px;
        gap: 15px;
        max-width: 1100px;
        margin: auto;
    }

    /* CARD */
    .client-item {
        background: #fff;
        border: 1px solid #e6e6e6;
        border-radius: 10px;
        padding: 20px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* IMAGE SAFETY */
    .client-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
/* =========================
   TABLET STYLES
   ========================= */

@media screen and (max-width: 1024px) {

    .cluster-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

     .item {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 220px;
    }

    .overlay h3 {
        font-size: 16px;
    }

    .overlay p {
        font-size: 13px;
    }

}

/* =========================
   MOBILE STYLES (PHONES)
   ========================= */
@media screen and (max-width: 765px) {

    /* TOP BAR */
    .top-bar{
        flex-direction: column;
        text-align: center;
        gap: 5px;
        font-size: 12px;
    }

    /* NAVBAR */
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .navbar h2 {
        margin-bottom: 10px;
    }

    .navbar ul {
        font-size: 13px;
        gap: 10px;
        padding: 0;
    }

    /* HERO */
    .hero {
        height: 49vh;
        padding: 40px 20px;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        margin: 0;
        padding: 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero button {
        margin-top: 10px;
        width: 100%;
    }

    /* FEATURES */
    .features {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        font-size: 14px;
    }

    .features > div:not(:last-child) {
        border-right: none;       
        border-bottom: 1px solid #ddd;
    }

    .features > div {
        padding: 20px 0;
    }

    .features .material-symbols-outlined {
        font-size: 36px;
    }

    /* SERVICES */
    .services {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .services h2 {
        font-size: 20px;
    }

    .service-description {
        margin-bottom: 20px;
    }

    .services h3 {
        font-size: 17px;
    }

    .services p {
        font-size: 14px;
    }

   .service-grid {
        flex-direction: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 350px;
        align-items: center;
    }

    /* STATS */
    .stats {
        gap: 20px;
        text-align: center;
        font-size: 12px;
    }

    .stats .statnum {
        font-size: 19px;
    }

    /* CONTACT FORM */
    .contact form {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin: auto;
    }

    .contact input {
        width: 92%;
    }
    .contact select {
        width: 100%;
    }

    .contact button {
        width: 100%;
    }

    /* FOOTER */
    footer {
        font-size: 12px;
        padding: 10px;
    }

    /* SERVICES */
    .services-list {
        grid-template-columns: 1fr;
    }

    /* CLIENTS */
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ABOUT */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* CONTACT */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
