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

:root {
    --primary: #1B5E20;
    --secondary: #2E7D32;
    --accent: #4CAF50;
    --light: #E8F5E9;
    --lighter: #F1F8E9;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    height: 76px;
    background: rgba(255,255,255,0.98);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.nav-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links a {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--light);
    color: var(--primary);
}

.lang-btn {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.lang-btn:hover {
    background: var(--secondary) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1565C0, #2E7D32);
    color: var(--white);
    text-align: center;
    padding: 100px 5% 60px;
    gap: 30px;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-logo {
    height: 100px;
    width: auto;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 10px;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-green {
    background: var(--accent);
    color: var(--white);
}

.btn-green:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--white);
    font-size: 2.8rem;
    opacity: 0.9;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    opacity: 0.8;
}

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

/* Hero Services Cards */
.hero-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
}

.hero-service-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 36px 20px;
    text-align: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-service-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.hero-service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.hero-service-card:hover .hero-service-icon {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1) rotate(-5deg);
}

.hero-service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hero-service-card p {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 300;
    margin: 0;
    text-shadow: none;
}

/* Scroll Animations */
.animate-hidden {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-hidden.animate-in {
    opacity: 1;
    transform: translate(0, 0) scale(1) !important;
}

.animate-fade-up {
    transform: translateY(50px);
}

.animate-fade-left {
    transform: translateX(-60px);
}

.animate-fade-right {
    transform: translateX(60px);
}

.animate-scale-in {
    transform: scale(0.85);
}

/* Stat number animation */
.stat-number {
    display: inline-block;
}

/* Section Styles */
.section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-light {
    background: var(--lighter);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

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

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card-image {
    height: 260px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 30px;
}

.service-card-body h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.service-card-body .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Generations Section */
.generations-content {
    max-width: 1200px;
    margin: 0 auto;
}

.generations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.generations-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.generations-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.generations-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.generations-gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.generations-gallery img:first-child {
    grid-column: 1 / -1;
    height: 240px;
}

/* Impact Section */
.impact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.impact-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.impact-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.impact-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.impact-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin: 20px 0 8px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer ul {
    list-style: none;
}

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

.footer ul a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer ul a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Page Banner (for subpages) */
.page-banner {
    padding: 140px 5% 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.page-banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 16px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: underline;
}

/* Subpage Content */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 5%;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 16px;
    margin-top: 30px;
}

.content-section p, .content-section li {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.content-section ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.content-section ul li {
    margin-bottom: 8px;
}

.content-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.content-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.content-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

/* Canteen Masonry Gallery */
.canteen-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.canteen-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.canteen-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.canteen-gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.canteen-gallery-item:hover img {
    transform: scale(1.08);
}

.canteen-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.canteen-gallery-item:hover::after {
    opacity: 1;
}

.canteen-gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.canteen-gallery-item:nth-child(2) {
    grid-column: span 2;
}

.canteen-gallery-item:nth-child(3) {
    grid-row: span 2;
}

.canteen-gallery-item:nth-child(6) {
    grid-column: span 2;
}

.canteen-gallery-item:nth-child(8) {
    grid-column: span 2;
}

.canteen-gallery-item:nth-child(9) {
    grid-column: span 2;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.team-card h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Donate Section */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.donate-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.donate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.donate-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.donate-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.donate-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 6px;
    line-height: 1.6;
}

.donate-card .btn {
    margin-top: 16px;
}

@media (max-width: 768px) {
    .donate-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid,
    .generations-grid,
    .impact-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-services {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

    .about-image img,
    .impact-image img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 88px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        padding: 12px 16px;
        display: block;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .hero {
        padding: 90px 5% 50px;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-logo {
        height: 80px;
    }

    .hero-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hero-service-card {
        padding: 24px 16px;
    }

    .hero-service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 14px;
    }

    .hero-service-card h3 {
        font-size: 1.1rem;
    }

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

    .canteen-gallery-item:nth-child(1),
    .canteen-gallery-item:nth-child(2),
    .canteen-gallery-item:nth-child(3),
    .canteen-gallery-item:nth-child(6),
    .canteen-gallery-item:nth-child(8),
    .canteen-gallery-item:nth-child(9) {
        grid-column: auto;
        grid-row: auto;
    }

    .section {
        padding: 60px 5%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .about-grid,
    .generations-grid,
    .impact-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .generations-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .generations-gallery img:first-child {
        height: 200px;
    }

    .generations-gallery img {
        height: 140px;
    }

    .content-gallery {
        grid-template-columns: 1fr 1fr;
    }

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

    .footer-brand p {
        max-width: 100%;
    }

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

    .page-banner h1 {
        font-size: 2rem;
    }

    .page-content {
        padding: 40px 5%;
    }

    .about-image img,
    .impact-image img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-logo {
        height: 70px;
    }

    .hero-services {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-service-card {
        padding: 20px 16px;
    }

    .canteen-gallery {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .service-card-image {
        height: 200px;
    }

    .content-gallery {
        grid-template-columns: 1fr;
    }

    .content-gallery img {
        height: 200px;
    }
}
