:root {
    --white: #ffffff;
    --navy: #1a365d;
    --tomato: #ff6347;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --dark-gray: #666666;
}

/* Reset dan dasar styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f2f2f2;
    font-family: poppins;
}

/* Header container */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 10rem;
    /* Biru tua */
}

.logo-highlight {
    color: tomato;
}

/* Navbar styling */
.navbar {
    display: flex;
    gap: 25px;

}

.nav-link {
    text-decoration: none;
    color: #1e3a8a;
    /* Biru tua */
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: tomato;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: tomato;
    transition: width 0.3s;
}

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

/* Search dan login container */
.search-login {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search bar styling */
.search-container {
    position: relative;
}

.search-input {
    padding: 8px 15px;
    padding-right: 40px;
    border: 1px solid #cbd5e1;
    /* Biru muda */
    border-radius: 20px;
    outline: none;
    transition: all 0.3s;
    width: 20rem;
}

.search-input:focus {
    border-color: tomato;
    box-shadow: 0 0 0 2px rgba(255, 99, 71, 0.2);
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #1e3a8a;
    /* Biru tua */
    cursor: pointer;
}

/* Login button styling */
.login-button {
    padding: 8px 20px;
    background-color: tomato;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #ff6347;
    /* Tomato lebih gelap */
}

/* Hamburger menu (untuk tampilan mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #1e3a8a;
    /* Biru tua */
    transition: all 0.3s;
}

/* Mobile sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    transition: left 0.4s ease;
    z-index: 1000;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-navbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.mobile-nav-link {
    text-decoration: none;
    color: #1e3a8a;
    /* Biru tua */
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    /* Biru sangat muda */
}

.mobile-login-button {
    padding: 10px 20px;
    background-color: tomato;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.mobile-login-button:hover {
    background-color: #ff6347;
    /* Tomato lebih gelap */
}

.close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #1e3a8a;
    /* Biru tua */
    cursor: pointer;
}

/* Overlay untuk sidebar */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/*kategori*/
.categories {
    padding: 0;
    margin-top: 1rem;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--navy);
    /* margin-left: 1rem; Removed to ensure centering */
}

.categories-container {
    display: flex;
    overflow-x: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--tomato) var(--light-gray);
}

.categories-container::-webkit-scrollbar {
    height: 8px;
}

.categories-container::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.categories-container::-webkit-scrollbar-thumb {
    background-color: var(--tomato);
    border-radius: 10px;
}

.category-item {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
    margin-right: 20px;
}

.category-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--tomato);
}

.category-img.active {
    background: var(--tomato);
    color: white;
    transform: scale(1.1);
    transition: 0.2s;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

@media (max-width: 480px) {
    .header {
        padding: 15px 20px;
    }

    .search-input {
        width: 15rem;
    }

    .logo-text {
        font-size: 20px;
    }
}

.hero-section {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 25.4%;
    /* Rasio 3.65:1 (100/3.65 = 27.4%) */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.Hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Layer hitam transparan */
    z-index: -1;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* tetap vertikal tengah */
    padding: 0 40px;
    color: white;
    text-align: left;
}

.text-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.hero-content h1 {
    font-family: poppins;
    /* Font Horizon alternatif */
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #0a00c1;
    /* Warna tomato */
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.3);
    width: auto;
    /* pastikan lebar sesuai teks */
    align-self: flex-start;
}

.cta-button:hover {
    background-color: #2638ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 71, 255, 0.4);
}

.content-below {
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
}

.content-below p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    max-width: 800px;
}

/*layanan*/
.layanan {
    background-color: rgba(255, 255, 255, 0.5);
    /* bg-white/50 */
    padding: 1rem;
    /* p-4 */
    border-radius: 0.5rem;
}

.layanan-container {
    max-width: 1280px;
    /* container default Tailwind */
    margin-left: auto;
    /* mx-auto */
    margin-right: auto;
    /* mx-auto */
    padding-left: 1rem;
    /* px-4 */
    padding-right: 1rem;
    /* px-4 */
    padding-top: 1.5rem;
    /* py-6 */
    padding-bottom: 1.5rem;
    /* py-6 */
    background-color: #ffffff;
    /* bg-white */
    border-radius: 0.125rem;

}

.layanan-container h2 {
    position: relative;
    /* relative */
    display: inline-block;
    /* inline-block */
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    /* font-bold */
    color: #1e3a8a;
    /* text-blue-900 */
    margin-bottom: 1.5rem;
    /* mb-6 */
    font-family: 'Poppins', sans-serif;
}

.layanan-container h2::after {
    content: '';
    display: block;
    width: 4rem;
    /* w-16 */
    height: 3px;
    /* h-[3px] */
    background-color: tomato;
    /* after:bg-[tomato] */
    margin-top: 0.25rem;
    /* after:mt-1 */
    border-radius: 9999px;
}

/* Removed .product-card CSS to rely on Tailwind classes in Home.blade.php */
/* .product-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 100%;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:active {
    transform: scale(0.96);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
} */

.image-product {
    width: 100%;
    /* w-full */
    aspect-ratio: 1 / 1;
    /* aspect-[4/4] */
    object-fit: cover;
}

.service_data {
    padding: 0.75rem;
}

.service_data h3 {
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* font-medium */
    margin-bottom: 0.5rem;
    /* mb-2 */
    display: -webkit-box;
    /* line-clamp */
    -webkit-line-clamp: 2;
    /* maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service_data p {
    font-weight: 700;
    /* font-bold */
    color: var(--tomato);
}

.rating {
    display: flex;
    /* flex */
    align-items: center;
    /* items-center */
    margin-top: 0.25rem;
}

.bintang {
    display: flex;
    /* flex */
    color: #facc15;
    font-size: 0.8rem;
}

/* Responsif untuk tablet */
footer {
    background-color: #001f3f;
    /* Warna Navy */
    color: #ffffff;
    padding: 60px 20px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

/* Judul & Konten */
.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3b82f6;
    /* Warna aksen biru */
}

.footer-section p {
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 20px;
}

/* List Styling */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: #3b82f6;
    transform: translateY(-3px);
}

/* Hubungi Kami Detail */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #d1d5db;
}

.contact-info i {
    color: #3b82f6;
    margin-top: 4px;
}

/* Bottom Bar (Copyright) */
.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.mobile-navigation {
    display: none;
}

/* Responsivitas Mobile */
@media (max-width: 768px) {
    .logo img {
        width: 5rem;
        /* Biru tua */
    }

    .navbar,
    .login-button {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .search-input {
        width: 150px;
    }

    .hero-section {
        padding-bottom: 50%;
        /* Lebih tinggi di mobile untuk keterbacaan */
    }

    .text-content {
        text-align: center;
        /* Teks menjadi rata tengah di handphone */
        padding: 0 20px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        padding-top: 0.6rem;
    }

    .hero-content p {
        font-size: 0.5rem;
        max-width: 100%;
    }

    .cta-button {
        padding: 1rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .layanan{
        padding: 0rem;
        margin-top: 1rem;
    }

    /* .product-card{
        max-width: 9.2rem;
    } Removed to allow full width grid */
    .service_data p {
        font-weight: 700;
        /* font-bold */
        color: var(--tomato);
        font-size: 0.7rem;
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }

    .mobile-navigation {
        display: flex;
        padding: 0.5rem;
        padding-bottom: 1rem;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background: #fff;
        justify-content: space-around;
    }

    .mobile-navigation-button {
        text-align: center;
        color: #333;
    }

    .icon-navigation {
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        background-color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
    }
    .icon-navigation:active{
        background-color: var(--tomato);
        color: #fff;
    }
}

/* Responsif untuk tablet */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .cta-button {
        align-self: center;
    }
}

/* Responsif untuk handphone */
@media (max-width: 768px) {}


/* Responsif untuk handphone kecil */
@media (max-width: 480px) {
    .hero-section {
        padding-bottom: 100%;
        /* Lebih tinggi lagi di mobile kecil */
    }

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

    .hero-content p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

/* =====================
   USER CHIP
===================== */
.user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    cursor: pointer;
    transition: background .2s;
}

.user-chip:hover {
    background: #e5e7eb;
}

.desktop-only {
    display: none;
}

@media (min-width: 640px) {
    .desktop-only {
        display: flex;
    }
}

/* =====================
   LAYANAN SECTION
===================== */
.layanan-wrapper {
    background: rgba(255, 255, 255, .5);
    padding: 1rem;
    border-radius: .5rem;
}

.layanan-container {
    max-width: 1280px;
    margin: auto;
    padding: 1.5rem;
    background: white;
    border-radius: .125rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 4rem;
    height: 3px;
    background: tomato;
    margin-top: .25rem;
    border-radius: 999px;
}

/* =====================
   GRID & CARD
===================== */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width:768px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width:1024px) {
    .service-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.service-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.card-body {
    padding: .75rem;
}

.service-name {
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-price {
    font-weight: 700;
    color: tomato;
}

/* =====================
   RATING
===================== */
.rating-row {
    display: flex;
    align-items: center;
    margin-top: .25rem;
}

.rating-stars {
    display: flex;
    color: #facc15;
}

.rating-count {
    font-size: .75rem;
    color: #6b7280;
    margin-left: .25rem;
}

.service-location {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .25rem;
}

/* =====================
   FOOTER
===================== */
.footer-main {
    background: #001F3F;
    color: white;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media(min-width:768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-divider {
    border-top: 1px solid #1e40af;
    margin-top: 1rem;
    padding-top: 1.5rem;
}

.footer-text {
    color: #dbeafe;
}

.footer-socials a {
    color: #bfdbfe;
    transition: color .2s;
}

.footer-socials a:hover {
    color: white;
}