@import url('sections.css');

/* ============================================
   GREENHEART CHARITY - MAIN STYLESHEET
   Premium Modern Design
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #1a5c38;
    --primary-dark: #0e3d24;
    --primary-light: #2d8a56;
    --accent: #f5b731;
    --accent-dark: #d49a1a;
    --accent-light: #ffd56b;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --cream: #fdf6ec;
    --cream-2: #faf3e6;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --font-primary: 'Nunito', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ---- Preloader ---- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); display: flex; align-items: center;
    justify-content: center; z-index: 99999; transition: opacity 0.5s;
}
#preloader.loaded { opacity: 0; pointer-events: none; }
.heart-loader i {
    font-size: 3rem; color: var(--primary);
    animation: heartbeat 1s ease-in-out infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--primary); color: var(--white); border: none;
    font-weight: 700; padding: 12px 32px; border-radius: 50px;
    transition: var(--transition); font-size: 0.95rem;
}
.btn-primary-custom:hover {
    background: var(--primary-dark); color: var(--white);
    transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-accent {
    background: var(--accent); color: var(--dark); border: none;
    font-weight: 700; padding: 12px 32px; border-radius: 50px;
    transition: var(--transition); font-size: 0.95rem;
}
.btn-accent:hover {
    background: var(--accent-dark); color: var(--dark);
    transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline-light-custom {
    background: transparent; color: var(--white);
    border: 2px solid var(--white); font-weight: 700;
    padding: 10px 32px; border-radius: 50px;
    transition: var(--transition); font-size: 0.95rem;
}
.btn-outline-light-custom:hover {
    background: var(--white); color: var(--primary);
    transform: translateY(-2px);
}

/* ---- Section Styles ---- */
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(26, 92, 56, 0.08); color: var(--primary);
    padding: 8px 20px; border-radius: 50px; font-size: 0.85rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-badge i { font-size: 0.7rem; }
.section-badge::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); display: inline-block;
}
.section-title {
    font-size: 2.75rem; font-weight: 700; margin-bottom: 16px;
    color: var(--dark);
}
.section-subtitle {
    font-size: 1.05rem; color: var(--gray-500);
    max-width: 600px; margin: 0 auto;
}

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary-dark); color: rgba(255,255,255,0.8);
    padding: 8px 0; font-size: 0.82rem;
}
.top-bar-left span { display: inline-flex; align-items: center; }
.top-bar-left i { color: var(--accent); }
.top-bar-social a {
    color: rgba(255,255,255,0.7); margin-left: 12px;
    font-size: 0.9rem; transition: var(--transition);
}
.top-bar-social a:hover { color: var(--accent); }

/* ---- Navbar ---- */
.navbar {
    background: var(--white); padding: 16px 0;
    box-shadow: var(--shadow-sm); z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 10px 0; box-shadow: var(--shadow-md);
}
.navbar-brand {
    font-family: var(--font-heading); font-size: 1.6rem;
    font-weight: 800; color: var(--primary) !important;
    display: flex; align-items: center; gap: 8px;
}
.brand-icon { color: var(--accent); font-size: 1.8rem; }
.text-accent { color: var(--accent); }
.nav-link {
    font-weight: 600; color: var(--dark) !important;
    padding: 8px 16px !important; position: relative;
    font-size: 0.95rem;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 0; height: 3px;
    background: var(--accent); border-radius: 2px;
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.btn-nav-donate {
    padding: 10px 24px !important; font-size: 0.9rem !important;
    box-shadow: 0 4px 15px rgba(245, 183, 49, 0.3);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative; min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    display: flex; align-items: center; overflow: hidden;
}
.hero-fullscreen {
    background: #083d26; /* Dark green fallback */
    padding: 0 !important;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 80%; height: 200%; border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.hero-section::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 60%; height: 120%; border-radius: 50%;
    background: rgba(255,255,255,0.02);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
    color: var(--accent); padding: 10px 24px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-badge i { font-size: 0.7rem; }
.hero-title {
    font-size: 3.75rem; font-weight: 900; color: var(--white);
    line-height: 1.15; margin-bottom: 20px;
    font-family: var(--font-heading);
}
.hero-title span { color: var(--accent); }
.hero-text {
    font-size: 1.1rem; color: rgba(255,255,255,0.8);
    margin-bottom: 36px; max-width: 520px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 40px; margin-top: 50px;
    padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-item h3 {
    font-size: 2rem; font-weight: 800; color: var(--accent);
    margin-bottom: 4px; font-family: var(--font-primary);
}
.hero-stat-item p {
    color: rgba(255,255,255,0.7); font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.hero-image-wrapper {
    position: relative; z-index: 2;
}
.hero-image-wrapper img {
    width: 100%; max-height: 600px; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.hero-shape-1 {
    position: absolute; top: 10%; right: 5%; width: 80px; height: 80px;
    border: 3px solid rgba(245,183,49,0.3); border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
}
.hero-shape-2 {
    position: absolute; bottom: 15%; left: -5%; width: 120px; height: 120px;
    background: rgba(245,183,49,0.08); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}
.hero-shape-3 {
    position: absolute; top: 40%; right: -3%; width: 15px; height: 15px;
    background: var(--accent); border-radius: 50%;
    animation: bounce-dot 2s ease-in-out infinite;
}
@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}
@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}
@keyframes bounce-dot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Wave Divider */
.wave-divider {
    position: absolute; bottom: -2px; left: 0; width: 100%;
    overflow: hidden; line-height: 0; z-index: 3;
}
.wave-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 80px; transform: rotate(180deg); }
.wave-divider .shape-fill { fill: var(--cream); }

/* Floating Message Button */
.floating-message-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(232, 97, 54, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: antiGravity 3s ease-in-out infinite;
}

.floating-message-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 15px 35px rgba(26, 92, 56, 0.5);
}

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

@media (max-width: 768px) {
    .floating-message-btn {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}
