/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'IntegralCF';
    src: url('fonts/Fontspring-DEMO-integralcf-heavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-green: #1A8B6D;
    --dark-green: #0F5A4A;
    --light-green: #E8F8F5;
    --accent-yellow: #FFD43B;
    --text-dark: #1C2F2A;
    --text-gray: #5A6C68;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, #e8f8f5 0%, #ffffff 100%);
    overflow-x: hidden;
}

/* ========================================
   TOP BAR
======================================== */
.top-bar {
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
    position: relative;
    z-index: 1000;
}

.top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 32px;
    align-items: center;
}

.contact-item,
.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.contact-item i,
.date-item i {
    font-size: 14px;
}

.events-btn {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.events-btn:hover {
    background: #FFC107;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 212, 59, 0.4);
}

/* ========================================
   FLOATING NAVIGATION
======================================== */
.floating-nav {
    position: sticky;
    top: 20px;
    z-index: 999;
    margin: 20px auto 0;
    max-width: 1300px;
    padding: 0 40px;
}

.nav-container {
    background: var(--white);
    border-radius: 60px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.nav-menu a i {
    font-size: 10px;
}

.nav-donate-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-donate-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 139, 109, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ========================================
   MOBILE OVERLAY
======================================== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-overlay {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 48px;
    color: var(--primary-green);
    cursor: pointer;
    line-height: 1;
}

.mobile-menu {
    list-style: none;
    text-align: center;
    margin-bottom: 40px;
}

.mobile-menu li {
    margin: 24px 0;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-green);
}

.mobile-donate-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 18px 48px;
    border-radius: 35px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    padding: 100px 40px 120px;
    text-align: center;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'IntegralCF', sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 48px;
    letter-spacing: -2px;
}

.title-part {
    display: block;
}

.title-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.avatar-group {
    display: flex;
    margin-left: -8px;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.title-change {
    display: inline-block;
    margin: 0 20px;
}

.title-image {
    height: 80px;
    width: 160px;
    border-radius: 50px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    max-width: 680px;
    margin: 0 auto 48px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-donate-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 20px 48px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(26, 139, 109, 0.3);
    transition: all 0.3s ease;
}

.hero-donate-btn:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26, 139, 109, 0.4);
}

.volunteer-count {
    display: flex;
    align-items: center;
    gap: 16px;
}

.volunteer-avatars {
    display: flex;
    align-items: center;
}

.volunteer-avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.plus-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: -12px;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.volunteer-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

/* ========================================
   MISSION CARDS SECTION
======================================== */
.missions {
    padding: 80px 40px;
    background: #F8FAFB;
}

.missions-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.sparkles {
    position: absolute;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-yellow);
    z-index: 10;
}

.sparkles.top-left {
    top: -20px;
    left: -20px;
}

.sparkles.bottom-right {
    bottom: -20px;
    right: -20px;
}

.mission-card {
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    height: 420px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
}

.card-content h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.card-stats {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.stats-content {
    text-align: center;
    color: var(--white);
}

.stats-number {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stats-text {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.95;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: #063722;
    color: var(--white);
    padding: 32px 40px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-yellow);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1200px) {
    .missions-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

  .top-bar {
    display: none;
  }


    .top-bar-inner {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 16px;
        font-size: 13px;
    }

    .floating-nav {
        top: 10px;
        margin: 16px 20px 0;
        padding: 0;
    }

    .nav-container {
        padding: 14px 20px;
        border-radius: 50px;
    }

    .nav-menu,
    .nav-donate-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 60px 20px 80px;
    }

    .title-images {
        flex-direction: column;
        gap: 16px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 24px;
    }

    .missions {
        padding: 60px 20px;
    }

    .missions-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mission-card {
        height: 360px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 42px;
        letter-spacing: 0px;
    }

    .avatar {
        width: 42px;
        height: 42px;
    }

    .title-image {
        height: 60px;
        width: 120px;
    }

    .stats-number {
        font-size: 56px;
    }
}

/* ========================================
   ANIMATIONS & TRANSITIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-container,
.missions-container {
    animation: fadeInUp 0.8s ease-out;
}

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

.sparkles {
    animation: float 3s ease-in-out infinite;
}
