/* ========================================
   RESET
======================================== */

body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
}


/* ========================================
   GLOBAL
======================================== */

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #222222;
}


/* ========================================
   HEADER / NAVIGATION
======================================== */

#qassih-header {
    width: 100%;
    background-color: #131312;
    padding: 12px 1%;
    display: flex;
}

#nav {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 1%;
}


/* Logo */

.gambar-logo {
   width : 70px;
   height : auto;
   margin : 0 30px 0 10px;
   flex : 0 0 auto;
}


/* Navigation links */

#nav a,
#nav .here {
    position: relative;
    flex: 1;
    text-decoration: none;
    color: #ffffff;
    padding: 1%;
    
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


/* Navigation hover */

#nav a:hover,
#nav .here:hover {
    color: #C9A227;
    transform: translateY(-2px);
}


/* Navigation underline */

#nav a::after,
#nav .here::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #C9A227;

    transition:
        width 0.3s ease,
        left 0.3s ease;
}


/* Show underline on hover */

#nav a:hover::after,
#nav .here:hover::after {
    width: 70%;
    left: 15%;
}


/* Active page */

#nav .here::after{
    content: "";
    position:absolute;
    bottom:0;
    left:20%;
    width:60%;
    height:2px;
    background: #C9A227;
}


/* ========================================
   BANNER
======================================== */

.banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* ========================================
   BANNER BUTTONS
======================================== */

.banner-buttons {
    position: absolute;

    left: 8%;
    bottom: 5%;

    display: flex;
    gap: 15px;
}


/* Button */

.banner-btn {
    display: inline-block;

    padding: 12px 25px;

    background-color: #C9A227;
    color: #131312;

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;

    border: 2px solid #C9A227;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


/* Hover */

.banner-btn:hover {
    background-color: #131312;
    color: #ffffff;

    transform: translateY(-3px);
}


/* ========================================
   OUR SERVICES
======================================== */

.ourservices {
    width: 98%;
    text-align: center;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    margin: 1%;
    padding: 40px 2%;
    box-sizing: border-box;
    overflow: hidden;
}

.ourservices > p {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}


/* Services container */

.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    flex-wrap: wrap;
}


/* Service card */

.service-card {
    width: 220px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-sizing: border-box;
    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border 0.3s ease;
}


/* Service card hover */

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid #C9A227;
}


/* Service image */

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}


/* Service image zoom */

.service-card:hover img {
    transform: scale(1.08);
}


/* Service title */

.service-card h3 {
    margin: 15px 10px 8px;
    font-size: 18px;
}


/* Service description */

.service-card p {
    margin: 0 10px 20px;
    color: #666666;
    font-size: 14px;
}


/* ========================================
   OUR GALLERY
======================================== */

.ourgallery {
    width: 98%;
    text-align: center;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    margin: 1%;
    padding: 40px 2%;
    box-sizing: border-box;
    overflow: hidden;
}

.ourgallery > p {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}


/* Gallery card */

.gallery-card {
    display: inline-block;
    width: 20%;
    margin: 1%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    background-color: #ffffff;
    vertical-align: top;
    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border 0.3s ease;
}


/* Gallery hover */
.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid #C9A227;
}


/* Gallery image */

.gallery-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}


/* Gallery image zoom */

.gallery-card:hover img {
    transform: scale(1.08);
}


/* ========================================
   GENERAL IMAGE
======================================== */

.gambar {
    width: 100%;
    height: auto;
    display: block;
}
/* ========================================
   LEARN MORE BUTTON & VIEW MORE BUTTON
======================================== */

.learn-more,
.view-more {
    display: block;
    width: fit-content;
    margin: 25px auto 0;
    padding: 12px 30px;

    background-color: #131312;
    color: #ffffff;

    text-decoration: none;
    font-size: 15px;
    font-weight: bold;

    border: 1px solid #131312;
    border-radius: 4px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        border 0.3s ease;
}

.learn-more:hover,
.view-more:hover {
    background-color: #C9A227;
    color: #131312;
    border-color: #C9A227;
    transform: translateY(-3px);
}

/* ========================================
   ABOUT US & SERVICES PAGE
======================================== */


/* Page title */

.page-title-banner {
    background-color: #f4f4f4;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid #ddd;
}

.page-title-banner h1 {
    font-size: 2rem;
    color: #131312;
    margin-bottom: 5px;
}

.page-title-banner p {
    color: #666;
    font-style: italic;
}


/* About container */

.about-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
}


/* Division row */

.division-row {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    align-items: center;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border 0.3s ease;
}


/* Division hover */

.division-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #C9A227;
}


/* Division image */

.division-img-box {
    width: 30%;
    min-width: 200px;
    background-color: #eee;
    overflow: hidden;
}


/* Division image */

.division-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;

    transition: transform 0.4s ease;
}


/* Division image zoom */

.division-row:hover .division-img-box img {
    transform: scale(1.06);
}


/* Division text */

.division-text {
    width: 70%;
    padding: 25px;
    text-align: left;
    box-sizing: border-box;
}

.division-text h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #131312;
}

.division-text p {
    color: #444;
    line-height: 1.6;
}


/* Gold line under title */

.division-text h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #C9A227;
    margin-top: 8px;
}


/* ========================================
   FOOTER
======================================== */

#qassih-footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background-color: #000000;
    color: #ffffff;
}


/* ========================================
   TABLET / MOBILE
======================================== */

@media only screen and (max-width: 700px) {

    /* Navigation */

    #nav {
        flex-direction: column;
    }

    .gambar-logo {
        width: 20%;
        height: auto;
        margin: 10px;
    }

    #nav a,
    #nav .here {
        width: 100%;
        padding: 10px;
    }


    /* Services */

    .service-card {
        width: 80%;
    }


    /* Gallery */

    .gallery-card {
        width: 80%;
    }

    .service-card img,
    .gallery-card img {
        height: auto;
    }
}


/* ========================================
   ABOUT PAGE MOBILE
======================================== */

@media only screen and (max-width: 600px) {

    .division-row {
        flex-direction: column;
    }

    .division-img-box {
        width: 100%;
        min-width: 0;
    }

    .division-text {
        width: 100%;
        padding: 15px;
    }

    .page-title-banner {
        padding: 30px 15px;
    }

    .page-title-banner h1 {
        font-size: 1.5rem;
    }

    .about-container {
        width: 90%;
        margin: 25px auto;
    }
}

/* ========================================
   GALLERY PAGE
======================================== */


/* Gallery title section */

.gallery-title {

    width: 100%;

    padding: 35px 20px;

    background-color: #ffffff;

    text-align: left;

    border-bottom: 1px solid #ddd;

    box-sizing: border-box;

}


/* Qassih */

.gallery-title h1 {

    margin: 0;

    font-size: 32px;

    color: #131312;

    letter-spacing: 2px;

}


/* Gallery */

.gallery-title h2 {

    margin: 5px 0 0;

    font-size: 28px;

    color: #C9A227;

    letter-spacing: 3px;

}


/* ========================================
   GALLERY AREA
======================================== */

.gallery-page {

    width: 90%;

    max-width: 1100px;

    margin: 40px auto;

    padding: 20px;

    background-color: #ffffff;

    border: 1px solid #ddd;

    box-sizing: border-box;

}


/* ========================================
   GALLERY GRID
======================================== */

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

}


/* ========================================
   GALLERY ITEM
======================================== */

.gallery-item {

    width: 100%;

    height: 180px;

    overflow: hidden;

    border: 2px solid #ddd;

    background-color: #f5f5f5;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


/* ========================================
   IMAGE
======================================== */

.gallery-item img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.4s ease;

}


/* ========================================
   HOVER EFFECT
======================================== */

.gallery-item:hover {

    transform: translateY(-8px);

    border-color: #C9A227;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.20);

}


/* Zoom image */

.gallery-item:hover img {

    transform: scale(1.08);

}


/* ========================================
   MOBILE
======================================== */

@media only screen and (max-width: 800px) {

    .gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* ========================================
   SMALL PHONE
======================================== */

@media only screen and (max-width: 500px) {

    .gallery-page {

        width: 94%;

        padding: 10px;

    }


    .gallery-grid {

        grid-template-columns:
            1fr;

    }


    .gallery-item {

        height: 220px;

    }


    .gallery-title {

        padding: 25px 15px;

    }


    .gallery-title h1 {

        font-size: 25px;

    }


    .gallery-title h2 {

        font-size: 22px;

    }

}

/* ========================================
   BACK TO TOP BUTTON
======================================== */

#backToTop {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background-color: #131312;
    color: #C9A227;

    font-size: 24px;
    font-weight: bold;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
}


/* Show button */

#backToTop.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* Hover */

#backToTop:hover {
    background-color: #C9A227;
    color: #131312;

    transform: translateY(-5px);
}


/* ========================================
   BACK TO TOP - MOBILE
======================================== */

@media only screen and (max-width: 700px) {

    #backToTop {
        width: 45px;
        height: 45px;

        right: 15px;
        bottom: 15px;

        font-size: 20px;
    }

}

/* ========================================
   FINAL WEBSITE WIDTH / OVERFLOW FIX
======================================== */

/* Prevent the entire website from becoming wider than the screen */

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* Make box sizing consistent */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* Images */

img {
    max-width: 100%;
}


/* ========================================
   HEADER
======================================== */

#qassih-header {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

#nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* Prevent navigation items from forcing
   the page wider */

#nav > * {
    min-width: 0;
}


/* ========================================
   BANNER
======================================== */

.banner-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}


/* ========================================
   MAIN SECTIONS
======================================== */

.ourservices,
.ourgallery {
    max-width: 100%;
    overflow: hidden;
}


/* ========================================
   OTHER PAGES
======================================== */

.about-container,
.contact-container,
.gallery-page,
.gallery-title,
.page-title-banner {
    max-width: 100%;
}


/* ========================================
   FOOTER
======================================== */

#qassih-footer {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 20px;

    background-color: #000000;
    color: #ffffff;

    text-align: center;

    box-sizing: border-box;

    display: block;
    clear: both;
}

#qassih-footer p {
    margin: 0;
    padding: 0;
}


/* ========================================
   MOBILE
======================================== */

@media only screen and (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #qassih-header,
    #nav,
    .banner-container,
    .ourservices,
    .ourgallery,
    #qassih-footer {
        width: 100%;
        max-width: 100%;
    }

}
/* ========================================
   GALLERY CLICKABLE IMAGES
======================================== */

.gallery-item img {
    cursor: pointer;
}


/* ========================================
   FULLSCREEN GALLERY VIEWER
======================================== */

#galleryViewer {

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background-color: rgba(0, 0, 0, 0.95);

    z-index: 999999;

    justify-content: center;
    align-items: center;

    padding: 30px;

}


/* OPEN VIEWER */

#galleryViewer.open {

    display: flex;

}


/* LARGE IMAGE */

#galleryLargeImage {

    display: block;

    width: auto;

    height: auto;

    max-width: 90vw;

    max-height: 85vh;

    object-fit: contain;

}


/* ========================================
   CLOSE BUTTON
======================================== */

#galleryClose {

    position: absolute;

    top: 20px;
    right: 30px;

    width: 50px;
    height: 50px;

    padding: 0;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 50px;

    line-height: 50px;

    cursor: pointer;

    z-index: 1000000;

}


#galleryClose:hover {

    color: #C9A227;

}