:root {
    /* Tetradic Color Scheme */
    --primary-color: #0D9DE3; /* Vivid Blue */
    --primary-color-dark: #0A7FAF;
    --secondary-color: #E3860D; /* Warm Orange */
    --accent-color-1: #4CE30D; /* Bright Green */
    --accent-color-2: #A90DE3; /* Vibrant Purple */

    --text-color: #333333;
    --text-color-light: #FDFDFD;
    --text-color-medium: #555555;
    --text-color-headings: #222222; 
    --background-color: #F4F7F6; /* Light, slightly cool off-white */
    --dark-background-color: #1a1a2e; 
    
    --glass-bg: rgba(255, 255, 255, 0.25); 
    --glass-bg-darker-context: rgba(40, 40, 70, 0.35); 
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-border-darker-context: rgba(150, 150, 200, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-strong: rgba(0, 0, 0, 0.15);
    --dark-overlay: rgba(0, 0, 0, 0.5);

    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    --border-radius-small: 8px;
    --border-radius-medium: 15px;
    --border-radius-large: 25px;

    --header-height: 80px;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-primary);
    color: var(--text-color-headings);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

.title {
    color: var(--text-color-headings);
    text-shadow: 1px 1px 2px 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; }


.hero-title.has-text-white, .has-text-white.title,
.hero-subtitle.has-text-white, .has-text-white.subtitle,
.has-text-white .title, .has-text-white .subtitle { /* Ensure specificity */
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.has-text-white p, .hero-paragraph.has-text-white {
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}


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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}
a:hover {
    color: var(--primary-color-dark);
    opacity: 0.85;
}

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

/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-secondary);
    font-weight: 700; /* Bolder buttons */
    padding: 0.9em 2em;
    border-radius: var(--border-radius-medium);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 3px 6px var(--shadow-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    line-height: 1.5; /* Ensure text is vertically centered */
}
.button .icon { /* Spacing for icons in buttons */
    margin-left: 0.5em;
    margin-right: -0.25em; /* Adjust if icon looks too far */
}
.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 10px var(--shadow-color-strong);
}
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 10px rgba(13, 157, 227, 0.3); /* Primary color shadow */
}
.button.is-link.is-outlined { /* For "Read More" */
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    font-size: 0.85rem;
    padding: 0.6em 1.2em;
    text-transform: none;
    font-weight: 600;
}
.button.is-link.is-outlined:hover {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(227, 134, 13, 0.25); /* Secondary color shadow */
}

/* Glassmorphism utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px var(--shadow-color);
}
.glass-container { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(230, 240, 255, 0.1));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4rem 1.5rem;
    border-radius: var(--border-radius-large);
    margin: 3rem auto; 
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.glass-container-dark {
    background: var(--glass-bg-darker-context);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4rem 1.5rem;
    border-radius: var(--border-radius-large);
    margin: 3rem auto;
    border: 1px solid var(--glass-border-darker-context);
    box-shadow: 0 8px 32px 0 rgba(0,0,0, 0.25);
}
.glass-container-dark .section-title,
.glass-container-dark .section-subtitle,
.glass-container-dark p,
.glass-container-dark .title, /* Ensure all titles are covered */
.glass-container-dark .subtitle,
.glass-container-dark .content, /* For .content p */
.glass-container-dark .has-text-dark,
.glass-container-dark .card-title, /* Titles inside cards */
.glass-container-dark .stat-label {
    color: var(--text-color-light) !important; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.glass-container-dark .has-text-grey,
.glass-container-dark .has-text-grey-dark {
    color: #bdbdbd !important; /* Lighter grey for dark backgrounds */
}
.glass-button { /* Button specific glass */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-color-light);
}
.glass-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Section Styling */
.section {
    padding: 5rem 1.5rem; 
}
.section-title {
    font-size: 2.8rem; /* Slightly larger titles */
    font-weight: 700;
    margin-bottom: 0.75em;
    color: var(--text-color-headings);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-color-medium);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Header / Navbar */
.header.is-fixed-top {
    height: var(--header-height);
    z-index: 1024; /* Above Bulma's modal z-index if any */
}
.navbar.glass-effect { 
    background: rgba(244, 247, 246, 0.6); /* Match body bg, with blur */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
}
.navbar-item, .navbar-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color-medium); 
    padding: 0.75rem 1.25rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: transparent !important; 
    color: var(--primary-color) !important;
}
.navbar-brand .logo-text {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-left: 0;
}
.navbar-burger {
    color: var(--text-color-headings);
    height: var(--header-height); /* Match header height */
    width: var(--header-height); /* Make it square */
}
.navbar-burger span {
    background-color: var(--text-color-headings);
    height: 2px;
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.03);
}
.navbar-menu {
    background-color: rgba(244, 247, 246, 0.95); /* Slightly opaque for mobile */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
}
@media screen and (max-width: 1023px) {
    .navbar-menu.is-active {
        display: block;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%; 
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .navbar-item {
        color: var(--text-color-headings);
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    .navbar-item:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; 
    min-height: 100vh; /* Ensure it takes full viewport height */
    display: flex; /* For vertical centering of hero-body */
    align-items: center;
}
#hero .hero-body {
    width: 100%; /* Ensure hero-body takes full width for centering content */
    padding-bottom: 120px; 
    z-index: 1; /* Above curved divider */
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}
.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1.5em;
    font-weight: 400;
}
.hero-paragraph {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Curved Divider */
.curved-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 0; /* Below hero content */
}
.curved-divider.bottom {
    bottom: -1px; 
}
.curved-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px); 
    height: 100px; /* Can be responsive e.g. calc(50px + 5vw) */
}
.curved-divider path {
    fill: var(--background-color); 
}

/* Animated Text Fill (Hero) */
.animated-text-fill {
    position: relative;
    display: inline-block;
    color: transparent; 
    -webkit-text-stroke: 1px var(--text-color-light); 
}
.animated-text-fill::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 0; 
    overflow: hidden;
    color: var(--text-color-light); 
    white-space: nowrap;
    animation: fill-text 2.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards 0.8s; 
}
@keyframes fill-text {
    to {
        width: 100%;
    }
}

/* Mission Section */
.mission-section .content p {
    font-size: 1.15rem;
    color: var(--text-color-medium);
    line-height: 1.8;
}
.mission-image-container img {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(13, 157, 227, 0.25); 
    border: 4px solid var(--primary-color);
}

/* Card Styles (Generic) */
.card {
    height: 100%; 
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #fff; /* Solid background for cards for better glass effect on them */
}
.card.glass-effect {
    background: var(--glass-bg); /* Use glass bg if specified */
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px var(--shadow-color-strong);
}
.card .card-image, .card .image-container { 
    position: relative;
    overflow: hidden; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
}
.card .card-image figure.image,
.card .image-container figure.image {
    width: 100%;
    height: 100%; 
}
.card .card-image figure.is-4by3 { padding-top: 75%; height: 0; }
.card .card-image figure.is-16by9 { padding-top: 56.25%; height: 0; }
.card .card-image figure.is-1by1 { padding-top: 0; }

.card .card-image img, 
.card .image-container img {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover .card-image img,
.card:hover .image-container img {
    transform: scale(1.08); 
}
.card .card-content {
    padding: 1.75rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    text-align: left; 
}
.card .card-content .content { 
    font-size: 1rem;
    color: var(--text-color-medium);
    line-height: 1.75;
}
.card .card-content .title.card-title,
.card .card-content .media-content .title.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.6em;
    color: var(--text-color-headings);
    line-height: 1.3;
}
.card .card-content .subtitle {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    margin-bottom: 1em;
}

/* Services Section Specifics */
.service-card .media-left img {
    border-radius: var(--border-radius-small);
    background-color: var(--primary-color-dark); /* If icon is transparent */
    padding: 0.25rem;
}

/* Stats Section */
#stats {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-color-light); /* Base text color for this section */
}
#stats .section-title, #stats .stat-label { /* Overridden by glass-container-dark rules */ }

.stat-widget {
    padding: 1.5rem;
}
.stat-number {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25em;
    color: var(--primary-color) !important; 
}
.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Team Section (Instructors) */
.team-member-card .card-image.image-container { 
    padding: 0; /* Remove padding if image should fill */
}
.team-member-card .card-image img {
    border-radius: 50%; 
    border: 5px solid #fff; /* White border to lift it */
    box-shadow: 0 0 15px var(--shadow-color);
    margin-top: -40px; /* Overlap effect if card has padding-top in content */
    position: relative; /* For z-index if needed */
    z-index: 2;
}
.team-member-card .card-content {
    text-align: center; 
    padding-top: 2.5rem; /* Space for overlapping image */
}
.team-member-card .title.is-4 {
    margin-top: 0.5rem;
}

/* Gallery Section */
.gallery-image {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: 0 6px 18px var(--shadow-color);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-image:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 10px 25px var(--shadow-color-strong);
}

/* External Resources Section */
.resource-card .title a {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}
.resource-card .title a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}
.resource-card .content {
    font-size: 0.95rem;
    color: var(--text-color-medium);
}
.resource-card .is-size-7.has-text-grey {
    color: #999 !important;
}


/* FAQ Section */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius-medium); 
    overflow: hidden; 
}
.faq-question {
    width: 100%;
    background-color: transparent; 
    color: var(--text-color-headings);
    border: none; /* remove border if glass-effect provides it */
    padding: 1.5rem 1.75rem;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.faq-question:hover {
    background-color: rgba(0,0,0,0.02); 
}
.faq-question .icon i {
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    color: var(--primary-color);
}
.faq-item.active .faq-question .icon i {
    transform: rotate(135deg); /* Rotates plus to 'x' more smoothly */
}
.faq-answer {
    padding: 0 1.75rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: rgba(255,255,255,0.03); 
}
.faq-answer p {
    padding: 1.5rem 0;
    font-size: 1rem;
    color: var(--text-color-medium);
    margin-bottom: 0;
    line-height: 1.8;
}

/* Press Section */
#press { 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.press-card { 
    background: rgba(255, 255, 255, 0.95); /* More opaque light cards for readability */
    border: 1px solid rgba(255, 255, 255, 0.3);
}
/* These text colors will be dark as they are not inside .glass-container-dark */
.press-card .card-title, .press-card .content, .press-card .subtitle {
    color: var(--text-color) !important; 
}
.press-card .subtitle {
    color: var(--text-color-medium) !important;
}


/* Footer */
.footer.glass-effect {
    background: rgba(20, 20, 35, 0.8); 
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--text-color-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 1.5rem 2rem; 
}
.footer .title.footer-title {
    color: var(--text-color-light);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}
.footer p, .footer li {
    color: rgba(240, 240, 240, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer ul {
    list-style: none;
    padding-left: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer a {
    color: var(--primary-color); 
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease, opacity 0.3s ease;
}
.footer a:hover {
    color: var(--accent-color-1); 
    text-decoration: none;
    opacity: 1;
}
.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
    height: 1px;
    margin: 2rem 0;
}
.footer .content.has-text-centered p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* contacts.html - Form Styling */
.contact-form-section {
    padding-top: calc(var(--header-height) + 3rem); 
    padding-bottom: 5rem;
    background-color: var(--background-color); /* Ensure consistent bg */
}
.contact-form-container.glass-effect {
    max-width: 750px;
    margin: 0 auto; /* Removed top/bottom margin to rely on section padding */
    padding: 3rem;
    background: rgba(255, 255, 255, 0.6); /* Lighter glass for form */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.contact-form-container .title {
    margin-bottom: 2.5rem;
    text-align: center;
}
.contact-form .label {
    color: var(--text-color-headings);
    font-weight: 700; /* Bolder labels */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75em;
}
.contact-form .input, .contact-form .textarea {
    font-family: var(--font-secondary);
    background-color: rgba(255, 255, 255, 0.7); 
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius-small);
    padding: 1em 1.2em;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03) inset;
}
.contact-form .input::placeholder, .contact-form .textarea::placeholder {
    color: var(--text-color-medium);
    opacity: 0.6;
}
.contact-form .input:focus, .contact-form .textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15em rgba(13, 157, 227, 0.2); 
    background-color: #fff;
}
.contact-form .button[type="submit"] {
    width: 100%;
    padding: 1.1em;
    font-size: 1rem;
    margin-top: 1rem;
}

/* success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Full viewport height */
    text-align: center;
    padding: 2rem;
    padding-top: var(--header-height); /* Account for fixed header */
    background-color: var(--background-color);
}
.success-page-container .icon.fa-check-circle { /* Be specific if using FA */
    font-size: 5rem;
    color: var(--accent-color-1); 
    margin-bottom: 2rem;
    animation: success-pop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes success-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.success-page-container .title {
    color: var(--text-color-headings);
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
}
.success-page-container .subtitle {
    color: var(--text-color-medium);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    max-width: 500px;
}

/* privacy.html & terms.html */
.legal-content-page {
    padding-top: calc(var(--header-height) + 3rem); 
    padding-bottom: 5rem;
    background-color: #fff; /* White background for readability */
}
.legal-content-page .container {
    max-width: 850px; 
}
.legal-content-page h1.title {
    margin-bottom: 2.5rem;
    font-size: 2.8rem;
    color: var(--text-color-headings);
}
.legal-content-page h2, .legal-content-page h3, .legal-content-page h4 { 
    font-family: var(--font-primary);
    color: var(--text-color-headings);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.legal-content-page h2 { font-size: 1.8rem; }
.legal-content-page h3 { font-size: 1.5rem; }
.legal-content-page h4 { font-size: 1.2rem; }

.legal-content-page p, .legal-content-page li {
    font-size: 1.1rem;
    color: var(--text-color-medium);
    line-height: 1.9;
}
.legal-content-page ul, .legal-content-page ol {
    margin-left: 1.5rem; /* Bulma might handle this differently */
    margin-bottom: 1.5rem;
}
.legal-content-page ul li { list-style: disc; }
.legal-content-page ol li { list-style: decimal; }

/* Parallax Elements (Basic) */
.parallax-element {
    transition: transform 0.2s linear; /* Use linear for smoother parallax tracking */
}

/* Scroll Reveal Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 0.1s; /* Slight delay */
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Barba.js Page Transitions */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.4s ease-in-out;
}
.barba-leave-to {
  opacity: 0;
  transform: translateY(20px); /* Optional: slight movement */
}
.barba-enter-from {
  opacity: 0;
  transform: translateY(-20px); /* Optional: slight movement */
}
.barba-enter-to {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media screen and (max-width: 1023px) { /* Tablet and below */
    .section-title {
        font-size: 2.2rem;
    }
    .section-subtitle {
        font-size: 1.15rem;
    }
}

@media screen and (max-width: 768px) { /* Mobile */
    .section {
        padding: 3.5rem 1rem;
    }
    .section-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }
    .hero-paragraph {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }
    .stat-number {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    .stat-label {
        font-size: 0.95rem;
    }
    .footer .columns {
        text-align: center;
    }
    .footer .column:not(:last-child) {
        margin-bottom: 2.5rem;
    }
    /* Stack columns for cards on mobile */
    .columns.is-multiline > .column {
        width: 100%;
        max-width: 450px; 
        margin-left: auto;
        margin-right: auto;
        flex-basis: auto !important; /* Override Bulma's flex basis */
    }
    .contact-form-container.glass-effect {
        padding: 2rem;
    }
    .legal-content-page .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .legal-content-page h1.title { font-size: 2.2rem; }
}