/* ================= 1. VARIABLES & REFINED THEME ================= */
:root {
    /* Warna: Lebih deep dan premium, tidak terlalu mencolok mata */
    --primary: #3b82f6; 
    --primary-dark: #2563eb;
    
    --neon-blue: #0ea5e9; /* Sky blue yang lebih modern */
    --neon-purple: #8b5cf6; /* Violet yang lebih soft */
    --neon-green: #10b981; /* Emerald green yang elegan */
    
    /* Background & Glass - Lebih bening (Crystal Effect) */
    --bg-overlay: rgba(248, 250, 252, 0.85); 
    --text-main: #0f172a;
    --text-secondary: #64748b;
    
    /* Glass Panel yang lebih "Clean" */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --input-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.85); 
    
    --card-hover-transform: translateY(-5px);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --bg-overlay: rgba(10, 15, 30, 0.96);
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --input-bg: rgba(15, 23, 42, 0.8);
    --nav-bg: rgba(15, 23, 42, 0.85);
}

/* ================= 2. ANIMATIONS (Load & Scroll) ================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Class untuk JS Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ================= 3. BASE STYLES ================= */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.7; 
    background-image: url('../images/bg.jpeg'); 
    background-size: cover; background-position: center; background-attachment: fixed;
    overflow-x: hidden;
    /* animation: fadeInUp 0.8s ease-out;  */
}

body::before {
    content: ''; position: fixed; inset: 0;
    background-color: var(--bg-overlay); z-index: -1; 
    backdrop-filter: blur(10px); 
    transition: background-color 0.3s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ================= 4. GLASS COMPONENTS (MODERNIZED) ================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative; overflow: hidden;
}

.glass-panel:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* Shine Effect */
.glass-panel::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg); transition: 0.5s; pointer-events: none;
}
.glass-panel:hover::after { left: 150%; transition: 0.7s ease-in-out; }

/* Button Modern */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; 
    cursor: pointer; border: none; letter-spacing: 0.5px;
    transition: var(--transition-smooth); position: relative; overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background: transparent; border: 2px solid var(--primary); color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

/* Section Styling */
section { padding: 100px 0; position: relative; } 
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { 
    font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 10px;
    background: linear-gradient(to right, var(--text-main), var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-title p { color: var(--text-secondary); font-size: 1.1rem; }

/* ================= 5. HEADER (Sticky & Clean) ================= */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background: var(--nav-bg); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000; transition: all 0.3s ease;
}
header.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.header-container { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.4rem; color: var(--text-main); }
.logo img { height: 40px; }

.nav-links { display: flex; gap: 5px; align-items: center; }
.nav-links a {
    padding: 10px 18px; border-radius: 8px; font-weight: 500; font-size: 0.9rem;
    color: var(--text-secondary); transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary); background: rgba(59, 130, 246, 0.1);
}
.nav-btn-status { color: var(--primary) !important; font-weight: 700; }

.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.bar { width: 25px; height: 2px; background: var(--text-main); border-radius: 2px; transition: 0.3s; }
.menu-toggle.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ================= 6. HERO SECTION ================= */
#home { 
    min-height: 100vh; display: flex; align-items: center; 
    padding-top: 80px; 
}

.hero-content { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 50px;
    background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary); font-weight: 600; font-size: 0.85rem;
    margin-bottom: 30px; animation: float 3s ease-in-out infinite;
}
.hero-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }

.hero-content h1 {
    font-size: 3.5rem; line-height: 1.2; margin-bottom: 25px; font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ================= 7. FEATURES & SERVICES ================= */
.features-section { margin-top: -80px; position: relative; z-index: 10; padding: 0; }
.features-grid, .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.feature-box { text-align: center; padding: 40px 25px; }
.feature-icon { 
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(139,92,246,0.1));
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--primary);
}

.service-card { padding: 35px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.service-card h3 i { color: var(--primary); }
.service-price { 
    background: var(--primary); color: white; border: none; 
    font-size: 0.85rem; padding: 4px 12px; border-radius: 6px; margin-bottom: 15px; display: inline-block;
}
.service-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.95rem; }
.service-list li i { color: var(--neon-green); font-size: 0.9rem; }

/* ================= 8. MODERN FORM & PRICING ================= */
.delivery-banner {
    display: flex; align-items: center; gap: 20px; padding: 25px;
    border: 1px solid rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05);
    border-radius: 20px; margin-bottom: 30px;
}

.booking-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; border-radius: 30px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.booking-info { 
    padding: 60px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); 
    color: white; display: flex; flex-direction: column; justify-content: center;
}
.booking-info h3, .booking-info h2, .booking-info p, .booking-info i { color: white !important; }
.booking-info h2 { -webkit-text-fill-color: white; }
.booking-info hr { border-color: rgba(255,255,255,0.2); }

.booking-form { padding: 60px; background: var(--glass-bg); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.booking-form label {
    display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; 
    color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%; padding: 16px 20px;
    background: var(--input-bg);
    border: 2px solid transparent; 
    border-radius: 12px;
    font-size: 1rem; color: var(--text-main); font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

input:focus, select:focus, textarea:focus {
    outline: none; background: white; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); transform: translateY(-2px);
}
.booking-form button { width: 100%; padding: 20px; border-radius: 16px; margin-top: 10px; font-size: 1.1rem; letter-spacing: 1px; }

/* Pricing */
.pricing-container { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.pricing-card { width: 100%; max-width: 500px; }
.pricing-header { padding: 30px; text-align: center; color: white; }
.pricing-header.iphone { background: linear-gradient(135deg, #0f172a 0%, #334155 100%); }
.pricing-header.android { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.pricing-body { padding: 40px; }
.price-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px dashed rgba(0,0,0,0.1); align-items: center; }
.price-row strong { color: var(--primary); font-size: 1rem; text-align: right; min-width: 140px; }

/* ================= 9. GALLERY, REVIEWS, FAQ ================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-card { position: relative; border-radius: 20px; overflow: hidden; height: 300px; cursor: pointer; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px; background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 70%, transparent 100%); color: white; transform: translateY(100px); transition: transform 0.4s ease; backdrop-filter: blur(5px); }
.gallery-card:hover .gallery-img { transform: scale(1.1); }
.gallery-card:hover .gallery-overlay { transform: translateY(0); }
.gallery-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: var(--neon-blue); }
.gallery-desc { font-size: 0.85rem; opacity: 0.9; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.review-text { font-style: italic; color: var(--text-secondary); margin-bottom: 20px; flex-grow: 1; font-size: 0.95rem; }
.review-author { display: flex; align-items: center; gap: 15px; }
.author-avatar { width: 45px; height: 45px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-question { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.3s; }
.faq-question h3 { font-size: 1rem; margin: 0; font-weight: 600; color: var(--text-main); }
.faq-question i { transition: 0.3s; color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 25px; }
.faq-answer p { margin-bottom: 20px; color: var(--text-secondary); border-top: 1px solid rgba(0,0,0,0.1); padding-top: 15px; font-size: 0.95rem; }
.faq-item.active .faq-question { background: rgba(59, 130, 246, 0.05); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 200px; }

/* ================= 10. FOOTER & WIDGETS ================= */
footer { background: #0b0f19; color: #94a3b8; padding: 80px 0 30px; margin-top: 120px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
footer .logo { color: white !important; margin-bottom: 20px; }
footer .logo i { color: var(--neon-green); }
.footer-desc { font-size: 0.95rem; line-height: 1.7; max-width: 90%; }
.footer-col h4 { color: white; font-size: 1.1rem; font-weight: 600; margin-bottom: 25px; position: relative; display: inline-block; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }

.footer-contact-box { 
    display: flex; align-items: center; gap: 15px; padding: 15px; 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 12px; transition: all 0.3s ease; color: white !important; 
}
.footer-contact-box:hover {
    background: rgba(37,99,235,0.1); border-color: var(--primary); transform: translateY(-5px);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 0.9rem; color: #64748b; }

/* Widgets */
.widget-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 2000; align-items: flex-end; }
.float-btn { width: 55px; height: 55px; border-radius: 18px; display: flex; justify-content: center; align-items: center; font-size: 24px; color: #fff; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: all 0.3s; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
.float-btn:hover { transform: scale(1.15); border-color: #fff; }
.whatsapp:hover { background: #25d366; } .facebook:hover { background: #1877f2; } 
.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.tiktok:hover { background: linear-gradient(45deg, #000000 0%, #333333 100%); border-color: #fe2c55; }

.settings-panel { position: absolute; bottom: 300px; right: 0; width: 220px; padding: 25px; background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: scale(0); opacity: 0; transform-origin: bottom right; transition: all 0.3s ease; }
.settings-panel.active { transform: scale(1); opacity: 1; }
.theme-switch-btn { width: 100%; padding: 10px; border-radius: 10px; border: none; background: linear-gradient(135deg, #333, #000); color: #fff; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.modal-content { margin: 10% auto; padding: 40px; width: 90%; max-width: 500px; position: relative; animation: fadeInUp 0.4s ease; }
.close-modal { float: right; font-size: 28px; cursor: pointer; color: var(--text-secondary); }
.close-modal:hover { color: var(--primary); }
.status-result { margin-top: 20px; padding: 20px; border-radius: 12px; text-align: center; }
.status-success { background: rgba(16, 185, 129, 0.1); border: 1px solid #10b981; }
.status-pending { background: rgba(245, 158, 11, 0.1); border: 1px solid #f59e0b; }
.status-error { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; }

/* ================= 11. RESPONSIVE ================= */
@media (max-width: 1024px) {
    .features-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    header { height: 70px; }
    .nav-menu { position: fixed; top: 70px; left: 0; width: 100%; height: auto; background: var(--nav-bg); padding: 30px; flex-direction: column; gap: 15px; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: 0.4s ease-in-out; border-bottom: 1px solid var(--glass-border); }
    .nav-menu.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-links { flex-direction: column; width: 100%; } .nav-links a { width: 100%; text-align: center; padding: 12px; }
    .menu-toggle { display: flex; }
    .features-grid, .service-grid { grid-template-columns: 1fr; }
    .booking-wrapper, .form-grid { grid-template-columns: 1fr; }
    .booking-info { padding: 40px; } .booking-form { padding: 30px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-contact-box { justify-content: center; } .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .hero-content h1 { font-size: 2.5rem; }
}
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #f8fafc; /* Warna background penutup (sesuaikan tema) */
    z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Dark Mode support untuk preloader */
body.dark-mode #preloader { background-color: #0f172a; }

.loader-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; }

/* Cincin Neon Berputar */
.spinner {
    width: 50px; height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.loading-text {
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
    letter-spacing: 2px; text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

#preloader.hide { opacity: 0; visibility: hidden; }