/* =========================================
   1. VARIABLES & RESET
   ========================================= */

/* Brand Colors */
:root {
    --green: #27a844;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    
    /* Light Mode Theme Variables */
    --bg-color: #ffffff;
    --text-color: #0f172a;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --section-light: #f8fafc;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --footer-bg: #020617;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --card-bg: #1e293b;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --section-light: #1e293b;
    --border-color: #334155;
    --input-bg: #1e293b;
    --footer-bg: #000000;
    --shadow: rgba(0, 0, 0, 0.5);
}

/* Global Resets & Transitions */
* { margin:0; padding:0; box-sizing:border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--section-light); }
.text-center { text-align: center; }

/* =========================================
   2. FLOATING THEME BUTTON
   ========================================= */
.floating-theme-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.theme-btn-hover {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--green);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-btn-hover:hover {
    transform: scale(1.15) rotate(15deg);
}

.theme-btn-hover {
    animation: float-ui 3s ease-in-out infinite;
}

@keyframes float-ui {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================
   3. NAVBAR
   ========================================= */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; 
    background: var(--nav-bg);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    transition: background-color 0.4s ease;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { 
    background: var(--green); color: white; width: 35px; height: 35px; 
    border-radius: 6px; display: grid; place-items: center; font-weight: bold;
}
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--green); }

/* =========================================
   4. BUTTONS
   ========================================= */
button {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-donate, .btn-primary {
    background-color: var(--green);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 6px rgba(39, 168, 68, 0.2);
}

.btn-donate:hover, .btn-primary:hover {
    background-color: #1e8535;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(39, 168, 68, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--green);
    border: 2px solid var(--green);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--section-light);
    transform: translateY(-3px);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(39, 168, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(39, 168, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 168, 68, 0); }
}

.btn-donate { animation: pulse-green 2s infinite; }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero { padding: 100px 0; background: var(--bg-color); }
.hero-flex { display: flex; align-items: center; gap: 40px; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 3.5rem; margin: 20px 0; line-height: 1.2; }
.badge { background: #e6f6ea; color: var(--green); padding: 6px 15px; border-radius: 20px; font-weight: 600; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 30px; }

/* =========================================
   6. ANIMATIONS
   ========================================= */
.floating { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.hover-up { transition: 0.3s; }
.hover-up:hover { transform: translateY(-10px); }
.hover-zoom { transition: 0.4s; overflow: hidden; border-radius: 15px; }
.hover-zoom:hover { transform: scale(1.03); }

/* =========================================
   7. GALLERY & CARDS
   ========================================= */
.art-gallery-section { padding: 100px 5%; background: var(--section-light); }

.art-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; align-items: start; }

.exhibit-frame {
    background: var(--card-bg);
    padding: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease;
    cursor: pointer;
}

.img-wrapper { overflow: hidden; height: 300px; border-radius: 2px; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.frame-label { margin-top: 15px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gray); text-align: center; }

.exhibit-frame:hover .img-wrapper img { transform: scale(1.15); }
.exhibit-frame:hover { transform: translateY(-15px) scale(1.02); box-shadow: 0 30px 60px var(--shadow); z-index: 10; }

@keyframes slowFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.float-1 { animation: slowFloat 6s ease-in-out infinite; }
.float-2 { animation: slowFloat 8s ease-in-out infinite; animation-delay: 1s; }
.float-3 { animation: slowFloat 7s ease-in-out infinite; animation-delay: 2s; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.card { padding: 40px; background: var(--card-bg); border-radius: 15px; box-shadow: 0 10px 30px var(--shadow); transition: background-color 0.4s ease; }
.icon-box { background: #e6f6ea; color: var(--green); width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 20px; font-size: 1.5rem; }

/* =========================================
   8. FOCUS AREAS & NEWS
   ========================================= */
.focus-grid, .news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.focus-card { position: relative; border-radius: 20px; overflow: hidden; height: 300px; }
.focus-card img { width: 100%; height: 100%; object-fit: cover; }
.focus-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: var(--card-bg); margin: 15px; border-radius: 15px; display: flex; align-items: center; gap: 15px; transition: background-color 0.4s ease; }

/* =========================================
   9. IMPACT BAR
   ========================================= */
.impact-bar { background: var(--green); color: white; padding: 60px 0; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat i { font-size: 2rem; margin-bottom: 15px; }

/* =========================================
   10. CONTACT
   ========================================= */
.contact-flex-container { display: flex; gap: 40px; margin-top: 50px; align-items: flex-start; }
.contact-sidebar { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.contact-form-main { flex: 2; background: var(--card-bg); padding: 40px; border-radius: 15px; display: flex; flex-direction: column; gap: 20px; transition: background-color 0.4s ease; }

.info-card-small {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.icon-wrap { background: #e1faf0; color: #27a844; width: 45px; height: 45px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.info-content h4 { margin-bottom: 5px; font-size: 1.1rem; }
.info-content p { color: var(--gray); font-size: 0.95rem; }

/* Form Styling */
.form-row { display: flex; gap: 20px; }
.input-group { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-weight: 600; font-size: 0.9rem; }

.input-group input, 
.input-group select, 
.input-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--green);
    background: var(--card-bg);
}

.btn-submit-full { background: var(--green); color: white; padding: 15px; border: none; border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.btn-submit-full:hover { background: #1e8535; box-shadow: 0 4px 12px rgba(39, 168, 68, 0.3); }

/* =========================================
   11. FOOTER
   ========================================= */
.minimal-footer { background: var(--footer-bg); color: #94a3b8; padding: 30px 0; margin-top: 80px; transition: background-color 0.4s ease; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-footer { display: flex; align-items: center; gap: 10px; color: white; }
.logo-icon-small { background: #27a844; color: white; width: 30px; height: 30px; border-radius: 5px; display: grid; place-items: center; font-weight: bold; }
.copyright { font-size: 0.9rem; }

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .contact-flex-container, .form-row, .footer-flex { flex-direction: column; }
    .footer-flex { gap: 20px; text-align: center; }
    .logo-footer { justify-content: center; }
}