/* --- CSS Variables --- */
:root {
    --primary-color: #4A90E2; /* Sophisticated Blue */
    --secondary-color: #50C878; /* Muted Emerald Green */
    --accent-color: #E1AD01; /* Ochre/Mustard Gold */
    --text-dark: #2C3E50; /* Dark Charcoal */
    --text-light: #ECF0F1; /* Light Gray */
    --background-light: #F8F8F8;
    --background-dark: #34495E; /* Dark Blue-Gray */
    --background-dark-alt: #283747; /* Slightly darker for contrast */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-deep: 0 12px 35px rgba(0, 0, 0, 0.18);

    --transition-speed: 0.3s ease-in-out;
}

/* --- Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 0.8em;
    font-weight: 700;
}

h1 { font-size: 3.2rem; line-height: 1.2; }
h2 { font-size: 2.5rem; line-height: 1.3; }
h3 { font-size: 1.8rem; line-height: 1.4; }
p { margin-bottom: 1em; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center { text-align: center; }
.text-light { color: var(--text-light); }

/* --- Utility Classes for Design --- */
.border-radius-sm { border-radius: var(--border-radius-sm); }
.border-radius-lg { border-radius: var(--border-radius-lg); }

.shadow-lift {
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.shadow-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.hover-lift {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
}

/* --- Section Styling --- */
section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.section-dark {
    background-color: var(--background-dark);
    color: var(--text-light);
}
.section-dark-alt {
    background-color: var(--background-dark-alt);
    color: var(--text-light);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}
.section-dark .section-title, .section-dark-alt .section-title {
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #667;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.section-dark .section-subtitle, .section-dark-alt .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Grid Layouts --- */
.grid-layout-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.grid-layout-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- Buttons (for placeholders/non-interactive display) --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
    box-shadow: var(--shadow-medium);
}
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #6FA8DC);
    color: white;
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}
.btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), #82E0AA);
    color: white;
    box-shadow: 0 6px 15px rgba(80, 200, 120, 0.3);
}
.btn-secondary:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 20px rgba(80, 200, 120, 0.4);
}

/* --- Header --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.05em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.logo a:hover {
    color: var(--secondary-color);
}
.main-nav .nav-list {
    list-style: none;
    display: flex;
}
.main-nav .nav-list li {
    margin-left: 2.5rem;
}
.main-nav .nav-list a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.3rem;
}
.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}
.main-nav .nav-list a:hover::after {
    width: 100%;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}
.nav-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--text-dark);
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background: url('images/image_6.jpg') no-repeat center center/cover;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(80, 200, 120, 0.7));
    backdrop-filter: blur(2px);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}
.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.6rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-scroll-indicator {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;.8;
}
.hero-scroll-indicator span {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.scroll-arrow {
    width: 25px;
    height: 25px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: scrollArrow 1.5s infinite;
}

/* --- About Section --- */
.about-section .image-wrapper {
    position: relative;
    padding: 1rem; /* Space for the shadow */
    background-color: transparent; /* Ensures shadow is visible */
}
.about-section .image-wrapper img {
    position: relative;
    z-index: 2;
    background-color: white; /* For a clean edge */
}
.about-section .image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    z-index: 1;
    transform: rotate(-3deg) scale(1.03); /* Subtle offset background */
    opacity: 1;.6;
}

/* --- Focus Section Cards --- */
.focus-card {
    background-color: var(--background-dark-alt);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}
.focus-card:hover {
    background-color: #3f546c; /* Slightly lighter dark */
}
.focus-card .card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(80, 200, 120, 0.3);
}
.focus-card h3 {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}
.focus-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* --- Resources Section Cards --- */
.resource-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-deep);
}
.resource-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transition: transform 0.5s ease-out;
}
.resource-card:hover img {
    transform: scale(1.05);
}
.resource-card h3 {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
}
.resource-card p {
    padding: 0 1.5rem 1rem 1.5rem;
    color: #555;
    font-size: 0.95rem;
}
.resource-card .read-more {
    display: inline-block;
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}
.resource-card .read-more::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left var(--transition-speed);
}
.resource-card .read-more:hover::after {
    margin-left: 10px;
}

/* --- CTA Section (Placeholder for engagement) --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6FA8DC 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}
.cta-section .section-title {
    color: white;
}
.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}
.placeholder-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}
.placeholder-action span {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.95);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--background-dark-alt);
    color: var(--text-light);
    padding: 4rem 0;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}
.footer-brand h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}
.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}
.footer-nav h4, .footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}
.footer-nav ul {
    list-style: none;
}
.footer-nav ul li {
    margin-bottom: 0.8rem;
}
.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}
.footer-nav a:hover {
    color: var(--secondary-color);
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.1rem;
    margin-right: 10px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
.social-icons a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* --- Animations --- */
@keyframes scrollArrow {
    0% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
    30% { opacity: 1; }
    70% { transform: rotate(45deg) translate(-10px, -10px); opacity: 1; }
    100% { transform: rotate(45deg) translate(-10px, -10px); opacity: 1; }
}

.scroll-reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 1;
    transform: translateY(20px);
}
.fade-in-up.is-visible {
    animation: fadeInUp 1s ease-out forwards;
}
.fade-in-up.delay-1 { animation-delay: 0.3s; }
.fade-in-up.delay-2 { animation-delay: 0.6s; }
.fade-in-up.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .grid-layout-2-col, .grid-layout-3-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-section .image-wrapper,
    .impact-section .image-wrapper {
        order: -1; /* Image first on mobile for some sections */
    }
    .container {
        padding: 0 1.5rem;
    }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.3rem; }
    section { padding: 4rem 0; }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-nav ul { padding: 0; }
    .footer-social { margin-top: 1rem; }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background-dark-alt);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease-in-out;
        z-index: 999;
    }
    .main-nav .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    .main-nav .nav-list li {
        margin: 1.5rem 0;
        width: 100%;
    }
    .main-nav .nav-list a {
        color: var(--text-light);
        font-size: 1.4rem;
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }
    .main-nav .nav-list a::after {
        background-color: var(--secondary-color);
        left: 50%;
        transform: translateX(-50%);
    }
    .main-nav .nav-list a:hover::after {
        width: 80%;
    }
    .nav-toggle {
        display: flex;
    }

    body.nav-open .main-nav {
        right: 0;
    }
    body.nav-open .nav-toggle .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    body.nav-open .nav-toggle .bar:nth-child(2) {
        opacity: 1;
    }
    body.nav-open .nav-toggle .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-section {
        padding-top: 60px; /* Adjust for smaller header */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .focus-card, .resource-card {
        padding: 1.8rem;
    }
    .resource-card h3 {
        font-size: 1.4rem;
    }
    .resource-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }
    .btn { padding: 0.8rem 2rem; font-size: 1rem; }
}


/* Animation states when visible - FIXED: Only opacity: 1 */
.animate-fade-in-up.visible,
.animate-fade-in-left.visible,
.animate-fade-in-right.visible,
.animate-bounce-y.visible,
.section-scroll-animate.visible,
.text-animate-up.visible,
.reveal-item.visible,
.scroll-reveal.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up.visible.fade-in,
.section-scroll-animate.visible.fade-in {
    opacity: 1;
}

.animate-fade-in-up.visible.slide-up,
.section-scroll-animate.visible.slide-up {
    transform: translateY(0);
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
