/* =========================================================
   GLOBAL RESET & VARIABLES
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #8c52ff;
    --primary-dark: #5b2ecc;
    --accent: #ffb400;
    --bg: #050514;
    --bg-alt: #0d0d1f;
    --text: #ffffff;
    --muted: #a5a5c5;
    --card: #15152b;
    --danger: #ff4b6a;
    --success: #1ecb7b;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
    --radius-lg: 18px;
    --transition-fast: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.hidden { display: none; }

/* =========================================================
   PAGE LOADER
========================================================= */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: loader-bounce 0.9s infinite alternate;
}

.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes loader-bounce {
    to {
        transform: translateY(-10px);
        opacity: 0.4;
    }
}

/* =========================================================
   LOGO
========================================================= */
.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.brand-logo {
    height: 50px;
    margin-right: 10px;
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.logo-text .text-main {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.25s ease;
}

.logo-text .text-dot {
    color: #fff;
    font-size: 0.8em;
    margin-left: 2px;
}

.logo:hover .text-main { color: var(--primary); }

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 20, 0.94);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 7vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.navbar nav a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
}

.nav-cta { margin-left: 1.5rem; }

/* =========================================================
   BUTTONS
========================================================= */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(140, 82, 255, 0.7);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-full { width: 100%; }

/* =========================================================
   SECTIONS
========================================================= */
.section { padding: 5rem 7vw; }
.section-alt { background-color: var(--bg-alt); }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-header h2 { font-size: 2rem; margin-bottom: 0.6rem; }
.section-header p { color: var(--muted); font-size: 0.95rem; }

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 3vw + 1.4rem, 3.4rem);
    margin: 0.8rem 0;
}

.hero-content .highlight { color: var(--primary); display: block; }
.hero-content p { color: var(--muted); max-width: 540px; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: rgba(140, 82, 255, 0.1);
    border: 1px solid rgba(140, 82, 255, 0.6);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1.2rem;
    min-width: 140px;
    box-shadow: var(--shadow-soft);
}

.stat-card h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.stat-card p { color: var(--muted); font-size: 0.8rem; }

/* =========================================================
   HERO VISUAL
========================================================= */
.hero-visual { position: relative; min-height: 260px; }

.screen-mockup {
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.2rem 1.4rem;
    max-width: 320px;
    margin-left: auto;
}

.screen-header { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.screen-header span { width: 10px; height: 10px; border-radius: 50%; }
.screen-header span:nth-child(1) { background: #ff5f57; }
.screen-header span:nth-child(2) { background: #febc2e; }
.screen-header span:nth-child(3) { background: #28c93f; }

.screen-line {
    height: 7px;
    border-radius: 999px;
    background: #22223d;
    margin-bottom: 0.6rem;
}

.line-lg { width: 90%; }
.line-md { width: 70%; }
.line-sm { width: 55%; }

.screen-tag {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    margin-top: 0.8rem;
    margin-right: 0.4rem;
}

.screen-tag.alt { background: var(--accent); color: #000; }

/* Floating labels */
.floating-card {
    position: absolute;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: #1e1e3a;
    font-size: 0.8rem;
    box-shadow: var(--shadow-soft);
    animation: float 4s ease-in-out infinite;
}

.card-1 { top: 8%; right: 15%; }
.card-2 { bottom: 20%; left: 5%; animation-delay: 0.8s; }
.card-3 { bottom: 5%; right: 10%; animation-delay: 1.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================================
   GRID SYSTEM
========================================================= */
.grid { display: grid; gap: 1.5rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* =========================================================
   CARDS
========================================================= */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(140, 82, 255, 0.6);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* SERVICE CARD */
.service-card h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: 0.9rem; }

.service-card ul { list-style: none; margin-top: 0.8rem; }
.service-card li {
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.service-card li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* PORTFOLIO CARD */
.portfolio-card .tag {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--muted);
    margin-bottom: 0.6rem;
}

/* =========================================================
   PROCESS TIMELINE
========================================================= */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}

.process-step { padding-top: 1.4rem; }
.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.process-step p { color: var(--muted); font-size: 0.9rem; }

/* =========================================================
   CONTACT SECTION
========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.8rem;
}

.contact-form .form-group { margin-bottom: 1rem; }

.contact-form label { font-size: 0.85rem; margin-bottom: 0.3rem; display: block; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
    background: #101026;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.contact-form textarea {
    border-radius: 16px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(140, 82, 255, 0.4);
    transform: translateY(-1px);
}

/* Checklist */
.checklist { list-style: none; margin-top: 0.5rem; }

.checklist li {
    padding-left: 1.4rem;
    position: relative;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.checklist li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* =========================================================
   ALERTS
========================================================= */
.alert {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(30, 203, 123, 0.08);
    border: 1px solid rgba(30, 203, 123, 0.8);
    color: #b4ffd8;
}

.alert-error {
    background: rgba(255, 75, 106, 0.08);
    border: 1px solid rgba(255, 75, 106, 0.9);
    color: #ffc3ce;
}

/* =========================================================
   ANIMATIONS / SCROLL EFFECTS
========================================================= */
.animated {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    text-align: center;
    padding: 1.8rem 7vw 2.3rem;
    font-size: 0.8rem;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: var(--bg);
}

.footer a { color: #fff !important; text-decoration: none !important; }
.footer a:hover { color: var(--primary) !important; }

/* =========================================================
   PRICING SECTION
========================================================= */
.pricing-card h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.pricing-card p { color: var(--muted); font-size: 0.9rem; }

.pricing-card ul { list-style: none; margin-top: 0.8rem; }
.pricing-card li {
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.pricing-card li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}



.pricing-card .price-btn {
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    width: calc(100% - 40px); /* biar ada jarak kiri kanan */
    text-align: center;
}
.pricing-card {
    background: var(--card);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.3s ease;
    position: relative;
    padding-bottom: 80px; /* ruang untuk button agar tidak ketimpa teks */
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0,0,0,.55);
}

.pricing-card.highlighted {
    border: 1px solid var(--accent);
    box-shadow: 0 0 25px rgba(255,180,0,0.25);
    background: #0d0d1f;
}


.feature-list li {
    margin-bottom: 6px;
    opacity: 0.85;
}

/* =========================================================
   CUSTOM SLIDER
========================================================= */
.desain-slider { margin-top: 80px; text-align: center; }

.custom-slider {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    display: flex;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.slide {
    flex: 0 0 25%;
    display: none;
    opacity: 0.8;
    transform: scale(.9);
    transition: .4s ease;
    padding: 0 20px;
    text-align: center;
}

.slide.big {
    transform: scale(1.15);
    opacity: 1;
}

.slide img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(123,75,255,.25);
}

.preview-btn {
    margin-top: 12px;
    background: #7b4bff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
}

.nav {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #9b5cff;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    color: #fff;
    transition: .3s ease;
    box-shadow: 0 0 10px #9b5cff40;
}

.prev { left: -70px; }
.next { right: -70px; }

.dots { margin-top: 25px; }
.dots span {
    width: 10px;
    height: 10px;
    background: #44465a;
    display: inline-block;
    border-radius: 50%;
    margin: 0 5px;
}

.dots span.active { background: #7b4bff; }
/* Price Section */
.price-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #15152b;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.price-tag {
    font-size: 1.2rem;
    color: #15152b;
    background: #a5a5c5;
    padding: 5px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.4rem;
    font-weight:600 ;
    color: #fff;
    background: linear-gradient(45deg, #8c52ff, #742fee);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    margin-top: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); 
  padding:10px ;/* Bayangan halus di sekitar harga */
}

.price-net {
    font-size: 1rem;
    text-decoration: line-through;
    color: #DC0000;
    padding: 4px;
    border-radius: 8px;
  font-weight: 600;
}

.price-row{
  display: flex;
  justify-content: space-between; /* Untuk menempatkan harga di kiri dan kanan */
  align-items: center;
}

.countdown {
              background-color: #ffbd39; /* Latar belakang promo */
  color: #000; /* Warna teks hitam untuk promo */
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid #333; /* Border hitam untuk promo */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15); /* Efek bayangan pada promo */
   
}

.countdown-time {
    font-size: 1.2rem; /* Ukuran font yang lebih besar untuk angka mundur */
    font-weight: 200; /* Lebih tebal agar angka lebih menonjol */
    color: #fff; 
    background: #0d0d1f;/* Warna angka putih */
    border-radius: 5px; /* Sudut lebih bulat */
    display: inline-block;
    margin-left: 5px; /* Jarak antar kotak waktu */
    padding: 5px;
    text-align: left;
  
}
 .countdown-time {
            animation: pulse 1.5s infinite;
        }
        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 10px rgba(255, 106, 0, 0.8);
            }
            50% {
                transform: scale(1.1);
                box-shadow: 0 0 20px rgba(255, 106, 0, 0.8);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 10px rgba(255, 106, 0, 0.8);
            }
        }

t-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Shadow effect for better visibility */
}

/* Timer Countdown */
@keyframes countdown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.countdown {
    animation: countdown 1s ease-in-out infinite;
}
/* === POPUP PROMO === */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none; /* default disembunyikan */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.popup-box {
    background: #151426;
    width: 90%;
    max-width: 620px;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.07);
    animation: fadeZoom 0.45s ease;
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.popup-close {
    position: absolute;
    right: 14px;
    top: 14px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    opacity: 0.7;
    transition: 0.2s;
}
.popup-close:hover {
    opacity: 1;
}

.popup-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    text-align: left;
}

.popup-price {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: left;
}

.popup-btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(90deg, #a56bff, #6a4cff);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
    margin-top: 14px;
}
.popup-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* ANIMASI POPUP */
@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* =========================================================
   RESPONSIVE (MOBILE FIRST)
========================================================= */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }

    .navbar { padding-inline: 5vw; }

    .contact-grid { grid-template-columns: 1fr; }

    .pricing-grid { grid-template-columns: repeat(2, 1fr); }

    .slide { flex: 0 0 33%; }

    .prev { left: -40px; }
    .next { right: -40px; }
}

@media (max-width: 720px) {
    .pricing-grid { grid-template-columns: 1fr; }

    .navbar nav {
        position: fixed;
        inset: 60px 0 auto 0;
        padding: 1rem 1.5rem 1.5rem;
        background: rgba(5, 5, 20, 0.98);
        flex-direction: column;
        gap: 1rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s ease;
    }

    .navbar nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .section { padding-inline: 5vw; }

    .slide { flex: 0 0 50%; }
}
