/* Global Styles & CSS Variables */
:root {
    --primary-color: #ff6b6b; /* Lively Coral */
    --secondary-color: #4ecdc4; /* Turquoise */
    --accent-color: #5562f6; /* Vibrant Blue/Purple */
    --text-color: #333333;
    --text-color-light: #FFFFFF;
    --heading-color: #222222;
    --subtle-text-color: #555555;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --button-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    --background-gradient-start: #e0c3fc;
    --background-gradient-mid1: #8ec5fc;
    --background-gradient-mid2: #f093fb;
    --background-gradient-end: #f5576c;

    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-darker: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --footer-bg: rgba(21, 27, 38, 0.9); /* Dark, slightly transparent */
    --footer-text-color: #e0e0e0;
    --footer-link-color: var(--primary-color);
    --footer-link-hover-color: var(--secondary-color);

    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    --navbar-height: 52px; /* As per Bulma's default for is-fixed-top */
    --content-padding-top: calc(var(--navbar-height) + 20px); /* Navbar height + some space */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(45deg, var(--background-gradient-start), var(--background-gradient-mid1), var(--background-gradient-mid2), var(--background-gradient-end));
    background-size: 400% 400%;
    animation: gradientBG 25s ease infinite;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 900;
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 0.75em; /* Bulma default */
}

.title { /* Bulma override */
    font-family: var(--font-primary);
    color: var(--heading-color) !important; /* Ensure override */
    font-weight: 900 !important;
}
.subtitle { /* Bulma override */
    font-family: var(--font-secondary);
    color: var(--subtle-text-color) !important;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.section { /* Bulma override */
    padding: 3rem 1.5rem;
}

.container { /* Bulma override */
    max-width: 1152px; /* Standard Bulma container width */
    margin-left: auto;
    margin-right: auto;
    width: 90%; /* For smaller screens before breakpoints */
}

/* Main container that wraps content below navbar */
.main-container {
    padding-top: var(--navbar-height);
}

/* Glassmorphism Effect */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative; /* For potential absolutely positioned children */
    overflow: hidden; /* Ensures content respects border-radius */
}

.glass-effect p, .glass-effect .label, .glass-effect li {
    color: var(--text-color); /* Ensure readability on glass */
}
.glass-effect .title, .glass-effect h3 {
    color: var(--heading-color);
}

/* Navbar Styles */
.navbar.is-fixed-top {
    background-color: rgba(30, 30, 30, 0.6) !important; /* Semi-transparent dark glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand .navbar-item {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.navbar-item, .navbar-link {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-color-light) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary-color) !important;
}
.navbar-burger {
    color: var(--text-color-light) !important;
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(40, 40, 40, 0.95) !important; /* Darker glass for mobile menu */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
        border-radius: 0 0 10px 10px;
    }
    .navbar-item {
        padding: 0.75rem 1rem;
    }
}

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* For overlay */
}

#hero::before { /* Darkening overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-body { /* Bulma override */
    position: relative;
    z-index: 2; /* Above overlay */
    width: 100%;
    padding: 3rem 1.5rem;
}

.hero-content .title, .hero-content .subtitle {
    color: var(--text-color-light) !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}
.hero-content .title.is-1 {
    font-size: 3.5rem; /* Larger hero title */
    font-weight: 900;
}
.hero-content .subtitle.is-3 {
    font-size: 1.75rem;
    font-weight: 400; /* Lighter than title */
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Global Button Styles */
.button, button, input[type='submit'], input[type='button'] {
    font-family: var(--font-primary);
    font-weight: 700;
    border-radius: 8px;
    padding: 0.75em 1.5em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    cursor: pointer;
    border: none; /* Bulma buttons have borders, remove if not desired for custom */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: var(--button-shadow);
}
.button.is-primary:hover {
    background-color: color-mix(in srgb, var(--primary-color) 85%, black);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.button.is-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.button.is-large { /* Bulma specific */
    padding: 1em 2em;
    font-size: 1.25rem;
}

/* Section Title */
.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--heading-color) !important;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Card Styles (Workshops, Team, Projects) */
.card { /* Bulma override */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in columns */
    overflow: hidden; /* To respect border-radius for images */
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card .card-image { /* Bulma's card-image */
    position: relative;
    overflow: hidden; /* Ensure image fits */
    height: 250px; /* Fixed height for consistency */
    display: flex; /* For centering image */
    align-items: center; /* For centering image */
    justify-content: center; /* For centering image */
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, crop if necessary */
    transition: transform 0.4s ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-content { /* Bulma override */
    padding: 1.5rem;
    flex-grow: 1; /* Allow content to take remaining space */
    text-align: left; /* Default, but can be centered if needed */
}
.card .card-content h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}
.card .card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}
.card .card-content .subtitle.is-6 {
    color: var(--subtle-text-color) !important;
    margin-bottom: 0.5rem;
}

/* Forcing card content text to be dark on light glass */
.card.glass-effect .card-content p,
.card.glass-effect .card-content h3,
.card.glass-effect .card-content .subtitle {
    color: var(--text-color); /* Default dark text */
}
.card.glass-effect .card-content h3 {
    color: var(--heading-color); /* Slightly darker for headings */
}


/* Accordion (Media Section) */
.accordion details {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}
.accordion details:hover {
    background: rgba(255, 255, 255, 0.12);
}
.accordion summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-color); /* Ensure good contrast */
    list-style: none; /* Remove default marker */
    position: relative;
    outline: none;
}
.accordion summary::-webkit-details-marker { display: none; } /* Chrome/Safari */
.accordion summary::marker { display: none; } /* Firefox */

.accordion summary::after { /* Custom marker */
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    color: var(--primary-color);
}
.accordion details[open] summary::after {
    content: '−'; /* Minus sign */
    transform: translateY(-50%) rotate(180deg);
}
.accordion .accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}
.accordion.glass-effect summary,
.accordion.glass-effect .accordion-content p {
    color: var(--text-color); /* Ensure readability on glass */
}

/* Custom Slider (Gallery Section) */
.custom-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Match card style */
}
.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Elastic transition */
}
.slide {
    min-width: 100%;
    box-sizing: border-box;
}
.slide img {
    width: 100%;
    height: 500px; /* Or adjust as needed */
    object-fit: cover;
    border-radius: 0; /* Slider itself has radius */
}
.slider-nav {
    text-align: center;
    margin-top: 1rem;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.slider-nav button {
    background-color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.7);
    color: var(--heading-color);
    margin: 0 8px;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.9rem;
}
.slider-nav button:hover {
    background-color: rgba(255,255,255,0.8);
    transform: scale(1.05);
}

/* Accolades Section (Testimonials) */
#accolades .card {
    background-color: var(--glass-bg); /* Lighter glass for testimonials */
}
#accolades .card .card-content p.is-size-5 { /* Testimonial text */
    font-style: italic;
    color: var(--text-color) !important; /* Ensure readability */
    line-height: 1.8;
}
#accolades .card .card-content p.has-text-right { /* Author */
    font-style: normal;
    font-weight: 700;
    color: var(--heading-color) !important;
    margin-top: 1.5rem;
}

/* External Resources Section */
#external-resources .content {
    padding: 2rem;
}
#external-resources ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}
#external-resources li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}
#external-resources li::before {
    content: "🔗"; /* Link emoji or other icon */
    position: absolute;
    left: 0;
    top: 0.1em;
    color: var(--primary-color);
}
#external-resources a {
    font-weight: 700;
    color: var(--accent-color); /* Differentiate external links */
    font-size: 1.1rem;
}
#external-resources a:hover {
    color: color-mix(in srgb, var(--accent-color) 80%, black);
}
#external-resources p {
    font-size: 0.9rem;
    color: var(--subtle-text-color);
    margin-top: 0.25rem;
    margin-bottom: 0;
}
#external-resources .glass-effect p, #external-resources .glass-effect li a, #external-resources .glass-effect li p {
    color: var(--text-color);
}
#external-resources .glass-effect li a {
    color: var(--accent-color);
}


/* Contact Form Styles */
#contact-preview .glass-effect, #contact-page .glass-effect {
    padding: 2.5rem;
}
.field .label { /* Bulma override */
    color: var(--text-color) !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.input, .textarea { /* Bulma override */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) inset;
    background-color: rgba(255,255,255,0.5); /* Slight transparency */
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0.75em 1em;
}
.input::placeholder, .textarea::placeholder {
    color: var(--subtle-text-color);
    opacity: 0.7;
}
.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em color-mix(in srgb, var(--primary-color) 25%, transparent);
    background-color: rgba(255,255,255,0.8);
}
#contact-preview .button.is-medium, #contact-page .button.is-medium {
    padding: 0.9em 2em;
    font-size: 1.1rem;
}

/* Footer Styles */
.footer { /* Bulma override */
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding: 4rem 1.5rem 2rem; /* More top padding */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer .content p {
    color: var(--footer-text-color);
    font-size: 0.95rem;
}
.footer a {
    color: var(--footer-link-color);
    font-weight: 500;
}
.footer a:hover {
    color: var(--footer-link-hover-color);
    text-decoration: underline;
}
.footer .social-links p { margin-bottom: 0.5rem; }
.footer .social-links a {
    margin: 0 0.75rem;
    font-size: 1rem; /* Text size for social links */
    display: inline-block;
    transition: transform 0.2s ease;
}
.footer .social-links a:hover {
    transform: scale(1.1);
}
.footer strong {
    color: var(--text-color-light);
}

/* Page Specific Styles */
/* success.html */
.success-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    padding-top: var(--navbar-height); /* Account for fixed navbar */
}
.success-page-container .glass-effect {
    max-width: 600px;
    width: 100%;
}
.success-page-container .title {
    color: var(--primary-color) !important;
    font-size: 2.5rem;
}
.success-page-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* privacy.html & terms.html */
.privacy-page-container,
.terms-page-container {
    padding-top: var(--content-padding-top); /* Space for fixed navbar */
    padding-bottom: 3rem;
}
.privacy-page-container .content,
.terms-page-container .content {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--glass-shadow);
}
.privacy-page-container .content h1, .privacy-page-container .content h2,
.terms-page-container .content h1, .terms-page-container .content h2 {
    color: var(--heading-color);
    margin-top: 1.5rem;
}
.privacy-page-container .content p, .privacy-page-container .content li,
.terms-page-container .content p, .terms-page-container .content li {
    color: var(--text-color);
}


/* Utility Classes */
.has-text-shadow {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
/* Add more as needed */

/* "Read More" Link Styles */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5em 1em;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.read-more-link:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ScrollReveal Animation Placeholders (JS will target these) */
.sr-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.sr-fade-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.sr-fade-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.sr-fade-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.sr-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Classes for JS to add when element is visible */
.is-visible {
    opacity: 1;
    transform: none;
}


/* Cookie Consent Popup (from HTML, can be refined here if needed) */
/* The styles are mostly inline in the HTML as per prompt, this is a placeholder */
#cookieConsentPopup {
    /* Styles are primarily in the HTML for this element per prompt */
    /* Ensure z-index is high enough */
    z-index: 99999;
}
#cookieConsentPopup p a {
    color: var(--primary-color); /* Match site's link color */
}
#acceptCookieButton {
    background-color: var(--primary-color); /* Match site's primary button */
    /* Other styles are inline */
}


/* Refinements for Bulma columns to ensure consistent spacing */
.columns.is-multiline .column {
    margin-bottom: 1.5rem; /* Add some bottom margin for multiline columns */
}
@media screen and (min-width: 769px) { /* tablet and up */
    .columns:not(.is-desktop) {
        display: flex;
    }
    .column {
        display: flex; /* makes columns flex containers */
        flex-direction: column; /* stacks items vertically */
    }
     /* Ensure cards in columns take full height if content differs */
    .columns.is-variable .column .card { /* Example if using Bulma's variable gap */
        height: 100%;
    }
}

/* Ensure sufficient contrast and readability */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Forcing Bulma text helpers to use our theme colors if needed */
.has-text-primary { color: var(--primary-color) !important; }
.has-text-white { color: var(--text-color-light) !important; }
.has-text-dark { color: var(--heading-color) !important; }

/* Additional check for text on image readability in cards if not using overlay div */
.card-image.has-text-overlay .title,
.card-image.has-text-overlay .subtitle {
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}