/* Import Font (Opsional) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display.swap');

/* --- 3. PRELOADER BARU DITAMBAHKAN --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gunakan warna solid agar menutupi konten di belakang */
    background-color: var(--bg-color-solid, #121212); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Transisi untuk fade-out */
    transition: opacity 0.75s ease;
}
.preloader-logo {
    height: 80px; /* Diperbesar dari 60px ke 80px */
    width: auto;
    /* Animasi denyut (pulse) yang interaktif */
    animation: pulse 1.5s infinite ease-in-out;
}
/* Kelas 'hide' yang ditambahkan oleh JavaScript */
.preloader.hide {
    opacity: 0;
    pointer-events: none; /* Supaya tidak bisa diklik saat transparan */
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
/* --- AKHIR PRELOADER --- */


/* --- Root Variables (Dark Mode Transparan) --- */
:root {
    --bg-color: rgba(18, 18, 18, 0.75); /* 75% opacity */
    --card-color: rgba(30, 30, 30, 0.85); /* 85% opacity */
    --footer-color: rgba(0, 0, 0, 0.8); /* Footer 80% */
    --bg-color-solid: #121212; /* Fallback jika gambar gagal load */

    --border-color: #333;
    --text-color: #EAEAEA;
    --text-muted: #AAAAAA;
    --accent-color: #007BFF;
    --accent-hover: #0056b3;
    --accent-green: #28a745;
    --accent-green-hover: #218838;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    margin: 0; padding: 0;
    background-color: var(--bg-color-solid); /* Fallback */
    color: var(--text-color);
    line-height: 1.7;
    position: relative; 
    overflow-x: hidden; 
}

/* --- BACKGROUND IMAGE (BLUR + OPACITY) --- */
body::before {
    content: '';
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; 
    
    background-image: url('images/background-utama.jpg'); 
    background-size: cover;
    background-position: center;
    
    filter: blur(8px); 
    opacity: 0.3;      
    
    transform: scale(1.1); 
}
/* --- AKHIR BACKGROUND IMAGE --- */


/* --- Navbar (Semi-Transparan) --- */
.navbar {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
.logo { 
    font-weight: 700; 
    font-size: 1.5rem; 
    color: var(--text-color); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.logo img {
    height: 30px; 
    width: auto;
}
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-color); }

/* --- Hero Section (Latar transparan) --- */
.hero {
    background: transparent;
    text-align: center; 
    padding: 8rem 2rem 6rem 2rem;
}
.hero-content h1 { 
    font-size: 3.5rem; 
    font-weight: 700;
    margin-bottom: 1rem; 
    line-height: 1.2;
}
.hero-content p { 
    font-size: 1.2rem; 
    max-width: 600px; 
    margin: 0 auto 2.5rem; 
    color: var(--text-muted);
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}
.cta-button:hover { 
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* --- Portofolio Template (Latar Semi-Transparan) --- */
.portfolio {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--card-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.portfolio h2 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
.sub-heading { 
    font-size: 1.1rem; 
    max-width: 700px; 
    margin: 0 auto 3.5rem; 
    color: var(--text-muted); 
}

.template-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: auto;
}

.template-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 380px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.template-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 { font-size: 1.4rem; margin: 0 0 0.75rem; }
.card-content p { flex-grow: 1; margin: 0 0 1.5rem; color: var(--text-muted); }

.card-buttons {
    display: flex;
    gap: 10px;
}
.card-buttons a {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}
a.btn-demo { 
    background-color: var(--bg-color);
    color: var(--text-color); 
    border: 1px solid var(--border-color);
}
a.btn-demo:hover { background-color: #333; }
a.btn-order { 
    background-color: var(--accent-color); 
    color: white; 
    border: 1px solid var(--accent-color); 
}
a.btn-order:hover { background-color: var(--accent-hover); }

/* --- BAGIAN HARGA (Latar Semi-Transparan) --- */
.pricing {
    padding: 4rem 2rem;
    text-align: center;
    background-color: transparent;
}
.pricing h2 { font-size: 2.5rem; margin-bottom: 3.5rem; font-weight: 700; }
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.pricing-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 350px;
    position: relative;
    overflow: hidden;
}
.pricing-card.popular {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
}
.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
}
.pricing-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
}
.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
}
.pricing-card li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.pricing-card li strong { color: var(--text-color); }

.pricing-card .btn-order {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    background-color: var(--accent-green);
    color: white;
    transition: all 0.3s;
}
.pricing-card .btn-order.highlight {
    background-color: var(--accent-color);
}
.pricing-card .btn-order:hover {
    background-color: var(--accent-green-hover);
}
.pricing-card .btn-order.highlight:hover {
    background-color: var(--accent-hover);
}

/* --- Kontak (Latar Semi-Transparan) --- */
.contact {
    padding: 6rem 2rem;
    text-align: center;
    background-color: var(--card-color);
    border-top: 1px solid var(--border-color);
}
.contact h2 { font-size: 2.2rem; color: var(--text-color); }
.contact p { color: var(--text-muted); max-width: 500px; margin: 1rem auto 2rem; }
.contact .cta-button { 
    background-color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}
.contact .cta-button:hover { 
    background-color: var(--accent-green-hover); 
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* --- Footer (Latar Semi-Transparan) --- */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--footer-color);
    color: #666;
    border-top: 1px solid var(--border-color);
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .pricing-grid { flex-direction: column; align-items: center; }
    .pricing-card { width: 90%; max-width: 350px; }
}