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

:root {
    /* --- YOUR PALETTE --- */
    --primary-color: #22c55e;      /* Green 500 */
    --primary-dark: #16a34a;       /* Green 600 */
    --text-dark: #0f172a;          /* Slate 900 */
    --text-muted: #64748b;         /* Slate 500 */
    --bg-surface: #ffffff;
    --bg-background: #f8fafc;
    --hero-bg-1: #f0fdf4;          /* Very light green */
    --hero-bg-2: #f8fafc;          /* Slate 50 */

    /* --- DERIVED HELPERS (Auto-generated from your colors) --- */
    --primary-glow: rgba(34, 197, 94, 0.25); /* Green glow */
    --primary-subtle: #dcfce7;     /* Light Green background for icons */
    
    /* Glassmorphism Variables */
    --glass-surface: rgba(255, 255, 255, 0.70);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(22, 163, 74, 0.08); /* Green-tinted shadow */
}

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

/* =========================================
   2. BACKGROUNDS & MESH GRADIENTS (Green Theme)
   ========================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    /* Subtle background mesh using your hero-bg variables */
    background: radial-gradient(circle at 10% 20%, var(--hero-bg-1), transparent 30%),
                radial-gradient(circle at 90% 80%, var(--hero-bg-1), transparent 30%);
    background-color: var(--bg-background);
}

/* Floating ambient green glow blob */
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    filter: blur(90px);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 8s infinite alternate;
}

/* =========================================
   3. TYPOGRAPHY & BUTTONS
   ========================================= */
.hero-heading {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    /* Dark gradient text for premium feel */
    background: linear-gradient(135deg, var(--text-dark) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility to map your variable to the HTML class */
.text-primary-custom {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Modern Button */
.btn-modern {
    background: var(--bg-surface);
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}
.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

/* Hover Scale Utility */
.hover-scale { transition: transform 0.2s; }
.hover-scale:hover { transform: translateY(-3px); }

/* =========================================
   4. HOME PAGE: GLASS UI CARDS
   ========================================= */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 420px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-surface);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

.main-interface {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 1.5rem;
    z-index: 2;
}

/* Floating Stats Cards */
.stat-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 3;
    border-radius: 16px;
    box-shadow: 0 10px 20px -5px rgba(22, 163, 74, 0.1); /* Slight green tint on shadow */
    animation: float 6s ease-in-out infinite;
    min-width: 140px;
}

.card-1 { top: 30px; left: -30px; animation-delay: 0s; }
.card-2 { bottom: 40px; right: -30px; animation-delay: 3s; }

/* Internal List Items */
.app-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.app-item:last-child { border-bottom: none; }

/* Status Pills */
.status-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.status-pill.success { background: #dcfce7; color: #15803d; } /* Green match */
.status-pill.processing { background: #ffedd5; color: #9a3412; }
.status-pill.pending { background: #f1f5f9; color: #475569; }

/* =========================================
   5. ABOUT PAGE: MISSION & VALUES
   ========================================= */
/* Mission Image */
.mission-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: visible; 
}

.mission-img {
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 4px solid rgba(255,255,255,0.6);
    transition: transform 0.4s ease;
}

.mission-img-wrapper:hover .mission-img {
    transform: scale(1.02);
}

/* Decorative blob behind image (Green) */
.mission-img-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.15;
    border-radius: 24px;
    z-index: -1;
    transform: rotate(3deg);
    transition: transform 0.4s ease;
}
.mission-img-wrapper:hover::before {
    transform: rotate(5deg) scale(1.02);
}

/* Value Cards (Transparency, Innovation, etc.) */
.value-card {
    position: relative;
    background: #ffffff;
    /* Neutral border initially */
    border: 1px solid #e2e8f0; 
    border-radius: 24px;
    padding: 2.5rem 2rem;
    overflow: hidden; /* Keeps the hover effect inside */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy physics */
    z-index: 1;
}

/* 1. Card Hover Animation: Lift & Color Border */
.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    /* Deep green-tinted shadow */
    box-shadow: 0 20px 40px -15px rgba(34, 197, 94, 0.25);
}

/* 2. The "Fill" Effect (Circle expansion) */
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--hero-bg-1) 0%, #ffffff 100%);
    transition: width 0.4s ease;
    z-index: -1;
    opacity: 0.5;
}

/* On hover, fill the background subtly */
.value-card:hover::before {
    width: 100%;
}

/* 3. Icon Styling: Modern Squircle */
.icon-wrapper {
    width: 64px;
    height: 64px;
    /* Light green background by default */
    background: var(--hero-bg-1); 
    color: var(--primary-color);
    /* Squircle shape (between square and circle) */
    border-radius: 18px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

/* 4. Icon Interaction: Color Flip & Pop */
.value-card:hover .icon-wrapper {
    background: var(--primary-color); /* Solid Green */
    color: #ffffff !important; /* White Icon */
    transform: scale(1.1) rotate(3deg); /* Slight pop and tilt */
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

/* Typography adjustments for the card */
.value-card h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
/* =========================================
   6. CTA SECTION (Green Gradient)
   ========================================= */
.cta-glass-section {
    position: relative;
    /* Gradient from primary to primary-dark */
    background: linear-gradient(135deg, #07742f 0%, var(--primary-dark) 100%);
    border-radius: 30px;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(22, 163, 74, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Abstract shapes inside CTA */
.cta-shape {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}
.cta-shape-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.cta-shape-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; }

/* =========================================
   7. ANIMATIONS
   ========================================= */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.1); }
}

/* =========================================
   8. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 991.98px) {
    .hero-heading { font-size: 2.5rem; }
    
    .hero-visual-wrapper {
        margin-top: 4rem;
        transform: scale(0.9);
    }
    
    .card-1 { left: 0; top: 20px; } 
    .card-2 { right: 0; bottom: 20px; }
    .mission-img-wrapper::before { right: -10px; top: 10px; }
}

@media (max-width: 576px) {
    .hero-heading { font-size: 2.25rem; }
    
    .hero-visual-wrapper {
        transform: scale(0.75);
        margin-left: -5%;
        margin-right: -5%;
        width: 110%; 
    }
    
    .cta-glass-section { padding: 2rem !important; }
}
/* Bento Grid Utilities */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

.bento-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15) !important;
    z-index: 2;
}

/* Image Zoom on Hover */
.transition-scale {
    transition: transform 0.6s ease;
}
.bento-card:hover .transition-scale {
    transform: scale(1.05);
}

/* Marquee Animation */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-flex;
    animation: scroll 35s linear infinite;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.partner-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 40px;
    opacity: 0.6;
    transition: all 0.3s;
    cursor: default;
}
.partner-logo:hover {
    color: var(--primary-color);
    opacity: 1;
}
.feature-card {
            padding: 1rem;
            height: 100%;
            transition: all 0.3s ease;
            border: none;
        }
        .feature-card:hover {
            transform: translateY(-5px);
            border: none;
            box-shadow: none;
        }
        .icon-box {
            width: 56px;
            height: 56px;
            background-color: rgba(34, 197, 94, 0.1);
            color: var(--primary-color);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            transition: all 0.3s;
        }
        .feature-card:hover .icon-box {
            background-color: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }