:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --success-color: #27ae60;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
    background-color: #f5f7fa;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #1a252f);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.8)), 
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3') center/cover;
    color: white;
    margin-bottom: 50px;
}

.text-highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.hero-image img {
    animation: float 3s ease-in-out infinite;
    border: 5px solid rgba(255,255,255,0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Progress Section */
.progress-section {
    margin-bottom: 50px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), #2980b9);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

.progress-text {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Real-time Ticker */
.real-time-ticker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.ticker-container {
    overflow: hidden;
    height: 60px;
    position: relative;
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    position: absolute;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 40px;
    font-size: 1.1rem;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Donation Form */
.donation-section {
    position: relative;
}

.section-title {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Stat Cards */
.stat-card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.stat-icon {
    background: rgba(52, 152, 219, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.stat-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), #1a252f);
}

.bank-info {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stat-amount {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

        :root {
            --primary-color: #2563eb;
            --accent-color: #f59e0b;
            --text-dark: #1e293b; /* Warna teks gelap agar jelas */
            --text-muted: #64748b;
        }

        body { 
            font-family: 'Plus Jakarta Sans', sans-serif; 
            background-color: #ffffff;
            color: var(--text-dark);
            overflow-x: hidden;
        }

        .hero-section {
            padding: 100px 0;
            background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 1) 50%);
        }

        /* Typography */
        .display-4 {
            font-weight: 800;
            color: var(--text-dark);
            line-height: 1.2;
        }

        .text-highlight {
            color: var(--primary-color);
            position: relative;
            display: inline-block;
        }

        .text-highlight::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 8px;
            background: rgba(37, 99, 235, 0.1);
            z-index: -1;
        }

        .lead {
            color: var(--text-muted);
            font-size: 1.15rem;
            max-width: 90%;
        }

        /* Image Styling */
        .hero-image-wrapper {
            position: relative;
            z-index: 1;
        }

        .main-img {
            border-radius: 2rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease;
        }

        .main-img:hover {
            transform: translateY(-10px);
        }

        /* Floating Element */
        .floating-badge {
            position: absolute;
            bottom: -20px;
            left: -20px;
            background: white;
            padding: 1.5rem;
            border-radius: 1.5rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 15px;
            z-index: 2;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .icon-box {
            width: 50px;
            height: 50px;
            background: #dcfce7;
            color: #16a34a;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        /* Buttons */
        .btn-donate {
            background-color: var(--primary-color);
            border: none;
            padding: 15px 35px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
        }

        .btn-donate:hover {
            background-color: #1d4ed8;
            transform: scale(1.05);
            color: white;
        }

        /* Decor */
        .shape-dots {
            position: absolute;
            top: -30px;
            right: -30px;
            z-index: -1;
            opacity: 0.2;
        }


        /* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.8)), 
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover;
    color: white;
    margin-bottom: 50px;
    min-height: 100vh; /* Tambahkan ini agar hero section setidaknya setinggi viewport */
    display: flex;
    align-items: center; /* Pusatkan vertikal */
}

.hero-section .container {
    z-index: 2; /* Pastikan konten di atas background */
    position: relative;
}

.text-highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.hero-image img {
    animation: float 3s ease-in-out infinite;
    border: 5px solid rgba(255,255,255,0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Pastikan body tidak memiliki margin atau padding yang mengganggu */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px; /* Sesuai dengan tinggi navbar */
    margin: 0;
    background-color: #f5f7fa;
}

/* Hero Section - PERBAIKAN */
.hero-section {
    position: relative;
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(26, 35, 47, 0.95) 0%, 
        rgba(44, 62, 80, 0.90) 50%,
        rgba(52, 152, 219, 0.15) 100%),
        url('assets/images/pattern.png');
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(231, 76, 60, 0.1) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.floating-badge {
    animation: float 4s ease-in-out infinite;
    z-index: 3;
}

.floating-badge:nth-child(2) {
    animation-delay: 1s;
}

.floating-donation {
    z-index: 4;
}

.donation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
    max-width: 200px;
}

.donation-card:nth-child(2) {
    animation-delay: 0.5s;
}

.avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 2;
}

.scroll-indicator a {
    display: inline-block;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    transform: translateY(5px);
}

/* Counter Animation */
.counter {
    font-size: 2.5rem;
    color: var(--secondary-color);
    display: inline-block;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .counter {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* Alternatif jika tidak ada gambar pattern */
.hero-section {
    background: linear-gradient(135deg, 
        #1a252f 0%, 
        #2c3e50 50%,
        rgba(52, 152, 219, 0.1) 100%),
        radial-gradient(circle at 20% 80%, 
        rgba(231, 76, 60, 0.15) 0%, 
        transparent 40%),
        radial-gradient(circle at 80% 20%, 
        rgba(52, 152, 219, 0.15) 0%, 
        transparent 40%);
}

/* Style Tombol WhatsApp Fixed */
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* Penyesuaian tampilan modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

/* Whatsapp Button Fixed */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-button a {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-button a:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Bank Info Popup */
.bank-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    max-width: 280px;
    display: none;
}

.bank-popup.show {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bank-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.bank-info-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    text-align: center;
    color: white;
}

.bank-info-body {
    padding: 20px;
    background: white;
    color: #333;
}

.bank-info-body p {
    margin-bottom: 8px;
    font-size: 14px;
}

.bank-account {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #25D366;
    margin: 15px 0;
}

.copy-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.copy-btn.copied {
    background-color: #28a745 !important;
}

/* Perbaikan tampilan hero section */
.hero-section {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Perbaikan responsive */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .bank-popup {
        right: 20px;
        bottom: 80px;
        max-width: 250px;
    }
}

/* Animasi untuk statistik */
.counter {
    font-size: 2.5rem;
    color: #667eea;
}

/* Perbaikan card shadow */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.badge-transfer {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge-tunai {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: black;
}

.badge-ewallet {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    color: white;
}

/* Program Card Styling - PERBAIKAN */
.program-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.program-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
}

.program-progress {
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.program-amount {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Untuk memastikan card sama tinggi */
.d-flex {
    display: flex;
}

.flex-grow-1 {
    flex-grow: 1;
}

/* Warna khusus untuk program card */
.bg-program-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-program-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-program-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-program-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Responsive untuk program card */
@media (max-width: 768px) {
    .program-card {
        margin-bottom: 20px;
    }
    
    .program-amount {
        font-size: 1.3rem;
    }
    
    .program-header {
        padding: 15px;
    }
    
    .program-header h5 {
        font-size: 1.1rem;
    }
}

/* Center align untuk semua konten di program card */
.text-center {
    text-align: center !important;
}

.justify-content-center {
    justify-content: center !important;
}