/* =========================================
   RESET & GLOBAL VARIABLES
   ========================================= */
:root {
    --primary-color: #0F172A; /* Biru Gelap Elegan */
    --secondary-color: #334155; /* Abu-abu Kebiruan */
    --accent-color: #D4AF37; /* Emas untuk kesan mewah */
    --text-color: #333333;
    --light-bg: #F8FAFC;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* Animasi Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* =========================================
   HERO SECTION
   ========================================= */
#beranda {
    height: 100vh;
    /* Pastikan file hero-bg.jpg ada di folder assets/hero/ */
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), 
                        url('../assets/hero/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px; /* Offset for fixed header */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e8f0;
}

.btn-cta {
    display: inline-block;
    background-color: #25D366; /* Warna WhatsApp */
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border: 2px solid #25D366;
}

.btn-cta:hover {
    background-color: transparent;
    color: #25D366;
    transform: translateY(-3px);
}

.btn-cta i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* =========================================
   PROFIL SECTION
   ========================================= */
#profil {
    background-color: var(--white);
}

.profil-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.profil-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profil-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.profil-text p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: justify;
}

.visi-box {
    background: var(--light-bg);
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    margin-top: 20px;
    border-radius: 4px;
}

.visi-box h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* =========================================
   LAYANAN SECTION
   ========================================= */
#layanan {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* =========================================
   GALERI SECTION
   ========================================= */
#galeri {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info h4 {
    color: var(--white);
    font-size: 1.1rem;
}

.gallery-info p {
    color: var(--accent-color);
    font-size: 0.85rem;
}

/* =========================================
   TESTIMONI SECTION
   ========================================= */
#testimoni {
    background-color: var(--primary-color);
    color: var(--white);
}

#testimoni .section-title {
    color: var(--white);
}

#testimoni .section-subtitle {
    color: #94a3b8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-details h4 {
    font-size: 1rem;
    color: var(--white);
}

.client-details span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* =========================================
   ARTIKEL SECTION
   ========================================= */
#artikel {
    background-color: var(--light-bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.article-img {
    height: 200px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 10px;
    display: block;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.article-content p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

/* =========================================
   KONTAK SECTION
   ========================================= */
#kontak {
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.contact-info {
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-text p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    border-radius: 10px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* =========================================
   FLOATING WHATSAPP & RESPONSIVE
   ========================================= */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .profil-content, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .profil-img {
        order: -1; /* Gambar di atas teks pada mobile */
    }
}

/* =========================================
   HEADER WRAPPER & LINK ONLY STYLE
   ========================================= */

/* Wrapper untuk menyusun Judul dan Tombol Side-by-Side */
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content {
    max-width: 600px; /* Membatasi lebar teks agar tidak terlalu panjang */
}

/* Link Style untuk Tombol "Lihat Semua" */
.link-only {
    font-size: 0.9rem; /* Ukuran lebih kecil dari tombol biasa */
    font-weight: 600;
    color: var(--accent-color); /* Warna Emas */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Jarak antara teks dan ikon panah */
    transition: var(--transition);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent; /* Garis bawah transparan */
    white-space: nowrap;
}

.link-only:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color); /* Muncul garis bawah saat hover */
}

/* Penyesuaian posisi garis bawah pada Judul Section saat di layout baru */
.header-wrapper .section-title {
    text-align: left; /* Rata kiri agar sejajar dengan tombol kanan */
}

.header-wrapper .section-title::after {
    margin: 10px 0 0; /* Garis bawah judul rata kiri */
}

/* Responsif: Pada layar kecil, kembali ke posisi di tengah */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .header-wrapper .section-title {
        text-align: center;
    }
    
    .header-wrapper .section-title::after {
        margin: 10px auto 0; /* Garis bawah judul kembali ke tengah */
    }
}

/* =========================================
   LAYANAN SECTION (GLASSMORPHISM STYLE)
   ========================================= */

#layanan {
    /* Background Image dengan Overlay Gelap agar teks terbaca */
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), 
                url('../assets/hero/hero-bg.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efek parallax */
    color: var(--white); /* Warna teks dasar putih */
    padding-top: 80px; /* Agar jarak ke atas pas */
    padding-bottom: 100px;
}

/* Override Judul & Subtitle agar Putih */
#layanan .section-title, 
#layanan .section-subtitle {
    color: var(--white) !important;
}

/* Garis bawah judul tetap Emas */
#layanan .section-title::after {
    background: var(--accent-color);
}

/* Grid Layout Tetap */
#layanan .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- KARTU KACA (GLASS CARD) --- */
.service-card {
    /* Style Glassmorphism */
    background: rgba(255, 255, 255, 0.05); /* Transparansi tipis */
    backdrop-filter: blur(12px); /* Efek buram belakang */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Border tipis kaca */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Efek Hover pada Kartu Kaca */
.service-card:hover {
    background: rgba(255, 255, 255, 0.15); /* Sedikit lebih terang saat hover */
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.5); /* Border menjadi sedikit keemasan */
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Ikon di dalam kartu kaca */
.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1); /* Ikon transparan */
    color: var(--accent-color); /* Emas */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: var(--white); /* Ikon jadi putih saat hover */
    border-color: var(--accent-color);
}

/* Teks Kartu */
.service-card h3 {
    margin-bottom: 15px;
    color: var(--white); /* Judul Putih */
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #cbd5e1; /* Abu-abu terang untuk deskripsi */
}

/* Penyesuaian Link "Lihat Semua" agar Putih karena bg gelap */
#layanan .link-only {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
#layanan .link-only:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Responsif untuk halaman Layanan Lengkap */
@media (max-width: 768px) {
    #layanan .services-grid {
        grid-template-columns: 1fr; /* 1 kolom di HP */
    }
}
@font-face {
  font-family: 'Poppins';
  src: url('Poppins.woff2') format('woff2'),
       url('Poppins.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* <-- Ini adalah kuncinya */
}

body {
  font-family: 'Poppins', sans-serif; /* Fallback jika font tidak dimuat */
}
