/* Import Google Fonts & Font Awesome */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');
/* Font Awesome diimport di HTML, tapi bisa juga di sini: */
/* @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css'); */

/* Variabel CSS */
:root {
    --primary-blue: #3498db; /* Biru terang */
    --dark-blue: #2980b9;    /* Biru gelap */
    --text-color: #333;
    --heading-color: #2c3e50;
    --light-bg-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --font-family-body: 'Poppins', sans-serif;
    --font-family-heading: 'Playfair Display', serif;
}

/* Reset dan Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    color: #0000;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header & Navigasi */
.header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
}

.nav a {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 30px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--primary-blue);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: var(--primary-blue);
    margin-bottom: 4px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Bagian Hero */
.hero {
    background: linear-gradient(135deg, var(--light-bg-color) 0%, var(--white) 100%);
    text-align: center;
    padding: 12rem 0 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero h2 {
    font-family: var(--font-family-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    line-height: 1.2;
}

.hero h2 .highlight {
    color: var(--primary-blue);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
}

.hero-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(var(--primary-blue), 0.2);
}

/* Tombol (Button) */
.btn {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 50px; /* Bentuk pil */
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(var(--primary-blue), 0.2);
}

.btn:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--dark-blue), 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 28px;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-blue), 0.2);
}

/* Bagian Umum */
.section {
    padding: 6rem 0;
}

.section.bg-light {
    background-color: var(--light-bg-color);
}

.section h3 {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    color: var(--heading-color);
}

.section h3::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}
.mb-4 {
    margin-bottom: 1.5rem;
}
.mt-4 {
    margin-top: 1.5rem;
}

/* Grid Layanan */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.service-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #eee;
}

.service-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item h4 {
    font-family: var(--font-family-body);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.service-item p {
    color: var(--gray);
}

/* Grid Portofolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.portfolio-item img {
    width: 100%;
    height: 250px; /* Tinggi tetap */
    object-fit: cover; /* Memastikan gambar mengisi area tanpa terdistorsi */
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--dark-blue), 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .overlay-text {
    transform: translateY(0);
}

/* Mengapa Memilih Kami */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-blue);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-family: var(--font-family-body);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--heading-color);
}

.feature-item p {
    color: var(--gray);
}

/* Form Kontak */
#contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(var(--primary-blue), 0.2);
    outline: none;
}

#contact-form button {
    align-self: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--heading-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer p {
    margin: 0;
    display: flex;
    align-items: center;
}

.footer i.fa-heart {
    color: #e74c3c;
    margin: 0 5px;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* --- Animasi --- */
/* Animasi Teks Hero */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
}

.animate-text.delay-1 { animation-delay: 0.3s; }
.animate-text.delay-2 { animation-delay: 0.6s; }
.animate-text.delay-3 { animation-delay: 0.9s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi Gambar Hero */
.animate-fade-in {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 1s ease-out forwards;
    animation-delay: 0.8s; /* Setelah teks muncul */
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animasi Scroll (Fade In Up) */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-scroll.delay-1 { transition-delay: 0.1s; }
.fade-in-scroll.delay-2 { transition-delay: 0.2s; }
.fade-in-scroll.delay-3 { transition-delay: 0.3s; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content, .hero-image {
        max-width: 100%;
    }
    .hero-content {
        margin-bottom: 3rem;
    }
    .hero h2 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .nav {
        display: none; /* Sembunyikan nav di mobile secara default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
    }
    .nav.active {
        display: flex;
    }
    .nav a {
        margin: 10px 0;
        padding: 10px 25px;
        text-align: center;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    .hero {
        padding-top: 8rem;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section h3 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    .service-item, .portfolio-item, .feature-item {
        padding: 1.8rem;
    }
    .service-icon {
        font-size: 3rem;
    }
    .overlay-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .section h3 {
        font-size: 1.8rem;
    }
}




/* Di bagian .hero */
.hero-content .cta-buttons {
    display: flex;
    gap: 15px; /* Memberi jarak antar tombol */
    justify-content: flex-start; /* Untuk tata letak di desktop */
}

/* Sesuaikan di media query untuk mobile */
@media (max-width: 992px) {
    .hero-content .cta-buttons {
        justify-content: center; /* Tombol berada di tengah saat mobile */
    }
}

/* Styling untuk tombol WhatsApp */
.btn.btn-outline.whatsapp {
    border-color: #25D366; /* Warna hijau WhatsApp */
    color: #25D366;
}

.btn.btn-outline.whatsapp:hover {
    background: #25D366;
    color: var(--white);
    transform: translateY(-3px);
}


/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Warna hijau WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    
}
.floating-whatsapp img {
    width: 100px;
    height: 100px;
}


.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 6px #888;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}




/* --- Pricing Section --- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch; /* PENTING: Membuat item setinggi yang lain */
    justify-content: center;
}

.package-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    display: flex; /* PENTING: Gunakan flexbox untuk tata letak internal */
    flex-direction: column;
}

.package-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.package-item.recommended {
    border-color: var(--primary-blue);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.package-header {
    margin-bottom: 2rem;
}

.package-header h4 {
    font-family: var(--font-family-body);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.package-header .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.package-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1; /* PENTING: Membuat daftar fitur mengisi ruang yang tersedia */
}

.package-body li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-body li i {
    color: #2ecc71; /* Warna hijau untuk check */
}

.package-body li.unavailable i {
    color: #e74c3c; /* Warna merah untuk cross */
}

.package-item .btn {
    width: 100%;
    margin-top: auto; /* PENTING: Tombol akan selalu di bagian bawah */
    padding: 15px 0;
    font-size: 1rem;
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -20px;
    background: #e74c3c; /* Warna pita */
    color: white;
    padding: 5px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    transform-origin: 100% 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}