/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Modern color palette for NGO */
    --primary-color: #2563eb;     /* Professional blue */
    --secondary-color: #06b6d4;   /* Cyan accent */
    --accent-color: #f59e0b;      /* Warm amber */
    --success-color: #10b981;     /* Green for success */
    --text-primary: #1f2937;      /* Dark gray */
    --text-secondary: #6b7280;    /* Medium gray */
    --background: #f8fafc;        /* Light background */
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #f97316 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
}

#boxed-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Header Styles */
header {
    background: var(--white);
    color: var(--text-primary);
    padding: 20px 0;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 20px 20px 0 0;
}

header.sticky {
    position: sticky;
    top: 20px;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 0 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin-right: auto;
    border: 2px solid var(--primary-color);
    padding: 2px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0 24px 0 0;
    letter-spacing: 0.5px;
    flex: 1;
    font-weight: 600;
    color: var(--primary-color);
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 8px 16px;
    position: relative;
    letter-spacing: 0.3px;
}

nav a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

nav a.nav-donate-btn {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
    margin-left: 8px;
}

nav a.nav-donate-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    padding: 0;
    text-align: center;
    min-height: 600px;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
    background: var(--gradient-primary);
    margin: 0 30px 30px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-slideshow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slide-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hero-slide-wrapper.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

/* Slide transition animations */
.hero-slide-wrapper.slide-in-right {
    transform: translateX(0);
    opacity: 1;
}

.hero-slide-wrapper.slide-in-left {
    transform: translateX(0);
    opacity: 1;
}

.hero-slide-wrapper.slide-out-right {
    transform: translateX(-100%);
    opacity: 0;
}

.hero-slide-wrapper.slide-out-left {
    transform: translateX(100%);
    opacity: 0;
}

.hero-slide, .hero-slide-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    object-position: center 20%;
    background: var(--text-primary);
    border-radius: 20px;
    z-index: 1;
}

.hero-caption {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: var(--white);
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    z-index: 3;
    letter-spacing: 0.3px;
    text-align: center;
    max-width: 85%;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.hero-slide-wrapper.active .hero-caption {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Progress bar for slideshow */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.hero-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 6s linear;
}

.hero-progress-bar.active {
    width: 100%;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.15);
    box-shadow: var(--shadow-xl);
    color: var(--secondary-color);
}

.hero-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

.hero-arrow-left {
    left: 25px;
}

.hero-arrow-right {
    right: 25px;
}

/* Slide Indicators */
.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 25px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hero-indicator:hover {
    border-color: var(--white);
    transform: scale(1.2);
}

.hero-indicator.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.3);
}

.hero-indicator.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 140px 0 100px 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    min-height: 100%;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.impact-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.impact-stats div {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 32px;
    font-size: 1.1rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 120px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.impact-stats span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
}

/* Button Styles */
.btn {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-md);
    font-family: 'Inter', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Section Styles */
section {
    padding: 60px 30px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mission and Vision Section */
.mission-vision {
    background: transparent;
    color: var(--text-primary);
    padding: 60px 30px;
    margin: 0 -30px;
    position: relative;
    overflow: hidden;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: none;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
    line-height: 1.6;
    color: var(--text-secondary);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.mission-block, .vision-block {
    text-align: left;
    padding: 32px 28px;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
}

.mission-block:hover, .vision-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: #f8fafc;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 16px;
}

.icon-wrapper .icon {
    font-size: 1.8rem;
    color: var(--white);
}

.mission-block h3, .vision-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: none;
}

.mission-block p, .vision-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.mission-points, .vision-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-points li, .vision-points li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.mission-points li::before, .vision-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* General Section Styles */
#about, #work, #programs, #involved, #contact, #testimonials {
    background: #fafbfc;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin: 30px;
    padding: 50px 40px;
    border: 1px solid #e5e7eb;
    position: relative;
}

#about::before, #work::before, #programs::before, 
#involved::before, #contact::before, #testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

/* Section Headers */
section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
}

/* About Section */
.about-columns {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 400px;
}

.about-text-col h2 {
    text-align: left;
    margin-bottom: 24px;
}

.about-text-col p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Work List */
.work-list {
    padding-left: 0;
    list-style: none;
}

.work-list li {
    margin-bottom: 16px;
    font-size: 1.1rem;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.work-list li:hover {
    background: #e0f2fe;
    transform: translateX(8px);
}

/* Work Page Styles */
.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 60px 0;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 32px 24px 24px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.gallery-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.work-details {
    margin: 60px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.work-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 32px 24px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    height: 100%;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #e2e8f0;
}

.work-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
    margin-bottom: 8px;
}

.work-icon svg {
    width: 48px;
    height: 48px;
}

.work-content {
    flex: 1;
}

.work-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.work-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.work-family-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.work-family-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.work-family-content {
    position: relative;
    z-index: 2;
}

.work-family-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.work-family {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.program-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 40px 28px 32px 28px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.program-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.program-card .program-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.program-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.testimonials-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    min-width: 440px;
    min-height: 180px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 32px 28px 24px 28px;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    text-align: center;
    font-style: italic;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s;
}

.testimonial-profile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 20px auto;
    display: block;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.testimonial::before {
    content: '\201C';
    font-size: 3.5rem;
    color: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 18px;
    font-style: normal;
    font-family: serif;
    opacity: 0.7;
}

.testimonial p {
    margin: 0 0 18px 0;
    font-size: 1.15rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-secondary);
}

.testimonial span {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
    font-size: 1.05rem;
}

.slider-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 60px 30px 30px 30px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-top: 30px;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact p {
    margin: 8px 0;
    font-size: 1rem;
}

.footer-contact a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.icon {
    width: 20px;
    height: 20px;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    #boxed-wrapper {
        border-radius: 15px;
    }
    
    header {
        border-radius: 15px 15px 0 0;
    }
    
    header.sticky {
        margin: 0 10px;
        border-radius: 10px;
    }
    
    .hero {
        margin: 0 20px 20px 20px;
        border-radius: 15px;
        min-height: 500px;
        height: 70vh;
        max-height: 600px;
    }
    
    .hero-slide, .hero-slide-wrapper img {
        min-height: 500px;
        object-position: center 25%;
    }
    
    .hero-content {
        padding: 100px 0 80px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .impact-stats {
        gap: 16px;
    }
    
    .impact-stats div {
        padding: 16px 20px;
        min-width: 100px;
    }
    
    .about-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-img {
        height: 250px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 4px;
    }
    
    .hero-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .hero-arrow-left {
        left: 15px;
    }
    
    .hero-arrow-right {
        right: 15px;
    }
    
    .hero-caption {
        bottom: 80px;
        padding: 16px 24px;
        font-size: 1.1rem;
        max-width: 90%;
        border-radius: 12px;
    }
    
    .hero-indicators {
        bottom: 15px;
        padding: 8px 16px;
        gap: 8px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
    
    .mission-vision {
        margin: 0 -20px;
        padding: 50px 20px;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .mission-block, .vision-block {
        padding: 24px 20px;
    }
    
    .mission-block h3, .vision-block h3 {
        font-size: 1.7rem;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 14px;
    }
    
    .icon-wrapper .icon {
        font-size: 1.5rem;
    }    section {
        padding: 40px 20px;
    }
    
    #about, #work, #programs, #involved, #contact, #testimonials {
        margin: 20px;
        padding: 30px 20px;
        border-radius: 15px;
    }

    .testimonials-grid {
        min-width: 300px;
        flex-direction: row;
        gap: 20px;
    }    .testimonial {
        min-width: 250px;
        flex: 1;
    }
    
    footer {
        border-radius: 0 0 15px 15px;
        padding: 40px 20px 20px 20px;
    }
    
    /* Work Page Responsive */
    .work-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
    
    .work-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .work-item {
        padding: 24px 20px;
        gap: 16px;
    }
    
    .work-icon {
        width: 70px;
        height: 70px;
    }
    
    .work-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .work-content h3 {
        font-size: 1.3rem;
    }
    
    .work-content p {
        font-size: 0.95rem;
    }
    
    .work-family-section {
        padding: 40px 24px;
        margin-top: 60px;
    }
    
    .work-family-content h3 {
        font-size: 2rem;
    }
    
    .work-family {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }
    
    .impact-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    #boxed-wrapper {
        border-radius: 10px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        margin: 0 15px 15px 15px;
        border-radius: 10px;
        min-height: 450px;
        height: 60vh;
        max-height: 500px;
    }
    
    .hero-slide, .hero-slide-wrapper img {
        min-height: 450px;
        object-position: center 30%;
    }
    
    .hero-content {
        padding: 80px 0 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        min-width: 250px;
        padding: 24px 20px;
        flex: 1;
        max-width: 100%;
    }

    .testimonials-grid {
        min-width: 250px;
        max-width: 100%;
        flex-direction: column;
        gap: 16px;
    }
    
    #about, #work, #programs, #involved, #contact, #testimonials {
        margin: 15px;
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .mission-vision {
        margin: 0 -15px;
        padding: 40px 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .mission-block, .vision-block {
        padding: 20px 16px;
    }
    
    .mission-block h3, .vision-block h3 {
        font-size: 1.5rem;
    }
    
    .mission-block p, .vision-block p {
        font-size: 1rem;
    }
    
    .mission-points li, .vision-points li {
        font-size: 0.95rem;
        padding-left: 20px;
        margin-bottom: 6px;
    }
    
    .icon-wrapper {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .icon-wrapper .icon {
        font-size: 1.2rem;
    }
    
    footer {
        border-radius: 0 0 10px 10px;
        padding: 30px 15px 15px 15px;
    }
    
    /* Work Page Mobile Responsive */
    .work-gallery {
        margin: 30px 0;
    }
    
    .gallery-item {
        border-radius: 12px;
    }
    
    .gallery-overlay {
        padding: 24px 16px 16px;
    }
    
    .gallery-overlay h4 {
        font-size: 1.2rem;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
    }
    
    .work-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .work-item {
        padding: 20px 16px;
        gap: 16px;
    }
    
    .work-icon {
        width: 60px;
        height: 60px;
    }
    
    .work-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .work-content h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .work-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .work-family-section {
        padding: 32px 16px;
        margin-top: 40px;
        border-radius: 16px;
    }
    
    .work-family-content h3 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .work-family {
        font-size: 1rem;
        margin-bottom: 28px;
        line-height: 1.6;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* Gallery Styles */
#gallery {
    padding: 80px 0;
    background: var(--background);
}

#gallery h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

#gallery h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary-color);
}

/* Responsive gallery adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-grid img {
        height: 200px;
        border-radius: 12px;
    }
    
    #gallery h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gallery-grid img {
        height: 180px;
        border-radius: 10px;
    }
    
    #gallery h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.team-section .section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.team-section .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: -0.02em;
}

.team-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.team-section .section-header p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.team-member {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.team-member:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.team-member:hover::before {
    opacity: 1;
}

.team-img-wrapper {
    height: 340px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.team-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1.05) contrast(1.1);
    /* Optimize image rendering for better quality */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.team-member:hover .team-img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.15);
}

.team-content {
    padding: 40px 36px 36px;
    position: relative;
}

.team-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.team-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    margin-top: 8px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.team-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 24px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.team-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-weight: 400;
}

.team-content p:last-child {
    margin-bottom: 0;
}

.team-content p:first-of-type {
    font-weight: 500;
    color: var(--text-primary);
}

.team-contact {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.team-email {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.team-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    color: white;
}

.team-email:active {
    transform: translateY(0);
}

/* Team Section Responsive */
@media (max-width: 1024px) {
    .team-grid {
        max-width: 900px;
        gap: 50px;
    }
    
    .team-img-wrapper {
        height: 320px;
    }
}

/* Work Grid Responsive - Medium screens */
@media (max-width: 1024px) {
    .work-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .work-item {
        padding: 28px 22px;
    }
    
    .work-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 80px 0;
    }
    
    .team-section .section-header {
        margin-bottom: 60px;
    }
    
    .team-section .section-header h2 {
        font-size: 2.8rem;
    }
    
    .team-section .section-header p {
        font-size: 1.2rem;
        max-width: 500px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 600px;
    }
    
    .team-member {
        border-radius: 20px;
    }
    
    .team-img-wrapper {
        height: 280px;
    }
    
    .team-content {
        padding: 32px 28px;
    }
    
    .team-content h3 {
        font-size: 1.8rem;
    }
    
    .team-content h4 {
        font-size: 1rem;
    }
    
    .team-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 60px 0;
    }
    
    .team-section .section-header {
        margin-bottom: 50px;
    }
    
    .team-section .section-header h2 {
        font-size: 2.2rem;
    }
    
    .team-section .section-header h2::after {
        width: 80px;
        height: 4px;
    }
    
    .team-section .section-header p {
        font-size: 1.1rem;
        max-width: 400px;
    }
    
    .team-grid {
        max-width: 450px;
        gap: 32px;
    }
    
    .team-member {
        border-radius: 18px;
    }
    
    .team-member:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .team-img-wrapper {
        height: 240px;
    }
    
    .team-content {
        padding: 24px 20px;
    }
    
    .team-content::before {
        width: 50px;
        height: 3px;
    }
    
    .team-content h3 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .team-content h4 {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .team-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    .team-contact {
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .team-email {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
