/* Base Styles */
:root {
    /* Primary Colors - Bold Yellow */
    --primary-color: #FFD700;
    /* Gold/Yellow */
    --primary-light: #FFE14D;
    --primary-dark: #CCAC00;

    /* Secondary Colors - Professional Black */
    --secondary-color: #000000;
    /* Pure Black */
    --secondary-light: #333333;
    --secondary-dark: #000000;

    /* Accent Colors - Crisp White */
    --accent-color: #FFFFFF;
    /* Pure White */
    --accent-light: #F8F9FA;

    /* Modern Neutrals */
    --dark-color: #121212;
    /* Deep Black */
    --light-color: #F8F9FA;
    --white: #FFFFFF;
    --text-color: #1A1A1A;
    --text-light: #666666;
    --text-muted: #4A4A4A;
    --text-dark: #000000;
    --border-color: #E9ECEF;

    /* UI States */
    --success-color: #06D6A0;
    --warning-color: #FFD700;
    --danger-color: #EF476F;

    /* Elevation & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);

    /* Motion */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --hover-lift: translateY(-5px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-donate,
.btn-volunteer {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--secondary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--secondary-color);
    background: var(--primary-light);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-donate {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-donate:hover {
    background: var(--secondary-light);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-volunteer {
    background: var(--white);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-volunteer:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    /* Groups items together after logo */
    align-items: center;
    padding: 15px 20px;
    transition: var(--transition);
    gap: 40px;
}

.navbar.scrolled .container {
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    /* Pushes everything else to the right */
}

.logo-img {
    height: 45px;
    width: auto;
    filter: none;
    /* Reverting to brand colors */
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 38px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar.scrolled .nav-links a {
    color: var(--dark-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Slider */
.hero-slider {
    height: 80vh;
    min-height: 600px;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    flex: 1;
    padding: 0 60px;
    z-index: 2;
}

.slide-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark-color);
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

.slide.active .slide-content h1 {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-light);
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

.slide.active .slide-content p {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.5s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

.slide.active .hero-buttons {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.7s;
}

.slide-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px 0 0 40px;
    box-shadow: var(--shadow-lg);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.prev-slide,
.next-slide {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.prev-slide:hover,
.next-slide:hover {
    background: white;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Impact Stats */
.impact-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Focus Areas */
.focus-areas {
    padding: 80px 0;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.focus-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.focus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.focus-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.focus-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Featured Programs */
.featured-programs {
    padding: 80px 0;
    background: var(--light-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.program-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.program-content {
    padding: 25px;
}

.program-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

/* Cinematic Quote Section (Home) */
.cinematic-quote {
    padding: 80px 0;
    background: var(--secondary-color);
    color: var(--white);
}

.quote-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.quote-image {
    flex: 0 0 300px;
}

.quote-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
}

.quote-text {
    flex: 1;
}

.quote-text blockquote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.quote-author {
    font-size: 1.1rem;
}

.quote-author strong {
    display: block;
    font-size: 1.3rem;
}

/* Success Story */
.success-story {
    padding: 80px 0;
}

.story-card {
    display: flex;
    gap: 50px;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.story-image {
    flex: 0 0 400px;
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.story-content {
    flex: 1;
}

.story-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.story-metrics {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: var(--light-color);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 20px;
}

.newsletter-content p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.newsletter-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.founder-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    position: relative;
    font-weight: 500;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-description {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    margin-top: 5px;
}

.footer-newsletter h4 {
    margin-bottom: 15px;
    color: white;
}

.footer-newsletter form {
    display: flex;
    margin-bottom: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.footer-newsletter button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-certifications {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

.footer-copyright i {
    color: var(--secondary-color);
}

/* Emergency Alert */
.emergency-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--danger-color), var(--warning-color));
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: slideInUp 0.5s ease;
    max-width: 400px;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-text {
    flex: 1;
}

.alert-buttons {
    display: flex;
    gap: 10px;
}

.btn-alert,
.btn-alert-donate {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-alert {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-alert-donate {
    background: white;
    color: var(--danger-color);
}

.alert-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.alert-close:hover {
    transform: scale(1.1);
}

/* Page Header */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    margin-top: 0;
    /* Changed from 70px to allow navbar overlay */
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb span {
    color: white;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .quote-content {
        flex-direction: column;
        text-align: center;
    }

    .quote-image {
        flex: 0 0 auto;
    }

    .story-card {
        flex-direction: column;
    }

    .story-image {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .slide-content {
        padding: 0 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .focus-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .emergency-alert {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .alert-content {
        flex-direction: column;
        text-align: center;
    }

    .alert-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .story-metrics {
        flex-direction: column;
        gap: 20px;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Accessibility Focus States */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Form Validation Styles */
.invalid {
    border-color: #E74C3C !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
}

.invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.valid {
    border-color: #27AE60 !important;
}

.error-message {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
    animation: fadeInError 0.3s ease;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}