@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Premium NGO Palette */
    --primary: #00609C;      /* Deep Ocean Blue */
    --primary-light: #E6F3FA;
    --secondary: #0A8B74;    /* Emerald Teal / Compassion Green */
    --secondary-light: #E6F9F5;
    --accent: #F4A261;       /* Warm Sunset / Hope */
    --dark: #122231;
    --light: #F8FBFF;
    --grey-text: #5A6A7C;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Utilities */
.text-primary-theme { color: var(--primary) !important; }
.text-secondary-theme { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-theme { background-color: var(--primary) !important; color: white; }
.bg-secondary-theme { background-color: var(--secondary) !important; color: white; }
.bg-light-theme { background-color: var(--light) !important; }
.bg-accent-theme { background-color: var(--accent) !important; color: white; }

/* Buttons */
.btn-primary-theme {
    background-color: var(--primary);
    color: white;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary-theme::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--secondary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-in-out;
}
.btn-primary-theme:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.btn-primary-theme:hover { color: white; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 96, 156, 0.2); }

.btn-secondary-theme {
    background-color: var(--secondary);
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.btn-secondary-theme:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 139, 116, 0.2);
}

.btn-theme-rounded { border-radius: 50px; font-weight: 600; letter-spacing: 0.5px; }

/* Glassmorphism & Cards */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.premium-card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}
.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.premium-card .card-avatar-wrapper {
    overflow: hidden;
}
.premium-card .card-avatar-wrapper img {
    transition: transform 0.6s ease;
}
.premium-card:hover .card-avatar-wrapper img {
    transform: scale(1.05);
}

/* Gradient Texts */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: padding 0.3s ease;
}
.navbar-custom.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.98);
}
.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    position: relative;
    padding: 8px 15px !important;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 15px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--secondary) !important; }
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 30px); }

/* Impact Counters */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-radius: 20px;
    z-index: -1;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s ease;
}
.stat-card:hover::before {
    transform: scale(1);
    opacity: 1;
}
.stat-number { font-size: 3.5rem; font-weight: 800; font-family: 'Outfit', sans-serif; color: var(--primary); }

/* Image Overlays for Hero */
.hero-gradient-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 96, 156, 0.9) 0%, rgba(10, 139, 116, 0.6) 100%);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}
.gallery-item img {
    transition: transform 0.6s ease;
    width: 100%; height: 250px; object-fit: cover;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 96, 156, 0.8);
    color: white;
    display: flex;
    align-items: center; justify-content: center; flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; text-align: center; padding: 20px;}

.footer-custom {
    background-color: var(--dark);
    color: rgba(255,255,255,0.7);
}
.footer-custom h5 { color: white; font-weight: 600; margin-bottom: 20px; }
.footer-custom a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s ease; }
.footer-custom a:hover { color: var(--accent); padding-left: 5px; }

/* Custom Badge */
.badge-soft-primary {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}
.badge-soft-secondary {
    background-color: var(--secondary-light);
    color: var(--secondary);
    font-weight: 600;
}

/* Header Topbar & Social */
.topbar { background: var(--primary); }
.social-icon-top {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 5px;
}
.social-icon-top:hover {
    background: white;
    color: var(--primary) !important;
    transform: translateY(-3px) scale(1.15) rotate(15deg);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* ==================================
   ULTRA-PREMIUM FOOTER STYLING
   ================================== */

.premium-footer {
    background: linear-gradient(135deg, #09121a 0%, #122231 100%);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

/* Footer Background Elements */
.premium-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 15% 50%, rgba(10, 139, 116, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 85% 30%, rgba(0, 96, 156, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.premium-footer .container {
    position: relative;
    z-index: 2;
}

/* Stable CTA Banner - Removed to prevent collisions */

/* Glossy highlight for CTA */
.cta-overlap::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    animation: glass-shine 6s infinite linear;
}

@keyframes glass-shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    30% { transform: translateX(100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* Footer specific typing and styles */
.footer-heading {
    color: #ffffff;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
    display: inline-block;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.premium-footer:hover .footer-heading::after {
    width: 60px;
}

/* Enhanced footer links */
.footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}
.footer-links li a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

/* Glassy form in footer */
.footer-form-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
}
.footer-form-glass input, .footer-form-glass textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}
.footer-form-glass input:focus, .footer-form-glass textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: white;
    box-shadow: none;
}
.footer-form-glass input::placeholder, .footer-form-glass textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Social float */
.social-icon-float {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-icon-float:hover {
    background: var(--primary);
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--primary);
}

/* Donate Button Pulse Animation */
@keyframes heartBeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.3); }
  80% { transform: scale(1); }
  100% { transform: scale(1); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(244, 162, 97, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0); }
}

.btn-pulse-active {
    background-color: var(--accent) !important;
    color: white !important;
    animation: pulseGlow 2s infinite cubic-bezier(0.66, 0, 0, 1);
    transition: transform 0.3s ease;
    border: none;
}
.btn-pulse-active:hover {
    transform: scale(1.05);
    background-color: #e08b49 !important;
}
.btn-pulse-active i.fa-heart {
    animation: heartBeat 1.5s infinite;
    display: inline-block;
}
