/* ===================================
   Global Styles & Variables
   =================================== */
:root {
    --primary-color: #2d5f8d;
    --secondary-color: #e67e22;
    --accent-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn-donate {
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
}

.btn-donate:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* ===================================
   Top Bar
   =================================== */
.top-bar {
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 25px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.logo-full {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 10px;
    max-width: 150px;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a:not(.btn-donate):hover {
    color: var(--primary-color);
}

.nav-menu a:not(.btn-donate)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:not(.btn-donate):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a52 100%);
    background-image: url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?w=1600'),
                      linear-gradient(135deg, rgba(45, 95, 141, 0.85) 0%, rgba(26, 58, 82, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    width: 100%;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===================================
   Support Section
   =================================== */
.support-section {
    background: var(--light-color);
}

/* ===================================
   Tribute Section
   =================================== */
.tribute-section {
    background: var(--white);
}

.tribute-content h2 {
    text-align: center;
    margin-bottom: 30px;
}

.tribute-content > p {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-item {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-item h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

/* ===================================
   Focus Areas
   =================================== */
.focus-areas {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a52 100%);
    color: var(--white);
}

.focus-areas h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 50px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.focus-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.focus-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.focus-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.focus-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.focus-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.read-more:hover {
    transform: translateX(5px);
}

/* ===================================
   Support Categories
   =================================== */
.support-categories {
    background: var(--white);
}

.support-categories h2 {
    text-align: center;
    margin-bottom: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.category-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    transition: var(--transition);
}

.category-item:hover {
    background: var(--light-color);
    transform: translateY(-5px);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.category-item:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-item h3 {
    margin-bottom: 10px;
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    background: var(--light-color);
}

.stats-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* ===================================
   Volunteer Section
   =================================== */
.volunteer-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1e8449 100%);
    color: var(--white);
}

.volunteer-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.volunteer-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.volunteer-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ===================================
   Quote Section
   =================================== */
.quote-section {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0;
}

.quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote p {
    font-size: 1.8rem;
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--white);
}

.quote-author {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: var(--light-color);
}

.cta-section h2 {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-item {
    text-align: center;
}

.cta-item h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
}

.footer-main {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: start;
    gap: 10px;
}

.contact-list i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-info span {
        display: block;
        margin: 5px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .logo-image {
        height: 45px;
    }

    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 50px 0;
    }

    .focus-grid,
    .categories-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .achievements {
        grid-template-columns: 1fr;
    }

    .quote p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Chatbot Styles
   =================================== */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a52 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.chatbot-button i {
    position: relative;
    z-index: 2;
}

.chatbot-fallback {
    position: absolute;
    font-size: 1.8rem;
    display: none;
}

.chatbot-button:not(:has(i))  .chatbot-fallback,
.chatbot-button i:empty + .chatbot-fallback {
    display: block;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(45, 95, 141, 0.4);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a52 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.bot-message,
.user-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

.bot-message p,
.user-message p {
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.bot-message p {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid #e0e0e0;
    max-width: 85%;
}

.user-message p {
    background: var(--primary-color);
    color: var(--white);
    margin-left: auto;
    max-width: 85%;
}

.chatbot-quick-replies {
    padding: 15px;
    background: var(--white);
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply {
    padding: 8px 16px;
    background: var(--light-color);
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.quick-reply:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 450px;
        right: -10px;
    }
    
    .chatbot-button {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}
