/* ==============================
   RESET
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==============================
   BODY + BACKGROUND
============================== */

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;

    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15)
        ),
        url("../image/servicee.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: white;

    padding-bottom: 50px;
}


/* ==============================
   MAIN CONTAINER
============================== */

.container {
    width: 100%;
    max-width: 1100px;

    margin: auto;

    padding: 30px 20px;
}


/* ==============================
   HOME / BACK BUTTON
============================== */

.back-btn {
    position: fixed;

    top: 20px;
    left: 20px;

    background: #fff;
    color: #000;

    padding: 10px 18px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 16px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3);

    z-index: 1000;

    transition: 0.3s;
}

.back-btn:hover {
    background: #8a0404;
    color: white;

    transform: translateY(-2px);
}


/* ==============================
   PAGE TITLE
============================== */

h1,
h2 {
    color: white;

    text-align: center;

    margin-bottom: 25px;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.8);
}


/* ==============================
   SEARCH BOX
============================== */

.search-box {
    width: 100%;

    max-width: 500px;

    margin:
        20px auto 25px auto;
}

.search-box input {
    width: 100%;

    padding: 12px 18px;

    border: none;

    outline: none;

    border-radius: 25px;

    background: rgba(255, 255, 255, 0.95);

    color: #222;

    font-size: 15px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25);

    transition: 0.3s;
}

.search-box input:focus {
    box-shadow:
        0 0 0 2px #8a0404,
        0 4px 15px rgba(0, 0, 0, 0.3);
}


/* ==============================
   TABS
============================== */

.tabs {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 30px;
}

.tabs .tab {
    border: none;

    padding: 9px 17px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.9);

    color: #222;

    font-size: 13px;

    cursor: pointer;

    transition: 0.3s;
}

.tabs .tab:hover {
    background: #8a0404;

    color: white;
}

.tabs .active {
    background: #000;

    color: #fff;
}


/* ==============================
   SERVICES GRID
============================== */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;

    width: 100%;
}


/* ==============================
   SERVICE CARD
============================== */

.service-card {
    background:
        rgba(255, 255, 255, 0.95);

    border-radius: 15px;

    padding: 10px;

    text-align: center;

    transition: 0.3s;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.35);

    overflow: hidden;
}

.service-card:hover {
    transform:
        translateY(-7px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.5);
}


/* ==============================
   SERVICE IMAGE
============================== */

.service-card img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    display: block;

    border-radius: 10px;

    transition: 0.3s;
}

.service-card:hover img {
    transform: scale(1.02);
}


/* ==============================
   SERVICE NAME
============================== */

.service-card p {
    margin:
        12px 0 5px;

    font-size: 16px;

    font-weight: 600;

    color: #222;
}


/* ==============================
   PRICE
============================== */

.service-card span {
    display: block;

    margin-bottom: 8px;

    font-size: 16px;

    font-weight: bold;

    color: #8a0404;
}


/* ==============================
   BUTTON DALAM CARD
============================== */

.service-card button,
.service-card .btn {
    display: inline-block;

    margin:
        8px 0 5px;

    padding:
        9px 18px;

    border: none;

    border-radius: 7px;

    background: #000;

    color: white;

    text-decoration: none;

    font-size: 14px;

    cursor: pointer;

    transition: 0.3s;
}

.service-card button:hover,
.service-card .btn:hover {
    background: #8a0404;

    color: white;
}


/* ==============================
   TABLET
============================== */

@media (max-width: 900px) {

    .services-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* ==============================
   SMALL TABLET
============================== */

@media (max-width: 700px) {

    .container {
        padding:
            80px 15px 30px;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .back-btn {
        top: 15px;
        left: 15px;
    }

}


/* ==============================
   PHONE
============================== */

@media (max-width: 480px) {

    body {
        background-attachment: scroll;
    }

    .container {
        padding:
            75px 12px 25px;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .service-card {
        padding: 7px;

        border-radius: 10px;
    }

    .service-card img {
        border-radius: 7px;
    }

    .service-card p {
        font-size: 14px;
    }

    .service-card span {
        font-size: 14px;
    }

    .tabs .tab {
        padding:
            7px 12px;

        font-size: 11px;
    }

    .search-box input {
        font-size: 14px;
    }

    .back-btn {
        padding:
            9px 14px;

        font-size: 14px;
    }

}
.service-heading {
    text-align: center;
    margin: 30px 0 35px;
}

.service-heading h1 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;

    text-shadow:
        0 3px 8px rgba(0, 0, 0, 0.9);
}

.service-heading p {
    color: #d8d8d8;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 0;
}

@media (max-width: 600px) {

    .service-heading h1 {
        font-size: 27px;
        letter-spacing: 2px;
    }

    .service-heading p {
        font-size: 13px;
    }
}