/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Light Mode */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(215, 25%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(215, 25%, 15%);
    --primary: hsl(210, 80%, 45%);
    --primary-light: hsl(210, 80%, 60%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 20%, 96%);
    --secondary-foreground: hsl(215, 25%, 15%);
    --muted: hsl(210, 20%, 96%);
    --muted-foreground: hsl(215, 15%, 50%);
    --accent: hsl(170, 35%, 42%);
    --accent-light: hsl(170, 35%, 55%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(210, 20%, 90%);

    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsla(210, 80%, 45%, 0.15);
    --shadow-card: 0 4px 20px -4px hsla(210, 50%, 40%, 0.1);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
#navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: var(--transition-smooth);
    background-color: hsla(0, 0%, 100%, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-elegant);
}

#navigation.scrolled {
    background-color: hsla(0, 0%, 100%, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-elegant);
}

#navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(170, 35%, 42%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-smooth);
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

#navigation.scrolled .logo-text {
    color: var(--foreground);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    transition: var(--transition-smooth);
    position: relative;
}

#navigation.scrolled .nav-links a {
    color: var(--foreground);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

#navigation.scrolled .mobile-menu-btn {
    color: var(--foreground);
}

.close-icon {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(0, 0%, 100%, 0.98);
    backdrop-filter: blur(16px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-content a {
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--foreground);
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.mobile-menu-content a:hover {
    color: var(--accent);
}

/* Buttons */
.btn-primary,
.btn-accent,
.btn-outline,
.btn-gradient,
.btn-light,
.btn-outline-light {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(170, 35%, 42%) 100%);
    color: white;
    box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
    box-shadow: var(--shadow-elegant);
}

.btn-accent:hover {
    background-color: var(--accent-light);
}

.btn-outline {
    background-color: hsla(0, 0%, 100%, 0.1);
    color: var(--primary-foreground);
    border: 1px solid hsla(0, 0%, 100%, 0.3);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background-color: hsla(0, 0%, 100%, 0.2);
}

.btn-gradient {
    background: linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(170, 35%, 42%) 100%);
    color: white;
    box-shadow: var(--shadow-elegant);
}

.btn-gradient:hover {
    opacity: 0.9;
}

.btn-light {
    background-color: white;
    color: var(--primary);
    box-shadow: var(--shadow-elegant);
}

.btn-light:hover {
    background-color: var(--secondary);
}

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

.btn-outline-light:hover {
    background-color: hsla(0, 0%, 100%, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(210, 80%, 45%, 0.95) 0%, hsla(170, 35%, 42%, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 5rem 1rem;
}

.hero-text {
    max-width: 48rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    color: hsla(0, 0%, 100%, 0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--background), transparent);
    z-index: 10;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

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

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(210, 20%, 98%) 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

.value-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-smooth);
}

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

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(170, 35%, 42%) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* Services Section */
.services-section {
    background-color: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 87.5rem;
    margin: 0 auto;
}

.service-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.service-card:hover {
    box-shadow: var(--shadow-elegant);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    background-color: hsla(170, 35%, 42%, 0.1);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* Research Section */
.research-section {
    background: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(210, 20%, 98%) 100%);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

.research-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.research-card:hover {
    box-shadow: var(--shadow-elegant);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.research-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(170, 35%, 42%) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.research-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.research-status {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.research-card p {
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* Humanitarian Section */
.humanitarian-section {
    background-color: var(--background);
}

.humanitarian-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 87.5rem;
    margin: 0 auto;
}

.humanitarian-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.humanitarian-content>p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.impact-stat {
    text-align: center;
}

.impact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: hsla(170, 35%, 42%, 0.1);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.impact-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.impact-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.humanitarian-image {
    position: relative;
}

.humanitarian-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-elegant);
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(60px);
}

.decorative-circle-1 {
    width: 8rem;
    height: 8rem;
    background-color: var(--accent);
    bottom: -1.5rem;
    left: -1.5rem;
}

.decorative-circle-2 {
    width: 10rem;
    height: 10rem;
    background-color: var(--primary);
    top: -1.5rem;
    right: -1.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(170, 35%, 42%) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content>p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.cta-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.cta-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--foreground);
    color: var(--background);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: hsla(0, 0%, 100%, 0.7);
    margin: 1rem 0;
    line-height: 1.8;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-contact {
    margin-top: 1.5rem;
    color: hsla(0, 0%, 100%, 0.7);
}

.footer-contact p {
    margin: 0.5rem 0;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links a {
    display: block;
    color: hsla(0, 0%, 100%, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
    color: hsla(0, 0%, 100%, 0.7);
}

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

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

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

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

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

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

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

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .humanitarian-content h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .humanitarian-grid {
        gap: 2rem;
    }

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

@media (min-width: 769px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 4.5rem;
    }
}