:root {
    --primary-color: #2563eb;
    --secondary-color: #dc2626;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --danger-color: #dc2626;
    --success-color: #16a34a;
    --accent-color: #f59e0b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #2563eb, #1d4ed8);
    --gradient-secondary: linear-gradient(135deg, #dc2626, #b91c1c);
    --gradient-accent: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-dark: linear-gradient(135deg, #1e293b, #334155);
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.welcome-text {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    color: #38bdf8;
}

.impact-card {
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-card {
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    color: var(--primary-color);
}

.donate-section {
    position: relative;
    overflow: hidden;
}

.donate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 15c-2-3-4-6-4-8 0-3 2-5 4-5s4 2 4 5c0 2-2 5-4 8z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.btn-gradient-donate {
    background: linear-gradient(135deg, #889ab2, #80d1cc);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(211, 152, 152, 0.3);
}

.btn-gradient-donate:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: #1e293b;
    text-shadow: 0 2px 8px rgba(255,255,255,0.18);
}

.section-divider {
    height: 4px;
    width: 70px;
    background: var(--primary-color);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #1e293b;
    text-shadow: 0 2px 8px rgba(255,255,255,0.18);
}

.highlight {
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.brand-text {
    font-weight: 400;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-item.active .nav-link:after {
    width: 70%;
}

.dropdown-menu-animated {
    animation: fadeIn 0.3s ease;
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: url('../images/hero-bg.svg') no-repeat center center/cover, linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-attachment: fixed;
    padding-top: 80px;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(30,41,59,0.88) 0%, rgba(37,99,235,0.88) 100%);
    backdrop-filter: blur(14px) saturate(120%);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.22);
    border-radius: 0 0 40px 40px;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 4px 24px 0 rgba(44,62,80,0.10);
    opacity: 0.7;
    filter: blur(0.5px);
    transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    animation-delay: 1s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    animation-delay: 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 25%;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(241, 196, 15, 0.05));
    animation-delay: 1.5s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 40%;
    left: 30%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    animation-delay: 0.5s;
}

.shape {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    background: rgba(30,41,59,0.82);
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.32);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    z-index: 2;
    position: relative;
    backdrop-filter: blur(6px) saturate(120%);
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.hero-stat-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: var(--transition);
}

.hero-scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Feature Cards */
.features-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #dbeafe 100%);
    padding-top: 6rem;
    padding-bottom: 6rem;
    color: #1e293b !important;
    background: inherit;
    position: relative;
    z-index: 1;
}

.features-section::before {
    background: radial-gradient(circle, rgba(52, 152, 219, 0.08) 0%, rgba(52, 152, 219, 0) 80%);
}

.features-section::after {
    background: radial-gradient(circle, rgba(46, 204, 113, 0.08) 0%, rgba(46, 204, 113, 0) 80%);
}

.enhanced-feature-card {
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 rgba(44,62,80,0.10);
    transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
    background-color: rgba(255,255,255,0.98);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1.5px solid rgba(52,152,219,0.13);
    color: #1e293b;
}

.enhanced-feature-card:hover {
    box-shadow: 0 16px 48px 0 rgba(44,62,80,0.18);
    border: 1.5px solid var(--primary-color);
    background: #e0e7ef;
    transform: translateY(-12px) scale(1.03);
    color: #1e293b;
}

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

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

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

.gradient-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 60%, #22d3ee 100%);
    color: #fff;
    font-size: 1.8rem;
    position: absolute;
    top: 165px;
    left: 20px;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(37,99,235,0.18);
    transition: var(--transition);
}

.enhanced-feature-card:hover .gradient-icon {
    transform: scale(1.1) rotate(10deg);
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    padding-top: 2.2rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(255,255,255,0.12);
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.feature-text {
    color: #1e293b;
    margin-bottom: 1.5rem;
    flex: 1;
    text-shadow: 0 1px 4px rgba(255,255,255,0.12);
}

.feature-stats {
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.enhanced-feature-card .btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    border-radius: 50px;
    overflow: hidden;
    padding: 0.6rem 1.5rem;
}

.enhanced-feature-card .btn span {
    transition: var(--transition);
}

.enhanced-feature-card .btn i {
    margin-left: 0.5rem;
    transition: var(--transition);
    opacity: 0;
    width: 0;
}

.enhanced-feature-card:hover .btn i {
    opacity: 1;
    width: auto;
    transform: translateX(5px);
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.feature-icon {
    margin-bottom: 1.5rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-height: 100%;
    transition: var(--transition);
}

.feature-card:hover .feature-icon img {
    transform: scale(1.1);
}

.feature-card .btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.feature-card .btn i {
    margin-left: 0.5rem;
    transition: var(--transition);
    opacity: 0;
    width: 0;
}

.feature-card:hover .btn i {
    opacity: 1;
    width: auto;
    transform: translateX(5px);
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    color: #1e293b !important;
    background: inherit;
    position: relative;
    z-index: 1;
}

.mission-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.mission-content {
    padding: 2rem;
}

.mission-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.mission-points {
    margin-bottom: 2rem;
}

.mission-point {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.mission-point i {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* Testimonial Section */
.testimonial-section {
    padding: 5rem 0;
    background: url('../images/testimonial-bg.svg') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    color: white;
    color: #1e293b !important;
    background: inherit;
    position: relative;
    z-index: 1;
}

.testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9) 0%, rgba(52, 152, 219, 0.9) 100%);
}

.testimonial-section .container {
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-image {
    height: 200px;
    overflow: hidden;
}

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

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

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.testimonial-quote {
    position: relative;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-quote i.fa-quote-left {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-color);
    opacity: 0.2;
    font-size: 1.5rem;
}

.testimonial-quote i.fa-quote-right {
    position: absolute;
    bottom: 0;
    right: 0;
    color: var(--primary-color);
    opacity: 0.2;
    font-size: 1.5rem;
}

.testimonial-quote p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-author {
    margin-bottom: 1.5rem;
}

.testimonial-author h5 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.testimonial-stats {
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.testimonial-item {
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial-author-info h5 {
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.testimonial-author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    color: #1e293b !important;
    background: inherit;
    position: relative;
    z-index: 1;
}

.cta-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

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

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

.cta-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.7) 0%, rgba(52, 152, 219, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-stat {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.cta-stat:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.cta-stat .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.cta-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Footer */
.footer {
    background-color: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
    padding: 3rem 0;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #fff !important;
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

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

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-lg {
    padding: 0.8rem 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-outline-light {
    color: white;
    border-color: white;
}

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

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-in-left {
    animation: fadeInLeft 1s ease-in-out;
}

.fade-in-right {
    animation: fadeInRight 1s ease-in-out;
}

.zoom-in {
    animation: zoomIn 1s ease-in-out;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--box-shadow);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-5px);
}

/* Modern Glassmorphism Navbar */
.modern-navbar.bg-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
    border-bottom: 1px solid rgba(52, 152, 219, 0.08);
}

.modern-brand {
    font-size: 1.7rem;
    letter-spacing: 1px;
    color: var(--primary-color) !important;
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

.brand-logo {
    font-size: 2rem;
    color: var(--primary-color);
    background: var(--gradient-primary);
    border-radius: 50%;
    padding: 0.25em 0.4em;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
    margin-right: 0.5em;
}

.modern-navbar .nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin: 0 0.25rem;
    transition: background 0.2s, color 0.2s;
}

.modern-navbar .nav-link:hover, .modern-navbar .nav-link.active {
    background: var(--gradient-primary);
    color: #fff !important;
}

.modern-login-btn {
    background: var(--gradient-primary) !important;
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px rgba(52,152,219,0.15);
    transition: background 0.2s, box-shadow 0.2s;
}

.modern-login-btn:hover {
    background: var(--gradient-secondary) !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(46,204,113,0.15);
}

/* Modern Footer Styles */
.modern-footer.bg-gradient-dark {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    color: #fff;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    box-shadow: 0 -4px 32px rgba(44,62,80,0.10);
    position: relative;
    overflow: hidden;
}

.footer-divider {
    z-index: 2;
}

.footer-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: #bfc9d1;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.modern-footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
}

.modern-footer-social .social-icon:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-2px) scale(1.08);
}

.btn-gradient-donate {
    background: var(--gradient-accent);
    color: #fff !important;
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px rgba(243,156,18,0.15);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-gradient-donate:hover {
    background: var(--gradient-secondary);
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(46,204,113,0.15);
}

.footer hr {
    border-color: rgba(255,255,255,0.15);
}

@media (max-width: 767.98px) {
    .hero-content {
        padding: 1.2rem 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .features-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Responsive text sizing using clamp for headings and main text */

h1, .display-1, .display-2, .display-3, .display-4, .hero-content h1, .section-title {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    line-height: 1.1;
}

h2, .section-title {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
    line-height: 1.15;
}

h3, .feature-title {
    font-size: clamp(1.2rem, 2vw + 0.5rem, 1.7rem);
    line-height: 1.2;
}

.lead, .section-subtitle, .feature-text, .hero-content .lead {
    font-size: clamp(1rem, 1.5vw + 0.7rem, 1.25rem);
    line-height: 1.5;
}

.hero-stat-number {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
}

@media (max-width: 991.98px) {
    .hero-content h1, .section-title {
        font-size: clamp(1.5rem, 6vw + 1rem, 2.5rem);
    }
    .lead, .section-subtitle, .feature-text {
        font-size: clamp(0.95rem, 2vw + 0.6rem, 1.1rem);
    }
}

@media (max-width: 767.98px) {
    .hero-content h1, .section-title {
        font-size: clamp(1.2rem, 7vw + 1rem, 2rem);
    }
    .lead, .section-subtitle, .feature-text {
        font-size: clamp(0.9rem, 2vw + 0.5rem, 1rem);
    }
    .hero-stat-number {
        font-size: clamp(1.2rem, 4vw + 0.8rem, 1.7rem);
    }
}

/* Add to your css/style.css for extra safety */
.features-section, .mission-section, .impact-section, .testimonials-section, .cta-section {
  color: #1e293b !important;
  background: inherit;
  position: relative;
  z-index: 1;
}
.section-title, .section-subtitle, .feature-title, .feature-text {
  color: #1e293b !important;
}