/* ROOT VARIABLES ============================================ */
:root {
    /* Fonts */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Base Colors */
    --bg-color-light: #ECEFF1; /* Light grey for neumorphic base */
    --bg-color-dark: #212121; /* Dark base for contrast sections */
    --text-color-dark: #222222;
    --text-color-light: #FFFFFF;
    --text-color-muted: #5F6368; /* Slightly darker muted color */
    --text-on-dark-bg: #E0E0E0;

    /* Gradient & Accent Colors */
    --gradient-primary: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%); /* Deep Purple to Blue */
    --gradient-secondary: linear-gradient(135deg, #FF6B6B 0%, #FFD166 100%); /* Coral to Yellow */
    --color-accent: #FF6B6B; /* Coral as primary accent */
    --color-accent-hover: #FF8787;

    /* Neumorphic Shadows */
    --neumorphic-base-color: var(--bg-color-light);
    --neumorphic-shadow-light: rgba(255, 255, 255, 0.8);
    --neumorphic-shadow-dark: rgba(180, 190, 200, 0.6);
    --neumorphic-shadow-outset: 8px 8px 16px var(--neumorphic-shadow-dark), -8px -8px 16px var(--neumorphic-shadow-light);
    --neumorphic-shadow-inset: inset 6px 6px 12px var(--neumorphic-shadow-dark), inset -6px -6px 12px var(--neumorphic-shadow-light);
    --neumorphic-shadow-outset-small: 4px 4px 8px var(--neumorphic-shadow-dark), -4px -4px 8px var(--neumorphic-shadow-light);

    /* Neo-Brutalism Elements */
    --neo-border: 2px solid var(--text-color-dark);
    --neo-border-light: 2px solid var(--text-color-light);

    /* UI Elements */
    --border-radius-main: 15px;
    --border-radius-small: 8px;

    /* Layout & Spacing */
    --container-width: 1200px;
    --padding-section-y: 60px; /* Reduced default padding */
    --header-height: 80px;
}

/* GLOBAL STYLES ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--bg-color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height); /* For fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color-dark);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for headings */
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    max-width: 75ch; /* Improve readability */
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover, a:focus {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

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

/* UTILITY CLASSES ============================================ */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section-padding {
    padding-top: var(--padding-section-y);
    padding-bottom: var(--padding-section-y);
}

.section-padding-alt {
    padding-top: var(--padding-section-y);
    padding-bottom: var(--padding-section-y);
    background-color: var(--bg-color-dark); /* Default for alt sections */
    color: var(--text-on-dark-bg);
    position: relative;
}

.section-padding-alt h1,
.section-padding-alt h2,
.section-padding-alt h3,
.section-padding-alt h4 {
    color: var(--text-color-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.section-padding-alt p,
.section-padding-alt .section-subtitle {
    color: var(--text-on-dark-bg);
}
.section-padding-alt a {
    color: var(--color-accent); /* Keep accent color for links */
}
.section-padding-alt a:hover {
    color: var(--color-accent-hover);
}


.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.8rem; /* Archivo Black is bold, size slightly adjusted */
}

.section-subtitle {
    text-align: center;
    color: var(--text-color-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.subsection-title {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Background overlays for sections with background images */
.hero-overlay,
.process-overlay,
.news-overlay,
.testimonials-overlay,
.community-overlay,
.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}
/* Ensure content is above overlay */
.hero-content,
.process-section .container,
.news-section .container,
.testimonials-section .container,
.community-section .container,
.contact-section .container {
    position: relative;
    z-index: 2;
}


/* BUTTONS ============================================ */
.cta-button, button, input[type="submit"], input[type="button"], .cta-button-secondary, .cta-button-small {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 0.8em 1.8em;
    border-radius: var(--border-radius-small);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal; /* Archivo Black is already bold */
}

.cta-button {
    background-image: var(--gradient-primary);
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: var(--neo-border-light); /* Subtle Neo-Brutalism */
}
.cta-button:hover, .cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--text-color-light);
    text-decoration: none;
}
.cta-button:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 2px 5px rgba(0,0,0,0.15);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}
.cta-button-secondary:hover, .cta-button-secondary:focus {
    background-color: var(--color-accent);
    color: var(--text-color-light);
    text-decoration: none;
}

.cta-button-small {
    font-size: 0.9rem;
    padding: 0.6em 1.2em;
    background-image: var(--gradient-secondary);
    color: var(--text-color-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.cta-button-small:hover, .cta-button-small:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: var(--text-color-dark);
    text-decoration: none;
}


/* FORMS ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color-muted); /* Light text for dark contact form */
}
.contact-section .form-group label {
     color: var(--text-on-dark-bg);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--border-radius-small);
    background-color: var(--neumorphic-base-color);
    color: var(--text-color-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid rgba(0,0,0,0.1); /* Subtle border for definition */
    box-shadow: var(--neumorphic-shadow-inset);
    transition: box-shadow 0.3s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px var(--color-accent); /* Focus ring */
    border-color: var(--color-accent);
}
textarea {
    min-height: 120px;
    resize: vertical;
}

/* HEADER ============================================ */
.site-header {
    background-color: rgba(236, 239, 241, 0.9); /* Neumorphic base with slight transparency */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-color-dark);
    text-decoration: none;
}
.logo-accent {
    color: var(--color-accent);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.main-nav .nav-list li {
    margin-left: 1.8rem;
}
.main-nav .nav-list a {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5em 0;
    position: relative;
    transition: color 0.3s ease;
}
.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.main-nav .nav-list a:hover,
.main-nav .nav-list a:focus,
.main-nav .nav-list a.active { /* Add .active class via JS for current page */
    color: var(--color-accent);
    text-decoration: none;
}
.main-nav .nav-list a:hover::after,
.main-nav .nav-list a:focus::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color-dark);
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color-dark);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile Menu - Toggled State */
.nav-toggle.open .hamburger {
    background-color: transparent; /* Middle bar disappears */
}
.nav-toggle.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle.open .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}


/* HERO SECTION ============================================ */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    overflow: hidden; /* For parallax layers */
}
.hero-content {
    padding: 4rem 1rem;
    max-width: 900px;
}
.hero-section h1 {
    font-size: 3.5rem; /* Archivo Black is very impactful */
    margin-bottom: 1.5rem;
    color: var(--text-color-light); /* Explicitly white as requested */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
.hero-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-color-light); /* Explicitly white */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.parallax-layer-1, .parallax-layer-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 0;
    pointer-events: none;
}
.parallax-layer-1 { background-size: contain; /* Adjust as needed */ }
.parallax-layer-2 { background-size: contain; /* Adjust as needed */ }


/* CARDS (Global) ============================================ */
.card {
    background-color: var(--neumorphic-base-color);
    border-radius: var(--border-radius-main);
    box-shadow: var(--neumorphic-shadow-outset);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers .card-image and .card-content if not full width */
    height: 100%; /* For equal height cards in a grid */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px var(--neumorphic-shadow-dark), -12px -12px 24px var(--neumorphic-shadow-light);
}
.card-image {
    width: 100%;
    height: 220px; /* Consistent height for card images */
    overflow: hidden;
    display: flex; /* Centers image if smaller */
    justify-content: center;
    align-items: center;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content {
    padding: 1.5rem;
    text-align: center; /* Centers text content within this block */
    flex-grow: 1; /* Allows content to take up space for equal height cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if present */
}
.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.card .read-more-link {
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: auto; /* Pushes to bottom */
}
.card .read-more-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}


/* INNOVATION SECTION ======================================= */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* OUR PROCESS SECTION ====================================== */
.process-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.step-card {
    background-color: rgba(255,255,255,0.05); /* Subtle glassmorphism */
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: var(--border-radius-main);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: background-color 0.3s ease;
}
.step-card:hover {
    background-color: rgba(255,255,255,0.1);
}
.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.step-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* RESEARCH SECTION ========================================= */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* NEWS SECTION ============================================= */
.news-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.news-slider { /* Placeholder - JS will initialize a slider here */
    display: grid; /* Fallback: show as grid if slider fails */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.news-item .card-image { height: 200px; }


/* SUCCESS STORIES SECTION ================================== */
.success-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.success-story-card .card-image { height: 250px; }


/* TESTIMONIALS SECTION ===================================== */
.testimonials-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.testimonial-slider { /* Placeholder for JS slider */
    display: grid; /* Fallback */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.testimonial-item.card {
    padding: 2rem;
    box-shadow: var(--neumorphic-shadow-outset);
    background-color: var(--neumorphic-base-color); /* On dark bg, cards are light */
    color: var(--text-color-dark);
}
.testimonial-item.card p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color-muted);
}
.testimonial-item.card h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color-dark);
}
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto; /* Center avatar */
    box-shadow: var(--neumorphic-shadow-outset-small);
}
.testimonials-section .card-image { /* Special for testimonials to house avatar */
    height: auto; /* Override default card image height */
    margin-bottom: 1rem;
}


/* EVENTS SECTION =========================================== */
.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.event-item .card-image { height: 180px; }
.event-item .card-content p strong {
    color: var(--text-color-dark);
}
.events-calendar-placeholder {
    background-color: var(--neumorphic-base-color);
    padding: 2rem;
    border-radius: var(--border-radius-main);
    box-shadow: var(--neumorphic-shadow-inset);
    text-align: center;
}

/* COMMUNITY SECTION ======================================== */
.community-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.community-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.community-action-card .card-image { height: 180px; }
.community-action-card .card-content {
    background-color: rgba(var(--bg-color-light-rgb), 0.8); /* Card content on image needs contrast */
    border-radius: 0 0 var(--border-radius-main) var(--border-radius-main);
}
.community-action-card h4 {
     color: var(--text-color-dark); /* Ensure it's dark on light card content bg */
}
.community-action-card p {
     color: var(--text-color-muted); /* Ensure it's dark on light card content bg */
}


/* EXTERNAL RESOURCES SECTION ============================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.resource-card.card {
    padding: 1.5rem;
    text-align: left;
}
.resource-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.resource-card h3 a {
    color: var(--text-color-dark);
}
.resource-card h3 a:hover {
    color: var(--color-accent);
}
.resource-card p {
    font-size: 0.9rem;
}

/* CONTACT SECTION ========================================== */
.contact-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.contact-form-container {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    background-color: rgba(var(--bg-color-light-rgb), 0.1); /* Subtle on dark bg */
    padding: 2.5rem;
    border-radius: var(--border-radius-main);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.contact-section input, .contact-section textarea {
    background-color: rgba(255,255,255,0.8); /* Lighter inputs for dark form bg */
    color: var(--text-color-dark);
    box-shadow: var(--neumorphic-shadow-inset); /* Re-apply for contrast */
}
.contact-section input:focus, .contact-section textarea:focus {
     box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px var(--color-accent);
}
.contact-details {
    text-align: center;
}
.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.contact-link {
    color: var(--color-accent); /* Make email link stand out */
}
.contact-link:hover {
    color: var(--color-accent-hover);
}

/* FOOTER ============================================ */
.site-footer {
    background-color: var(--bg-color-dark);
    color: var(--text-on-dark-bg);
    padding: 3rem 0 1rem 0;
    font-size: 0.9rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}
.footer-column p {
    line-height: 1.6;
    color: #B0BEC5; /* Lighter grey for footer text */
}
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav-list li {
    margin-bottom: 0.6rem;
}
.footer-nav-list a {
    color: #B0BEC5;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-nav-list a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}
.social-links-text { /* For text-based social links */
    list-style: none;
    padding: 0;
    margin: 0;
}
.social-links-text li {
    margin-bottom: 0.5rem;
}
.social-links-text a {
    color: #B0BEC5;
    text-decoration: none;
    font-weight: bold; /* Make them slightly more prominent */
    display: inline-block; /* Allows for better hover effects if needed */
}
.social-links-text a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #455A64; /* Slightly darker separator */
    font-size: 0.85rem;
    color: #78909C; /* Muted color for copyright */
}
.footer-bottom #currentYear {
    font-weight: bold;
}

/* SPECIFIC PAGE STYLES ====================================== */
.page-minimal-centered { /* For success.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height)); /* Assuming header is still present */
    /* If NO header/footer on success page, or they are part of 100vh:
    min-height: 100vh;
    padding-top: 0; remove body padding-top for this specific page if header is not there */
    text-align: center;
    padding: 40px 20px; /* Add some padding */
}
.page-minimal-centered h1 {
    font-size: 2.5rem;
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}
.page-minimal-centered p {
    font-size: 1.2rem;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
}

.page-standard-content { /* For privacy.html, terms.html */
    padding-top: 40px; /* Additional top padding beyond fixed header */
    padding-bottom: 40px;
    min-height: calc(100vh - var(--header-height) - 140px); /* Approx footer height */
}
.page-standard-content .container {
    background-color: #fff; /* White background for content pages */
    padding: 2rem;
    border-radius: var(--border-radius-small);
    box-shadow: var(--neumorphic-shadow-outset);
}
.page-standard-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}
.page-standard-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: var(--neo-border);
    padding-bottom: 0.5rem;
}
.page-standard-content p, .page-standard-content ul, .page-standard-content ol {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.page-standard-content ul, .page-standard-content ol {
    padding-left: 2rem;
}


/* BARBA.JS PAGE TRANSITIONS (Example) ====================== */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}


/* RESPONSIVE STYLES ======================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .header-container {
        /* Allow space for toggle */
    }
    .main-nav .nav-toggle {
        display: block; /* Show hamburger */
    }
    .main-nav .nav-list {
        display: none; /* Hide nav list by default */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-color-light);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #ddd;
    }
    .main-nav .nav-list.nav-list--visible {
        display: flex; /* Show when toggled */
    }
    .main-nav .nav-list li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav .nav-list a {
        display: block;
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    .main-nav .nav-list a::after { display: none; } /* No underline on mobile */
    .main-nav .nav-list li:last-child a { border-bottom: none; }

    .hero-section { min-height: auto; padding: 4rem 0; }
    .hero-section h1 { font-size: 2.2rem; }
    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1rem; }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    .footer-column { text-align: center; }
    .footer-column .logo, .footer-column h4 { justify-content: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }

    .innovation-grid,
    .process-steps,
    .research-grid,
    .news-slider,
    .success-gallery,
    .testimonial-slider,
    .events-list,
    .community-actions,
    .resources-grid {
        grid-template-columns: 1fr; /* Stack on small screens */
    }

    .cta-button, button, input[type="submit"], input[type="button"], .cta-button-secondary, .cta-button-small {
        padding: 0.7em 1.5em;
        font-size: 0.9rem;
    }
    .contact-form-container {
        padding: 1.5rem;
    }
}