/* 1. Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* 2. Navbar Styling */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 70px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-links a {
    text-decoration: none;
    color: #404040;
    font-weight: 500;
}

.btn-wa {
    background-color: #0FB318;
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.btn-wa img {
    height: 20px;
}

/* 3. Hero Section */
.hero {
    width: 100%;
    height: 100vh;
    /* Gradient */
    background: linear-gradient(to bottom, #B2E3FF 0%, #FFE4CC 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Villa (Pemandangan) */
.hero-bg-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Biar pemandangan menutupi layar */
    opacity: 0.9;
}

/* Konten Mascot & Teks */
.container {
    position: relative;
    width: 85%;
    height: 90%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 10;
}

.mascot-wrapper {
    flex: 1;
}

.mascot {
    height: 70vh;
    display: block;
}

.hero-text {
    flex: 1;
    padding-bottom: 20px;
}

.hero-text h1 {
    font-size: 5.5rem;
    font-weight: 900;
    color: #202020;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;

}

.hero-text span {
    color: #0080CF;
    display: block;
}

.font-barber {
    font-family: 'BarberChop', sans-serif;
    font-size: 6rem;
    color: #202020;
    line-height: 1;
    -webkit-text-stroke: 8px white;
    paint-order: stroke fill;
}

/* 4. Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
    }
    
    .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: -10%; /* BG Position */
    left: 0;
}

    .hero-bg-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .nav-links {
        display: none;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: center;
        position: relative;
    }

    /* Tambahkan icon-menu.svg di pojok kanan/kiri via CSS atau HTML */
    .nav-container::after {
        content: url('../assets/icon-menu.svg');
        position: absolute;
        left: 0;
        width: 30px;
        cursor: pointer;
    }

    .logo {
        height: 75px !important;
        padding-top: 8px;
        margin: 0 auto;
    }

    .mascot {
        height: 65vh !important; /* 70% dari tinggi layar */
        position: absolute;
        bottom: 17%;
        left: 48% !important;
        transform: translateX(-50%); /* Fix tengah */
        z-index: 10;
    }

    /* 4. Posisi Hero Text di Tengah & Adjust Size */
    .container.hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Paksa konten ke bawah */
        height: 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-bottom: 5%; /* Jarak 5% dari bawah layar */
        position: relative;
    }

    .hero-text {
        flex: none; 
        width: 100%;
        text-align: center;
        z-index: 30;
    }

    .hero-text h1 {
        font-size: 3.5rem !important;
        line-height: 1.1;
        display: block; /* Kembalikan ke block biar margin auto bekerja */
    }

    .font-barber {
        -webkit-text-stroke: 6px white; /* Stroke agak tipisin biar rapi di HP */
    }
}