/* --- Variabel Warna & Pengaturan Dasar --- */
:root {
    --primary-color: #0D0D2B; /* Biru sangat gelap */
    --secondary-color: #3671E9; /* Biru cerah */
    --accent-color: #2BDEFE; /* Cyan */
    --text-color: #FFFFFF;
    --text-muted-color: #E0E0E0;
    --bg-light: #1A1A3D;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    display: block;
    padding-top: 80px;
}


/* --- Header & Navigasi --- */
#header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.4s ease;
}

#header.scrolled {
    background-color: rgba(13, 13, 43, 0.9);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: var(--text-muted-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropbtn i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-light);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    top: 90%; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
}
.dropdown-content a {
    color: var(--text-muted-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    top: 100%;
}
.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}


.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Efek Parallax & Hero Section --- */
.parallax-section {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#hero {
    height: calc(100vh - 80px); 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%D%D&auto=format&fit=crop&w=1470&q=80');
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#parallax-divider {
    height: 40vh;
    background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%D%D&auto=format&fit=crop&w=1470&q=80');
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-muted-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* --- Tombol (CTA) --- */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(43, 222, 254, 0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
}

.cta-button.large {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

.cta-button i {
    margin-right: 0.5rem;
}

/* --- Section Umum --- */
.content-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted-color);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* --- Layanan --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Paket Harga --- */
.packages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
}

.package-card {
    background-color: var(--bg-light);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card.recommended {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(43, 222, 254, 0.3);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -40px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 0.9rem;
}

.package-header h3 {
    font-size: 1.8rem;
}

.package-header .price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--accent-color);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted-color);
}

.features {
    list-style: none;
    margin: 2rem 0;
}

.features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.features i {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.feature-disabled i {
    color: #6c757d;
}

.package-card .cta-button {
    width: 100%;
    text-align: center;
}

/* --- Kontak --- */
#contact {
    background-color: var(--bg-light);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-light);
    padding: 4rem 2rem 2rem 2rem;
    color: var(--text-muted-color);
}

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

.footer-col {
    text-align: left;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a2a4a;
    font-size: 0.9rem;
}

/* --- Animasi Scroll --- */
.content-section > *, .services-container > *, .packages-container > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible > *, .services-container.visible > *, .packages-container.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
    CSS UNTUK HALAMAN PRODUK & DIGITAL ADS
==============================================
*/

/* --- Hero Section Produk --- */
#hero-product .product-header {
    margin-bottom: 4rem;
}
#hero-product .product-header h1 {
    font-size: 3.5rem;
}
#hero-product .product-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0 auto;
    color: var(--text-muted-color);
}
.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.product-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.product-gallery.visible img:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.product-gallery.visible img:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.product-gallery.visible img:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }


/* --- Hero Section untuk Halaman Ads --- */
#hero-ads {
    height: calc(100vh - 80px);
    background-image: url('digitaladsballadigital.png');
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-ads::before {
    background: linear-gradient(to left, rgba(13, 13, 43, 0.95), rgba(13, 13, 43, 0.6));
}

#hero-ads .hero-content {
    text-align: center;
}

.hero-subtitle {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* --- Features Section --- */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* --- Client Section --- */
.client-section {
    padding: 0 2rem;
    max-width: 1200px;
    margin: -3rem auto 0 auto;
    position: relative;
    z-index: 5;
}

.client-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.client-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-muted-color);
    font-weight: 400;
}

.client-logos-viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.client-logos-slider {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.client-logos-viewport:hover .client-logos-slider {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.client-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    margin: 0 2rem;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}


/* --- Testimonials Section (Image Gallery) --- */
#testimonials {
    background-color: var(--primary-color);
    padding: 6rem 0;
}
.testimonial-gallery-viewport {
    width: 100%;
    overflow: hidden;
}
.testimonial-gallery-slider {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}
.testimonial-gallery-viewport:hover .testimonial-gallery-slider {
    animation-play-state: paused;
}
.testimonial-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin: 0 1rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}
.testimonial-image:hover {
    transform: scale(1.05);
}


/* --- How It Works Section (Tabs) --- */
.tabs-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.tab-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-link {
    background: none;
    border: none;
    color: var(--text-muted-color);
    padding: 1rem;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.tab-link i {
    margin-right: 1rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
.tab-link:hover, .tab-link.active {
    background-color: var(--bg-light);
}

.tab-link.active {
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    font-weight: 600;
}
.tab-link.active i {
    color: var(--accent-color);
}

.tab-content-wrapper {
    flex: 2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* --- Why Us Section --- */
.why-us-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.why-us-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
}

.why-us-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.why-us-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0 auto;
}

.faq-item {
    background-color: var(--bg-light);
    margin-bottom: 1rem;
    border-radius: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.1rem;
    text-align: left;
}

.faq-question span {
    flex: 1;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    text-align: left;
    color: var(--text-muted-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.whatsapp-float a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #25D366;
    color: #FFF;
    text-decoration: none;
    padding: 15px 12px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.whatsapp-float a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.3);
}

.whatsapp-float i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.whatsapp-float span {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    max-width: 90px;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--bg-light);
    padding: 4rem 2rem;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.2rem;
}
.cta-section p {
    color: var(--text-muted-color);
    margin-bottom: 2rem;
}


/* --- Media Queries (Responsif) --- */
@media screen and (max-width: 1024px) {
    .package-card.recommended {
        transform: scale(1);
    }
}

@media screen and (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }

    .content-section {
        padding: 4rem 1.5rem;
    }
    
    nav {
        flex-direction: row-reverse;
    }

    .logo-link {
        position: relative;
        z-index: 102;
    }
    
    .burger {
        display: block;
        z-index: 102;
    }

    .nav-links {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform 0.5s ease-in-out;
        padding: 0;
    }
    
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links.nav-active li {
        opacity: 1;
        animation: navLinkFade 0.5s ease forwards;
    }
    .nav-links.nav-active li:nth-child(1) { animation-delay: 0.2s; }
    .nav-links.nav-active li:nth-child(2) { animation-delay: 0.3s; }
    .nav-links.nav-active li:nth-child(3) { animation-delay: 0.4s; }
    .nav-links.nav-active li:nth-child(4) { animation-delay: 0.5s; }
    .nav-links.nav-active li:nth-child(5) { animation-delay: 0.6s; }


    .nav-links a {
        padding: 1.5rem;
        width: 100%;
        justify-content: center;
        font-size: 1.2rem;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .dropbtn {
        padding: 1rem 0;
    }
    .dropbtn i {
        display: none;
    }
    .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static;
        background: none;
        box-shadow: none;
        min-width: unset;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        padding-left: 0;
        width: 100%;
    }
    .dropdown-content a {
        padding: 1rem 16px;
        font-size: 1rem;
        color: var(--text-muted-color);
        background-color: rgba(0,0,0,0.2);
    }


    .hero-content h1, #hero-product .product-header h1 {
        font-size: 2.5rem;
    }
    .hero-content p, #hero-product .product-header p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2.2rem;
        word-break: break-word;
    }

    .package-header .price {
        font-size: 2.5rem;
    }

    .footer-container {
        text-align: center;
    }

    .footer-col {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-logo-img {
        margin-left: auto;
        margin-right: auto;
    }

    /* --- Penyesuaian Halaman Ads & Produk di Mobile --- */
    #hero-ads {
        height: 80vh;
    }
    .tabs-container {
        flex-direction: column;
    }
    .tab-content img {
        display: none;
    }

    .client-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .client-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .whatsapp-float a {
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .whatsapp-float i {
        font-size: 2.2rem;
        margin-bottom: 0;
    }
    .whatsapp-float span {
        display: none;
    }
}
