/* Sri Anjali Foundation - Premium NGO Stylesheet */
@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 {
    /* Color System (Light Theme) */
    --primary-green: #0F9D58;
    --primary-green-rgb: 15, 157, 88;
    --primary-blue: #1E88E5;
    --primary-blue-rgb: 30, 136, 229;
    --accent-orange: #ea580c;
    --accent-orange-hover: #c2410c;
    
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-base: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-glass: rgba(30, 41, 59, 0.85);
    --border-color: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
}

/* Accessibility Class Overrides */
.accessible-contrast {
    --primary-green: #0a6639;
    --primary-blue: #0c5694;
    --accent-orange: #9a3412;
    --bg-base: #ffffff;
    --bg-surface: #ffffff;
    --text-primary: #000000;
    --text-secondary: #111111;
    border: 1px solid #000 !important;
}

.accessible-contrast [data-theme="dark"] {
    --bg-base: #000000;
    --bg-surface: #000000;
    --text-primary: #ffffff;
    --text-secondary: #eeeeee;
    --border-color: #ffffff;
}

.accessible-dyslexic {
    font-family: 'Courier New', Courier, monospace !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.1em !important;
}

/* General Settings */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Custom Premium Buttons */
.btn-premium {
    background-color: var(--accent-orange);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-premium:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.btn-premium-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-premium-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Navigation - Glassmorphism */
.navbar-ngo {
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.navbar-brand-ngo h2 {
    font-size: 22px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link-ngo {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap; /* Keep link text in one line */
}

.nav-link-ngo:hover, .nav-link-ngo.active {
    color: var(--primary-green);
    background-color: rgba(15, 157, 88, 0.08);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 550px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.85), rgba(15, 157, 88, 0.85)), url('../images/hero_bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Info Cards & Glassmorphism widgets */
.card-premium {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    overflow: hidden;
}

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

/* Progress bar system for causes */
.progress-container {
    margin: 1.5rem 0;
}

.progress-bar-title {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-bar-outer {
    background-color: var(--border-color);
    height: 10px;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar-inner {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease-in-out;
}

/* Counter Stat Blocks */
.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Floating Actions Toolbar */
.floating-donate-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 90px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 28px;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* Accessibility Toolbar Toggle Trigger */
.acc-trigger-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    border: none;
    font-size: 20px;
}

.acc-toolbar-panel {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 280px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
}

.acc-toolbar-panel.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* Chatbot Widget Container */
.chatbot-trigger-btn {
    position: fixed;
    bottom: 30px;
    right: 160px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: #8b5cf6;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    border: none;
    font-size: 20px;
}

.chatbot-window {
    position: fixed;
    bottom: 95px;
    right: 160px;
    width: 350px;
    height: 450px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.chatbot-header {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-bubble.bot {
    background-color: var(--bg-base);
    color: var(--text-primary);
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.chat-bubble.user {
    background-color: #8b5cf6;
    color: white;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.chatbot-input-area {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chatbot-input-area input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 15px;
    outline: none;
    font-size: 0.9rem;
    background-color: var(--bg-base);
    color: var(--text-primary);
}

.chatbot-input-area button {
    background-color: #8b5cf6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Partner Logo Carousel */
.partner-logo {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer style */
.footer-ngo {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 2rem 0;
    border-top: 5px solid var(--primary-green);
}

.footer-ngo h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-ngo a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-ngo a:hover {
    color: var(--primary-green);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 4rem;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* Timeline CSS */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-wrapper::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-surface);
    border: 4px solid var(--primary-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--bg-surface);
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

@media screen and (max-width: 768px) {
    .timeline-wrapper::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::after {
        left: 23px;
    }
    .timeline-right {
        left: 0%;
    }
}
