/*
  Palette: Dynamic Tech (Dark Purple / Orange)
  - Dark BG: #121212
  - Light Text: #EAEAEA
  - Primary Accent: #9B59B6 (Purple)
  - Secondary Accent: #E67E22 (Orange)
  - Glass BG: rgba(44, 44, 44, 0.5)
*/

:root {
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-text-primary: #EAEAEA;
    --color-text-secondary: #B0B0B0;
    --color-primary: #9B59B6;
    --color-secondary: #E67E22;
    --color-border: #3A3A3A;
    --color-glass-bg: rgba(44, 44, 44, 0.5);
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Global Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.7;
    font-size: clamp(16px, 1.5vw, 18px);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    color: var(--color-text-secondary);
}

.text-center {
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    color: var(--color-text-primary);
}

.hamburger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
    display: none;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-primary);
    margin: 5px 0;
    transition: 0.3s;
}

.menu-checkbox {
    display: none;
}

.desktop-nav {
    display: block;
}

.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.desktop-nav a {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.desktop-nav a:hover {
    color: var(--color-primary);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* Adjust based on header height */
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-surface);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.mobile-nav li:last-child {
    border-bottom: none;
}
.mobile-nav a {
    color: var(--color-text-primary);
    font-size: 18px;
    display: block;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* --- Hero Section: Floating Card --- */
.hero-section.hero-floating-card {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -1;
}
.hero-content-card {
    background-color: var(--color-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border: 1px solid var(--color-border);
    max-width: 700px;
    text-align: center;
}
.hero-content-card h1 {
    color: #fff;
}
.hero-content-card p {
    color: var(--color-text-primary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 24px;
}

/* --- Benefits Section: Asymmetrical --- */
.benefits-grid-asymm {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
.benefit-card-asymm {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.benefit-card-asymm:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}
.benefit-card-asymm h3 {
    color: var(--color-primary);
    margin-bottom: 8px;
}

/* --- FAQ Accordion --- */
.accordion details {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    margin-bottom: 10px;
}
.accordion summary {
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none; /* Remove default marker */
}
.accordion summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 24px;
    transition: transform 0.3s ease;
}
.accordion details[open] summary::after {
    transform: rotate(45deg);
}
.accordion .accordion-content {
    padding: 0 16px 16px;
    border-top: 1px solid var(--color-border);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.placeholder-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-text-secondary);
}

/* --- Checklist Section --- */
.checklist-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.checklist {
    list-style: none;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.checkmark {
    color: var(--color-secondary);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2rem;
}

/* --- Stats Bar Section --- */
.stats-bar-section {
    background-color: var(--color-primary);
    padding: 40px 0;
}
.stats-bar-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}
.stat-item {
    text-align: center;
    color: #fff;
}
.stat-item h3 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 0;
}
.stat-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* --- Program Page: Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 15px;
}
.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 15px;
    width: 32px;
    height: 32px;
    border: 4px solid var(--color-primary);
    background-color: var(--color-background);
    border-radius: 50%;
    z-index: 1;
}
.timeline-content .content-image {
    margin-top: 20px;
    border: 1px solid var(--color-border);
}

/* --- Mission Page: Story & Team --- */
.story-team-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.team-image {
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
}
.image-caption {
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}
.value-card {
    border-left: 4px solid var(--color-secondary);
    padding-left: 20px;
}

/* --- Contact Page --- */
.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact-details li {
    margin-bottom: 16px;
}
.contact-details strong {
    display: block;
    color: var(--color-primary);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 0;
    font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* --- Thank You Page --- */
.thank-you-section { padding: 80px 0; }
.thank-you-icon { font-size: 60px; margin-bottom: 20px; }
.next-steps { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.next-steps-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.back-home-btn { margin-top: 40px; }

/* --- Policy Pages --- */
.policy-page h1, .policy-page h2 {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
}
.policy-page ul {
    list-style: disc;
    padding-left: 20px;
}
.policy-page li {
    margin-bottom: 10px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-surface) !important;
    color: var(--color-text-secondary) !important;
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.site-footer h4 {
    color: var(--color-primary) !important;
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a, .footer-contact a {
    color: var(--color-text-secondary) !important;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--color-primary) !important;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transition: transform 0.4s ease;
}
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }
#cookie-banner a { color: var(--color-primary); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid var(--color-primary);
}
.cookie-btn-accept { background-color: var(--color-primary); color: #fff; }
.cookie-btn-decline { background-color: transparent; color: var(--color-primary); }


/* --- Media Queries (Mobile-First) --- */

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    #menu-toggle:checked ~ .mobile-nav {
        max-height: 400px;
    }

    #menu-toggle:checked ~ .hamburger .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle:checked ~ .hamburger .line:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ .hamburger .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
    .container {
        padding: 0 24px;
    }
    .benefits-grid-asymm {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
    }
    .benefit-card-asymm.featured-card {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        display: flex;
        align-items: center;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .checklist-columns {
        grid-template-columns: 1fr 1fr;
    }
    .story-team-container {
        grid-template-columns: 2fr 1fr;
    }
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-grid-container {
        grid-template-columns: 1fr 1.5fr;
    }
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid-asymm {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }
    .benefit-card-asymm.featured-card {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    .benefit-card-asymm:nth-child(2) { grid-column: 2/3; grid-row: 1/2; }
    .benefit-card-asymm:nth-child(3) { grid-column: 3/4; grid-row: 1/2; }
    .benefit-card-asymm:nth-child(4) { grid-column: 2/3; grid-row: 2/3; }
    .benefit-card-asymm:nth-child(5) { grid-column: 3/4; grid-row: 2/3; }
}