/* ============================================================
   Arga Project — Stylesheet utama
   Dipindahkan dari index.html agar mudah dirawat.
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html {
    overflow-x: clip;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    color: #1e293b;
}

h1, h2, h3, h4, h5, .navbar-brand, .btn, .fw-semibold {
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-dark: #0a192f;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --dark-bg: #f8fafc;
    --gray-light: #f1f5f9;
}

/* Offset anchor agar tidak tertutup navbar sticky */
section[id] {
    scroll-margin-top: 90px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .45);
    outline-offset: 2px;
}

/* Skip link untuk aksesibilitas */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #2563eb;
    color: #fff;
    padding: .7rem 1.2rem;
    border-radius: 0 0 .5rem 0;
    font-weight: 600;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}

.navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.3s;
    padding: 1rem 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-link {
    font-weight: 500;
    color: #1e293b;
    margin: 0 0.5rem;
    transition: 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.btn-primary-custom {
    background: linear-gradient(100deg, #2563eb, #3b82f6);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37,99,235,0.2);
    color: #fff;
}
.btn-primary-custom:hover {
    transform: translateY(-3px);
    background: linear-gradient(100deg, #1d4ed8, #2563eb);
    box-shadow: 0 15px 25px rgba(37,99,235,0.3);
    color: #fff;
}
.btn-outline-light-custom {
    border: 1.5px solid #cbd5e1;
    background: transparent;
    color: #1e293b;
    border-radius: 40px;
    padding: 0.7rem 1.8rem;
    font-weight: 500;
    transition: 0.2s;
}
.btn-outline-light-custom:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}
.btn-offer {
    background: linear-gradient(100deg, #10b981, #059669);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 8px 20px rgba(16,185,129,0.2);
}
.btn-offer:hover {
    transform: translateY(-3px);
    background: linear-gradient(100deg, #059669, #047857);
    box-shadow: 0 15px 25px rgba(16,185,129,0.3);
    color: white;
}
.btn-social {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    border: none;
}
.btn-social:hover {
    transform: translateY(-3px) scale(1.05);
    color: white;
}
.btn-social.facebook { background: #1877f2; }
.btn-social.instagram { background: #e4405f; }
.btn-social.linkedin { background: #0a66c2; }
.btn-social.twitter { background: #000000; }
.btn-social.youtube { background: #ff0000; }
.btn-social.tiktok { background: #000000; }
.btn-social.github { background: #333; }
.btn-social.whatsapp { background: #25D366; }

.hero-section {
    padding: 8rem 0 5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
}
.badge-gradient {
    background: #eef2ff;
    color: #2563eb;
    border-radius: 40px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}
.feature-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    transition: all 0.3s;
    border: 1px solid #eef2ff;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.02);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: #cbdffc;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
}
.icon-circle {
    width: 60px;
    height: 60px;
    background: #eef2ff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}
.portfolio-item {
    border-radius: 1.5rem;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    cursor: pointer;
    background: white;
}
.portfolio-item img {
    transition: transform 0.5s ease;
    height: 220px;
    object-fit: cover;
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #10b981);
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.8rem;
    border: 1px solid #eef2ff;
}
footer {
    background: #0f172a;
    color: #cbd5e1;
}
.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
}
.footer-link:hover {
    color: white;
}
@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 3rem;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}

/* Additional Styles */
.process-step {
    position: relative;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #eef2ff;
    transition: 0.3s;
    height: 100%;
}
.process-step:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 25px -5px rgba(37,99,235,0.1);
}
.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}
.tech-stack-icon {
    font-size: 3rem;
    color: #2563eb;
    opacity: 0.7;
    transition: 0.3s;
    display: inline-block;
}
.tech-stack-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0a192f;
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
    gap: 1rem;
}
.faq-question:hover {
    color: #2563eb;
}
.faq-answer {
    padding-top: 0.5rem;
    color: #64748b;
    display: none;
}
.faq-answer.show {
    display: block;
}
.guarantee-badge {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    color: #166534;
    height: 100%;
}
.category-tag {
    display: inline-block;
    background: rgba(37,99,235,0.15);
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}
.social-feed-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #eef2ff;
    transition: 0.3s;
    height: 100%;
}
.social-feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
}
.social-feed-card .social-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.social-feed-card .social-icon.facebook { color: #1877f2; }
.social-feed-card .social-icon.instagram { color: #e4405f; }
.social-feed-card .social-icon.linkedin { color: #0a66c2; }
.social-feed-card .social-icon.youtube { color: #ff0000; }
.social-feed-card .social-icon.twitter { color: #000000; }
.social-feed-card .social-icon.tiktok { color: #000000; }

.lazy {
    filter: blur(10px);
    transition: filter 0.3s ease;
}
.lazy.loaded {
    filter: blur(0);
}

/* ===== DEMO CTA SECTION ===== */
.demo-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a192f 0%, #0f2b3d 50%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}
.demo-cta-section::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.demo-cta-section::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.demo-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}
.demo-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.demo-cta-badge i {
    color: #10b981;
}
.demo-cta-inner h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.demo-cta-inner h2 .accent {
    background: linear-gradient(90deg, #60a5fa, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.demo-cta-inner p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 620px;
    margin: 0 auto 2.2rem;
    line-height: 1.7;
}
.btn-demo-big {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 2.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(100deg, #10b981, #059669);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(16,185,129,0.4);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}
.btn-demo-big:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(16,185,129,0.5);
}
.btn-demo-big:active {
    transform: translateY(-1px);
}
.btn-demo-big .arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 0.85rem;
    transition: 0.3s;
}
.btn-demo-big:hover .arrow-icon {
    background: rgba(255,255,255,0.3);
    transform: translate(2px, -2px);
}
.demo-cta-meta {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    opacity: 0.7;
}
.demo-cta-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.demo-cta-meta i {
    color: #10b981;
}
.demo-preview {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.demo-preview-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    transition: 0.25s;
    backdrop-filter: blur(4px);
}
.demo-preview-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(16,185,129,0.4);
    transform: translateY(-2px);
}
.demo-preview-item i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: #10b981;
}
@media (max-width: 768px) {
    .demo-cta-section {
        padding: 3.5rem 0;
    }
    .demo-cta-inner p {
        font-size: 0.95rem;
    }
    .btn-demo-big {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    .demo-cta-meta {
        gap: 1rem;
        font-size: 0.75rem;
    }
    .demo-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animasi kartu portofolio */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   PROTEKSI KONTEN (opsional, bisa dimatikan di admin)
   Aktif hanya jika <body class="anti-copy-active">
   ============================================================ */
.anti-copy-active {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.anti-copy-active input,
.anti-copy-active textarea,
.anti-copy-active select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
.anti-copy-active img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}
.anti-thief-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.98);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 999999;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}
.anti-thief-overlay.show {
    display: flex;
}
.anti-thief-overlay .box {
    max-width: 520px;
}
.anti-thief-overlay .icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
    display: block;
}
.anti-thief-overlay h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.anti-thief-overlay p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
.anti-thief-overlay .btn-back {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.anti-thief-overlay .btn-back:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}
body.blur-active {
    filter: blur(15px);
    pointer-events: none;
}

/* ============================================================
   Menu mobile: panel slide dari kanan
   ============================================================ */
@media (max-width: 991.98px) {
    .navbar {
        z-index: 1046;
        /* backdrop-filter membuat posisi fixed anaknya terkunci ke dalam
           navbar (menu jadi tidak sampai bawah), jadi dimatikan di mobile */
        backdrop-filter: none;
    }
    body.menu-open {
        overflow: hidden; /* kunci scroll saat menu terbuka */
    }
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(2, 6, 23, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1040;
    }
    body.menu-open .menu-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .navbar-collapse {
        /* !important: menang melawan .collapse:not(.show) milik Bootstrap
           yang menyembunyikan panel dengan display:none */
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 86vw);
        padding: 4.5rem 1.5rem 2rem;
        background: #ffffff;
        overflow-y: auto;
        visibility: hidden;
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
        box-shadow: -12px 0 40px rgba(2, 6, 23, 0.18);
        z-index: 1055; /* di atas navbar agar tombol tutup terlihat */
    }
    body.menu-open .navbar-collapse {
        visibility: visible;
        transform: translateX(0);
    }
    .navbar-collapse .menu-close {
        position: absolute;
        top: 1.1rem;
        right: 1.1rem;
        z-index: 1;
    }
    .navbar-nav {
        gap: 0.25rem;
    }
    .nav-link {
        margin: 0;
        padding: 0.75rem 0.5rem;
        border-radius: 0.75rem;
    }
    .nav-link:hover {
        background: var(--gray-light);
    }
    .navbar-collapse .btn-primary-custom {
        margin-top: 1rem;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }
}

/* Keamanan animasi: konten tetap tampil walau JS gagal / gerak dikurangi */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
html.no-aos [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
