/* Base Styles and Modern Reset */
:root {
    --primary-color: #059669; /* Emerald Green */
    --primary-dark: #047857;
    --primary-light: #ecfdf5;
    --accent-color: #fbbf24; /* Amber/Gold */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-up: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
    
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .campaign-title, .stat-value, .btn {
    font-family: 'Outfit', sans-serif;
}

/* Mobile First App Container */
.app-container {
    max-width: 480px; /* Mobile width constraint */
    margin: 0 auto;
    background-color: var(--bg-main);
    min-height: 100vh;
    position: relative;
    padding-bottom: 90px; /* Space for bottom bar */
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    overflow-x: hidden;
}

/* Hero Image Section (16:9) */
.hero-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

/* Main Content Padding */
.content-container {
    padding: 24px 20px;
}

/* Campaign Header Element */
.campaign-header {
    margin-bottom: 24px;
    animation: slideUp 0.6s ease-out;
}

.campaign-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 8px;
}

.campaign-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.campaign-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Progress Section */
.progress-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
    animation: fadeIn 0.8s ease-out;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.align-right {
    text-align: right;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 700;
}

.primary-color {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: var(--primary-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    border-radius: var(--radius-full);
    width: 0%; /* Intentionally 0 for JS animation */
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-percentage {
    color: var(--text-main);
    font-weight: 700;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.benefit-card {
    display: flex;
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:active {
    transform: scale(0.98);
}

.benefit-icon {
    font-size: 1.5rem;
    margin-right: 16px;
    background: var(--primary-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.benefit-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.benefit-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Portfolio Section */
.portfolio-section {
    margin-bottom: 24px;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-sm);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px 16px 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Fixed Bottom Action Bar */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    padding: 16px 20px;
    gap: 12px;
    box-shadow: var(--shadow-up);
    border-top: 1px solid var(--border-light);
    z-index: 100;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:active {
    transform: translateY(2px);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary-color);
    flex: 1;
    gap: 8px;
}

.btn-outline {
    background-color: transparent;
    color: #ef4444; /* YouTube Red */
    border: 1.5px solid #ef4444;
    width: 100%;
    justify-content: center;
}

.btn-outline:hover, .btn-outline:active {
    background-color: #fef2f2;
}

.portfolio-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-light);
}

.links-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    flex: 2;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Responsive adjustments for slightly larger screens but still mobile feel */
@media (min-width: 481px) {
    body {
        display: flex;
        justify-content: center;
        background-color: #cbd5e1;
    }
}

/* Payment Page Specific Styles */
.bg-payment {
    background-color: #f1f5f9;
}

.payment-container {
    background-color: #2b6148;
    min-height: 100vh;
    color: white;
}

.payment-header {
    display: flex;
    align-items: center;
    padding: 24px 20px;
}

.payment-header h2 {
    color: white;
    margin-left: 16px;
    font-size: 1.25rem;
    font-weight: 700;
}

.back-btn {
    color: white;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.back-btn:active {
    background: rgba(255,255,255,0.2);
}

.payment-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 20px 24px;
}

.bank-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.bank-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.bank-logo {
    background: #4a7d65;
    color: white;
    font-weight: 800;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bank-title {
    display: flex;
    flex-direction: column;
}

.transfer-via {
    font-size: 0.75rem;
    color: #a5d6c2;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.bank-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.account-details {
    background: rgba(56, 128, 97, 0.6);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.account-label {
    font-size: 0.75rem;
    color: #a5d6c2;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.account-number {
    font-size: 1.8rem;
    font-family: monospace;
    font-weight: 700;
    color: white;
    letter-spacing: 3px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.account-owner {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

.btn-warning {
    background-color: #d19f4a;
    color: white;
    font-weight: 600;
    width: auto;
    display: inline-flex;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: none;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
}

.payment-actions {
    text-align: center;
}

.payment-instruction {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(81, 142, 115, 0.4);
    border-left: 3px solid #60a5fa;
    padding: 14px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
    text-align: left;
}

.btn-whatsapp {
    background: #10b981;
    color: white;
    width: auto;
    display: inline-flex;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    align-items: center;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* QRIS Card Styles */
.qris-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qris-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.qris-image-container {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 280px;
}

.qris-placeholder {
    color: black;
    text-align: center;
}

.qris-placeholder .placeholder-title {
    font-weight: 800;
    font-size: 0.95rem;
    font-family: serif;
    margin-bottom: 6px;
}

.qris-placeholder .placeholder-subtitle {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 16px;
}

.qris-box-placeholder {
    background: #f8fafc;
    padding: 40px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.qris-instruction {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-download {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-size: 0.95rem;
}
