/* ===============================================
   AA BALI SOFTWARE - Main Stylesheet
   Untuk mengganti logo, edit path logo.png
   =============================================== */

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

:root {
    --primary: #0a1f4a;
    --primary-light: #1a3a7a;
    --accent: #ff6b1a;
    --accent-light: #ff8c4a;
    --light: #f8f9fc;
    --gray: #6c757d;
    --dark: #1a1a2e;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(10, 31, 74, 0.1);
    --shadow-lg: 0 20px 60px rgba(10, 31, 74, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 50px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.logo-text span {
    color: var(--accent);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 60%;
}

.nav-menu a:hover {
    color: var(--accent);
    background: rgba(255, 107, 26, 0.08);
}

.nav-menu a.active {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--accent);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--accent);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 31, 74, 0.92) 0%, rgba(26, 58, 122, 0.88) 50%, rgba(255, 107, 26, 0.3) 100%),
                url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 120px 30px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 26, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 107, 26, 0.2) 0%, transparent 50%);
    animation: pulseBg 8s ease-in-out infinite;
}

@keyframes pulseBg {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 26, 0.2);
    border: 2px solid var(--accent);
    color: var(--accent-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(255, 107, 26, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 26, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 30px;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SERVICES ===== */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 15px;
    color: var(--white);
    font-size: 26px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(-10deg) scale(1.1);
}

.service-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== ABOUT ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    margin-top: 20px;
}

.about-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-weight: 500;
}

.about-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    border-radius: 50%;
    font-weight: 800;
    flex-shrink: 0;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.contact-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    color: var(--white);
    font-size: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: rotate(360deg) scale(1.1);
}

.contact-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-card p,
.contact-card a {
    color: var(--gray);
    font-size: 0.95rem;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--accent);
}

/* ===== IZIN USAHA / LICENSE PAGE ===== */
.license-section {
    padding: 140px 30px 80px;
    background: var(--light);
    min-height: 100vh;
}

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

.license-hero {
    text-align: center;
    margin-bottom: 50px;
}

.license-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
}

.license-hero p {
    color: var(--gray);
    font-size: 1.1rem;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.license-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.license-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.license-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 107, 26, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    border-radius: 50%;
    font-size: 28px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(255, 107, 26, 0.4);
}

.license-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.license-card .license-subtitle {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.license-info {
    list-style: none;
}

.license-info li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.license-info li:last-child {
    border-bottom: none;
}

.license-info .label {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
}

.license-info .value {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: right;
}

.license-info .value.empty {
    color: var(--accent);
    font-style: italic;
    font-weight: 600;
}

.license-status {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pkp-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 25px 30px;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.pkp-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 28px;
    flex-shrink: 0;
}

.pkp-badge-text h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.pkp-badge-text p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ===== GALLERY / CONTOH PROGRAM ===== */
.gallery-section {
    padding: 140px 30px 80px;
    min-height: 100vh;
}

.gallery-container {
    max-width: 1280px;
    margin: 0 auto;
}

.gallery-hero {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
}

.gallery-hero p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.gallery-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 31, 74, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-content {
    padding: 25px;
}

.gallery-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.gallery-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.gallery-features {
    list-style: none;
    margin-bottom: 22px;
}

.gallery-features li {
    padding: 6px 0;
    color: var(--dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-features li::before {
    content: '▸';
    color: var(--accent);
    font-weight: 800;
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-demo:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 26, 0.4);
}

.btn-demo svg {
    transition: var(--transition);
}

.btn-demo:hover svg {
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 60px 30px 25px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 70px;
    margin-bottom: 15px;
    background: var(--white);
    padding: 8px;
    border-radius: 12px;
}

.footer-brand p {
    opacity: 0.85;
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

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

.footer-col ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 5px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.4s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }

    .nav-menu a {
        padding: 14px 18px;
        font-size: 16px;
        width: 100%;
        border-radius: 10px;
    }

    .nav-menu a::before {
        display: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: linear-gradient(135deg, var(--primary), var(--accent));
        color: var(--white);
    }

    /* Backdrop overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(10, 31, 74, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 9px;
    }

    .logo img {
        height: 50px;
    }

    header.scrolled .logo img {
        height: 45px;
    }

    .nav-container {
        padding: 12px 20px;
    }

    section {
        padding: 60px 20px;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .license-section {
        padding: 110px 20px 60px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .pkp-badge {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== WELCOME POPUP (Galungan & Kuningan) ===== */
/*
   CARA MENGAKTIFKAN / NONAKTIFKAN POPUP:
   1. Buka file assets/js/script.js
   2. Cari baris: const POPUP_ENABLED = true;
   3. Ubah 'true' menjadi 'false' untuk menonaktifkan
   4. Atau buka website, klik tombol "Jangan Tampilkan Lagi" - popup akan otomatis nonaktif di browser tersebut
*/
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 74, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-card {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4c4 50%, #fffaf0 100%);
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: scale(0.7) translateY(50px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 4px solid #d4a017;
    overflow: hidden;
}

.popup-overlay.active .popup-card {
    transform: scale(1) translateY(0);
}

/* Traditional Balinese Ornament */
.popup-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    height: 200px;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 26, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.popup-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.popup-ornament svg {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 4px 10px rgba(212, 160, 23, 0.4));
}

.popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.popup-card h2 {
    font-size: 1.6rem;
    color: #8b4513;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.popup-card h2 span {
    background: linear-gradient(135deg, #d4a017, #ff6b1a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 1.8rem;
    margin-top: 5px;
}

.popup-card p {
    color: #5a3825;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.popup-decoration {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    position: relative;
    z-index: 2;
}

.popup-decoration span {
    width: 8px;
    height: 8px;
    background: #d4a017;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.popup-decoration span:nth-child(2) {
    background: #ff6b1a;
    animation-delay: 0.2s;
}

.popup-decoration span:nth-child(3) {
    background: #8b4513;
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.popup-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #d4a017, #ff6b1a);
    color: white;
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 160, 23, 0.6);
}

.popup-btn-secondary {
    background: transparent;
    color: #8b4513;
    border: 2px solid #8b4513;
    font-size: 0.85rem;
}

.popup-btn-secondary:hover {
    background: #8b4513;
    color: white;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.15);
    border: none;
    color: #8b4513;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.popup-close:hover {
    background: #8b4513;
    color: white;
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .popup-card {
        padding: 40px 25px;
    }
    .popup-card h2 {
        font-size: 1.3rem;
    }
    .popup-card h2 span {
        font-size: 1.5rem;
    }
    .popup-ornament svg {
        width: 80px;
        height: 80px;
    }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 26, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.wa-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    z-index: 998;
    transition: var(--transition);
    text-decoration: none;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5), 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-float:hover {
    transform: scale(1.1) rotate(8deg);
    background: linear-gradient(135deg, #128c7e, #075e54);
}

.wa-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.wa-float-tooltip {
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.wa-float-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--dark);
}

.wa-float:hover .wa-float-tooltip {
    opacity: 1;
    visibility: visible;
    left: 80px;
}

@media (max-width: 768px) {
    .wa-float {
        bottom: 90px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
    .wa-float svg {
        width: 28px;
        height: 28px;
    }
    .scroll-top {
        bottom: 20px;
        right: 20px;
    }
}
