/* Reset & Global Styles */
:root {
    --primary-color: #14B8A6; /* Teal */
    --primary-dark: #0F766E;
    --dark-color: #111827; /* Dark Gray */
    --light-color: #F9FAFB; /* Light Gray */
    --text-color: #374151; /* Medium Gray */
    --white-color: #ffffff;
    --font-family: 'Inter', sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
    padding-top: 70px;
}

/* Class ini akan ditambahkan oleh JavaScript saat modal terbuka */
body.modal-open {
    overflow: hidden;
}

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

/* Utilitis */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.1rem; }

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); color: var(--light-color); }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-tag {
    display: inline-block;
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: 800;
}
.section-description {
    max-width: 600px;
    margin: 10px auto 0;
    font-size: 1.1rem;
}

/* Header */
#header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.header-logo-img { 
    height: 40px; /* Ukuran baru untuk desktop */
}

/* Section 1: Hero */
#hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/pura2.jpeg') no-repeat center center/cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.hero-content { position: relative; z-index: 2; }
.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}
.hero-logo-img {
    height: 120px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Section 2: Problem */
.problem-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.problem-image { 
    flex: 1; 
    position: relative;
}
.problem-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: block;
}
.problem-text { flex: 1; }
.problem-text p { margin-bottom: 20px; font-size: 1.1rem; }
.problem-text .highlight {
    background-color: #eefbf9;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-dark);
}
.image-source {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.75rem;
    color: #E5E7EB;
    background-color: rgba(17, 24, 39, 0.7);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}
.image-source a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
}
.image-source a:hover {
    text-decoration: underline;
}

/* Section 3: Why Crypto */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    background-color: #eefbf9;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--dark-color);
}

/* Section 4: Donate (REVISED) */
.donate-info-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    text-align: center;
}
.info-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.donate-info-box h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}
.donate-info-box p {
    max-width: 600px;
    margin: 0 auto 30px;
}
.donate-info-btn {
    font-size: 1.2rem;
    padding: 18px 35px;
}
.donation-note {
    margin-top: 15px;
    font-style: italic;
    color: #6b7280;
    font-weight: 600;
}

/* Section 5: CTA */
#cta .section-padding { padding: 60px 0; }
.cta-content { text-align: center; }
.cta-title {
    font-size: 2rem;
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto 15px;
}
.cta-text {
    max-width: 500px;
    margin: 0 auto 30px;
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: #1F2937;
    color: #9CA3AF;
    padding: 30px 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-content a,
.footer-content a:visited {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
}
.footer-content a:hover {
    text-decoration: underline;
}
.partner-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}
.partner-logos p {
    margin-right: 10px;
    font-weight: 600;
    color: #9CA3AF;
}
.partner-logo-img {
    height: 40px; /* Ukuran baru untuk desktop */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.partner-logo-img:hover {
    opacity: 1;
}
.partner-logo-img.dsm-logo-footer {
    height: 60px; /* Ukuran baru untuk desktop */
}

.partner-logo-img[alt="Baznas Logo"] {
    height: 70px; 
}


/* Animation Styling */
.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pop-up Modal Styling - FIXED FOR MOBILE */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--dark-color);
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-content h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-logo-img { height: 80px; }

    .header-logo-img { 
        height: 28px; /* Mengembalikan ukuran di HP */
    }

    .problem-content {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .partner-logos {
        justify-content: center;
    }

    .partner-logo-img {
        height: 35px; /* Mengembalikan ukuran di HP */
    }
    .partner-logo-img.dsm-logo-footer {
        height: 50px; /* Mengembalikan ukuran di HP */
    }


    /* Mobile specific modal fixes */
    .modal-content {
        padding: 30px 20px;
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .modal-close-btn {
        top: 5px;
        right: 10px;
        font-size: 1.8rem;
    }
    
    .modal-icon {
        font-size: 2.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
}