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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px;
}

/* ========== HEADER & NAVIGATION - ULTRA MODERN PREMIUM DESIGN ========== */
header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1f2937;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(5, 150, 105, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(5, 150, 105, 0.12);
    padding: 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.15);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    position: relative;
    transition: padding 0.3s ease;
}

header.scrolled nav {
    padding: 0.9rem 3rem;
}

/* Logo Styling - Enhanced */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

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

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px rgba(5, 150, 105, 0.15));
}

.logo:hover .logo-img {
    transform: scale(1.08) rotate(-5deg);
    filter: drop-shadow(0 4px 12px rgba(5, 150, 105, 0.25));
}

.logo span {
    font-family: 'Outfit', 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(5, 150, 105, 0.1);
}

/* Navigation Links - Ultra Modern */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 200%;
    height: 200%;
}

.nav-links a:hover {
    color: #059669;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.nav-links a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    transform: translateY(-1px);
}

.nav-links a.active:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Mobile Menu Button - Premium Design */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.6rem;
    gap: 5px;
    z-index: 1111;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu:hover {
    background: rgba(5, 150, 105, 0.05);
}

.mobile-menu div {
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, #374151 0%, #4b5563 100%);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Animation - Enhanced */
.mobile-menu.active div:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.mobile-menu.active div:nth-child(2) {
    opacity: 0;
    transform: translateX(-15px);
}

.mobile-menu.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

/* Navigation Overlay for Mobile - Enhanced */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1099;
    pointer-events: none;
    opacity: 0;
}

/* .nav-overlay.show {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
    opacity: 1;
} */

body.nav-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    animation: fadeInDown 1s;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s;
}

.cta-button {
    background: #10b981;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1.2s;
    font-weight: 600;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
    background: #059669;
}

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

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
}

/* ===== PROGRAM PAGE STYLES ===== */

.program-card {
  position: relative;
  overflow: hidden;
}

.program-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.program-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

.program-stats {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

.stat-value {
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: #667eea;
  font-weight: 600;
}

.btn-donate {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.8rem;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Program image dengan gambar */
.program-image img {
  transition: transform 0.3s ease;
}

.program-card:hover .program-image img {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .program-description {
    min-height: auto;
  }
  
  .stat-item {
    flex-direction: column;
    gap: 0.3rem;
  }
}
/* Donation Form Section */
.donation-section {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    padding: 4rem 2rem;
    color: white;
}

.donation-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 1rem;
    border: 2px solid #10b981;
    background: white;
    color: #10b981;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.amount-btn:hover,
.amount-btn.active {
    background: #10b981;
    color: white;
}

/* Gallery Section */
.gallery {
    padding: 4rem 2rem;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.gallery-item>div {
    width: 100%;
    z-index: 10;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    align-items: stretch;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    flex: 1;
    min-width: 280px;
}

.contact-info h3 {
    color: #10b981;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    animation: fadeInUp 0.5s;
}

.modal-content h2 {
    color: #10b981;
    margin-bottom: 1rem;
}

.close-modal {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

/* Mobile */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    /* Header / Nav */
    header {
        padding: 0;
    }

    nav {
        padding: 0.8rem 1.5rem;
    }

    .logo {
        gap: 0.6rem;
        font-size: 1.1rem;
    }

    .logo-img {
        height: 38px;
    }

    /* Show mobile menu button */
    .mobile-menu {
        display: flex;
    }

    /* Premium Slide-in Navigation Panel */
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        transform: translateX(100%);
        width: 100%;
        max-width: 360px;
        height: calc(100vh - 70px);
        background: linear-gradient(165deg,
                rgba(5, 150, 105, 0.98) 0%,
                rgba(4, 120, 87, 0.98) 50%,
                rgba(6, 95, 70, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 2.5rem 2rem;
        overflow-y: auto;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.25);
        z-index: 1100;
        gap: 0.5rem;
        border-left: 2px solid rgba(255, 255, 255, 0.15);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Elegant Stagger Animation for Menu Items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.12s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.18s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.24s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.30s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.36s;
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
        padding: 1.1rem 1.8rem;
        display: block;
        width: 100%;
        font-weight: 600;
        font-size: 1.1rem;
        border-radius: 14px;
        border: 1.5px solid transparent;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent;
        position: relative;
        overflow: hidden;
        letter-spacing: 0.02em;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.1) 50%,
                transparent 100%);
        transition: left 0.6s ease;
    }

    .nav-links a:hover::before {
        left: 100%;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        padding-left: 2.2rem;
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateX(8px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .nav-links a.active {
        background: rgba(255, 255, 255, 0.2);
        font-weight: 700;
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    /* Hero adjustments */
    .hero {
        min-height: 50vh;
        padding: 3rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Stats / sections adjustments */
    .stats {
        padding: 3rem 1.5rem;
    }

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

    /* Program and gallery grids */
    .program-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .program-image {
        height: 160px;
        font-size: 3rem;
    }

    .program-content {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .gallery-item {
        height: 180px;
    }

    /* Donation form adjustments */
    .donation-container {
        padding: 2rem;
    }

    .amount-options {
        grid-template-columns: 1fr;
    }

    /* Contact adjustments */
    .contact-grid {
        flex-direction: column;
    }

    .contact-info {
        min-width: 100%;
    }

    /* Modal adjustments */
    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

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

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

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

/* Accessibility */
.mobile-menu:focus,
.mobile-menu:active {
    outline: none;
}

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}