/* ZISWAF Al-Falah - Main Stylesheet */

/* Islamic Color Variables */
:root {
  --primary-green: #0f5132; /* Islamic deep green */
  --secondary-green: #14532d; /* Darker green for accents */
  --light-green: #dcfce7;
  --accent-gold: #d4af37; /* Subtle gold for Islamic touch */
  --bg-color: #f8faf9;
  --card-bg: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --islamic-pattern: #f0f9f0; /* Very light green for patterns */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Add spacing between fixed navbar and main content */
main {
    padding-top: 0px;
}

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

/* ============================================
   PARALLAX EFFECT STYLES
   ============================================ */

/* Parallax Container */
.parallax-container {
    position: relative;
    overflow: hidden;
}

/* Parallax Background - Fixed */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    will-change: transform;
}

/* Parallax Hero Section */
.parallax-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-hero .parallax-bg {
    height: 120%;
    top: -10%;
}

.parallax-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}
/* Tambahkan ini di CSS */
.hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Memberikan lapisan hitam transparan 40% */
}

.hero-content {
    position: relative;
    z-index: 2; /* Agar teks berada di atas overlay */
    text-align: center;
    color: white;
}
/* Warna aktif untuk menu yang dipilih */
.offcanvas .nav-link.active {
    background-color: #f8f9fa;
    border-left: 4px solid #198754; /* Garis hijau di samping kiri */
}

/* Menghilangkan panah dropdown default agar lebih bersih atau ganti icon */
.offcanvas .dropdown-toggle::after {
    float: right;
    margin-top: 10px;
}

/* Mengatur ukuran icon agar seragam */
.offcanvas .nav-link i {
    width: 25px;
    text-align: center;
}

/* Gaya khusus untuk tombol di dalam sidebar */
.offcanvas .btn {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
/* Parallax Overlay */
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(15, 81, 50, 0.7) 0%,
        rgba(15, 81, 50, 0.5) 50%,
        rgba(15, 81, 50, 0.7) 100%
    );
    z-index: 1;
}

/* Parallax Section - For between sections */
.parallax-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.parallax-section .parallax-bg {
    height: 110%;
    top: -5%;
}

.parallax-section .section-content {
    position: relative;
    z-index: 2;
}

/* Parallax Card */
.parallax-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parallax-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Parallax Text Effect */
.parallax-text {
    transition: transform 0.1s ease-out;
}

/* Parallax decorative elements */
.parallax-decor {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1;
}

.parallax-decor-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.parallax-decor-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Smooth parallax transition */
.parallax-smooth {
    transition: transform 0.1s linear;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    color: white;
    text-decoration: none;
}

.btn-success {
    background-color: var(--primary-green);
    color: white;
}

.btn-success:hover {
    background-color: var(--secondary-green);
    color: white;
    text-decoration: none;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
}

.btn-outline-primary.active {
    background-color: var(--primary-green);
    color: white;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-green);
    background-color: transparent;
    color: var(--primary-green);
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
}

.filter-btn.active {
    background-color: var(--primary-green);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    padding: 5rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0f5132;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #FFFF00;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: #0f5132;
}

.hero-slide.active {
    opacity: 1;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(15, 81, 50, 0.5) 0%,
        rgba(15, 81, 50, 0.3) 50%,
        rgba(15, 81, 50, 0.5) 100%
    );
    z-index: 2;
}



.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.category-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--islamic-pattern);
}

.category-btn {
    display: block;
    text-align: center;
    background: var(--primary-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.category-btn:hover {
    background: var(--secondary-green);
    color: white;
    text-decoration: none;
}

/* Quick Actions */
.quick-actions {
    padding: 4rem 0;
    background: #f8f9fa;
    text-align: center;
}

.quick-actions h2 {
    margin-bottom: 3rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.action-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
}

.action-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Programs Section */
.featured-programs-section {
    padding: 5rem 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.program-buttons .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.program-image {
    height: 200px;
    overflow: hidden;
}

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

.program-content {
    padding: 1.5rem;
}

.program-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.program-stats {
    margin: 1.5rem 0;
}

.stat-numbers {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.collected-amount {
    color: var(--primary-green);
    font-weight: 600;
}

.target-amount {
    color: var(--text-secondary);
}

.progress-container {
    position: relative;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    transition: width 0.3s ease;
}

.progress-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-green);
}

.donate-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h5 {
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.author-info span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.benefit-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Payment Methods Section */
.payment-methods-section {
    padding: 5rem 0;
    background: white;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.payment-method-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.payment-method-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Education Section */
.education-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.education-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-3px);
}

.education-image {
    height: 200px;
    overflow: hidden;
}

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

.education-content {
    padding: 1.5rem;
}

.education-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.read-more {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Detail Sections */
.detail-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-text h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.detail-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.detail-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.detail-text strong {
    color: var(--primary-green);
}

.detail-image {
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detail-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.detail-btn:hover {
    background: var(--secondary-green);
    color: white;
    text-decoration: none;
}

/* Main Banner */
.main-banner {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://via.placeholder.com/1920x400/0f5132/ffffff?text=ZISWAF+Banner') center/cover;
    opacity: 0.3;
    z-index: 1;
}

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

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFF00;
    text-shadow: 2px 2px 4px #000000;
}

.banner-content p {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Custom Title Styles for Yellow Text with Black Shadow */
.hero-title {
    color: #FFFF00;
    text-shadow: 2px 2px 4px #000000;
}

/* Navbar Styles */
#main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--primary-green);
    transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* Hidden navbar initially - completely transparent (0% opacity) */
#main-navbar.navbar-transparent {
    background-color: rgba(22, 163, 74, 0) !important;
    opacity: 0;
    visibility: hidden;
}

/* Navbar becomes solid (0% transparency/100% opacity) when scrolled */
#main-navbar.scrolled {
    background-color: var(--primary-green) !important;
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .categories-grid,
    .programs-grid,
    .testimonials-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .benefits-grid,
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .container {
        padding: 0 15px;
    }
}
