/* ============================================================================
   FONDATION APP - MODERN DESIGN STYLES v2.0.0
   Enhanced with security and modern UI
   ============================================================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-900: #064e3b;
    
    --teal-100: #ccfbf1;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    
    --purple-100: #f3e8ff;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    
    --red-50: #fef2f2;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--emerald-50) 0%, var(--teal-100) 100%);
    min-height: 100vh;
}

.modern-design {
    background: linear-gradient(135deg, var(--emerald-50) 0%, var(--teal-100) 100%);
}

/* Container */
.modern-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.modern-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--emerald-200);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrapper {
    background: var(--emerald-600);
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-center;
}

.logo-wrapper i {
    color: white;
    font-size: 1.5rem;
}

.brand-text {
    display: none;
}

@media (min-width: 768px) {
    .brand-text {
        display: block;
    }
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--emerald-900);
    line-height: 1.2;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: var(--emerald-700);
    margin: 0;
}

.lang-switcher {
    display: flex;
    background: var(--emerald-100);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--emerald-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--emerald-900);
}

.lang-btn.active {
    background: var(--emerald-600);
    color: white;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.modern-hero {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--teal-700) 100%);
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1583829315216-06c78572eace?crop=entropy&cs=srgb&fm=jpg&ixid=M3w3NDk1ODF8MHwxfHNlYXJjaHwyfHxmb3VuZGF0aW9uJTIwdHJhbnNwYXJlbmN5fGVufDB8fHx8MTc1NTc5MjY0M3ww&ixlib=rb-4.1.0&q=85');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--emerald-100);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
    }
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--orange-500);
    color: white;
}

.btn-primary:hover {
    background: var(--orange-600);
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid white;
    background: transparent;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--emerald-700);
}

/* ============================================================================
   METRICS SECTION
   ============================================================================ */

.metrics-section {
    padding: 4rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.title-underline {
    width: 6rem;
    height: 4px;
    background: var(--emerald-600);
    margin: 0 auto;
}

.title-underline-blue {
    background: var(--blue-600);
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

.metrics-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .metrics-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .metrics-grid-modern {
        grid-template-columns: repeat(5, 1fr);
    }
}

.metric-card-modern {
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    color: white;
    border: none;
}

.metric-green {
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
}

.metric-blue {
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
}

.metric-orange {
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
}

.metric-purple {
    background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-600) 100%);
}

.metric-teal {
    background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
}

.metric-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.7;
}

/* ============================================================================
   DONATION SECTION
   ============================================================================ */

.donation-section-modern {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--red-50) 100%);
}

.donation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .donation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .donation-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.donation-card-modern {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.donation-card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.donation-featured {
    border: 2px solid var(--orange-200);
}

.donation-icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.donation-green {
    background: var(--emerald-100);
    color: var(--emerald-600);
}

.donation-orange {
    background: var(--orange-100);
    color: var(--orange-600);
}

.donation-purple {
    background: var(--purple-100);
    color: var(--purple-600);
}

.donation-teal {
    background: var(--teal-100);
    color: var(--teal-600);
}

.donation-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.donation-desc {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.donation-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.donation-btn-green {
    background: var(--emerald-600);
}

.donation-btn-green:hover {
    background: var(--emerald-700);
}

.donation-btn-orange {
    background: var(--orange-600);
}

.donation-btn-orange:hover {
    background: var(--orange-700);
}

.donation-btn-purple {
    background: var(--purple-600);
}

.donation-btn-purple:hover {
    background: var(--purple-700);
}

.donation-btn-teal {
    background: var(--teal-600);
}

.donation-btn-teal:hover {
    background: var(--teal-700);
}

/* ============================================================================
   PROJECTS SECTION
   ============================================================================ */

.projects-section-modern {
    padding: 4rem 0;
    background: white;
}

.social-section-modern {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--blue-50) 0%, #e0e7ff 100%);
}

.projects-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card-modern {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.project-card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.project-image-wrapper {
    position: relative;
    height: 12rem;
    background: var(--gray-200);
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-completed {
    background: var(--emerald-600);
    color: white;
}

.status-ongoing {
    background: var(--gray-200);
    color: var(--gray-700);
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    flex: 1;
}

.project-category-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    margin-left: 0.5rem;
}

.project-info {
    margin-bottom: 1rem;
}

.project-location {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.project-location i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.project-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: 0.875rem;
}

.project-stat {
    display: flex;
    flex-direction: column;
}

.stat-label-text {
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-value-text {
    font-weight: 600;
}

.stat-value-green {
    color: var(--emerald-600);
}

.stat-value-blue {
    color: var(--blue-600);
}

.stat-value-orange {
    color: var(--orange-600);
}

.stat-value-gray {
    color: var(--gray-700);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.modern-footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    background: var(--emerald-600);
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo i {
    color: white;
    font-size: 1.5rem;
}

.footer-brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.footer-text {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 640px) {
    .modern-hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .modern-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}
