:root {
    --primary: #e11d48;
    --navy-dark: #0D1B2A;
    --navy-light: #1B263B;
    --navy-accent: #415A77;
    --bg-light: #F2F4F7;
    --white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
}

/* --- Preloader Loading Page --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--navy-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.preloader-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    animation: pulseLogo 2s infinite ease-in-out;
    filter: drop-shadow(0 4px 12px rgba(230, 57, 70, 0.3));
}

.preloader-spinner-wrap {
    position: relative;
    width: 50px;
    height: 50px;
}

.preloader-spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

/* --- Header / Navbar --- */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-nav.scrolled {
    background: rgba(13, 27, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px; /* Expanded content width */
    margin: 0 auto;
    padding: 0 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 16px;
    z-index: 1001;
}

.nav-logo img.pemda-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

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

.nav-logo-text img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
    border: 1px solid transparent;
}

.nav-btn:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(65, 90, 119, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    padding-top: 180px;
    overflow: hidden;
}

.hero-container {
    max-width: 1440px; /* Expanded content width */
    margin: auto;
    padding: 0 40px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
    z-index: 10;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wave-emoji {
    font-size: 1.4rem;
    display: inline-block;
    transform-origin: 70% 70%;
    animation: waveHand 2.5s infinite;
    margin-right: 4px;
}

@keyframes waveHand {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 3.55rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-subtitle span {
    color: var(--primary);
    position: relative;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 44px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
    border: 2px solid transparent;
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--white);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-custom:hover {
    background-color: var(--white);
    color: var(--navy-dark);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* Hero Right Side (Dashboard Mockup) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.mockup-container {
    background: rgba(27, 38, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mockup-dot:nth-child(1) { background: #FF5F56; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #27C93F; }

.mockup-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.mockup-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mockup-card-title {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mockup-card-val {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--white);
}

.mockup-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
}

.mockup-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #FF7A00);
    width: 78%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

.mockup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(39, 201, 63, 0.15);
    color: #27C93F;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 8px;
}

/* --- Wave Container & Animations --- */
.hero-waves-wrapper {
    position: relative;
    width: 100%;
    background: transparent;
    margin-top: 40px;
}

.waves {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: -1px;
    min-height: 80px;
    max-height: 150px;
    display: block;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% {
        transform: translate3d(85px,0,0);
    }
}

/* --- Section Common --- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 70px;
    padding: 0 24px;
}

.section-tag {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Section: Jenis Pajak --- */
.section-pajak {
    background-color: var(--bg-light);
}

.grid-pajak {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1440px; /* Expanded content width */
    margin: 0 auto;
    padding: 0 40px;
}

.card-pajak {
    background: var(--white);
    border-radius: 18px;
    padding: 36px 30px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.015);
    position: relative;
    overflow: hidden;
}

.card-pajak::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: transparent;
    transition: var(--transition);
}

.card-pajak:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(13, 27, 42, 0.08);
    border-color: rgba(230, 57, 70, 0.1);
}

.card-pajak:hover::before {
    background-color: var(--primary);
}

.card-pajak-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 26px;
    transition: var(--transition);
}

.card-pajak:hover .card-pajak-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.card-pajak-title {
    font-size: 1.3rem;
    color: var(--navy-dark);
    margin-bottom: 14px;
    font-weight: 700;
}

.card-pajak-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Section: Kanal Pembayaran --- */
.section-payments {
    background-color: var(--white);
}

.payments-wrapper {
    max-width: 1440px; /* Expanded content width */
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
}

.payment-group {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 36px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.payment-group:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.payment-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.payment-group-icon {
    font-size: 1.35rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: rgba(230, 57, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.payment-group-title {
    font-size: 1.25rem;
    color: var(--navy-dark);
    font-weight: 700;
}

.payment-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-badge {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.payment-badge i {
    color: var(--primary);
}

.payment-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

/* --- FAQ Section --- */
.section-faq {
    background-color: var(--bg-light);
}

.faq-wrapper {
    max-width: 960px; /* Expanded content width */
    margin: 0 auto;
    padding: 0 40px;
}

.faq-item {
    background: var(--white);
    border-radius: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.faq-question {
    width: 100%;
    padding: 26px 30px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-dark);
    font-family: var(--font-headings);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--white);
    border-top: 1px solid transparent;
}

.faq-answer p {
    padding: 0 30px 26px 30px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    border-top-color: rgba(0, 0, 0, 0.05);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* --- Footer Section --- */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 90px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer-container {
    max-width: 1440px; /* Expanded content width */
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.footer-logo img.pemda-logo {
    height: 52px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.footer-logo img.mytax-logo {
    height: 48px;
}

.footer-logo-title {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.footer-logo-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 540px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.98rem;
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: 4px;
}

.footer-contact-item span {
    line-height: 1.5;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-map-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-map-title {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 700;
}

.map-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 280px;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
}

.footer-bottom {
    max-width: 1440px; /* Expanded content width */
    margin: 70px auto 0;
    padding: 30px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* --- Animation Keyframes --- */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* --- Responsive Styles --- */
@media (max-width: 991px) {
    .nav-container {
        padding: 0 24px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        padding: 0 24px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 460px;
        margin: 0 auto;
    }

    .grid-pajak {
        padding: 0 24px;
        grid-template-columns: repeat(2, 1fr);
    }

    .payments-wrapper {
        padding: 0 24px;
    }

    .faq-wrapper {
        padding: 0 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 30px 24px 0;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2.35rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-primary-custom, .btn-outline-custom {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .mockup-container {
        padding: 20px;
    }

    .mockup-card-val {
        font-size: 1.4rem;
    }

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