/* style.css */

/* --- VARIABLE DEFINITIONS --- */
:root {
    /* Colors */
    --primary-color: #4A00E0;
    --secondary-color: #8E2DE2;
    --accent-color: #00F260;
    --text-color: #363636; /* Bulma's default text color */
    --text-color-light: #f5f5f5;
    --background-color: #ffffff;
    --background-color-light: #f9f8ff;
    --background-color-dark: #1c1c1e;
    --border-color: #dbdbdb;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --button-shadow-color: rgba(74, 0, 224, 0.4);

    /* Gradients */
    --gradient-primary: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(45deg, var(--accent-color), #0575E6);
    --gradient-overlay: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    --gradient-biomorphic: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Sizing & Radius */
    --radius-small: 8px;
    --radius-medium: 15px;
    --radius-large: 30px;
    --radius-biomorphic: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* --- BASE & GLOBAL STYLES --- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.1rem;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    font-weight: 800;
}

.title.is-1 { font-size: 4rem; }
.title.is-2 { font-size: 3rem; }
.title.is-3 { font-size: 2rem; }

.section-title {
    margin-bottom: 1.5rem !important;
    color: #222222;
}

.title-underline {
    height: 4px;
    width: 80px;
    background: var(--gradient-primary);
    margin: 0 auto 3rem auto;
    border: none;
    border-radius: var(--radius-small);
}

/* --- SCROLL ANIMATIONS --- */
[data-scroll-effect] {
    opacity: 1;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-scroll-effect].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER & NAVIGATION --- */
.navbar.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar-item.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-item:hover, .navbar-item.is-active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

/* --- GLOBAL COMPONENT STYLES --- */
/* Buttons */
.button.is-primary, .button.custom-button {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-large);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1.5em 2.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px var(--button-shadow-color);
}

.button.is-primary:hover, .button.custom-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--button-shadow-color);
}

.button.is-primary.is-outlined {
    background: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
    box-shadow: none;
}

.button.is-primary.is-outlined:hover {
    background: var(--text-color-light);
    color: var(--primary-color);
    border-color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-medium);
    box-shadow: 0 8px 30px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card .card-image {
    margin-bottom: 0;
}

.card .card-image figure {
    height: 250px;
    overflow: hidden;
}

.card .card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.card .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    padding: 2rem;
}

.card .media-content {
    text-align: center;
}

/* --- SECTION STYLES --- */
.section {
    padding: 6rem 1.5rem;
}

/* Hero Section */
#hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
#hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Parallax Sections */
.parallax-container {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* About Section */
#about .image-container {
    border-radius: var(--radius-biomorphic);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Instructors Section */
#instructors {
    background-color: var(--background-color-light);
}

/* Workshops Section - Custom Slider */
.custom-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-color);
}

.custom-slider .slide {
    display: none;
    position: relative;
}

.custom-slider .slide.is-active {
    display: block;
}

.custom-slider .slide img {
    width: 100%;
    height: auto;
    display: block;
}

.custom-slider .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--gradient-overlay);
    color: var(--text-color-light);
    padding: 2rem;
    text-align: left;
}

.slide-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color-light);
}

/* Innovation & Sustainability Section */
#innovation .column {
    border-radius: var(--radius-biomorphic);
}

/* Partners Section */
.partners-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.partners-carousel img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.partners-carousel img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Clientele Section */
.testimonial-card {
    background-color: var(--background-color-light);
    border-left: 5px solid;
    border-image: var(--gradient-primary) 1;
    border-radius: var(--radius-small);
    padding: 2rem;
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-weight: 700;
    font-style: normal;
    font-family: var(--font-heading);
}

/* Contact Section */
#contact .input, #contact .textarea, #contact .select select {
    border-radius: var(--radius-medium);
    border: 2px solid var(--border-color);
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 1.2em;
}

#contact .input:focus, #contact .textarea:focus, #contact .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(74, 0, 224, 0.2);
}

#contact .label {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--background-color-dark);
    color: var(--text-color-light);
}

.footer .title {
    color: var(--text-color-light);
}

.footer a {
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer .content p {
    color: rgba(255, 255, 255, 0.7);
}

/* --- STATIC PAGES --- */
.static-page-content, .success-page-content {
    padding-top: 10rem;
    padding-bottom: 4rem;
}

.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    text-align: center;
}

.success-page .box {
    max-width: 600px;
    background-color: var(--card-background);
    border-radius: var(--radius-medium);
    padding: 3rem;
}

/* --- RESPONSIVE STYLES --- */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-color);
        box-shadow: 0 8px 16px var(--shadow-color);
        border-radius: 0 0 var(--radius-medium) var(--radius-medium);
    }
}

@media screen and (max-width: 768px) {
    .title.is-1 { font-size: 3rem; }
    .title.is-2 { font-size: 2.2rem; }
    .section { padding: 4rem 1rem; }
    
    .static-page-content, .success-page-content {
        padding-top: 8rem;
    }
}