<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
    <meta name="description" content="{{ $shop_settings['shop_name'] ?? 'PrintPro' }} - Solusi Printer Profesional. Layanan perbaikan printer cepat, bergaransi, dan suku cadang original. Teknisi ahli siap membantu.">
    <meta name="theme-color" content="#0D1B2A">
    <meta name="author" content="{{ $shop_settings['shop_name'] ?? 'PrintPro' }}">
    <meta name="robots" content="index, follow">
    <title>{{ $shop_settings['shop_name'] ?? 'PrintPro' }} — Solusi Printer Profesional & Terpercaya</title>

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=DM+Serif+Display:ital@0;1&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap" rel="stylesheet">
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.lineicons.com/4.0/lineicons.css">

    <style>
        /* ===== GLOBAL SETUP & VARIABLES ===== */
        :root {
            --blue-primary: #2C6EEB;
            --blue-dark: #1A56D1;
            --blue-light: #EFF4FF;
            --navy: #0A0F1F;
            --navy-deep: #050A15;
            --gray-muted: #6B7280;
            --gray-light: #F3F4F6;
            --radius-sm: 8px;
            --radius-md: 16px;
            --radius-lg: 30px;
            --radius-full: 99px;
            --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; overflow-x: hidden; }
        body { font-family: 'DM Sans', sans-serif; background: #fff; color: #1F2937; line-height: 1.5; }

        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--gray-light); }
        ::-webkit-scrollbar-thumb { background: var(--blue-primary); border-radius: 10px; }

        .text-gradient { background: linear-gradient(to right, #2C6EEB, #7DAAFF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .btn-primary { background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark)); color: white; padding: 14px 40px; border-radius: var(--radius-full); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); border: none; }
        .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(44,110,235,0.4); color: white; }

        /* GRID HALUS */
        body::before {
            content: "";
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            z-index: -2;
        }

        body::after {
            content: "";
            position: fixed;
            top: -200px;
            left: -200px;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(37,99,235,0.15), transparent);
            filter: blur(100px);
            z-index: -1;
        }

        #bg-particles {
            position: fixed;
            inset: 0;
            z-index: -3;
            pointer-events: none;
        }

        .cursor-glow {
            position: fixed;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(37,99,235,0.25), transparent 70%);
            pointer-events: none;
            transform: translate(-50%, -50%);
            z-index: -1;
            transition: 0.1s;
        }

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

        .problem-card, .ui-card { animation: floatCard 6s ease-in-out infinite; }

        @keyframes glowText {
            from { filter: drop-shadow(0 0 5px rgba(37,99,235,0.3)); }
            to   { filter: drop-shadow(0 0 20px rgba(37,99,235,0.6)); }
        }
    </style>
</head>
<body>

{{-- ===== SPLASH SCREEN ===== --}}
@include('partials.splash-screen')

{{-- ===== NAVBAR ===== --}}
<header class="site-header" id="siteHeader">
    <div class="nav-container">
        <a href="/" class="nav-brand">
            <div class="brand-pro-logo">
                <img src="{{ asset('assets/img/logo-pro.png') }}" alt="{{ $shop_settings['shop_name'] ?? 'PrintPro' }} Logo">
            </div>
            <span class="brand-name">{{ $shop_settings['shop_name'] ?? 'PrintPro' }}<span class="brand-dot">.</span></span>
        </a>
        <ul class="nav-links">
            <li><a href="#home">Beranda</a></li>
            <li><a href="#feature">Tentang</a></li>
            <li class="nav-dropdown">
                <a href="javascript:void(0)">Layanan <i class="lni lni-chevron-down"></i></a>
                <ul class="nav-dropdown-menu">
                    <li><a href="#specialist-power"><i class="lni lni-star-fill text-primary"></i> Layanan Service</a></li>
                    <li><a href="#pricing"><i class="lni lni-cart-full text-success"></i> Belanja Sparepart</a></li>
                </ul>
            </li>
            <li><a href="#contact">Kontak</a></li>
            <li>
                <a href="{{ route('orders.history') }}">
                    <i class="lni lni-package"></i> Pesanan Saya
                </a>
            </li>
        </ul>
        <div class="nav-actions">
            <a href="/cart" class="cart-btn" id="cartIcon">
                <i class="lni lni-cart"></i>
                <span class="cart-badge" id="cartBadge">0</span>
            </a>
            @guest
                <a href="/login" class="btn-nav-login">Masuk</a>
            @else
                <div class="nav-dropdown">
                    <div class="nav-profile">
                        <img src="https://ui-avatars.com/api/?background=2C6EEB&color=fff&bold=true&name={{ auth()->user()->name }}"
                             alt="avatar" class="user-avatar-nav">
                    </div>
                    <ul class="nav-dropdown-menu">
                        <li class="user-info">
                            <strong>{{ auth()->user()->name }}</strong>
                            <span class="user-sub">{{ ucfirst(auth()->user()->role) }}</span>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <form action="{{ route('logout') }}" method="POST">
                                @csrf
                                <button type="submit" class="logout-btn-nav">
                                    <i class="lni lni-exit"></i> Logout
                                </button>
                            </form>
                        </li>
                    </ul>
                </div>
            @endguest
            <button class="nav-toggler" id="navToggler"><i class="lni lni-menu"></i></button>
        </div>
    </div>
</header>

<style>
    .site-header { 
        position: fixed; 
        top: 0; 
        left: 0; 
        right: 0; 
        z-index: 1000; 
        padding: 30px 0; 
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
        background: transparent; 
    }

    .site-header.scrolled { 
        padding: 15px 0; 
        background: rgba(5, 10, 21, 0.8); 
        backdrop-filter: blur(20px); 
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
        box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
    }

    .nav-container { 
        max-width: 1440px; 
        margin: 0 auto; 
        padding: 0 50px; 
        display: flex; 
        align-items: center; 
        justify-content: space-between; 
    }

    .nav-brand { 
        display: flex; 
        align-items: center; 
        gap: 16px; 
        text-decoration: none; 
    }

    .brand-pro-logo { 
        width: 48px; 
        height: 48px; 
        border-radius: 14px; 
        overflow: hidden; 
        background: white; 
        border: 2px solid rgba(255,255,255,0.3); 
        transition: 0.4s; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
    }

    .site-header.scrolled .brand-pro-logo { 
        border-color: var(--blue-primary); 
        transform: scale(0.9);
    }

    .brand-pro-logo img { width: 100%; height: 100%; object-fit: contain; }

    .brand-name { 
        font-size: 1.6rem; 
        font-weight: 900; 
        color: white; 
        transition: 0.4s; 
        font-family: 'Plus Jakarta Sans', sans-serif; 
        letter-spacing: -1.5px; 
    }

    .brand-dot { color: var(--blue-primary); }

    .nav-links { 
        display: flex; 
        gap: 8px; 
        list-style: none; 
        margin: 0; 
        background: rgba(255, 255, 255, 0.03);
        padding: 6px;
        border-radius: 100px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
    }

    .nav-links a { 
        color: rgba(255,255,255,0.7); 
        text-decoration: none; 
        font-weight: 700; 
        padding: 10px 24px; 
        border-radius: 100px;
        transition: 0.3s; 
        font-size: 14px;
    }

    .nav-links a:hover, .nav-links a.active { 
        color: white; 
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown { position: relative; }

    .nav-dropdown-menu { 
        position: absolute; 
        top: 130%; 
        left: 50%; 
        transform: translateX(-50%) translateY(15px); 
        background: #111827; 
        min-width: 260px; 
        border-radius: 20px; 
        padding: 15px; 
        box-shadow: 0 30px 60px rgba(0,0,0,0.5); 
        opacity: 0; 
        visibility: hidden; 
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        list-style: none; 
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown:hover .nav-dropdown-menu { 
        opacity: 1; 
        visibility: visible; 
        transform: translateX(-50%) translateY(0); 
    }

    .nav-actions .nav-dropdown-menu {
        left: auto;
        right: -10px;
        transform: translateX(0) translateY(15px);
    }

    .nav-actions .nav-dropdown:hover .nav-dropdown-menu {
        transform: translateX(0) translateY(0);
    }

    /* USER DROPDOWN PROFILE STYLES */
    .user-info {
        display: flex;
        flex-direction: column;
        padding: 0 10px 15px;
        color: white;
    }
    .user-info strong {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: -0.3px;
    }
    .user-sub {
        font-size: 11px;
        color: #60a5fa;
        font-weight: 800;
        margin-top: 4px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .divider {
        height: 1px;
        background: rgba(255,255,255,0.08);
        margin: 5px 0 15px;
    }
    .logout-btn-nav {
        width: 100%;
        background: rgba(239, 68, 68, 0.1);
        color: #fb7185;
        border: 1px solid rgba(239, 68, 68, 0.2);
        padding: 12px 18px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 700;
        font-size: 14px;
        transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        cursor: pointer;
    }
    .logout-btn-nav:hover {
        background: #ef4444;
        color: white;
        transform: translateX(8px);
        box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    }

    .nav-dropdown-menu li a { 
        display: flex !important; 
        align-items: center; 
        gap: 15px; 
        padding: 14px 18px !important; 
        border-radius: 15px !important; 
        color: rgba(255,255,255,0.7) !important; 
        font-size: 14px !important; 
        background: transparent !important;
    }

    .nav-dropdown-menu li a:hover { 
        background: rgba(37,99,235,0.1) !important; 
        color: #60a5fa !important; 
        transform: translateX(8px); 
    }

    .nav-actions { display: flex; align-items: center; gap: 25px; }

    .cart-btn { 
        position: relative; 
        color: white; 
        font-size: 24px; 
        transition: 0.3s; 
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
    }

    .cart-btn:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); }

    .cart-badge { 
        position: absolute; 
        top: -5px; 
        right: -5px; 
        background: #EF4444; 
        color: white; 
        font-size: 11px; 
        width: 22px; 
        height: 22px; 
        border-radius: 8px; 
        display: none; 
        align-items: center; 
        justify-content: center; 
        font-weight: 800;
        border: 2px solid #050a15; 
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    }

    .btn-nav-login { 
        background: linear-gradient(135deg, #2C6EEB 0%, #1A56D1 100%); 
        color: white !important; 
        padding: 14px 32px; 
        border-radius: 16px; 
        text-decoration: none; 
        font-weight: 800; 
        transition: 0.4s; 
        box-shadow: 0 10px 20px rgba(44, 110, 235, 0.2);
    }

    .btn-nav-login:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(44, 110, 235, 0.4); }

    .user-avatar-nav { 
        width: 44px; 
        height: 44px; 
        border-radius: 14px; 
        border: 2px solid rgba(255,255,255,0.2); 
        cursor: pointer; 
        transition: 0.3s;
    }

    .nav-profile:hover .user-avatar-nav { 
        border-color: var(--blue-primary); 
        transform: rotate(5deg) scale(1.1); 
    }

    .nav-toggler { 
        display: none; 
        background: rgba(255,255,255,0.05); 
        border: none; 
        color: white; 
        font-size: 28px; 
        width: 48px;
        height: 48px;
        border-radius: 14px;
        align-items: center;
        justify-content: center;
    }

    @media (max-width: 1024px) { 
        .nav-container { padding: 0 25px; }
        .nav-links { display: none; } 
        .nav-toggler { display: flex; } 
    }
</style>

{{-- ===== HERO ===== --}}
<section id="home" class="hero">
    <div class="hero-bg-glow-1"></div>
    <div class="hero-bg-glow-2"></div>

    <div class="hero-container">
        <div class="hero-grid">
            <div class="hero-text-content" data-aos="fade-up" data-aos-duration="1000">
                <div class="hero-badge-wrapper">
                    <span class="hero-badge">
                        <span class="pulse-dot"></span>
                        Dipercaya oleh 2.500+ Pelanggan
                    </span>
                </div>

                <h1 class="hero-title">
                    Solusi Cetak <br>
                    <span class="text-gradient">Tanpa Hambatan.</span>
                </h1>

                <p class="hero-description">
                    Atasi masalah printer Anda dengan teknisi bersertifikat. Layanan presisi,
                    suku cadang original, dan <strong>garansi penuh hingga 90 hari.</strong>
                </p>

                <div class="hero-action-group">
                    <a href="#specialist-power" class="btn-hero-main">
                        <span>Pesan Service</span>
                        <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
                    </a>
                    <a href="https://wa.me/{{ $shop_settings['shop_wa'] ?? '6281234567890' }}" class="btn-hero-secondary" target="_blank">
                        <i class="lni lni-whatsapp"></i>
                        <span>Konsultasi Gratis</span>
                    </a>
                </div>

                <div class="hero-stats-row">
                    <div class="stat-item">
                        <span class="stat-val">10+</span>
                        <span class="stat-txt">Thn Pengalaman</span>
                    </div>
                    <div class="stat-divider"></div>
                    <div class="stat-item">
                        <span class="stat-val">98%</span>
                        <span class="stat-txt">Tingkat Sukses</span>
                    </div>
                    <div class="stat-divider"></div>
                    <div class="stat-item">
                        <span class="stat-val">24/7</span>
                        <span class="stat-txt">Dukungan</span>
                    </div>
                </div>
            </div>

            <div class="hero-visual-content" data-aos="fade-left" data-aos-duration="1200">
                <div class="perspective-wrapper">
                    <div class="main-card-v2">
                        <div class="card-glow-layer"></div>
                        <img src="https://images.unsplash.com/photo-1581092335397-9583eb92d232?q=80&w=2070&auto=format" alt="Printer Service Expert" class="hero-img-v2">

                        <div class="glass-float-card-v2 floating-badge">
                            <div class="icon-circle-v2"><i class="lni lni-shield"></i></div>
                            <div class="card-text-v2">
                                <span class="badge-label">Ahli Terverifikasi</span>
                                <span class="badge-sub">Teknisi Tersertifikasi</span>
                            </div>
                        </div>

                        <div class="glass-float-card-v2 service-tag">
                            <div class="avatar-group-v2">
                                <img src="https://ui-avatars.com/api/?name=Tech+1&background=2C6EEB&color=fff" alt="Tech 1">
                                <img src="https://ui-avatars.com/api/?name=Tech+2&background=00D1FF&color=fff" alt="Tech 2">
                            </div>
                            <span class="tag-text">25+ Teknisi Standby</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<style>
    :root {
        --primary: #2C6EEB;
        --primary-dark: #1A56D1;
        --accent: #00D1FF;
        --text-muted: rgba(255,255,255,0.6);
        --glass: rgba(255,255,255,0.05);
        --glass-border: rgba(255,255,255,0.1);
    }

    .hero { 
        min-height: 100vh; 
        background: radial-gradient(circle at top right, #0a192f 0%, #050a15 100%); 
        padding: 180px 0 100px; 
        display: flex; 
        align-items: center; 
        position: relative; 
        overflow: hidden; 
    }
    
    .hero-bg-glow-1 { 
        position: absolute; 
        top: -15%; 
        right: -10%; 
        width: 800px; 
        height: 800px; 
        background: radial-gradient(circle, rgba(44,110,235,0.1) 0%, transparent 70%); 
        z-index: 1; 
        pointer-events: none; 
        filter: blur(60px);
    }
    
    .hero-bg-glow-2 { 
        position: absolute; 
        bottom: -20%; 
        left: -10%; 
        width: 900px; 
        height: 900px; 
        background: radial-gradient(circle, rgba(0,209,255,0.05) 0%, transparent 70%); 
        z-index: 1; 
        pointer-events: none; 
        filter: blur(80px);
    }

    .hero-container { 
        max-width: 1400px; 
        margin: 0 auto; 
        padding: 0 40px; 
        z-index: 5; 
        width: 100%; 
    }

    .hero-grid { 
        display: grid; 
        grid-template-columns: 1.15fr 0.85fr; 
        gap: 100px; 
        align-items: center; 
    }

    .hero-badge-wrapper {
        margin-bottom: 40px;
        animation: fadeInUp 1s ease-out;
    }

    .hero-badge { 
        display: inline-flex; 
        align-items: center; 
        gap: 12px; 
        background: rgba(44,110,235,0.1); 
        border: 1px solid rgba(44,110,235,0.2); 
        color: #93c5fd; 
        padding: 12px 24px; 
        border-radius: 100px; 
        font-size: 14px; 
        font-weight: 700; 
        letter-spacing: 0.5px; 
        backdrop-filter: blur(10px);
    }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero-title { 
        font-size: clamp(48px, 6vw, 84px); 
        line-height: 1; 
        font-weight: 900; 
        color: #fff; 
        margin-bottom: 35px; 
        letter-spacing: -3px; 
        animation: fadeInUp 1s ease-out 0.2s backwards;
    }

    .hero-description { 
        font-size: 21px; 
        color: rgba(255,255,255,0.5); 
        max-width: 580px; 
        margin-bottom: 60px; 
        line-height: 1.7; 
        font-weight: 400;
        animation: fadeInUp 1s ease-out 0.4s backwards;
    }

    .hero-action-group { 
        display: flex; 
        flex-wrap: wrap; 
        gap: 25px; 
        margin-bottom: 80px; 
        animation: fadeInUp 1s ease-out 0.6s backwards;
    }

    .btn-hero-main { 
        background: linear-gradient(135deg, #2C6EEB 0%, #1A56D1 100%); 
        color: white; 
        padding: 22px 48px; 
        border-radius: 20px; 
        text-decoration: none; 
        font-weight: 800; 
        display: flex; 
        align-items: center; 
        gap: 15px; 
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
        box-shadow: 0 20px 40px rgba(44,110,235,0.25); 
    }

    .btn-hero-main:hover { 
        transform: translateY(-8px) scale(1.02); 
        box-shadow: 0 30px 60px rgba(44,110,235,0.4); 
    }

    .btn-hero-secondary { 
        background: rgba(255,255,255,0.03); 
        border: 1px solid rgba(255,255,255,0.1); 
        backdrop-filter: blur(15px); 
        color: white; 
        padding: 22px 48px; 
        border-radius: 20px; 
        text-decoration: none; 
        font-weight: 700; 
        display: flex; 
        align-items: center; 
        gap: 15px; 
        transition: 0.4s; 
    }

    .btn-hero-secondary:hover { 
        background: rgba(255,255,255,0.08); 
        border-color: white; 
    }

    .hero-stats-row { 
        display: flex; 
        align-items: center; 
        gap: 60px; 
        padding-top: 50px; 
        border-top: 1px solid rgba(255,255,255,0.08); 
        animation: fadeInUp 1s ease-out 0.8s backwards;
    }

    .stat-val { 
        display: block; 
        font-size: 38px; 
        font-weight: 900; 
        color: #fff; 
        line-height: 1; 
        margin-bottom: 12px; 
        letter-spacing: -1px;
    }

    .stat-txt { 
        font-size: 13px; 
        color: rgba(255,255,255,0.4); 
        text-transform: uppercase; 
        letter-spacing: 2px; 
        font-weight: 700; 
    }

    .stat-divider { 
        width: 1px; 
        height: 60px; 
        background: rgba(255,255,255,0.08); 
    }

    .perspective-wrapper { 
        perspective: 2500px; 
        padding: 50px; 
    }

    .main-card-v2 { 
        position: relative; 
        border-radius: 50px; 
        overflow: hidden; 
        transform: rotateY(-22deg) rotateX(12deg); 
        box-shadow: 80px 80px 150px rgba(0,0,0,0.8); 
        border: 1px solid rgba(255,255,255,0.1); 
        transition: all 1s cubic-bezier(0.22, 1, 0.36, 1); 
        background: #050a15; 
    }

    .main-card-v2:hover { 
        transform: rotateY(-10deg) rotateX(5deg) scale(1.05); 
        box-shadow: 40px 40px 100px rgba(44,110,235,0.3); 
    }

    .hero-img-v2 { 
        width: 100%; 
        height: 650px; 
        object-fit: cover; 
        display: block; 
        filter: brightness(0.7) contrast(1.1); 
        transition: 1s ease; 
    }

    .floating-badge { 
        top: 50px; 
        right: -50px; 
    }

    .service-tag { 
        bottom: 50px; 
        left: -50px; 
        animation-delay: -2.5s; 
    }

    @keyframes float { 
        0%, 100% { transform: translateY(0) rotate(0deg); } 
        50% { transform: translateY(-30px) rotate(2deg); } 
    }

    @media (max-width: 1200px) {
        .hero-grid { gap: 60px; }
        .hero-title { font-size: 60px; }
    }

    @media (max-width: 992px) {
        .hero { padding-top: 140px; }
        .hero-grid { grid-template-columns: 1fr; text-align: center; }
        .hero-description { margin: 0 auto 50px; }
        .hero-action-group, .hero-stats-row { justify-content: center; }
        .perspective-wrapper { padding: 30px; }
        .main-card-v2 { transform: rotateY(-10deg) rotateX(5deg); max-width: 600px; margin: 0 auto; }
        .floating-badge { right: 0; }
        .service-tag { left: 0; }
    }

    @media (max-width: 480px) {
        .hero-title { font-size: 42px; letter-spacing: -1px; }
        .hero-stats-row { gap: 30px; flex-wrap: wrap; }
        .stat-divider { display: none; }
    }
</style>

{{-- ===== SECTION: MASALAH UMUM ===== --}}
<section id="feature" class="section-modern">
    <div class="container-custom">
        <div class="header-wrapper" data-aos="fade-up">
            <span class="section-badge">
                <span class="pulse-dot"></span> Masalah Umum
            </span>
            <h2 class="section-title">Solusi Tepat untuk <br><span class="text-gradient">Kendala Printer Anda</span></h2>
            <p class="section-desc">Kami telah memulihkan lebih dari <strong>2.500+ unit</strong> dengan akurasi perbaikan mencapai <strong>98%</strong>. Kepercayaan Anda adalah prioritas kami.</p>
        </div>

        <div class="problems-grid">
            <div class="problem-card" data-aos="fade-up" data-aos-delay="100">
                <div class="card-number">01</div>
                <div class="problem-icon icon-blue"><i class="lni lni-printer"></i></div>
                <h3 class="problem-title">Kertas Nyangkut</h3>
                <p class="problem-desc">Roller aus atau sensor bermasalah sering menyebabkan <em>paper jam</em>. Kami tangani secara presisi agar tidak berulang.</p>
                <div class="card-footer"><span class="status-tag">Perbaikan Cepat</span></div>
            </div>

            <div class="problem-card" data-aos="fade-up" data-aos-delay="200">
                <div class="card-number">02</div>
                <div class="problem-icon icon-red"><i class="lni lni-drop"></i></div>
                <h3 class="problem-title">Tinta Tidak Keluar</h3>
                <p class="problem-desc">Nozzle mampet atau head kotor? Kami menggunakan teknik <em>deep cleaning</em> khusus untuk mengembalikan kualitas warna.</p>
                <div class="card-footer"><span class="status-tag">Pembersihan Ahli</span></div>
            </div>

            <div class="problem-card" data-aos="fade-up" data-aos-delay="300">
                <div class="card-number">03</div>
                <div class="problem-icon icon-green"><i class="lni lni-brush"></i></div>
                <h3 class="problem-title">Hasil Cetak Buram</h3>
                <p class="problem-desc">Tulisan putus-putus atau bergaris mengganggu profesionalitas dokumen Anda. Kami kalibrasi hingga kembali tajam.</p>
                <div class="card-footer"><span class="status-tag">Presisi Tinggi</span></div>
            </div>
        </div>
    </div>
</section>

<style>
    .section-modern { 
        padding: 140px 0; 
        background-color: #ffffff; 
        font-family: 'Plus Jakarta Sans', sans-serif; 
        overflow: hidden; 
        position: relative; 
    }

    .section-modern::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            radial-gradient(circle at 10% 20%, rgba(37,99,235,0.03) 0%, transparent 40%),
            radial-gradient(circle at 90% 80%, rgba(6,182,212,0.03) 0%, transparent 40%);
        pointer-events: none;
    }

    .container-custom { 
        max-width: 1320px; 
        margin: 0 auto; 
        padding: 0 30px; 
    }

    .header-wrapper { 
        text-align: center; 
        margin-bottom: 90px; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }

    .section-badge { 
        display: flex; 
        align-items: center; 
        gap: 12px; 
        background: #f8fafc; 
        padding: 10px 24px; 
        border-radius: 100px; 
        font-size: 12px; 
        font-weight: 800; 
        color: #2563eb; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
        margin-bottom: 30px; 
        border: 1px solid #e2e8f0;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .section-title { 
        font-size: clamp(2.8rem, 6vw, 4.5rem); 
        font-weight: 900; 
        color: #0f172a; 
        line-height: 1; 
        letter-spacing: -3px; 
    }

    .section-desc { 
        font-size: 1.2rem; 
        color: #64748b; 
        max-width: 700px; 
        margin-top: 25px; 
        line-height: 1.7; 
    }

    .problems-grid { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 40px; 
    }

    .problem-card { 
        position: relative; 
        background: #ffffff; 
        padding: 60px 45px; 
        border-radius: 40px; 
        border: 1px solid #f1f5f9; 
        transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
        box-shadow: 0 20px 60px -20px rgba(0,0,0,0.05); 
        display: flex; 
        flex-direction: column; 
        z-index: 1; 
        overflow: hidden;
    }

    .problem-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, transparent 100%);
        opacity: 0;
        transition: 0.6s;
    }

    .problem-card:hover { 
        transform: translateY(-20px); 
        box-shadow: 0 40px 80px -30px rgba(37,99,235,0.2); 
        border-color: rgba(37,99,235,0.1);
    }

    .problem-card:hover::before { opacity: 1; }

    .card-number { 
        position: absolute; 
        top: 40px; 
        right: 45px; 
        font-size: 6rem; 
        font-weight: 900; 
        color: #f1f5f9; 
        z-index: -1; 
        transition: 0.6s; 
        line-height: 1;
    }

    .problem-card:hover .card-number { 
        color: rgba(37,99,235,0.08); 
        transform: scale(1.2) rotate(-5deg);
    }

    .problem-icon { 
        width: 84px; 
        height: 84px; 
        border-radius: 24px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-size: 38px; 
        margin-bottom: 40px; 
        transition: 0.6s; 
    }

    .icon-blue { background: #eff6ff; color: #2563eb; }
    .icon-red { background: #fff1f2; color: #f43f5e; box-shadow: 0 10px 20px rgba(244,63,94,0.05); }
    .icon-green { background: #ecfdf5; color: #10b981; box-shadow: 0 10px 20px rgba(16,185,129,0.05); }

    .problem-card:hover .problem-icon { 
        transform: scale(1.2) rotate(10deg); 
        box-shadow: 0 20px 40px rgba(37,99,235,0.1);
    }

    .problem-title { 
        font-size: 1.8rem; 
        font-weight: 800; 
        color: #0f172a; 
        margin-bottom: 20px; 
        letter-spacing: -0.5px;
    }

    .problem-desc { 
        color: #64748b; 
        font-size: 1.05rem; 
        line-height: 1.8; 
        margin-bottom: 35px; 
    }

    .card-footer { margin-top: auto; }

    .status-tag { 
        font-size: 12px; 
        font-weight: 800; 
        text-transform: uppercase; 
        letter-spacing: 2px; 
        color: #94a3b8; 
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .status-tag::before {
        content: "";
        width: 6px;
        height: 6px;
        background: currentColor;
        border-radius: 50%;
    }

    @media (max-width: 1024px) {
        .problems-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 768px) {
        .section-modern { padding: 100px 0; }
        .problems-grid { grid-template-columns: 1fr; }
        .problem-card { padding: 45px 35px; }
    }
</style>

{{-- ===== SECTION: LAYANAN ===== --}}
<section id="specialist-power" class="service-impact">
    <div class="container-impact">
        <div class="impact-header" data-aos="fade-up">
            <div class="top-tag"><span class="pulse-icon"></span> Keahlian Utama Kami</div>
            <h2 class="impact-title">Solusi <span class="highlight">Lengkap</span> Printer</h2>
        </div>

        <div class="impact-wrapper" data-aos="zoom-in">
            <div class="impact-column inkjet">
                <div class="bg-image">
                    <img src="https://robots.net/wp-content/uploads/2023/08/11-best-epson-all-in-one-wireless-printers-for-2023-1693419478.jpg" alt="Inkjet">
                </div>
                <div class="content-overlay">
                    <div class="content-body">
                        <span class="type-label"><i class="lni lni-drop"></i> Spesialis Inkjet</span>
                        <h3>Perbaikan Ahli <br class="d-hide-mobile"> Epson, Canon, HP</h3>
                        <p>Penanganan presisi untuk nozzle mampet, reset waste ink, dan kalibrasi warna sempurna.</p>
                        <div class="mini-grid">
                            <span><i class="lni lni-checkmark-circle"></i> Pembersihan Head</span>
                            <span><i class="lni lni-checkmark-circle"></i> Reset Sistem</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="impact-column laser">
                <div class="bg-image">
                    <img src="https://storables.com/wp-content/uploads/2024/01/how-to-connect-epson-printer-to-iphone-1704462502.jpg" alt="Laser">
                </div>
                <div class="content-overlay">
                    <div class="content-body">
                        <span class="type-label label-red"><i class="lni lni-bolt"></i> Spesialis Laser</span>
                        <h3>Laserjet Kantor <br class="d-hide-mobile"> Performa Tinggi</h3>
                        <p>Optimasi unit pemanas (fuser), penggantian drum unit, dan perbaikan error mekanis berat.</p>
                        <div class="mini-grid">
                            <span><i class="lni lni-checkmark-circle"></i> Perbaikan Fuser</span>
                            <span><i class="lni lni-checkmark-circle"></i> Isi Ulang Toner</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="cta-container-v2">
            @auth
                <a href="{{ route('jasa.create') }}" class="btn-magnetic-premium">
            @else
                <a href="{{ route('login') }}" class="btn-magnetic-premium">
            @endauth
                <div class="btn-content">
                    <span class="btn-text">Konsultasi Service Gratis</span>
                    <span class="btn-subtext">Isi Data & Respon Cepat</span>
                </div>
                <div class="btn-icon">
                    <i class="lni lni-whatsapp"></i>
                </div>
            </a>
        </div>

        {{-- Dynamic Trust Bar & Ratings --}}
        <div class="row text-center mt-5 g-4">
            <div class="col-md-4 border-end border-light">
                <div class="fw-900 fs-1 mb-0 text-dark">2.5k+</div>
                <div class="small fw-700 text-muted text-uppercase" style="letter-spacing: 2px; font-size: 10px;">Unit Teratasi</div>
            </div>
            <div class="col-md-4 border-end border-light">
                <div class="fw-900 fs-1 mb-0 text-warning d-flex align-items-center justify-content-center">
                    {{ number_format((float)$jasa_avg_rating, 1) }} <i class="lni lni-star-fill ms-3 fs-3"></i>
                </div>
                <div class="small fw-700 text-muted text-uppercase" style="letter-spacing: 2px; font-size: 10px;">({{ $jasa_total_reviews }} Ulasan Pelanggan)</div>
            </div>
            <div class="col-md-4 text-dark">
                <div class="fw-900 fs-1 mb-0">90 Hari</div>
                <div class="small fw-700 text-muted text-uppercase" style="letter-spacing: 2px; font-size: 10px;">Garansi Servis Resmi</div>
            </div>
        </div>

        {{-- NEW: RECENT SERVICE TESTIMONIALS (COMPACT LIGHT THEME) --}}
        <div class="mt-5 pt-4">
            <div class="row g-4 justify-content-center">
                @foreach(\App\Models\Jasa::whereNotNull('rating')->where('rating', '>=', 4)->latest()->take(4)->get() as $review)
                    <div class="col-md-3">
                        <div class="bg-white p-3 rounded-4 border border-light h-100 shadow-sm transition-hover">
                            <div class="text-warning mb-2" style="font-size: 10px;">
                                @for($i=1; $i<=5; $i++)
                                    <i class="lni lni-star-fill {{ $i <= $review->rating ? '' : 'opacity-25' }}"></i>
                                @endfor
                            </div>
                            <p class="text-dark mb-2 fw-500" style="font-size: 12.5px; line-height: 1.5; color: #4b5563;">
                                "{{ $review->testimoni ?: 'Layanan Sangat Memuaskan! Teknisi ahli & pengerjaan sangat rapi.' }}"
                            </p>
                            <div class="d-flex align-items-center gap-2 border-top border-light pt-2 mt-auto">
                                <img src="https://ui-avatars.com/api/?name={{ urlencode($review->user->name) }}&background=2563eb&color=fff&bold=true" class="rounded-circle" width="28">
                                <div class="text-truncate">
                                    <div class="text-dark small fw-bold" style="font-size: 11px;">{{ $review->user->name }}</div>
                                    <div class="text-primary fw-800" style="font-size: 9px;">SERVICE #{{ $review->id }}</div>
                                </div>
                            </div>
                        </div>
                    </div>
                @endforeach
            </div>
        </div>
    </div>
</section>

<style>
    .service-impact { 
        padding: 80px 0; 
        background: #f8fafc; 
        font-family: 'Plus Jakarta Sans', sans-serif; 
        position: relative;
        overflow: hidden;
    }
    .transition-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
        transition: 0.3s;
    }
    .container-impact { 
        max-width: 1240px; 
        margin: 0 auto; 
        padding: 0 24px; 
        position: relative; 
        z-index: 10; 
    }
    .impact-header { 
        text-align: center; 
        margin-bottom: 60px; 
    }
    .top-tag { 
        font-size: 14px; 
        font-weight: 800; 
        color: #3b82f6; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        gap: 10px; 
        text-transform: uppercase; 
        letter-spacing: 3px; 
        margin-bottom: 20px; 
        opacity: 0.9;
    }

    .pulse-icon { 
        width: 10px; 
        height: 10px; 
        background: #3b82f6; 
        border-radius: 50%; 
        box-shadow: 0 0 10px #3b82f6;
        animation: pulse-glow 2s infinite; 
    }

    @keyframes pulse-glow {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
        70% { transform: scale(1.2); box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    }

    .impact-title { 
        font-size: clamp(2.5rem, 5vw, 4rem); 
        font-weight: 900; 
        color: white; 
        letter-spacing: -2px; 
        line-height: 1.1; 
    }

    .impact-title .highlight { 
        background: linear-gradient(to right, #3b82f6, #60a5fa);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
    }

    .impact-title .highlight::after {
        content: "";
        position: absolute;
        bottom: 8px;
        left: 0;
        width: 100%;
        height: 4px;
        background: rgba(59, 130, 246, 0.3);
        border-radius: 10px;
    }

    .impact-wrapper { 
        display: flex; 
        height: 600px; 
        border-radius: 40px; 
        overflow: hidden; 
        box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5); 
        background: #0f172a; 
        border: 1px solid rgba(255,255,255,0.08);
    }

    .impact-column { 
        position: relative; 
        flex: 1; 
        overflow: hidden; 
        transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); 
        cursor: pointer; 
    }

    .impact-column::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, #050a15 0%, transparent 60%);
        z-index: 2;
        transition: 0.5s;
    }

    .impact-column:hover::before {
        background: linear-gradient(to top, #0f172a 0%, rgba(37,99,235,0.2) 100%);
        opacity: 0.8;
    }

    .impact-column:hover { flex: 1.6; }

    .bg-image { 
        position: absolute; 
        inset: 0; 
        transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); 
        z-index: 1;
    }

    .bg-image img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        filter: grayscale(40%) brightness(0.6); 
        transition: 0.8s;
    }

    .impact-column:hover .bg-image img { 
        filter: grayscale(0%) brightness(0.8);
        transform: scale(1.1) rotate(1deg); 
    }

    .content-overlay { 
        position: absolute; 
        inset: 0; 
        z-index: 3;
        display: flex; 
        align-items: flex-end; 
        padding: 60px; 
        color: white; 
    }

    .type-label { 
        display: inline-flex; 
        align-items: center; 
        gap: 10px; 
        background: rgba(37,99,235,0.2); 
        backdrop-filter: blur(10px);
        border: 1px solid rgba(37,99,235,0.3);
        padding: 10px 20px; 
        border-radius: 14px; 
        font-size: 13px; 
        font-weight: 700; 
        margin-bottom: 25px; 
        color: #60a5fa;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .label-red { 
        color: #fb7185;
        background: rgba(244,63,94,0.15); 
        border-color: rgba(244,63,94,0.3);
    }

    .content-body h3 { 
        font-size: 2.5rem; 
        font-weight: 900; 
        line-height: 1; 
        margin-bottom: 20px; 
        letter-spacing: -1px;
        transform: translateY(10px);
        transition: 0.5s;
    }

    .impact-column:hover .content-body h3 {
        transform: translateY(0);
    }

    .content-body p { 
        font-size: 1.1rem; 
        color: rgba(255,255,255,0.6); 
        line-height: 1.6; 
        margin-bottom: 30px; 
        max-width: 450px; 
        opacity: 0;
        transform: translateY(20px);
        transition: 0.5s 0.1s;
    }

    .impact-column:hover .content-body p {
        opacity: 1;
        transform: translateY(0);
    }

    .mini-grid { 
        display: flex; 
        gap: 24px; 
        opacity: 0;
        transform: translateY(30px);
        transition: 0.5s 0.2s;
    }

    .impact-column:hover .mini-grid {
        opacity: 1;
        transform: translateY(0);
    }

    .mini-grid span { 
        font-size: 15px; 
        font-weight: 600; 
        display: flex; 
        align-items: center; 
        gap: 10px; 
    }

    .mini-grid i { 
        color: #10b981; 
        font-size: 20px; 
        filter: drop-shadow(0 0 10px rgba(16,185,129,0.4));
    }

    .cta-container-v2 { 
        display: flex; 
        justify-content: center; 
        margin-top: -50px; 
        position: relative; 
        z-index: 30; 
    }

    .btn-magnetic-premium { 
        position: relative; 
        display: flex; 
        align-items: center; 
        background: white; 
        padding: 8px 8px 8px 45px; 
        border-radius: 100px; 
        text-decoration: none; 
        color: #0f172a; 
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
        box-shadow: 0 30px 60px rgba(0,0,0,0.3); 
        border: none;
        overflow: hidden; 
    }

    .btn-magnetic-premium:hover { 
        transform: scale(1.05) translateY(-10px); 
        box-shadow: 0 40px 80px rgba(37,99,235,0.4);
    }

    .btn-content { 
        display: flex; 
        flex-direction: column; 
        margin-right: 40px; 
    }

    .btn-text { 
        font-size: 19px; 
        font-weight: 900; 
        letter-spacing: -0.5px; 
        color: #0f172a;
    }

    .btn-subtext { 
        font-size: 11px; 
        color: #64748b; 
        font-weight: 700; 
        text-transform: uppercase; 
        letter-spacing: 2px; 
    }

    .btn-icon { 
        width: 65px; 
        height: 65px; 
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); 
        border-radius: 50%; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-size: 30px; 
        color: white;
        transition: 0.5s; 
    }

    .btn-magnetic-premium:hover .btn-icon { 
        transform: rotate(360deg) scale(1.1); 
    }

    .trust-bar-v2 { 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        gap: 50px; 
        margin: 70px auto 0; 
        padding: 25px 60px; 
        background: rgba(255,255,255,0.03); 
        backdrop-filter: blur(10px);
        width: max-content; 
        border-radius: 100px; 
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
    }

    .trust-item { 
        color: rgba(255,255,255,0.5); 
        font-size: 15px; 
        font-weight: 500; 
    }

    .trust-item strong { 
        color: white; 
        font-size: 22px; 
        margin-right: 8px; 
        font-weight: 900;
    }

    .trust-divider { 
        width: 1px; 
        height: 30px; 
        background: rgba(255,255,255,0.1); 
    }

    @media (max-width: 992px) {
        .impact-wrapper { height: 500px; }
        .content-overlay { padding: 40px; }
        .content-body h3 { font-size: 2rem; }
    }

    @media (max-width: 768px) {
        .service-impact { padding: 80px 0; }
        .impact-wrapper { flex-direction: column; height: auto; min-height: 800px; border-radius: 30px; }
        .impact-column { flex: none; height: 400px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .impact-column:hover { flex: none; transform: scale(1.02); z-index: 10; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
        .content-overlay { padding: 30px; }
        .content-body p, .mini-grid { opacity: 1; transform: none; }
        .d-hide-mobile { display: none; }
        .btn-magnetic-premium { padding: 8px 8px 8px 30px; width: 95%; max-width: 400px; }
        .btn-content { margin-right: 20px; }
        .btn-text { font-size: 16px; }
        .trust-bar-v2 { width: 100%; border-radius: 30px; gap: 30px; padding: 25px; flex-wrap: wrap; }
        .trust-divider { display: none; }
    }
</style>


{{-- ===== SECTION: PRODUK ===== --}}
<section id="pricing" class="section products-modern-light">
    <div class="fluid-blob blob-1"></div>
    <div class="fluid-blob blob-2"></div>

    <div class="container-custom">
        <div class="header-wrapper" data-aos="fade-up">
            <div class="ui-badge">
                <span class="dot"></span>
                <span class="label">Stok Produk Original</span>
            </div>
            <h2 class="ui-title">Katalog <span class="text-blue">Produk Original</span></h2>
            <p class="ui-subtitle">Presisi teknis dalam setiap komponen. Pilih suku cadang terbaik untuk performa tanpa batas.</p>
        </div>

        <div class="ui-products-grid">
            @foreach($products as $product)
            <div class="ui-card" data-aos="fade-up" data-aos-delay="{{ $loop->index * 50 }}">
                <a href="{{ route('products.show', $product->slug) }}" class="ui-card-link"></a>
                <div class="ui-card-inner">
                    <div class="ui-img-container">
                        @if($product->image)
                            <img src="{{ asset('storage/'.$product->image) }}" alt="{{ $product->name }}" class="ui-img">
                        @else
                            <div class="ui-placeholder"><i class="lni lni-package"></i></div>
                        @endif
                        <div class="ui-category">{{ $product->category->name ?? 'Sparepart' }}</div>
                        <div class="ui-img-overlay">
                            <span class="view-text">Lihat Detail <i class="lni lni-chevron-right"></i></span>
                        </div>
                    </div>
                    <div class="ui-content">
                        <h3 class="ui-product-name">{{ $product->name }}</h3>
                        
                        <div class="ui-meta-info mb-3 d-flex align-items-center justify-content-between">
                            <div class="ui-rating-wrapper">
                                @php 
                                    $avg = round($product->avg_rating) ?: 0; 
                                    $count = $product->reviews->count();
                                @endphp
                                <div class="ui-stars">
                                    @for($i=1; $i<=5; $i++)
                                        <i class="star-icon lni lni-star{{ $i <= $avg ? '-fill' : '' }} {{ $i <= $avg ? 'active' : 'inactive' }}"></i>
                                    @endfor
                                </div>
                                <span class="review-count">{{ $count }} Ulasan</span>
                            </div>
                            
                            @if($product->stock > 0)
                                @if($product->stock <= 10)
                                    <div class="ui-stock-badge warning">
                                        <i class="lni lni-warning"></i> Stok Tipis: {{ $product->stock }}
                                    </div>
                                @else
                                    <div class="ui-stock-badge success">
                                        <i class="lni lni-checkmark-circle"></i> Stok: {{ $product->stock }}
                                    </div>
                                @endif
                            @else
                                <div class="ui-stock-badge danger">
                                    <i class="lni lni-close"></i> Stok Habis
                                </div>
                            @endif
                        </div>

                        <div class="ui-price-tag">
                            <span class="ui-curr">Rp</span>
                            <span class="ui-amt">{{ number_format($product->price,0,',','.') }}</span>
                        </div>
                        <div class="ui-actions">
                            @auth
                                @if(auth()->user()->role === 'pelanggan')
                                <form action="{{ route('cart.add', $product->id) }}" method="POST" class="ui-form">
                                    @csrf
                                    <button type="submit" class="ui-btn-cart" {{ $product->stock <= 0 ? 'disabled' : '' }}>
                                        <i class="lni lni-cart-full"></i>
                                    </button>
                                </form>
                                <a href="{{ route('products.show', $product->slug) }}" class="ui-btn-buy">
                                    <span>Beli Sekarang</span>
                                </a>
                                @else
                                <a href="{{ route('products.edit', $product->id) }}" class="ui-btn-buy" style="background: #4f46e5;">
                                    <i class="lni lni-pencil me-2"></i> <span>Edit Produk</span>
                                </a>
                                @endif
                            @else
                            <a href="/login" class="ui-btn-login">
                                <span>Login Member</span>
                                <i class="lni lni-arrow-right"></i>
                            </a>
                            @endauth
                        </div>
                    </div>
                </div>
                <div class="ui-border-glow"></div>
            </div>
            @endforeach
        </div>
    </div>
</section>

<style>
    .products-modern-light { 
        background: #f8fafc; 
        padding: 140px 0; 
        position: relative; 
        overflow: hidden; 
        font-family: 'Plus Jakarta Sans', sans-serif; 
    }

    .ui-badge { 
        display: inline-flex; 
        align-items: center; 
        gap: 10px; 
        background: white; 
        padding: 10px 24px; 
        border-radius: 100px; 
        border: 1px solid #e2e8f0; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
        margin-bottom: 30px; 
    }

    .ui-badge .dot { 
        width: 8px; 
        height: 8px; 
        background: #2563eb; 
        border-radius: 50%; 
        animation: pulse-glow 2s infinite;
    }

    .ui-title { 
        font-size: clamp(2.8rem, 6vw, 4.2rem); 
        font-weight: 900; 
        color: #0f172a; 
        letter-spacing: -3px; 
        line-height: 1;
    }

    .ui-subtitle { 
        color: #64748b; 
        font-size: 1.2rem; 
        max-width: 650px; 
        margin: 20px auto 70px; 
        line-height: 1.7;
    }

    .ui-products-grid { 
        display: grid; 
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
        gap: 40px; 
        position: relative; 
        z-index: 2; 
    }

    .ui-card { 
        background: white; 
        border-radius: 35px; 
        position: relative; 
        transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
        cursor: pointer; 
        border: 1px solid #f1f5f9;
        overflow: hidden;
    }

    .ui-card:hover { 
        transform: translateY(-20px); 
        box-shadow: 0 40px 80px -20px rgba(0,0,0,0.1); 
        border-color: rgba(37,99,235,0.1);
    }

    .ui-card-link {
        position: absolute;
        inset: 0;
        z-index: 3;
    }

    .ui-rating-wrapper { display: flex; align-items: center; gap: 8px; }
    .ui-stars { display: flex; gap: 2px; }
    .star-icon { font-size: 12px; transition: 0.3s; }
    .star-icon.active { color: #f59e0b; }
    .star-icon.inactive { color: #e2e8f0; }
    .review-count { font-size: 12px; color: #94a3b8; font-weight: 700; margin-top: 1px; }

    .ui-stock-badge {
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 5px 12px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .ui-stock-badge i { font-size: 12px; }
    .ui-stock-badge.success { background: #dcfce7; color: #15803d; }
    .ui-stock-badge.warning { background: #fef3c7; color: #92400e; }
    .ui-stock-badge.danger { background: #fee2e2; color: #b91c1c; }

    .ui-form, .ui-btn-buy, .ui-btn-login {
        position: relative;
        z-index: 15;
    }

    .ui-card-inner { 
        position: relative; 
        z-index: 2; 
        display: flex; 
        flex-direction: column; 
        height: 100%;
    }

    .ui-img-container { 
        height: 320px; 
        position: relative; 
        padding: 40px; 
        background: #fcfcfc; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        overflow: hidden; 
    }

    .ui-img { 
        width: 100%; 
        height: 100%; 
        object-fit: contain; 
        transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); 
    }

    .ui-card:hover .ui-img { 
        transform: scale(1.15) rotate(-2deg); 
    }

    .ui-category { 
        position: absolute; 
        top: 25px; 
        left: 25px; 
        background: white; 
        padding: 8px 18px; 
        border-radius: 14px; 
        font-size: 11px; 
        font-weight: 800; 
        color: #2563eb; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
        text-transform: uppercase; 
        letter-spacing: 1px;
        z-index: 5;
    }

    .ui-img-overlay { 
        position: absolute; 
        inset: 0; 
        background: rgba(15, 23, 42, 0.4); 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        opacity: 0; 
        transition: 0.5s; 
        backdrop-filter: blur(5px);
    }

    .ui-card:hover .ui-img-overlay { opacity: 1; }

    .view-text { 
        background: white; 
        color: #0f172a; 
        padding: 14px 28px; 
        border-radius: 50px; 
        font-weight: 800; 
        font-size: 14px; 
        transform: translateY(20px); 
        transition: 0.5s; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .ui-card:hover .view-text { transform: translateY(0); }

    .ui-content { padding: 40px; flex: 1; display: flex; flex-direction: column; }

    .ui-product-name { 
        font-size: 1.4rem; 
        font-weight: 800; 
        color: #0f172a; 
        margin-bottom: 15px; 
        line-height: 1.3; 
        letter-spacing: -0.5px;
    }

    .ui-price-tag { 
        display: flex; 
        align-items: baseline; 
        gap: 6px; 
        margin-bottom: 35px; 
    }

    .ui-curr { color: #2563eb; font-weight: 900; font-size: 16px; }
    .ui-amt { font-size: 2rem; font-weight: 900; color: #0f172a; letter-spacing: -1.5px; }

    .ui-actions { display: flex; gap: 15px; margin-top: auto; }

    .ui-btn-cart { 
        width: 60px; 
        height: 60px; 
        background: #f1f5f9; 
        border: none; 
        border-radius: 20px; 
        color: #0f172a; 
        font-size: 22px; 
        cursor: pointer; 
        transition: 0.4s; 
    }

    .ui-btn-cart:hover { 
        background: #2563eb; 
        color: white; 
        transform: rotate(-10deg) scale(1.1); 
    }

    .ui-btn-buy { 
        flex: 1; 
        background: #0f172a; 
        color: white; 
        border-radius: 20px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        text-decoration: none; 
        font-weight: 800; 
        font-size: 15px; 
        transition: 0.4s; 
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    }

    .ui-btn-buy:hover { 
        background: #2563eb; 
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
    }

    @media (max-width: 768px) { 
        .products-modern-light { padding: 100px 0; }
        .ui-products-grid { grid-template-columns: 1fr; gap: 30px; } 
        .ui-img-container { height: 280px; } 
    }
</style>

{{-- ===== SECTION: KONTAK ===== --}}
<section id="contact" class="contact-premium">
    <div class="contact-glow"></div>
    <div class="container-custom">
        <div class="header-wrapper" data-aos="fade-up">
            <div class="ui-badge-contact">
                <span class="pulse-dot"></span>
                <span class="label">Dukungan Prioritas</span>
            </div>
            <h2 class="ui-title">Ada Kendala Printer?<br><span class="text-blue">Konsultasikan Sekarang</span></h2>
            <p class="ui-subtitle">Tim teknisi ahli kami siap memberikan solusi cepat untuk memastikan produktivitas Anda tidak terganggu.</p>
        </div>

        <div class="contact-grid-modern">
            <div class="contact-info-column" data-aos="fade-right">
                <div class="info-card-v4">
                    <h3 class="info-title">Hubungi Kami</h3>
                    <p class="info-desc">Pilih jalur komunikasi yang paling nyaman bagi Anda.</p>
                    <div class="info-items-list">
                        <a href="https://wa.me/{{ $shop_settings['shop_wa'] ?? '' }}" target="_blank" class="info-item-link">
                            <div class="info-icon-box wa"><i class="lni lni-whatsapp"></i></div>
                            <div class="info-text">
                                <span class="info-label">WhatsApp Live Chat</span>
                                <span class="info-value">+{{ $shop_settings['shop_wa'] ?? '62 812-3456-7890' }}</span>
                                <span class="info-status">Respon cepat &lt; 15 Menit</span>
                            </div>
                        </a>
                        <div class="info-item-link no-click">
                            <div class="info-icon-box" style="background: rgba(37,99,235,0.1); color: var(--blue-primary);"><i class="lni lni-phone"></i></div>
                            <div class="info-text">
                                <span class="info-label">Telepon Kantor</span>
                                <span class="info-value">{{ $shop_settings['shop_phone'] ?? '(021) 1234567' }}</span>
                                <span class="info-status">{{ $shop_settings['shop_phone_note'] ?? 'Layanan Pelanggan Utama' }}</span>
                            </div>
                        </div>
                        <div class="info-item-link no-click">
                            <div class="info-icon-box timer"><i class="lni lni-timer"></i></div>
                            <div class="info-text">
                                <span class="info-label">Jam Operasional</span>
                                <span class="info-value">{{ $shop_settings['shop_hours'] ?? 'Senin - Sabtu: 09:00 - 17:00' }}</span>
                                <span class="info-status">{{ $shop_settings['shop_hours_note'] ?? 'Waktu Indonesia Barat' }}</span>
                            </div>
                        </div>
                        <div class="info-item-link no-click">
                            <div class="info-icon-box map"><i class="lni lni-map-marker"></i></div>
                            <div class="info-text">
                                <span class="info-label">Lokasi Workshop</span>
                                <span class="info-value">{{ $shop_settings['shop_address_city'] ?? 'Depok, Jawa Barat' }}</span>
                                <span class="info-status">{{ $shop_settings['shop_address_country'] ?? 'Indonesia' }}</span>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

            <div class="contact-form-column" data-aos="fade-left">
                <div class="form-card-v4">
                    <div class="form-header">
                        <i class="lni lni-envelope"></i>
                        <h3>Kirim Pesan Teknis</h3>
                    </div>
                    <form id="contactForm" class="modern-form">
                        <div class="input-group-v4">
                            <label>Nama Lengkap</label>
                            <div class="input-wrapper">
                                <i class="lni lni-user"></i>
                                <input type="text" placeholder="Contoh: Budi Santoso" required>
                            </div>
                        </div>
                        <div class="input-group-v4">
                            <label>Alamat Email</label>
                            <div class="input-wrapper">
                                <i class="lni lni-envelope"></i>
                                <input type="email" placeholder="budi@email.com" required>
                            </div>
                        </div>
                        <div class="input-group-v4">
                            <label>Detail Kendala</label>
                            <div class="input-wrapper">
                                <i class="lni lni-comments-alt"></i>
                                <textarea rows="4" placeholder="Jelaskan kendala printer Anda secara detail..."></textarea>
                            </div>
                        </div>
                        <button type="submit" class="btn-send-v4">
                            <span>Kirim Pesan</span>
                            <i class="lni lni-telegram-original"></i>
                        </button>
                    </form>
                </div>
            </div>
        </div>

        {{-- GOOGLE MAPS SECTION --}}
        @if(isset($shop_settings['shop_maps_embed']) && $shop_settings['shop_maps_embed'])
        <div class="mt-5 pt-3" data-aos="fade-up">
            <div class="map-container-premium shadow-pro rounded-4 overflow-hidden border">
                {!! $shop_settings['shop_maps_embed'] !!}
            </div>
        </div>
        <style>
            .map-container-premium iframe {
                width: 100% !important;
                height: 450px !important;
                border: 0;
                display: block;
            }
        </style>
        @endif
    </div>
</section>


<style>
    .contact-premium { 
        background: #ffffff; 
        padding: 160px 0; 
        position: relative; 
        overflow: hidden; 
        font-family: 'Plus Jakarta Sans', sans-serif; 
    }

    .contact-grid-modern { 
        display: grid; 
        grid-template-columns: 1fr 1.2fr; 
        gap: 100px; 
        position: relative; 
        z-index: 2; 
        margin-top: 80px; 
    }

    .info-card-v4 { padding-right: 40px; }
    .info-title { font-size: 2.5rem; font-weight: 900; color: #0f172a; margin-bottom: 25px; letter-spacing: -1.5px; }
    .info-desc { color: #64748b; line-height: 1.8; margin-bottom: 50px; font-size: 1.1rem; }

    .info-items-list { display: flex; flex-direction: column; gap: 30px; }

    .info-item-link { 
        display: flex; 
        align-items: center; 
        gap: 25px; 
        text-decoration: none; 
        padding: 30px; 
        border-radius: 30px; 
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
        border: 1px solid #f1f5f9; 
        background: #fcfcfc;
    }

    .info-item-link:not(.no-click):hover { 
        background: white; 
        border-color: #2563eb; 
        transform: translateX(15px); 
        box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    }

    .info-icon-box { 
        width: 70px; 
        height: 70px; 
        border-radius: 20px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-size: 28px; 
        transition: 0.5s;
    }

    .info-item-link:hover .info-icon-box { transform: scale(1.1) rotate(10deg); }

    .info-icon-box.wa { background: #dcfce7; color: #16a34a; box-shadow: 0 10px 20px rgba(22, 163, 74, 0.1); }
    .info-icon-box.timer { background: #fef9c3; color: #ca8a04; box-shadow: 0 10px 20px rgba(202, 138, 4, 0.1); }
    .info-icon-box.map { background: #dbeafe; color: #2563eb; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1); }

    .info-text { display: flex; flex-direction: column; }
    .info-label { font-size: 12px; font-weight: 800; color: #94a3b8; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 2px; }
    .info-value { font-size: 1.2rem; font-weight: 900; color: #0f172a; letter-spacing: -0.5px; }
    .info-status { font-size: 13px; color: #64748b; margin-top: 4px; }

    .form-card-v4 { 
        background: #0f172a; 
        padding: 60px; 
        border-radius: 50px; 
        box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3); 
        position: relative;
    }

    .form-card-v4::before {
        content: "";
        position: absolute;
        top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px);
        background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%);
        z-index: -1;
        border-radius: 50px;
    }

    .form-header { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
    .form-header i { font-size: 36px; color: #60a5fa; }
    .form-header h3 { font-size: 1.8rem; font-weight: 900; color: white; letter-spacing: -1px; }

    .input-group-v4 { margin-bottom: 30px; }
    .input-group-v4 label { display: block; font-size: 14px; font-weight: 800; color: rgba(255,255,255,0.6); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1.5px; }

    .input-wrapper { position: relative; }
    .input-wrapper i { position: absolute; left: 24px; top: 19px; color: rgba(255,255,255,0.3); font-size: 20px; }
    .input-wrapper input, .input-wrapper textarea { 
        width: 100%; 
        padding: 20px 24px 20px 60px; 
        background: rgba(255,255,255,0.03); 
        border: 1px solid rgba(255,255,255,0.1); 
        border-radius: 20px; 
        color: white;
        font-family: inherit; 
        font-size: 16px; 
        transition: 0.4s; 
    }

    .input-wrapper input:focus, .input-wrapper textarea:focus { 
        background: rgba(255,255,255,0.05); 
        border-color: #2563eb; 
        outline: none; 
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    }

    .btn-send-v4 { 
        width: 100%; 
        padding: 22px; 
        border: none; 
        border-radius: 20px; 
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); 
        color: white; 
        font-weight: 900; 
        font-size: 16px;
        display: flex; 
        align-items: center; 
        justify-content: center; 
        gap: 15px; 
        cursor: pointer; 
        transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
        box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    }

    .btn-send-v4:hover { transform: scale(1.02) translateY(-5px); box-shadow: 0 30px 60px rgba(37, 99, 235, 0.4); }

    @media (max-width: 1024px) { 
        .contact-grid-modern { grid-template-columns: 1fr; gap: 60px; } 
        .info-card-v4 { padding-right: 0; }
        .form-card-v4 { padding: 45px 35px; }
    }
</style>

<footer class="footer-premium">
    <div class="footer-glow"></div>
    <div class="container-custom">
        <div class="footer-grid-v6">
            <div class="footer-brand-side">
                <a href="/" class="footer-brand">
                    <img src="{{ asset('assets/img/logo-pro.png') }}" alt="{{ $shop_settings['shop_name'] ?? 'PrintPro' }} Logo" class="footer-logo">
                    <span class="brand-name">{{ $shop_settings['shop_name'] ?? 'PrintPro' }}<span class="brand-dot">.</span></span>
                </a>
                <p class="footer-about">{{ $shop_settings['shop_slogan'] ?? 'Solusi perbaikan printer profesional terpercaya sejak 2015. Kami mengutamakan kualitas, kecepatan, dan kepuasan pelanggan dengan teknisi ahli bersertifikat.' }}</p>
                <div class="social-links-v6">
                    @if(isset($shop_settings['shop_ig']) && $shop_settings['shop_ig'])
                        <a href="https://instagram.com/{{ ltrim($shop_settings['shop_ig'], '@') }}" target="_blank" title="Instagram Official">
                            <i class="lni lni-instagram-original"></i>
                        </a>
                    @endif
                    
                    @if(isset($shop_settings['shop_wa']) && $shop_settings['shop_wa'])
                        <a href="https://wa.me/{{ $shop_settings['shop_wa'] }}" target="_blank" title="WhatsApp Chat">
                            <i class="lni lni-whatsapp"></i>
                        </a>
                    @endif

                    @if(isset($shop_settings['shop_tiktok']) && $shop_settings['shop_tiktok'])
                        <a href="https://tiktok.com/@{{ ltrim($shop_settings['shop_tiktok'], '@') }}" target="_blank" title="TikTok Official">
                            <i class="lni lni-tiktok"></i>
                        </a>
                    @endif
                </div>
            </div>

            <div class="footer-links-column">
                <h5 class="footer-heading">Navigasi Cepat</h5>
                <ul class="footer-links-v6">
                    <li><a href="#home">Beranda Utama</a></li>
                    <li><a href="#feature">Tentang Kami</a></li>
                    <li><a href="#specialist-power">Layanan Ahli</a></li>
                    <li><a href="#pricing">Produk Original</a></li>
                </ul>
            </div>

            <div class="footer-links-column">
                <h5 class="footer-heading">Layanan Kami</h5>
                <ul class="footer-links-v6">
                    <li><a href="#">Service Inkjet</a></li>
                    <li><a href="#">Service Laserjet</a></li>
                    <li><a href="#">Sparepart Original</a></li>
                    <li><a href="#">Perawatan Berkala</a></li>
                </ul>
            </div>

            <div class="footer-links-column">
                <h5 class="footer-heading">Hubungi Kami</h5>
                <ul class="footer-contact-v6">
                    <li>
                        <i class="lni lni-map-marker"></i>
                        <span>{{ $shop_settings['shop_address'] ?? 'Depok, Jawa Barat, Indonesia' }}</span>
                    </li>
                    <li>
                        <i class="lni lni-phone"></i>
                        <span>{{ $shop_settings['shop_phone'] ?? '+62 812-3456-7890' }}</span>
                    </li>
                    <li>
                        <i class="lni lni-envelope"></i>
                        <span>{{ $shop_settings['shop_email'] ?? 'support@printpro.com' }}</span>
                    </li>
                </ul>
            </div>
        </div>

        <div class="footer-bottom-v6">
            <p>&copy; {{ date('Y') }} <strong>{{ $shop_settings['shop_name'] ?? 'PrintPro' }}</strong>. Hak Cipta Dilindungi.</p>
            <div class="footer-social-mini d-flex gap-3">
                 @if(isset($shop_settings['shop_ig']) && $shop_settings['shop_ig'])
                    <a href="https://instagram.com/{{ ltrim($shop_settings['shop_ig'], '@') }}" target="_blank" class="text-white opacity-50 hover-opacity-100"><i class="lni lni-instagram-original"></i></a>
                 @endif
                 @if(isset($shop_settings['shop_tiktok']) && $shop_settings['shop_tiktok'])
                    <a href="https://tiktok.com/@{{ ltrim($shop_settings['shop_tiktok'], '@') }}" target="_blank" class="text-white opacity-50 hover-opacity-100"><i class="lni lni-tiktok"></i></a>
                 @endif
                 @if(isset($shop_settings['shop_wa']) && $shop_settings['shop_wa'])
                    <a href="https://wa.me/{{ $shop_settings['shop_wa'] }}" target="_blank" class="text-white opacity-50 hover-opacity-100"><i class="lni lni-whatsapp"></i></a>
                 @endif
            </div>
            <div class="footer-legal">
                <a href="#">Kebijakan Privasi</a>
                <a href="#">Syarat & Ketentuan</a>
            </div>
        </div>
    </div>
</footer>

<style>
    .footer-premium { 
        background: #050a15; 
        padding: 120px 0 50px; 
        position: relative; 
        overflow: hidden; 
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .footer-glow {
        position: absolute;
        bottom: -200px;
        left: 50%;
        transform: translateX(-50%);
        width: 800px;
        height: 400px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
        filter: blur(80px);
        z-index: 0;
    }

    .footer-grid-v6 { 
        display: grid; 
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr; 
        gap: 60px; 
        position: relative; 
        z-index: 1; 
        margin-bottom: 80px; 
    }

    .footer-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; margin-bottom: 30px; }
    .footer-logo { width: 50px; height: 50px; border-radius: 12px; }
    .footer-about { color: rgba(255,255,255,0.5); line-height: 1.8; margin-bottom: 35px; max-width: 350px; font-size: 15px; }

    .social-links-v6 { display: flex; gap: 15px; }
    .social-links-v6 a { 
        width: 45px; 
        height: 45px; 
        border-radius: 12px; 
        background: rgba(255,255,255,0.05); 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        color: white; 
        text-decoration: none; 
        transition: 0.4s; 
        border: 1px solid rgba(255,255,255,0.08);
    }

    .social-links-v6 a:hover { 
        background: #2563eb; 
        transform: translateY(-5px); 
        box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    }

    .footer-heading { 
        font-size: 1.1rem; 
        font-weight: 800; 
        color: white; 
        margin-bottom: 35px; 
        letter-spacing: 1px; 
        text-transform: uppercase;
    }

    .footer-links-v6 { list-style: none; padding: 0; }
    .footer-links-v6 li { margin-bottom: 18px; }
    .footer-links-v6 a { 
        color: rgba(255,255,255,0.5); 
        text-decoration: none; 
        transition: 0.3s; 
        font-weight: 500;
        display: inline-block;
    }

    .footer-links-v6 a:hover { color: #60a5fa; transform: translateX(5px); }

    .footer-contact-v6 { list-style: none; padding: 0; }
    .footer-contact-v6 li { 
        display: flex; 
        align-items: flex-start; 
        gap: 15px; 
        color: rgba(255,255,255,0.5); 
        margin-bottom: 25px; 
        font-size: 15px;
    }

    .footer-contact-v6 i { color: #60a5fa; font-size: 18px; margin-top: 3px; }

    .footer-bottom-v6 { 
        padding-top: 50px; 
        border-top: 1px solid rgba(255,255,255,0.05); 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        position: relative; 
        z-index: 1;
    }

    .footer-bottom-v6 p { color: rgba(255,255,255,0.4); font-size: 14px; margin: 0; }
    .footer-bottom-v6 strong { color: white; }

    .footer-legal { display: flex; gap: 30px; }
    .footer-legal a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 14px; transition: 0.3s; }
    .footer-legal a:hover { color: white; }

    @media (max-width: 1024px) {
        .footer-grid-v6 { grid-template-columns: repeat(2, 1fr); gap: 50px; }
    }

    @media (max-width: 768px) {
        .footer-grid-v6 { grid-template-columns: 1fr; gap: 40px; }
        .footer-bottom-v6 { flex-direction: column; gap: 25px; text-align: center; }
    }
</style>

{{-- ===== MOBILE NAV & BACK TO TOP ===== --}}
<div class="mobile-nav" id="mobileNav">
    <button class="mobile-close" id="mobileClose">✕</button>
    <a href="#home" onclick="closeMobile()">Beranda</a>
    <a href="#feature" onclick="closeMobile()">Tentang</a>
    <a href="#specialist-power" onclick="closeMobile()">Layanan</a>
    <a href="#pricing" onclick="closeMobile()">Produk</a>
    <a href="#contact" onclick="closeMobile()">Kontak</a>
</div>
<a href="#home" class="back-to-top" id="backTop"><i class="lni lni-chevron-up"></i></a>

<style>
    .mobile-nav { position: fixed; inset: 0; background: rgba(10,15,31,0.98); backdrop-filter: blur(20px); z-index: 2000; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
    .mobile-nav.open { display: flex; }
    .mobile-nav a { color: white; font-size: 1.8rem; text-decoration: none; font-family: 'DM Serif Display', serif; }
    .mobile-close { position: absolute; top: 30px; right: 30px; background: none; border: none; color: white; font-size: 32px; }
    .back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--blue-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 99; box-shadow: var(--shadow-sm); text-decoration: none; }
    .back-to-top.show { opacity: 1; visibility: visible; }
    .cart-shake { animation: shake 0.4s ease; }
    @keyframes shake { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-12deg)} 75%{transform:rotate(12deg)} }
</style>

{{-- ===== CANVAS PARTICLES & CURSOR ===== --}}
<canvas id="bg-particles"></canvas>
<div class="cursor-glow"></div>

{{-- ===== SCRIPTS ===== --}}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/aos@2.3.4/dist/aos.js"></script>
<script>
    AOS.init({ duration: 900, once: true, offset: 100 });

    // Header scroll
    const header = document.getElementById('siteHeader');
    const backTop = document.getElementById('backTop');
    window.addEventListener('scroll', () => {
        header.classList.toggle('scrolled', window.scrollY > 50);
        backTop.classList.toggle('show', window.scrollY > 400);
    });

    // Mobile nav
    const navToggler = document.getElementById('navToggler');
    const mobileNav  = document.getElementById('mobileNav');
    const mobileClose = document.getElementById('mobileClose');
    navToggler.addEventListener('click', () => mobileNav.classList.add('open'));
    window.closeMobile = () => mobileNav.classList.remove('open');
    mobileClose.addEventListener('click', closeMobile);

    // Dropdown toggle (mobile)
    document.querySelector('.nav-dropdown').addEventListener('click', function () {
        this.classList.toggle('active');
    });

    // Cart system
    document.querySelectorAll('.ui-form').forEach(form => {
        form.addEventListener('submit', async (e) => {
            e.preventDefault();
            const btn = form.querySelector('button');
            const cartIcon = document.getElementById('cartIcon');
            const badge = document.getElementById('cartBadge');

            const rect = btn.getBoundingClientRect();
            const flyer = document.createElement('div');
            flyer.innerHTML = '🛒';
            flyer.style.cssText = `position:fixed;left:${rect.left}px;top:${rect.top}px;font-size:24px;z-index:9999;transition:all 0.6s cubic-bezier(0.2,0.9,0.4,1.1);`;
            document.body.appendChild(flyer);
            setTimeout(() => {
                const cRect = cartIcon.getBoundingClientRect();
                flyer.style.left = cRect.left + 'px';
                flyer.style.top  = cRect.top  + 'px';
                flyer.style.opacity = '0';
                flyer.style.transform = 'scale(0.3)';
            }, 10);
            setTimeout(() => flyer.remove(), 600);

            try {
                let res  = await fetch(form.action, { method: 'POST', headers: { 'X-CSRF-TOKEN': form.querySelector('input[name="_token"]').value, 'Accept': 'application/json' } });
                let data = await res.json();
                badge.innerText = data.cart_count ?? parseInt(badge.innerText) + 1;
                badge.style.display = 'flex';
                cartIcon.classList.add('cart-shake');
                setTimeout(() => cartIcon.classList.remove('cart-shake'), 400);
            } catch(e) { console.warn("Cart Error", e); }
        });
    });

    // Contact form
    document.getElementById('contactForm')?.addEventListener('submit', (e) => {
        e.preventDefault();
        alert('Terima kasih! Tim kami akan segera menghubungi Anda.');
        e.target.reset();
    });

    // Background particles
    const canvas = document.getElementById('bg-particles');
    const ctx = canvas.getContext('2d');
    canvas.width  = window.innerWidth;
    canvas.height = window.innerHeight;
    let particles = [];
    for (let i = 0; i < 60; i++) {
        particles.push({ x: Math.random() * canvas.width, y: Math.random() * canvas.height, r: Math.random() * 2, dx: (Math.random() - 0.5) * 0.5, dy: (Math.random() - 0.5) * 0.5 });
    }
    (function animateBg() {
        ctx.clearRect(0, 0, canvas.width, canvas.height);
        particles.forEach(p => {
            p.x += p.dx; p.y += p.dy;
            if (p.x < 0 || p.x > canvas.width)  p.dx *= -1;
            if (p.y < 0 || p.y > canvas.height) p.dy *= -1;
            ctx.beginPath();
            ctx.arc(p.x, p.y, p.r, 0, Math.PI * 2);
            ctx.fillStyle = "rgba(37,99,235,0.3)";
            ctx.fill();
        });
        requestAnimationFrame(animateBg);
    })();
    window.addEventListener("resize", () => { canvas.width = window.innerWidth; canvas.height = window.innerHeight; });

    // Cursor glow
    document.addEventListener('mousemove', (e) => {
        document.querySelector('.cursor-glow').style.left = e.clientX + 'px';
        document.querySelector('.cursor-glow').style.top  = e.clientY + 'px';
    });

    // Parallax
    window.addEventListener("scroll", () => {
        document.querySelectorAll("[data-speed]").forEach(el => {
            el.style.transform = `translateY(${window.scrollY * el.getAttribute("data-speed") / 20}px)`;
        });
    });

    // jQuery
</script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
    // AJAX Add to Cart
    $(document).ready(function() {
        $('.ui-form').on('submit', function(e) {
            e.preventDefault();
            const form = $(this);
            const url = form.attr('action');
            const btn = form.find('button[type="submit"]');
            
            // Loading state
            btn.prop('disabled', true).html('<i class="lni lni-spinner-arrow spinning"></i>');
            
            $.ajax({
                url: url,
                method: 'POST',
                data: form.serialize(),
                success: function(response) {
                    if (response.success) {
                        // Show success toast
                        if (typeof showToast === 'function') {
                            showToast('Berhasil!', response.message, 'success');
                        }
                        
                        // Update cart count in navbar
                        $('.cart-pill').text(response.cart_count);
                        
                        // Reset button
                        setTimeout(() => {
                            btn.prop('disabled', false).html('<i class="lni lni-cart-full"></i>');
                        }, 1000);
                    }
                },
                error: function(xhr) {
                    const msg = xhr.responseJSON ? xhr.responseJSON.message : 'Terjadi kesalahan sistem';
                    if (typeof showToast === 'function') {
                        showToast('Gagal', msg, 'error');
                    }
                    btn.prop('disabled', false).html('<i class="lni lni-cart-full"></i>');
                }
            });
        });
    });
</script>

<style>
    @keyframes spinning { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    .spinning { display: inline-block; animation: spinning 1s linear infinite; }
</style>

</body>
</html>