/* css/custom.css */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --gold: #b88b4a;
    --gold-light: rgba(184, 139, 74, 0.1);
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Plus Jakarta Sans", sans-serif;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 50;
    padding: 1rem 1.5rem;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.02);
}

.navbar-menu-desktop {
    display: none;
}

@media (min-width: 768px) {
    .navbar-menu-desktop {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

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

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

.menu-toggle {
    display: block;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--primary);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.mobile-menu {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: none;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu:not(.hidden) {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.mobile-link:hover {
    background: var(--gold-light);
    color: var(--primary);
    transform: translateX(5px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(5, 150, 105, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 2rem;
    }
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        gap: 4rem;
    }
}

.hero-content {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        margin: 0 0 2rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image-circle {
    width: 280px;
    height: 280px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.3);
    border: 8px solid white;
    animation: float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
    .hero-image-circle {
        width: 400px;
        height: 400px;
    }
}

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

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
    .section {
        padding: 7rem 2rem;
    }
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-divider {
    width: 6rem;
    height: 0.25rem;
    background: var(--gold-light);
    margin: 0.5rem auto 0;
    border-radius: 999px;
}

/* ===== VALUE CARDS ===== */
.value-card {
    background: rgba(249, 250, 251, 0.6);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    background: white;
    border-color: var(--gold-light);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--gold-light);
    padding: 1rem;
    border-radius: 1rem;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.value-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== PROGRAM CARDS ===== */
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (min-width: 640px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.program-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.program-card:hover::before {
    transform: translateX(0);
}

.program-emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transform: scale(1);
    transition: transform 0.3s;
}

.program-card:hover .program-emoji {
    transform: scale(1.1) rotate(5deg);
}

.program-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.program-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== ARTICLE CARDS ===== */
.article-card {
    padding: 1.25rem;
    border-left: 4px solid #d1fae5;
    background: #f9fafb;
    border-radius: 0.75rem;
    transition: all 0.3s;
    cursor: pointer;
}

.article-card:hover {
    border-left-color: var(--gold);
    background: white;
    transform: translateX(8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.article-date {
    font-size: 0.85rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.article-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* ===== VIDEO ===== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== DONASI FORM ===== */
.donasi-form {
    max-width: 700px;
    margin: 4rem auto 0;
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .donasi-form {
        padding: 3rem;
    }
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.nominal-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    background: white;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.nominal-btn:hover {
    border-color: var(--primary);
    background: var(--gold-light);
}

.nominal-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.nominal-input {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    outline: none;
    transition: all 0.2s;
}

.nominal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    outline: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
    transform: scale(1.02);
}

/* ===== LAPORAN DONASI ===== */
.laporan-donasi {
    max-width: 900px;
    margin: 5rem auto 0;
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.progress-container {
    margin-bottom: 2.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 0.75rem;
    background: #e5e7eb;
    border-radius: 9999px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 1rem;
    background: #f9fafb;
}

.donasi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.donasi-table th {
    background: #f3f4f6;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.donasi-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-light);
}

.donasi-table tr:hover td {
    background: white;
    color: var(--text-dark);
}

/* ===== KONTAK ===== */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 1rem;
    transition: all 0.3s;
}

.contact-item:hover {
    background: var(--gold-light);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.8rem;
    min-width: 2.5rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

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

.map-wrapper {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    height: 300px;
}

.map-iframe {
    width: 100%;
    height: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 100;
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
    border: 2px solid var(--gold);
}

.toast-notification.show {
    transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
.reveal-left,
.reveal-right,
.reveal-up,
.reveal-scale {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.9, 0.1, 1);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed,
.reveal-scale.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

.stagger-1 {
    transition-delay: 0.1s;
}
.stagger-2 {
    transition-delay: 0.2s;
}
.stagger-3 {
    transition-delay: 0.3s;
}
.stagger-4 {
    transition-delay: 0.4s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FOCUS STATE AKSESIBILITAS ===== */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .program-card {
        padding: 1.5rem;
    }

    .donasi-form,
    .laporan-donasi {
        padding: 1.5rem;
    }

    .toast-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        border-radius: 1rem;
    }
}
