:root {
    /* Fallbacks */
    --primary-blue: #0d1b3e;
    --primary-rgb: 13, 27, 62;
    
    --secondary-blue: #1d4ed8;
    --secondary-rgb: 29, 78, 216;
    
    --accent-blue: #3b82f6;
    --accent-blue-rgb: 59, 130, 246;
    
    --accent-green: #10b981;
    --accent-rgb: 16, 185, 129;
    
    --light-gray: #f8fafc;
    --dark-gray: #1e293b;
    --text-color: #334155;
    --text-rgb: 51, 65, 85;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Navbar */
.navbar {
    background-color: rgba(var(--primary-rgb), 0.95);
    backdrop-filter: blur(10px);
    padding: 18px 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar.scrolled { padding: 12px 0; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); }
.navbar-brand { font-weight: 700; font-size: 1.8rem; color: white; }
.navbar-brand span { color: var(--accent-green); }
.nav-link { color: rgba(255, 255, 255, 0.9) !important; font-weight: 500; margin: 0 8px; transition: all 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--accent-green) !important; }
.navbar-toggler { border: none; color: white; }
.navbar-toggler:focus { box-shadow: none; }

/* Badge Professional */
.professional-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary-blue);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.professional-badge i { margin-right: 8px; font-size: 1.1rem; }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(var(--primary-rgb), 0.85), rgba(var(--primary-rgb), 0.9)), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}
.hero-section h1 { color: white; font-size: 3.2rem; margin-bottom: 24px; line-height: 1.2; }
.hero-section p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 40px; max-width: 700px; }

/* Tombol WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 600;
    padding: 16px 34px;
    border-radius: 8px;
    transition: all 0.4s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-whatsapp:hover {
    background-color: #1da851;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}
.btn-whatsapp:hover:after { left: 100%; }
.btn-whatsapp i { margin-right: 10px; font-size: 1.3rem; }

/* Section Titles */
.section-title { text-align: center; margin-bottom: 70px; position: relative; }
.section-title h2 { font-size: 2.5rem; display: inline-block; }
.section-title .title-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--secondary-blue), var(--accent-green));
    margin: 20px auto;
    border-radius: 3px;
}

/* About Section */
.about-section { padding: 120px 0; background-color: var(--light-gray); position: relative; }
.about-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1522542550221-31fd19575a2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=10');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.05;
    top: 0;
    left: 0;
    z-index: 0;
}
.about-content { position: relative; z-index: 1; }

/* Pengalaman Section */
.experience-section { padding: 100px 0; background: white; }
.experience-card {
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.experience-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.experience-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}
.experience-icon i { color: white; font-size: 2.5rem; }

/* Products Section */
.products-section { padding: 120px 0; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); }
.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-green);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}
.product-img { height: 200px; background-color: #f1f5f9; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-content { padding: 25px; }
.product-price { font-size: 1.8rem; font-weight: 700; color: var(--primary-blue); margin: 10px 0; }
.product-price span { font-size: 1rem; color: #64748b; text-decoration: line-through; margin-left: 10px; }
.product-features { list-style: none; padding: 0; margin: 20px 0; }
.product-features li { margin-bottom: 8px; display: flex; align-items: center; }
.product-features li i { color: var(--accent-green); margin-right: 10px; font-size: 0.9rem; }
.btn-buy {
    background-color: var(--secondary-blue);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}
.btn-buy:hover { color:white; background-color: #25D366; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2); }
.btn-buy i { margin-right: 8px; }

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cart-modal.active { opacity: 1; visibility: visible; }
.cart-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.cart-modal.active .cart-content { transform: translateY(0); }
.cart-header { padding: 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.cart-items { padding: 20px; }
.cart-item { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #f1f5f9; }
.cart-item-img { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; margin-right: 15px; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-price { font-weight: 600; color: var(--primary-blue); }
.cart-item-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1.2rem; padding: 5px; }
.cart-footer { padding: 20px; border-top: 1px solid #e2e8f0; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; }
.cart-empty { text-align: center; padding: 40px 20px; }
.cart-empty i { font-size: 3rem; color: #cbd5e1; margin-bottom: 20px; }

/* Feature Card */
.feature-card {
    border-radius: 12px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    background-color: white;
    position: relative;
    overflow: hidden;
}
.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--secondary-blue), var(--accent-green));
}
.feature-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.card-icon i { font-size: 2rem; color: white; }
/* Services Section */
.services-section { padding: 120px 0; background: white; }
.service-item {
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border-left: 5px solid var(--secondary-blue);
}
.service-item:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }

/* Portfolio Section */
.portfolio-section { padding: 120px 0; background-color: #f8fafc; }
.portfolio-filter { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; gap: 10px; }
.filter-btn {
    background-color: #f1f5f9;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}
.filter-btn:hover, .filter-btn.active { background: linear-gradient(to right, var(--secondary-blue), var(--accent-green)); color: white; }
.portfolio-item {
    margin-bottom: 30px;
}
.portfolio-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background-color: white;
    height: 100%;
}
.portfolio-wrap:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.portfolio-img { height: 220px; background-color: #f1f5f9; overflow: hidden; position: relative; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-wrap:hover .portfolio-img img { transform: scale(1.05); }
.portfolio-content { padding: 25px; }
.portfolio-tag {
    display: inline-block;
    background-color: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials-section { padding: 120px 0; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); position: relative; }
.testimonials-section:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=10');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.03;
    top: 0;
    left: 0;
    z-index: 0;
}
.testimonials-content { position: relative; z-index: 1; }
.testimonial-card {
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: rgba(var(--secondary-rgb), 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-text { font-style: italic; margin-bottom: 25px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; }
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-avatar i { font-size: 1.5rem; color: var(--secondary-blue); }
.author-info h5 { margin-bottom: 5px; font-size: 1.1rem; }
.author-info p { color: #64748b; font-size: 0.9rem; }

/* Why Choose Us & CTA & Footer */
.why-section { padding: 120px 0; position: relative; overflow: hidden; }
.why-section:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=30');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.03;
    top: 0;
    left: 0;
    z-index: 0;
}
.why-content { position: relative; z-index: 1; }
.benefit-box {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.benefit-box:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-green), #34d399);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}
.benefit-icon i { color: white; font-size: 1.8rem; }

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=10');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.05;
    top: 0;
    left: 0;
}
.cta-content { position: relative; z-index: 1; }
.cta-section h2 { color: white; margin-bottom: 25px; font-size: 2.8rem; }
.cta-section p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Cart Icon */
.cart-icon {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(var(--secondary-rgb), 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}
.cart-icon:hover { transform: scale(1.1); background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); }
.cart-icon i { color: white; font-size: 1.5rem; }
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Footer */
.footer { background-color: var(--primary-blue); color: white; padding: 80px 0 30px; }
.footer-brand { font-size: 2rem; font-weight: 700; margin-bottom: 20px; color: white; }
.footer-brand span { color: var(--accent-green); }
.footer p { opacity: 0.8; margin-bottom: 20px; }
.footer-links h5 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--accent-green); padding-left: 5px; }
.copyright { padding-top: 40px; margin-top: 50px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; opacity: 0.7; font-size: 0.9rem; }

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #1da851);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
    text-decoration: none !important;
    color: white !important;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.floating-whatsapp:hover { transform: scale(1.1) rotate(5deg); background: linear-gradient(135deg, #1da851, #25D366); color: white !important; }
.floating-whatsapp i { color: white; font-size: 2rem; }

/* Responsive */
@media (max-width: 992px) {
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section { padding: 140px 0 100px; background-attachment: scroll; }
    .section-title h2 { font-size: 2.2rem; }
    .portfolio-filter { gap: 8px; }
    .filter-btn { padding: 8px 18px; font-size: 0.9rem; }
    .cart-icon { bottom: 90px; right: 20px; }
}
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.4rem; }
    .hero-section p { font-size: 1.1rem; }
    .hero-section, .about-section, .experience-section, .products-section, .services-section, .portfolio-section, .testimonials-section, .why-section, .cta-section { padding: 100px 0; background-attachment: scroll; }
    .floating-whatsapp { bottom: 20px; right: 20px; width: 60px; height: 60px; }
    .cart-icon { bottom: 80px; right: 20px; width: 55px; height: 55px; }
    .cta-section h2 { font-size: 2.2rem; }
    .about-bg, .why-section:before, .testimonials-section:before, .cta-section:before { background-attachment: scroll; }
}
@media (max-width: 576px) {
    .hero-section h1 { font-size: 2rem; }
    .btn-whatsapp { padding: 14px 24px; font-size: 0.95rem; }
    .section-title h2 { font-size: 1.8rem; }
    .portfolio-filter { gap: 5px; }
    .filter-btn { padding: 6px 14px; font-size: 0.85rem; }
    .cart-icon { bottom: 70px; right: 15px; width: 50px; height: 50px; }
    .cart-icon i { font-size: 1.3rem; }
}
/* Animasi Custom */
/* Animasi Custom */
/* Changed default opacity to 1 to prevent blank page if JS fails. JS should handle initial state if needed, or we accept valid scroll animation only if JS works */
.animate-on-scroll { opacity: 1; transform: translateY(0); transition: all 0.8s ease; }
/* .animate-on-scroll.animated { opacity: 1; transform: translateY(0); } */ /* No longer needed if default is visible, but we lose animation. */
/* Revert to working animation but safer: */
/* .animate-on-scroll { opacity: 0; ... } REMOVED to fix blank page issue. */
/* If we really want animation, we can add a class 'js-enabled' to body via JS, and only hide then. */
/* For now, fixing the blank page is priority. */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
