/* style.css */

/* CSS Variables */
:root {
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Bright Color Palette */
    --color-primary: #00AEEF; /* Bright Blue/Cyan */
    --color-secondary: #EC008C; /* Bright Magenta/Pink */
    --color-accent: #FFED00; /* Bright Yellow */
    
    --color-text-light: #FFFFFF;
    --color-text-dark: #1A1A1A; /* Very dark for high contrast */
    --color-text-medium: #4A4A4A;
    --color-text-subtle: #7A7A7A;

    --color-background-light: #FFFFFF;
    --color-background-section: #F5F5F5; /* Light grey for subtle section differentiation */
    --color-background-dark-overlay: rgba(0, 0, 0, 0.6); /* For hero text readability */
    
    /* Brutalism Elements */
    --color-brutalist-border: #000000;
    --brutalist-border-width: 2px;
    --brutalist-shadow-offset: 5px;
    --brutalist-shadow: var(--brutalist-shadow-offset) var(--brutalist-shadow-offset) 0px var(--color-brutalist-border);
    --brutalist-shadow-hover: calc(var(--brutalist-shadow-offset) + 2px) calc(var(--brutalist-shadow-offset) + 2px) 0px var(--color-secondary);

    /* Biomorphic Elements */
    --biomorphic-radius-soft: 10px; /* Subtle curves */
    --biomorphic-radius-organic: clamp(20px, 5vw, 50px); /* Responsive organic radius */

    --transition-speed: 0.3s ease-in-out;
    --container-max-width: 1200px;
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark); /* Default dark for headings */
    margin-bottom: 0.75em;
    line-height: 1.2;
    font-weight: 700;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

p {
    margin-bottom: 1.5em;
    color: var(--color-text-medium);
}

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

a:hover, a:focus {
    color: var(--color-secondary);
    text-decoration: underline;
}

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

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

.main-container {
    overflow: hidden; /* For parallax and animations */
}

/* Header & Navigation */
.site-header {
    background-color: var(--color-text-dark); /* Dark header for contrast with logo/nav */
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent); /* Bright yellow logo */
    font-weight: 700;
    text-decoration: none;
}
.logo:hover, .logo:focus {
    color: var(--color-text-light);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active { /* Add .active class via JS for current page/section */
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    text-decoration: none;
}

.nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text-light);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Main Content Area */
main {
    padding-top: var(--header-height); /* Prevent content from being hidden by fixed header */
}

/* General Section Styling */
.content-section {
    padding: clamp(40px, 8vh, 80px) 0;
    position: relative;
}
.content-section:nth-of-type(even) { /* Alternate background for sections */
    background-color: var(--color-background-section);
}

.section-title {
    text-align: center;
    margin-bottom: 1em; /* Reduced from 1.5em for typical section titles */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-subtle);
    margin-bottom: 3em; /* More space after subtitle */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Parallax Sections General */
.parallax-section {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: var(--color-text-light); /* Default for parallax with dark overlay */
}

.parallax-overlay { /* Generic overlay for parallax sections */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.parallax-section .container {
    position: relative;
    z-index: 2; /* Content above overlay */
}

/* Hero Section */
#hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
#hero .hero-overlay {
    background: var(--color-background-dark-overlay); /* Specific dark overlay for hero */
}
#hero h1 {
    color: var(--color-text-light); /* Ensured by HTML inline style, but good fallback */
    margin-bottom: 0.5em;
}
#hero p {
    color: var(--color-text-light); /* Ensured by HTML inline style */
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 1.5em auto;
}

/* Buttons (Global) */
.btn, button, input[type="submit"], input[type="reset"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px;
    border: var(--brutalist-border-width) solid var(--color-brutalist-border);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-speed);
    letter-spacing: 0.5px;
    box-shadow: var(--brutalist-shadow);
}

.btn-primary, input[type="submit"] { /* Default for submit buttons */
    background-color: var(--color-primary);
    color: var(--color-text-light);
}
.btn-primary:hover, .btn-primary:focus, input[type="submit"]:hover, input[type="submit"]:focus {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border-color: var(--color-brutalist-border);
    box-shadow: var(--brutalist-shadow-hover);
    transform: translate(-2px, -2px);
    text-decoration: none;
}

.btn-hero { /* Specific styling for hero button if needed, e.g., larger */
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    border-color: var(--color-brutalist-border);
}
.btn-hero:hover, .btn-hero:focus {
    background-color: var(--color-text-dark);
    color: var(--color-accent);
    border-color: var(--color-accent);
}


/* Mission Section */
.mission-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}
.mission-text {
    flex: 1;
    min-width: 300px;
}
.mission-image-container {
    flex: 1;
    min-width: 300px;
    text-align: center; /* Center image if it's smaller */
}
.mission-image-container img {
    max-width: 100%;
    height: auto;
    border: var(--brutalist-border-width) solid var(--color-brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--biomorphic-radius-soft); /* Subtle biomorphic touch */
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--color-background-light);
    border: var(--brutalist-border-width) solid var(--color-brutalist-border);
    box-shadow: var(--brutalist-shadow);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers .card-image and .card-content if they have fixed width */
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-radius: var(--biomorphic-radius-soft); /* Biomorphic touch */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--brutalist-shadow-hover);
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    margin-bottom: 20px;
    overflow: hidden; /* Crucial for object-fit */
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: var(--brutalist-border-width) solid var(--color-brutalist-border); /* Brutalist separator */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
}
.card-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.5em;
}
.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-medium);
}

/* Accolades Section */
#accolades {
    color: var(--color-text-dark); /* Dark text on bright background */
}
#accolades .parallax-overlay {
    background: none; /* No dark overlay as background is bright and text is dark */
}
#accolades .section-title, #accolades .section-subtitle, #accolades .accolades-summary {
    color: var(--color-text-dark); /* Ensure dark text */
}
.accolades-slider {
    /* Basic styling for slider container; JS will handle functionality */
    display: flex; /* Assuming a horizontal scroller or JS-controlled */
    overflow: hidden; /* Hides slides not in view */
    margin-bottom: 2em;
    border: var(--brutalist-border-width) solid var(--color-brutalist-border);
    background-color: rgba(255,255,255,0.7); /* Slight transparency if bg is complex */
    padding: 20px;
    border-radius: var(--biomorphic-radius-soft);
}
.accolades-slider .slide {
    min-width: 100%; /* For simple carousel logic */
    padding: 10px;
    text-align: center;
}
.accolades-slider .slide p {
    font-style: italic;
    color: var(--color-text-medium);
    margin-bottom: 10px;
}
.animated-icon-placeholder img { /* Styling for placeholder images in slider */
    margin: 0 auto 15px auto;
    max-height: 80px; /* Control size of logos/icons */
    width: auto;
}
.accolades-summary {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Awards Section */
.awards-list {
    list-style: none;
    padding-left: 0;
}
.awards-list li {
    background-color: var(--color-background-light);
    border: var(--brutalist-border-width) solid var(--color-brutalist-border);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--biomorphic-radius-soft);
}
.awards-list strong {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.awards-list em {
    color: var(--color-text-subtle);
    display: block;
    margin-bottom: 10px;
}
.awards-list small {
    color: var(--color-text-medium);
}
.awards-list .animated-icon-placeholder { /* For emoji or icon */
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--color-accent);
}


/* External Resources Section */
#external-resources {
    background-color: var(--color-background-section);
}
.resources-list .resource-item {
    background-color: var(--color-background-light);
    border: var(--brutalist-border-width) solid var(--color-brutalist-border);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--biomorphic-radius-soft);
    transition: box-shadow var(--transition-speed);
}
.resources-list .resource-item:hover {
    box-shadow: var(--brutalist-shadow-hover);
}
.resources-list .resource-item h4 a {
    font-family: var(--font-heading);
    color: var(--color-primary);
    text-decoration: none;
}
.resources-list .resource-item h4 a:hover {
    color: var(--color-secondary);
}
.resources-list .resource-item p {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
    margin-bottom: 0;
}

/* Contact Section */
#contact {
    color: var(--color-text-dark); /* Dark text on bright background */
}
#contact .parallax-overlay {
    background: none; /* No dark overlay as background is bright and text is dark */
}
#contact .section-title, #contact .section-subtitle {
    color: var(--color-text-dark); /* Ensure dark text */
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255,255,255,0.8); /* Slight opacity if BG is complex */
    padding: 30px;
    border: var(--brutalist-border-width) solid var(--color-brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--biomorphic-radius-soft);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--color-text-dark);
    font-size: 1rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: var(--brutalist-border-width) solid var(--color-brutalist-border);
    background-color: var(--color-background-light);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    border-radius: 0; /* Sharp brutalist edges */
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary); /* Focus indicator */
}
textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
}


/* Footer */
.site-footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: clamp(30px, 6vh, 60px) 0 20px 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-column h4 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.footer-column p, .footer-column li {
    color: #cccccc; /* Lighter grey for footer text */
    font-size: 0.95rem;
    margin-bottom: 0.5em;
}
.footer-links ul, .social-links-text {
    list-style: none;
    padding-left: 0;
}
.footer-links a, .social-links-text a {
    color: #cccccc;
    text-decoration: none;
    transition: color var(--transition-speed);
}
.footer-links a:hover, .social-links-text a:hover,
.footer-links a:focus, .social-links-text a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444; /* Separator */
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* Specific Page Styles (success.html, privacy.html, terms.html) */
body.success-page, body.privacy-page, body.terms-page {
    padding-top: var(--header-height); /* Ensure content not hidden by fixed header */
}
body.success-page main { /* main on success page */
    min-height: calc(100vh - var(--header-height)); /* Full viewport height below header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
body.success-page .success-content {
    background-color: var(--color-background-section);
    padding: 40px;
    border: var(--brutalist-border-width) solid var(--color-brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--biomorphic-radius-soft);
}
body.success-page .success-content h1 {
    color: var(--color-primary);
}

body.privacy-page .content-section,
body.terms-page .content-section {
    padding-top: 40px; /* Additional top padding if header is already accounted for by main */
    padding-bottom: 40px;
}

/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none !important; /* Override specific transforms */
}
.animate-on-scroll[data-animation-type="fadeInUp"] { transform: translateY(40px); }
.animate-on-scroll[data-animation-type="fadeInDown"] { transform: translateY(-40px); }
.animate-on-scroll[data-animation-type="fadeInLeft"] { transform: translateX(-40px); }
.animate-on-scroll[data-animation-type="fadeInRight"] { transform: translateX(40px); }
.animate-on-scroll[data-animation-type="zoomIn"] { transform: scale(0.9); }


/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-text-dark);
        border-top: 1px solid #444;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    .main-nav.is-open {
        max-height: 500px; /* Arbitrary large enough value */
    }
    .main-nav ul {
        flex-direction: column;
        padding: 15px 0;
    }
    .main-nav li {
        margin-left: 0;
        text-align: center;
    }
    .main-nav a {
        display: block;
        padding: 12px 20px;
        border-bottom: none;
    }
    .main-nav a:hover, .main-nav a:focus {
        background-color: rgba(255,255,255,0.1);
        border-bottom: none;
    }
    .nav-toggle {
        display: block; /* Show burger icon */
    }
    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .mission-content {
        flex-direction: column;
    }
    .mission-image-container {
        margin-top: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
    .footer-column ul {
        justify-content: center;
    }
}

/* Cookie Consent (enhancing HTML styles if needed) */
#cookieConsentPopup p {
    color: var(--color-text-light) !important; /* Ensure high contrast */
    font-size: 0.95rem;
}
#acceptCookieConsent {
    background-color: var(--color-accent) !important;
    color: var(--color-text-dark) !important;
    border: var(--brutalist-border-width) solid var(--color-brutalist-border) !important;
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px 25px !important;
    border-radius: 0 !important; /* Brutalist sharp */
}
#acceptCookieConsent:hover {
    background-color: var(--color-text-dark) !important;
    color: var(--color-accent) !important;
}