/* ==================
   1. ROOT VARIABLES & GENERAL STYLES
   ================== */

:root {
    /* Triadic Color Scheme */
    --primary-color: #0A74DA; /* Deep Blue */
    --secondary-color: #DA2C7D; /* Vibrant Pink/Magenta */
    --accent-color: #2CDA8B; /* Bright Mint Green */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    --overlay-dark: rgba(10, 20, 30, 0.6);
    --overlay-light: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #FFFFFF;

    /* Backgrounds */
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-dark: #111827;
    
    /* Spacing & Borders */
    --container-width: 1140px;
    --border-radius: 8px;
    --transition-speed: 0.4s;
    --easing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles & Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 800;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--easing-function);
}

a:hover {
    color: var(--secondary-color);
}

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

/* ==================
   2. LAYOUT & UTILITY CLASSES
   ================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.section-padding {
    padding: 6rem 0;
}

.section-padding-gradient {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: var(--gradient-primary);
}

.section-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--text-medium);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
}

/* ==================
   3. COMPONENTS
   ================== */

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) var(--easing-function);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(218, 44, 125, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-speed) var(--easing-function);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(10, 116, 218, 0.4);
    color: var(--text-light);
}

.btn:hover::before {
    opacity: 1;
}

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

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) var(--easing-function), box-shadow var(--transition-speed) var(--easing-function);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin-bottom: 0.75rem;
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
    padding-top: 1rem;
    display: inline-block;
}

.card-link::after {
    content: ' →';
    transition: transform var(--transition-speed) var(--easing-function);
    display: inline-block;
}

.card-link:hover::after {
    transform: translateX(5px);
}

.card-horizontal {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}
.card-horizontal .card-image {
    width: 40%;
    height: 180px;
    flex-shrink: 0;
}
.card-horizontal .card-content {
    width: 60%;
    padding: 1rem;
}

/* ==================
   4. HEADER & FOOTER
   ================== */

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 0;
}
.header.scrolled {
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-white);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-medium);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) var(--easing-function);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-heading {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed) var(--easing-function), padding-left var(--transition-speed) var(--easing-function);
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

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

/* ==================
   5. SECTION STYLES
   ================== */

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-light);
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.8;
}

/* --- Mission Section --- */
.mission-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
}
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Placeholder for SVG icons */
}

/* --- Awards Section --- */
.awards-section .light-text {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.awards-section .section-title::after {
    background: var(--text-light);
}

.stats-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-widget {
    text-align: center;
    color: var(--text-light);
}

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

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- External Resources Section --- */
.resource-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}
.resource-list li {
    margin-bottom: 1rem;
}
.resource-link {
    display: block;
    padding: 1.2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) var(--easing-function);
    font-weight: 500;
    border-left: 4px solid var(--primary-color);
}
.resource-link:hover {
    transform: translateX(10px);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.faq-question {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    position: relative;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    transition: transform var(--transition-speed) var(--easing-function);
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-medium);
}

/* --- Contact Section --- */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 1;
}

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    color: var(--text-medium);
    transition: all 0.3s ease;
    z-index: 0;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
}


/* ==================
   6. PAGE-SPECIFIC STYLES
   ================== */

.success-page, .legal-page {
    display: flex;
    flex-direction: column;
}

.success-page .main-container, .legal-page .main-container {
    padding-top: 100px;
}

.success-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 200px); /* 100px header + footer space */
}
.success-content h1 {
    font-size: 3rem;
    color: var(--accent-color);
}

.legal-content {
    padding: 3rem 0;
}
.legal-content h1 {
    margin-bottom: 2rem;
}
.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ==================
   7. RESPONSIVENESS
   ================== */

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-title { font-size: 2.2rem; }
    
    .card-horizontal {
        flex-direction: column;
        text-align: center;
    }
    .card-horizontal .card-image,
    .card-horizontal .card-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px; /* Header height */
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--bg-light);
    }
    .nav-link::after { display: none; }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-padding, .section-padding-gradient {
        padding: 4rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}