/* Reset & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    /* Red */
    --dark-color: #1a1a1a;
    /* Charcoal */
    --light-color: #f4f4f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    background-color: #F3F4F4;
}

.hero-3d {
    margin: 0;
    min-height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;

}

.container {
    margin-top: 900px;
    width: 90%;
    max-width: 1200px;
    /* margin: 0 auto; */
    display: flex;
    flex-direction: column;
    /* Mobile-first */
    align-items: center;
    gap: 40px;
    height: 100%;
}

.hero-text {
    text-align: center;
    flex: 1;
}

/* CSS UNTUK 3D MODEL */
.hero-model {
    width: 100%;
    height: 600px;
    /* Tinggi untuk mobile */
    flex: 1;
}

.product3d {
    display: flex;
    width: auto;

    height: 10em;
    justify-content: right;
    flex: 1;
    border-radius: 1em;
    top: 0;

}

.type button {
    background-color: rgba(255, 255, 255, 0);
    border: solid 0.1px #3333333a;
    color: var(--black);

    padding: 0.5em 1em;
    margin-top: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.type button:focus {
    background-color: var(--primary-color);
    color: var(--white);
    border: solid 0.1px #3333333a;
}


model-viewer {
    width: 100%;
    height: 100%;
    --progress-bar-color: #007bff;
    cursor: grab;
}

.product3d model-viewer {
    width: 100%;
    height: 100%;
    --progress-bar-color: #007bff00;
    cursor: grab;
    padding: 0%;
    margin: auto;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1%;
    background-color: #F3F4F4;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 4;
    height: 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-box hr {
    border: none;
    border-top: 0.5px solid #000000db;
    width: 60%;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-top: 4%;
    display: block;
}


/* ============================================================
   3. LAPTOP / DESKTOP KECIL
   Lebar layar mulai dari 992px ke atas
   ============================================================ */
@media screen and (min-width: 992px) {
    /* Aturan CSS untuk Laptop di sini */

}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 3.5rem;
    background-color: #ffffff;

    position: fixed;
    width: 100%;
    top: 0;
    z-index: 4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-color);
    margin: 0 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-cta {
    /* background: var(--primary-color); */
    color: var(--white);
    padding: 2% 2%;
    text-decoration: none;
    border-radius: 5px;
    /* font-weight: 600; */
    transition: var(--transition);
    width: auto;

    width: 8%;

}

.btn-cta img {
    width: 100%;
    height: 100%;
}


.btn-cta:hover img {
    filter: brightness(50) invert(1);
}

.bigLogo {
    width: 150px;
    height: 150px;
    background: url('../img/6kg.png') no-repeat center center/contain;
    margin: 0 auto 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)); */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--black);
    padding-top: 80px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: left;
}

.hero-btns a {
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    margin: 0 10px;
    display: inline-block;
    font-weight: 600;
}

.hero img {
    width: 100%;
    height: auto;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    border: 2px solid #d32f2f;
    color: #d32f2f;
}

/* Section Common */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

section {
    /* padding: 0rem 10%; */
}

/* Services */
.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 1em;


    background-color: #ffffff;
    color: var(--black);
    width: 100%;
    margin: auto;


}

.service-box {
    padding: 2em;
    width: 55%;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.201); */
    /* background-color: #ffffff; */
    margin: auto;



}

.service-box i {
    color: var(--primary-color);
    font-size: 15vh;
}

.service-box p {
    margin-top: 1rem;
    font-size: 0.8vw;
    color: #929292;
}

.service-box:hover {
    font-size: large;
    transform: translateY(-10px);


}

.service-box .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2em;

}

.product-card {
    flex-wrap: wrap;
    color: #1a1a1a;
    padding: 2em;
    border-radius: 1em;
    overflow: hidden;
    text-align: center;
    max-height: 90%;
    z-index: 2;
    position: relative;
    width: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.105);
    margin: auto;
    display: flex;
    gap: 1rem;
    padding: 3em;
    background-color: #ffffff;

}

.info-product {
    text-align: left;
    flex: 2;
    position: relative;
    font-size: 0.8vw;
    color: #929292;
    /* border: 0.5px solid #3333333a; */
    background-color: #ffffff;
    padding: 2%;
    border-radius: 1em;

}


/* Footer */
footer {
    background: rgb(30, 30, 30);
    color: var(--white);
    padding: 4rem 10% 2rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);

}

.footer-content {
    display: flex;


    flex-wrap: wrap;
    margin-bottom: 2rem;
}

footer img {
    width: 150px;
    height: auto;
    justify-content: left;
    display: flex;
    margin-bottom: 1rem;
    background-image: url('https://kingsafety.mra.my.id/asset/img/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
    margin: auto;
    opacity: 100%;

}

.footer-info {
    flex: 1;
    min-width: 250px;
    margin-right: 2rem;
    display: flex;
    align-items: start;
    opacity: 0.8;

}

.footer-info p:hover {

    color: #bbb;
}

.footer-contact {
    border-left: 0.5px solid white;
    padding-left: 2rem;
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}


.copyright {

    justify-content: center;

    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive HP */
@media (max-width: 600px) {
/* Footer */
footer {
    background: rgb(30, 30, 30);
    color: var(--white);
    padding: 2rem 4% 2rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);

}

.footer-content {
    display: flex;


    flex-wrap: wrap;
    margin-bottom: 2rem;
}

footer img {
    width: 100px;
    height: auto;
    justify-content: left;
    display: flex;
    margin-bottom: 1rem;
    background-image: url('https://kingsafety.mra.my.id/asset/img/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
    margin: auto;
    opacity: 100%;

}

.footer-info {
    flex: 1;
    min-width: 100%;
    margin-right: 2rem;
    display: flex;
    align-items: start;
    opacity: 0.8;

}

    /* Products */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        flex-wrap: wrap;
        margin-bottom: 2em;

    }

    .product-card {
        flex-wrap: wrap;
        color: #1a1a1a;
        padding: 2em;
        border-radius: 1em;
        overflow: hidden;
        text-align: center;
        max-height: 90%;
        z-index: 2;
        position: relative;
        width: 80%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.105);
        margin: auto;
        display: flex;
        gap: 1rem;
        padding: 2em;
        background-color: #ffffff;

    }

    .info-product {
        text-align: left;
        flex: 2;
        position: relative;
        font-size: 1.8vw;
        color: #929292;
        /* border: 0.5px solid #3333333a; */
        background-color: #ffffff;
        padding: 2%;
        border-radius: 1em;
        bottom: 0;

    }





    .service-box p {
        margin-top: 1rem;
        font-size: 2.3vw;
        color: #3b3b3b;
    }

    .service-box {
        padding: 2em;
        width: 95%;
        border-radius: 10px;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.094);

        margin: auto;
        background-color: #ffffff;



    }

    .service-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
        padding: 2rem;
        border-radius: 1em;
        background-color: #ffffff00;

        color: var(--black);
        width: 100%;
        margin: auto;
        justify-content: center;
        align-items: center;



    }

    .bigLogo {

        width: 100%;
        height: 100%;
        background: url('../img/6kg.png') no-repeat center center/contain;
        margin: 0 auto 2rem;
    }

    .btn-cta {
        /* background: var(--primary-color); */
        color: var(--white);
        padding: 1% 2%;
        text-decoration: none;
        border-radius: 5px;
        /* font-weight: 600; */
        transition: var(--transition);
        width: auto;

        width: 80px;

    }

    .logo {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--dark-color);
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2.5rem 1rem;
        background-color: #ffffff;

        position: fixed;
        width: 100%;
        top: 0;
        z-index: 4;
        font-weight: bold;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .btn-cta img {
        width: 100%;
        height: 100%;
        margin: auto;
    }

    .btn-primary {
        background: var(--primary-color);
        color: var(--white);
    }

    .btn-secondary {
        border: 2px solid #d32f2f;
        color: #d32f2f;
    }

    .hero-btns a {
        text-decoration: none;
        padding: 1rem 2rem;
        border-radius: 5px;
        margin: 0 10px;
        display: flex;
        justify-content: center;
        font-weight: 600;
        margin-top: 3%;

    }

    .service-box hr {
        border: none;
        border-top: 0.5px solid #00000077;
        width: 10%;
        align-items: center;
        justify-content: center;
        margin: auto;
        padding: 1.5% 50%;
        display: block;
        margin-top: 2%;
    }

    .service-box:hover {

        font-size: large;
        transform: translateY(-10px);


    }

}

/* 2. TABLET (Potrait & Landscape) */

@media screen and (min-width: 600px) and (max-width: 991px) {

     /* Products */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        flex-wrap: wrap;
        margin-bottom: 2em;

    }

    .product-card {
        flex-wrap: wrap;
        color: #1a1a1a;
        padding: 2em;
        border-radius: 1em;
        overflow: hidden;
        text-align: center;
        max-height: 90%;
        z-index: 2;
        position: relative;
        width: 80%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.105);
        margin: auto;
        display: flex;
        gap: 1rem;
        padding: 2em;
        background-color: #ffffff;

    }

    .info-product {
        text-align: left;
        flex: 2;
        position: relative;
        font-size: 1.8vw;
        color: #929292;
        /* border: 0.5px solid #3333333a; */
        background-color: #ffffff;
        padding: 2%;
        border-radius: 1em;
        bottom: 0;

    }



    /* Aturan CSS untuk Tablet di sini */
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2rem 3rem;

        background-color: #ffffff;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 4;
        font-weight: bold;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}