:root {
    /* Triad Color Scheme */
    --primary-color: #5E81AC; /* Cool Blue (Nord Polar Night -ish) */
    --secondary-color: #A3BE8C; /* Muted Green (Nord Moss Green) */
    --accent-color: #BF616A; /* Muted Red/Rose (Nord Aurora Pink/Red) */

    /* Darker/Lighter Variants */
    --primary-color-dark: #4C6F9B;
    --primary-color-light: #81A1C1;
    --accent-color-dark: #A9505A;
    --accent-color-light: #D08770; /* Using Nord Orange for a slightly different accent variation */

    /* Neutral Colors for Neomorphism & Base */
    --bg-color: #ECEFF1;      /* Light Grayish Blue (Nord Snow Storm) */
    --bg-color-darker: #D8DEE9; /* Slightly Darker Gray (Nord Snow Storm / Polar Night transition) */
    --bg-color-lighter: #FFFFFF;   /* White */

    /* Text Colors */
    --text-color-dark: #2E3440;   /* Darkest Gray/Black (Nord Polar Night) */
    --text-color-headings: #222222; /* Very dark for main headings */
    --text-color-medium: #4C566A;  /* Medium Gray (Nord Polar Night) */
    --text-color-light: #E5E9F0;  /* Light Gray (Nord Snow Storm) */
    --text-color-hero: #FFFFFF;

    /* Fonts */
    --font-family-headings: 'Oswald', sans-serif;
    --font-family-body: 'Nunito', sans-serif;

    /* Neomorphism Shadows */
    --shadow-neumo-outer: 6px 6px 12px var(--bg-color-darker), -6px -6px 12px var(--bg-color-lighter);
    --shadow-neumo-inner: inset 4px 4px 8px var(--bg-color-darker), inset -4px -4px 8px var(--bg-color-lighter);
    --shadow-neumo-outer-sm: 3px 3px 6px var(--bg-color-darker), -3px -3px 6px var(--bg-color-lighter);
    --shadow-neumo-inner-sm: inset 2px 2px 4px var(--bg-color-darker), inset -2px -2px 4px var(--bg-color-lighter);
    
    /* Neo-Brutalism Accents (defined but used subtly) */
    --brutal-border: 2px solid var(--text-color-dark);
    --brutal-shadow: 3px 3px 0px var(--text-color-dark);

    /* Spacing & Sizing */
    --navbar-height: 5rem; 
    --section-padding: 3.5rem 1.5rem;
    --card-border-radius: 18px;
    --button-border-radius: 12px;
    --footer-height: 250px; /* Approximate footer height for calculations */
}

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

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

h1, h2, h3, h4, h5, h6,
.title, .subtitle { /* Bulma classes */
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 700; /* Oswald is often thinner, ensure weight */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

.title.is-1 { font-size: 3rem; }
.title.is-2 { font-size: 2.5rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.title.is-5 { font-size: 1.25rem; }


.subtitle {
    color: var(--text-color-medium) !important;
    font-weight: 400; /* Nunito for subtitle if used */
    font-family: var(--font-family-body);
}

.section-title {
    margin-bottom: 2.5rem !important;
    font-weight: 700;
    color: var(--text-color-headings);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

p, .content p {
    font-family: var(--font-family-body);
    color: var(--text-color-medium);
    margin-bottom: 1.25rem;
}

.content strong {
    color: var(--text-color-dark);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
a:hover {
    color: var(--primary-color-dark);
    text-decoration-color: var(--primary-color-dark);
}

/* --- Button Styles (Global & Neumorphic) --- */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: var(--button-border-radius);
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Playful transition */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.9em 2em;
    border: none;
    line-height: 1.5; /* Ensure text is vertically centered */
}

.neumo-button,
.button.is-primary, /* Default Bulma primary mapping */
.button.is-link { /* Example mapping */
    background-color: var(--bg-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-neumo-outer-sm);
}
.neumo-button:hover,
.button.is-primary:hover,
.button.is-link:hover {
    color: var(--primary-color-dark);
    box-shadow: var(--shadow-neumo-inner-sm);
    transform: translateY(2px) scale(0.98);
}
.neumo-button:active,
.button.is-primary:active,
.button.is-link:active {
    box-shadow: var(--shadow-neumo-inner-sm);
    transform: translateY(3px) scale(0.96);
}

.neumo-button-inverse {
    background-color: transparent;
    color: var(--text-color-hero);
    border: 2px solid var(--text-color-hero);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2), -1px -1px 2px rgba(255,255,255,0.05);
}
.neumo-button-inverse:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3), inset -1px -1px 2px rgba(255,255,255,0.03);
    transform: translateY(1px) scale(0.99);
}

.neumo-button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}
.neumo-button-outline:hover {
    background-color: var(--primary-color-light);
    color: var(--text-color-hero);
    border-color: var(--primary-color-light);
    box-shadow: var(--shadow-neumo-outer-sm);
    transform: scale(1.02);
}

/* --- Form Input Styles (Neumorphic) --- */
.neumo-input, .input,
.neumo-textarea, .textarea {
    background-color: var(--bg-color);
    border: none;
    border-radius: var(--button-border-radius);
    box-shadow: var(--shadow-neumo-inner);
    padding: 0.9em 1.2em;
    color: var(--text-color-dark);
    transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
    font-family: var(--font-family-body);
    font-size: 1rem;
}
.neumo-input::placeholder, .input::placeholder,
.neumo-textarea::placeholder, .textarea::placeholder {
    color: var(--text-color-medium);
    opacity: 0.6;
}
.neumo-input:focus, .input:focus,
.neumo-textarea:focus, .textarea:focus {
    outline: none;
    box-shadow: var(--shadow-neumo-inner), 0 0 0 3px var(--primary-color-light);
    background-color: var(--bg-color-lighter);
}
.label.neumo-label {
    color: var(--text-color-dark);
    font-family: var(--font-family-headings);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    display: block;
}

/* --- Header & Navbar --- */
.header .navbar.is-fixed-top {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-neumo-outer);
    min-height: var(--navbar-height);
    padding: 0 1rem;
}
.navbar-item, .navbar-link {
    font-family: var(--font-family-headings);
    color: var(--text-color-medium);
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0.5rem 1.2rem;
    align-items: center;
    font-size: 1rem;
    font-weight: 400; /* Oswald regular */
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: var(--bg-color-lighter);
    color: var(--primary-color);
}
.navbar-brand .navbar-item.logo-text {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-color-dark); /* Darkened for contrast */
    padding-left: 0;
}
.navbar-burger {
    color: var(--text-color-dark);
    height: var(--navbar-height);
    width: var(--navbar-height);
}
.navbar-burger span {
    background-color: var(--text-color-dark);
    height: 3px; /* Neo-brutalist touch */
    width: 24px;
    left: calc(50% - 12px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar-burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-burger.is-active span:nth-child(2) { opacity: 0; }
.navbar-burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.navbar-burger:hover {
    background-color: var(--bg-color-lighter);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--bg-color);
        box-shadow: var(--shadow-neumo-inner); 
        padding: 0.5rem 0;
        border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    }
    .navbar-menu .navbar-item {
        padding: 0.8rem 1.5rem;
        display: block; /* Ensure full width clickable */
        text-align: center;
    }
}

/* --- Hero Section --- */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-color-hero);
}
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}
#hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--navbar-height);
    text-align: center;
}
#hero .hero-title {
    color: var(--text-color-hero) !important;
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
    margin-bottom: 1rem;
    text-shadow: 2px 3px 5px rgba(0,0,0,0.6);
    line-height: 1.2;
}
#hero .hero-subtitle {
    color: var(--text-color-hero) !important;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-family: var(--font-family-body);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.5;
}
#hero p.has-text-white {
    color: var(--text-color-hero) !important;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.95;
    line-height: 1.8;
}

/* --- Section Styling --- */
.section {
    padding: var(--section-padding);
    position: relative; /* For potential pseudo-elements or absolute positioned children */
}
.section-light-bg {
    background-color: var(--bg-color-lighter);
}

/* --- Card Styles (Neumorphic) --- */
.card.neumo-card {
    background-color: var(--bg-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-neumo-outer);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* For consistent card height in rows */
}
.card.neumo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 10px 10px 20px var(--bg-color-darker), -10px -10px 20px var(--bg-color-lighter);
}
.card .card-image.image-container,
.card .image-container {
    display: flex; /* Centers image if it's smaller, though object-fit should handle it */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative; /* For potential overlays on images */
}
.card .card-image.image-container img,
.card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card.neumo-card:hover .card-image.image-container img,
.card.neumo-card:hover .image-container img {
    transform: scale(1.05);
}

/* Specific heights for image containers as needed */
#methodology .card .card-image.image-container { height: 280px; }
#blog .card .card-image.image-container { height: 220px; }
#gallery .image.is-square { /* Gallery uses Bulma's square aspect ratio */
    border-radius: var(--card-border-radius);
    overflow:hidden;
}
#gallery .image.is-square img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.card .card-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card .card-content .title {
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.card .card-content .subtitle {
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.card .card-content .content {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    text-align: left; /* Default text alignment */
}
.card .card-content .button {
    margin-top: auto; /* Pushes button to bottom */
    align-self: center; /* Center button */
}

/* Testimonial Card */
.testimonial-card .media {
    align-items: center; /* Vertically align avatar and text */
    margin-bottom: 1rem;
}
.testimonial-card .media-left img.is-rounded {
    border: 4px solid var(--bg-color-lighter);
    box-shadow: var(--shadow-neumo-outer-sm);
    width: 72px; /* Slightly larger avatar */
    height: 72px;
}
.testimonial-card .media-content .title { text-align: left; margin-bottom: 0.2rem; }
.testimonial-card .media-content .subtitle { text-align: left; }
.testimonial-card .content { font-style: italic; }

/* "Read More" link styling */
.card .card-content a.button.neumo-button-outline {
    font-size: 0.85rem;
    padding: 0.6em 1.2em;
    font-weight: 700;
}

/* Resource Card */
.resource-card .card-content .title a {
    color: var(--primary-color);
    text-decoration: none; /* Override global underline for title link */
}
.resource-card .card-content .title a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline; /* Underline on hover for title link */
}

/* --- Gallery & Modal --- */
#gallery .gallery-image { /* Applied to the img tag itself if not in a card structure */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: calc(var(--card-border-radius) / 2);
    box-shadow: var(--shadow-neumo-outer-sm);
}
#gallery .gallery-image:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 8px 8px 16px var(--bg-color-darker), -8px -8px 16px var(--bg-color-lighter);
}
.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    max-width: 85vw;
    max-height: 85vh;
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-neumo-outer);
    overflow: auto;
}
.modal-content p.image img {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: calc(85vh - 50px);
    object-fit: contain;
    border-radius: calc(var(--card-border-radius) - 8px);
}
.modal-close {
    background-color: rgba(46, 52, 64, 0.7); /* Darker, semi-transparent */
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.modal-close:hover {
    background-color: rgba(46, 52, 64, 0.9);
    transform: rotate(90deg);
}
.modal-close::before, .modal-close::after {
    background-color: var(--text-color-hero);
}

/* --- Footer --- */
.footer {
    background-color: var(--text-color-dark);
    color: var(--text-color-light);
    padding: 4rem 1.5rem 2.5rem;
    position: relative; /* For potential decorative elements */
}
.footer .title {
    color: var(--text-color-hero) !important;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    text-shadow: none;
}
.footer .content, .footer p {
    color: var(--text-color-light);
    opacity: 0.85;
    font-size: 0.95rem;
}
.footer a {
    color: var(--secondary-color);
    text-decoration-color: rgba(163, 190, 140, 0.5); /* Lighter underline */
}
.footer a:hover {
    color: var(--bg-color-lighter);
    text-decoration-color: var(--bg-color-lighter);
}
.footer ul {
    list-style: none;
    margin-left: 0;
}
.footer ul li {
    margin-bottom: 0.6rem;
}
.footer hr {
    background-color: var(--text-color-medium);
    opacity: 0.3;
    height: 1px;
    margin: 2.5rem 0;
}
.footer .content.has-text-centered p {
    font-size: 0.9rem;
    opacity: 0.7;
}
/* Footer social links (text-based) */
.footer .column ul li a[target="_blank"] {
    display: inline-block;
    padding: 0.25em 0;
    position: relative;
    font-weight: 600; /* Nunito semi-bold */
}

/* --- Page Specific Styles --- */
/* success.html */
body.success-page { /* Add class="success-page" to body tag of success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-page .main-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem; /* Padding for small screens */
}
.success-page .success-content {
    background-color: var(--bg-color);
    padding: clamp(2rem, 5vw, 4rem); /* Responsive padding */
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-neumo-outer);
    max-width: 600px;
    width: 100%;
}
.success-page .success-content .icon { /* Requires FontAwesome or similar for icon */
    color: var(--secondary-color);
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    /* Example for a simple checkmark with CSS if no icon library */
    /* display: inline-block; width: 50px; height: 25px; border-bottom: 5px solid var(--secondary-color); border-left: 5px solid var(--secondary-color); transform: rotate(-45deg); */
}
.success-page .success-content .title {
    margin-bottom: 1rem;
}
.success-page .success-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}


/* privacy.html and terms.html */
/* Add class="static-page" to body of privacy.html and terms.html */
/* Add class="static-page-content-section" to the main <section> of these pages */
.static-page-content-section { 
    padding-top: calc(var(--navbar-height) + 2rem) !important; 
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    background-color: var(--bg-color-lighter); /* Often static pages have a white/very light bg */
}
.static-page-content-section .container { /* Ensuring Bulma container is used */
    max-width: 800px; /* Readability for text-heavy pages */
    margin: 0 auto;
}
.static-page-content-section .content h1,
.static-page-content-section .content h2,
.static-page-content-section .content h3,
.static-page-content-section .content h4 {
    color: var(--text-color-dark);
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}
.static-page-content-section .content p,
.static-page-content-section .content ul,
.static-page-content-section .content ol {
    color: var(--text-color-dark); /* Ensure high contrast on light bg */
    line-height: 1.8;
}
.static-page-content-section .content ul,
.static-page-content-section .content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

/* --- Responsiveness --- */
@media screen and (max-width: 768px) {
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .section { padding: 2.5rem 1rem; }
    .columns.is-two-thirds { width: 100%; } /* Stack columns */

    #methodology .card .card-image.image-container,
    #blog .card .card-image.image-container {
        height: 200px; /* Adjust image heights for mobile */
    }
    .card .card-content { padding: 1.2rem; }
}

/* AOS Animation defaults - can be overridden by data-aos attributes */
[data-aos] {
    transition-property: transform, opacity; /* Default AOS transition properties */
}

/* Parallax effect placeholder - needs JS */
.parallax-background-section {
    background-attachment: fixed; /* Simple CSS parallax */
    /* Ensure this section has a defined height */
}