/* ============================================
           CSS VARIABLES & RESET
        ============================================ */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-red: #ff4757;
    --accent-red-glow: rgba(255, 71, 87, 0.3);
    --accent-blue: #3742fa;
    --accent-blue-glow: rgba(55, 66, 250, 0.3);
    --accent-green: #2ed573;
    --accent-green-glow: rgba(46, 213, 115, 0.3);
    --glass-bg: rgba(22, 27, 34, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --gradient-red: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    --gradient-green: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(var(--text-muted) 1px, transparent 1px),
        linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Gradient Orbs */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-red {
    width: 600px;
    height: 600px;
    background: var(--accent-red);
    top: -200px;
    right: -200px;
}

.orb-blue {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

.orb-purple {
    width: 400px;
    height: 400px;
    background: #a855f7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--glass-shadow);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 100px;
    height: 50px;
    /* background: var(--gradient-red); */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    /* box-shadow: 0 4px 20px var(--accent-red-glow); */
}
.logo-title {
    font-size: 24px;
    font-weight: 700;
}
.logo-tagline {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
}
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--accent-red);
    background: rgba(255, 71, 87, 0.1);
}

.nav-cta {
    background: var(--gradient-red) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
}

/* ============================================
           HOME SECTION (SaaS STYLE)
        ============================================ */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 10;
}

.home-container {
    max-width: 1100px;
    margin: 0 auto;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.2);
    color: var(--accent-green);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease-out;
}

.home-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.home-title .highlight {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.home-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-primary {
    padding: 16px 36px;
    background: var(--gradient-red);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-red-glow);
}

.btn-secondary {
    padding: 16px 36px;
    background: transparent;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--accent-red);
    background: rgba(255, 71, 87, 0.05);
}

/* Trusted By Section */
.trusted-section {
    padding: 60px 24px;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(13, 17, 23, 0.5);
}

.trusted-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.trusted-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.trusted-logo:hover {
    opacity: 1;
}

/* Stats Banner */
.stats-banner {
    padding: 80px 24px;
    position: relative;
    z-index: 10;
}

.stats-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item-home {
    text-align: center;
    padding: 32px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.stat-item-home:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 71, 87, 0.3);
}

.stat-number-home {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-red);
    font-family: "Space Mono", monospace;
    margin-bottom: 8px;
}

.stat-label-home {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Features SaaS Section */
.features-saas-section {
    padding: 100px 24px;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid-saas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card-saas {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-saas::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        var(--accent-red-glow) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card-saas:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 71, 87, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.feature-card-saas:hover::after {
    opacity: 1;
}

.feature-card-saas > * {
    position: relative;
    z-index: 1;
}

.feature-icon-saas {
    width: 56px;
    height: 56px;
    background: var(--gradient-red);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px var(--accent-red-glow);
}

.feature-title-saas {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc-saas {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 100px 24px;
    position: relative;
    z-index: 10;
    background: rgba(13, 17, 23, 0.5);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 40px 28px;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px var(--accent-red-glow);
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 100px 24px;
    position: relative;
    z-index: 10;
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 70px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            circle at 30% 50%,
            var(--accent-red-glow) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 50%,
            var(--accent-blue-glow) 0%,
            transparent 50%
        );
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
           TRACKING SECTION
        ============================================ */
.tracking-section {
    padding: 120px 24px 80px;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.tracking-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.tracking-header {
    text-align: center;
    margin-bottom: 48px;
}

.search-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px;
    box-shadow:
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: floatCard 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.search-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 71, 87, 0.5),
        transparent
    );
}
.err-box {
    margin-top: 10px;
    border-radius: var(--r1);
    background: rgba(232, 41, 74, 0.07);
    border: 1px solid rgba(232, 41, 74, 0.2);
    color: #ff8096;
    font-size: 12px;
    padding: 10px 14px;
    display: none;
    align-items: center;
    gap: 8px;
}
.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
    transition: color 0.3s;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 52px;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: "Space Mono", monospace;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px var(--accent-red-glow);
}

.input-wrapper:hover i {
    color: var(--accent-red);
}

.btn-track {
    padding: 18px 36px;
    background: var(--gradient-red);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-track:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-red-glow);
}

.btn-track.loading {
    pointer-events: none;
    opacity: 0.9;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.demo-resi {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.demo-resi span {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-family: "Space Mono", monospace;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.demo-resi span:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
    background: rgba(255, 71, 87, 0.05);
}

/* Tracking Result with Enhanced Effects */
.tracking-result {
    margin-top: 32px;
    display: none;
}

.tracking-result.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.result-header {
    padding: 24px 28px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.resi-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resi-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resi-number {
    font-family: "Space Mono", monospace;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.delivered {
    background: rgba(46, 213, 115, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.status-badge.transit {
    background: rgba(255, 165, 2, 0.15);
    color: #ffa502;
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-dot.blinking {
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px currentColor;
    }
}

/* Progress Bar */
.progress-bar-container {
    padding: 20px 28px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--glass-border);
}

.progress-bar-wrapper {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-green);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
}

.progress-stages {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Enhanced Timeline with Glow Green Effect */
.timeline {
    padding: 28px;
    position: relative;
    min-height: 400px;
}

.timeline-line {
    position: absolute;
    left: 38px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: var(--bg-tertiary);
}

.timeline-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 100%;
    background: var(--gradient-green);
    transition: height 1.5s ease-out;
    box-shadow: 0 0 10px var(--accent-green-glow);
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: timelineItemIn 0.5s ease-out forwards;
}

/* ============================================
   EXTRA: Ensure smooth timeline rendering
============================================ */

/* Force reflow untuk timeline container */
#timelineContainer {
    position: relative;
    z-index: 1;
}

/* Pastikan dot selalu visible di atas line */
.timeline-dot {
    z-index: 3 !important; /* Di atas timeline line */
}

/* Glow effect yang lebih kuat untuk completed items */
.timeline-item.completed .timeline-dot {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow:
            0 0 10px var(--accent-green-glow),
            0 0 20px var(--accent-green-glow);
    }
    50% {
        box-shadow:
            0 0 15px var(--accent-green-glow),
            0 0 30px var(--accent-green-glow),
            0 0 45px rgba(46, 213, 115, 0.2);
    }
}

/* Blink effect yang lebih visible untuk latest activity */
.timeline-item.latest .timeline-dot {
    z-index: 4 !important; /* Paling atas */
}

.timeline-item:last-child {
    margin-bottom: 8px;
}

@keyframes timelineItemIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--bg-tertiary);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* GLOW GREEN EFFECT for completed items */
.timeline-item.completed .timeline-dot {
    border-color: var(--accent-green);
    background: var(--accent-green);
    box-shadow:
        0 0 15px var(--accent-green-glow),
        0 0 30px var(--accent-green-glow);
}

/* BLINK EFFECT for latest activity */
.timeline-item.latest .timeline-dot {
    border-color: var(--accent-red);
    background: var(--accent-red);
    animation: dotBlink 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 4px var(--accent-red-glow);
}

@keyframes dotBlink {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px var(--accent-red-glow);
    }

    50% {
        transform: scale(1.2);
        box-shadow:
            0 0 0 8px var(--accent-red-glow),
            0 0 20px var(--accent-red);
    }
}

.timeline-item.completed .timeline-status,
.timeline-item.completed .timeline-date {
    color: var(--accent-green);
}

.timeline-content {
    flex: 1;
    padding-top: 2px;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
    font-family: "Space Mono", monospace;
    margin-bottom: 6px;
}

.timeline-status {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.timeline-location {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-location i {
    font-size: 12px;
}

/* Photo Evidence Section */
.photo-evidence {
    padding: 24px 28px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.photo-evidence-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.photo-item {
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.photo-item:hover {
    border-color: var(--accent-green);
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
           SERVICES SECTION
        ============================================ */
.services-section {
    padding: 100px 24px;
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        var(--accent-red-glow) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 71, 87, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-red);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px var(--accent-red-glow);
}

.service-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-tagline {
    font-size: 14px;
    color: var(--accent-red);
    margin-bottom: 20px;
    font-weight: 500;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.service-features li i {
    color: var(--accent-green);
    font-size: 16px;
}

.service-price {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-info {
    font-size: 13px;
    color: var(--text-muted);
}

.price-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: "Space Mono", monospace;
}

.price-unit {
    font-size: 13px;
    color: var(--text-secondary);
}

.service-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-red);
}

/* ============================================
           LOKASI SECTION (with Maps)
        ============================================ */
.lokasi-section {
    padding: 100px 24px;
    position: relative;
    z-index: 10;
}

.lokasi-search {
    max-width: 800px;
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lokasi-input-group {
    display: flex;
    flex-direction: column;
}

.lokasi-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lokasi-input-group select {
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lokasi-input-group select:focus {
    outline: none;
    border-color: var(--accent-red);
}

.lokasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
    max-width: 1300px;
    margin: 0 auto;
}

.lokasi-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.lokasi-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 71, 87, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.lokasi-map {
    width: 100%;
    height: 220px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.lokasi-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
}

.lokasi-card:hover .lokasi-map iframe {
    filter: grayscale(0%) contrast(1);
}

.lokasi-info {
    padding: 24px;
}

.lokasi-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lokasi-type {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
}

.lokasi-address {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.lokasi-address i {
    color: var(--accent-red);
    margin-top: 3px;
    flex-shrink: 0;
}

.lokasi-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.lokasi-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.lokasi-detail-item i {
    color: var(--accent-green);
    font-size: 14px;
}

/* Footer */
.footer {
    padding: 60px 24px 30px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--text-muted);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    animation: toastIn 0.4s ease-out forwards;
}

.toast.hide {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
    to {
        transform: translateX(0);
    }
}

@keyframes toastOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(46, 213, 115, 0.15);
    color: var(--accent-green);
}

.toast.error .toast-icon {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-red);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.3s;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos].aos-animate[data-aos="fade-right"] {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos].aos-animate[data-aos="fade-left"] {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos].aos-animate[data-aos="zoom-in"] {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    .lokasi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.show {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .search-input-group {
        flex-direction: column;
    }

    .btn-track {
        width: 100%;
        justify-content: center;
    }

    .stats-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    .lokasi-search {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .lokasi-details {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid-home {
        grid-template-columns: 1fr;
    }

    .stat-item-home {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .stat-icon {
        margin: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .toast {
        min-width: auto;
        width: calc(100vw - 48px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
/* =================================== */
/* ======================= CHAT SUPPORT =======================  */
/* Main Floating Button */
.chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.fab-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.4),
        0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fabPulse 2s infinite;
}

.fab-button:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow:
        0 6px 25px rgba(37, 211, 102, 0.5),
        0 12px 35px rgba(0, 0, 0, 0.2);
}

.fab-button svg {
    width: 32px;
    height: 32px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.fab-button:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

/* Badge notifikasi */
.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
    animation: badgePulse 1.5s infinite;
}

@keyframes fabPulse {
    0%,
    100% {
        box-shadow:
            0 4px 20px rgba(37, 211, 102, 0.4),
            0 8px 30px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow:
            0 4px 25px rgba(37, 211, 102, 0.6),
            0 8px 35px rgba(0, 0, 0, 0.25);
    }
}

@keyframes badgePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== CHAT WIDGET POPUP ===== */
.chat-widget {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Widget Header */
.widget-header {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    padding: 24px;
    color: white;
    text-align: center;
    position: relative;
}

.widget-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.company-logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.company-logo svg {
    width: 40px;
    height: 40px;
    fill: #128c7e;
}

.widget-header h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.widget-header p {
    font-size: 0.9rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    color: white;
    margin-bottom: 0;
}

.close-widget {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 2;
}

.close-widget:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Widget Body - Contact Channels */
.widget-body {
    padding: 25px;
    background: #f8f9fa;
}

.contact-title {
    font-size: 1rem;
    color: #555;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.channel-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.channel-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.channel-icon.phone {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.channel-icon.email {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.channel-info {
    flex: 1;
}

.channel-info h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 3px;
    font-weight: 600;
}

.channel-info p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0;
}

.channel-arrow {
    color: #ccc;
    font-size: 20px;
    transition: transform 0.3s;
}

.channel-btn:hover .channel-arrow {
    transform: translateX(3px);
    color: #25d366;
}

/* Widget Footer */
.widget-footer {
    padding: 18px 25px;
    background: white;
    border-top: 1px solid #eee;
    text-align: center;
}

.widget-footer p {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0;
}

/* Quick Message Box */
.quick-message {
    margin-top: 20px;
    padding: 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.quick-message label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    font-weight: 600;
}

.message-input-wrapper {
    display: flex;
    gap: 10px;
}

.message-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.message-input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.send-message-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.send-message-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.send-message-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 18px;
    margin-top: 40px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-section h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 18px;
    border-radius: 12px;
    color: white;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.feature-item strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.feature-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 480px) {
    .chat-widget {
        width: calc(100% - 30px);
        right: 15px;
        left: 15px;
        bottom: 105px;
    }

    .chat-fab {
        bottom: 20px;
        right: 20px;
    }

    .fab-button {
        width: 58px;
        height: 58px;
    }

    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 25px;
    }
}
/* ======================= CHAT SUPPORT =======================  */
