/* =========================================
   Custom CSS for PT A M N Pest Protection
   (Glassmorphism & Responsive Edition)
   ========================================= */

   :root {
    --primary-dark: #1A2530; /* Biru Dongker / Charcoal */
    --accent-gold: #D4AF37;  /* Emas Mewah */
    --text-gray: #555555;
    --bg-light: #F8F9FA;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-gray);
    overflow-x: hidden; /* Mencegah scroll horizontal di HP */
}

/* Typography */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
}

/* =========================================
   1. NAVBAR (Glassmorphism Effect)
   ========================================= */
.navbar {
    /* Menerapkan efek kaca pada navbar */
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.nav-link {
    color: var(--primary-dark);
    font-weight: 600; /* Ditebalkan sedikit agar terbaca di atas kaca */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--accent-gold); }

/* =========================================
   2. BUTTONS
   ========================================= */
.btn-gold {
    background-color: var(--accent-gold);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}
.btn-outline-light-premium {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-outline-light-premium:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh; 
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
    background-attachment: fixed; /* Efek parallax sederhana */
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradasi overlay yang lebih dramatis */
    background: linear-gradient(135deg, rgba(26, 37, 48, 0.95) 0%, rgba(26, 37, 48, 0.6) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2; 
    padding-top: 80px; /* Jarak aman dari navbar */
}
.hero-title {
    color: #ffffff;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* Agar teks lebih tajam */
}
.hero-subtitle {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* =========================================
   4. SERVICES SECTION (Glassmorphism Cards)
   ========================================= */
#layanan {
    /* Menggunakan background gambar abstrak atau pola agar efek kaca terlihat */
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
}
.service-card {
    /* Efek Utama Glassmorphism */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--glass-shadow);
    
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    z-index: 2;
}
.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.8); /* Agak lebih solid saat di-hover */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
}
.service-link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.service-link:hover { color: var(--accent-gold); }
.service-link i { margin-left: 5px; transition: margin-left 0.3s ease; }
.service-card:hover .service-link i { margin-left: 10px; }

/* =========================================
   5. CONTACT & FOOTER
   ========================================= */
.contact-box {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 50px 40px;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 15px 35px rgba(26, 37, 48, 0.2);
}
.contact-box i {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-right: 15px;
}
.form-control {
    border-radius: 4px;
    padding: 14px 15px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    background-color: #fafafa;
}
.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
    background-color: #fff;
}

.footer {
    background-color: #111820; 
    color: #a0a0a0;
    padding: 70px 0 30px;
}
.footer-title {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}
.footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover { color: var(--accent-gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* =========================================
   6. CLIENT LOGOS
   ========================================= */
.client-logo-wrapper {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}
.client-logo {
    max-width: 100%;
    max-height: 70px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
    cursor: pointer;
}
.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1); 
}

/* =========================================
   7. RESPONSIVE DESIGN (Media Queries untuk HP/Tablet)
   ========================================= */
@media (max-width: 991px) {
    /* Navbar Toggle Tampilan HP */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 20px;
        border-radius: 8px;
        margin-top: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    .nav-link {
        margin: 10px 0;
        text-align: center;
    }
    .navbar-nav .btn-gold {
        margin-top: 15px;
        width: 100%; /* Tombol jadi full width di HP */
    }
}

@media (max-width: 768px) {
    .hero-title { 
        font-size: 2.8rem; 
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-content {
        padding-top: 60px;
        text-align: center; /* Teks ke tengah di HP */
    }
    .hero-content .d-flex {
        justify-content: center; /* Tombol ke tengah di HP */
    }
    
    .contact-box {
        padding: 30px 20px;
        margin-bottom: 20px; /* Memberi jarak antara box info dan form di HP */
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .hero-title { 
        font-size: 2.2rem; 
    }
    .hero-content .d-flex {
        flex-direction: column; /* Tombol menumpuk atas bawah di HP kecil */
        width: 100%;
    }
    .hero-content .d-flex .btn {
        width: 100%;
    }
    
    .client-logo-wrapper {
        height: 70px; /* Logo klien lebih kecil di HP */
    }
    .client-logo {
        max-height: 50px;
    }
}