/* Global Styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #f39c12;
    --secondary-dark: #e67e22;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --gray-light: #ecf0f1;
    --gray: #bdc3c7;
    --gray-dark: #7f8c8d;
    --text-color: #34495e;
    --font-primary: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Open Sans', Arial, sans-serif;
    --font-logo: 'Pacifico', cursive, serif;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

section {
    padding: 100px 0;
    position: relative;
}

section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 40px;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* This ensures the default section-intro styling doesn't override the impact section */
section:not(.impact) .section-intro {
    color: var(--gray-dark);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    border-radius: 8px;
    margin-right: 15px;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-logo);
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--dark-color);
    letter-spacing: 0.5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    width: 100%;
}

.donate-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.3s;
}

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

.donate-btn::after {
    display: none;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.8), rgba(52, 152, 219, 0.6)), url('../media/children-backpacks.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--secondary-dark);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.4);
}

.cta-button:hover::before {
    width: 100%;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-down:hover {
    opacity: 1;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 50%;
    transform: translate(200px, -200px);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-text, .about-image {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 30px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    z-index: 0;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Programs Section */
.programs {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.programs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

.program-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.program-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    text-align: center;
    flex: 1;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.program-card:hover {
    transform: translateY(-15px);
    border-bottom: 4px solid var(--primary-color);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(52, 152, 219, 0.05), transparent);
    transition: height 0.4s;
}

.program-card:hover::before {
    height: 100%;
}

.program-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.program-card:hover .program-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.program-card:hover h3 {
    color: var(--primary-color);
}

.program-card p {
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.program-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s;
}

.program-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Impact Section */
.impact {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 150px;
    opacity: 0.3;
}

.impact h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.impact h2::after {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.impact .section-intro {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto 60px;
}

.stat {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    flex: 1;
    min-width: 240px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.label {
    font-size: 1.2rem;
    opacity: 1;
    letter-spacing: 1px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Gallery Section */
.gallery {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(243, 156, 18, 0.05);
    border-radius: 50%;
    transform: translate(150px, 150px);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    position: relative;
    height: 280px;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: white;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-item.video {
    grid-column: span 2;
}

.gallery-item.video::after {
    content: '\f144';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.9;
    z-index: 3;
    transition: all 0.3s;
}

.gallery-item.video:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Donate Section */
.donate {
    background-color: var(--light-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donate::before, .donate::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

.donate::before {
    top: -100px;
    left: -100px;
    background: radial-gradient(rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0) 70%);
}

.donate::after {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(rgba(243, 156, 18, 0.05) 0%, rgba(243, 156, 18, 0) 70%);
}

.donate-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: var(--gray-dark);
    line-height: 1.8;
}

.donation-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.donation-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    flex: 1;
    max-width: 400px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

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

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.donation-card h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.donation-card p {
    color: var(--gray-dark);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.amount-btn {
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    background-color: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 90px;
}

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

.custom-amount {
    margin-bottom: 30px;
}

.custom-amount label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

.custom-amount input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s;
}

.custom-amount input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.donate-submit {
    padding: 15px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.donate-submit:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.03) 0%, transparent 50%, rgba(243, 156, 18, 0.03) 100%);
}

.contact-content {
    display: flex;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info {
    padding-right: 40px;
}

.contact-intro {
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--gray-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: rgba(52, 152, 219, 0.05);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item p {
    font-weight: 500;
    color: var(--dark-color);
}

.social-media {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.submit-btn {
    padding: 15px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    display: inline-block;
}

.submit-btn:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.footer-links h3, .footer-newsletter h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h3::after, .footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.footer-links ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

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

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

.footer-newsletter form {
    display: flex;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-newsletter input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
}

.footer-newsletter input:focus {
    outline: none;
}

.footer-newsletter button {
    padding: 0 25px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.footer-newsletter button:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1100px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 40px;
    }
    
    .about-image::before {
        display: none;
    }
    
    .program-cards {
        flex-direction: column;
    }
    
    .donation-options {
        flex-direction: column;
        align-items: center;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .donation-card {
        width: 100%;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-logo, .footer-links, .footer-newsletter {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 90px);
        background-color: white;
        transition: left 0.3s;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
        overflow-y: auto;
    }
    
    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 100;
        animation: slideDown 0.3s ease forwards;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }
    
    .lang-switcher {
        margin-left: 0;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid var(--gray-light);
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .gallery-item.video {
        grid-column: span 1;
    }
    
    .impact-stats {
        flex-direction: column;
    }
    
    .social-media {
        justify-content: center;
    }
    
    /* Adjust header position without language selector at top */
    header {
        top: 0;
    }
    
    /* Improve touch targets */
    .social-icon, .program-btn, .cta-button, .submit-btn, .donate-submit {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Make forms more mobile friendly */
    .form-group input, .form-group textarea, .custom-amount input, .amount-btn {
        padding: 14px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Improve spacing */
    .section-intro {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-newsletter form {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .footer-newsletter input {
        width: 100%;
        border-radius: 8px 8px 0 0;
        text-align: center;
    }
    
    .footer-newsletter button {
        width: 100%;
        padding: 15px;
        border-radius: 0 0 8px 8px;
    }
    
    /* Stacked gallery for smallest screens */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Full width form elements */
    .amount-buttons {
        flex-wrap: wrap;
    }
    
    .amount-btn {
        flex: 1 0 40%;
        margin: 5px;
    }
    
    /* Larger buttons for better touch */
    .cta-button, .program-btn, .donate-submit, .submit-btn {
        padding: 15px 25px;
        width: 100%;
        font-size: 16px;
    }
    
    /* Adjust section padding */
    section {
        padding: 60px 0;
    }
    
    /* Padding for stacked elements */
    .about-text, .contact-info {
        padding-bottom: 30px;
    }
    
    /* Better spacing on small screens */
    .program-card, .donation-card {
        margin-bottom: 30px;
    }
    
    /* Full-width elements on mobile */
    .footer-logo, .footer-links, .footer-newsletter {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Add fixed mobile header when scrolled down */
@media (max-width: 768px) {
    header.scrolled {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }
    
    header.scrolled .logo img {
        height: 50px;
    }
    
    /* Adjust content padding when header is fixed */
    body.scrolled-header {
        padding-top: 80px;
    }
}

/* Fix input zooming on iOS */
@media screen and (-webkit-min-device-pixel-ratio:0) { 
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    input[type="week"],
    input[type="number"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="tel"],
    input[type="color"] {
        font-size: 16px;
    }
}

/* Ensure all images are fully responsive */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improve gallery image ratio */
.gallery-item {
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* Better tap target for mobile menu */
.menu-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alert Messages */
.alert {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    padding: 15px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

.alert .container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-success {
    background-color: var(--success-color);
    color: white;
}

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

.alert-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.alert-close:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for program cards */
.program-card:nth-child(1) {
    transition-delay: 0.1s;
}

.program-card:nth-child(2) {
    transition-delay: 0.3s;
}

.program-card:nth-child(3) {
    transition-delay: 0.5s;
}

/* Staggered animations for stats */
.stat:nth-child(1) {
    transition-delay: 0.1s;
}

.stat:nth-child(2) {
    transition-delay: 0.3s;
}

.stat:nth-child(3) {
    transition-delay: 0.5s;
}

/* Gallery lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    animation: scaleIn 0.3s ease-in-out;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border: 5px solid white;
    border-radius: 5px;
}

.lightbox-content p {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 2rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Form validation styles */
input.error, textarea.error {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.form-group {
    position: relative;
}

.form-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: var(--success-color);
    color: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: slideDown 0.5s ease-in-out;
}

/* Additional styles for interactive elements */
.program-btn, .cta-button, .donate-submit, .submit-btn {
    position: relative;
    overflow: hidden;
}

.program-btn::after, .cta-button::after, .donate-submit::after, .submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

.program-btn:focus:not(:active)::after, 
.cta-button:focus:not(:active)::after, 
.donate-submit:focus:not(:active)::after, 
.submit-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Language Switcher */
.lang-switcher {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.lang-link {
    color: var(--dark-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 0 5px;
}

.lang-link:hover, .lang-link.active {
    color: var(--primary-color);
    text-decoration: none;
}

.lang-divider {
    color: var(--gray);
    margin: 0 2px;
} 