/* Root Variables */
:root {
    --primary-color: #3a7d7c; /* Deep Teal */
    --primary-color-hover: #4a9d9b;
    --text-color: #4a4a4a; /* Bulma's default text color */
    --heading-color: #2c3e50; /* Dark Slate Blue */
    --background-light: #f7f9fa;
    --background-white: #ffffff;
    --border-color: #dbdbdb;
    --neutral-gray: #7a7a7a;
    --white-color: #ffffff;
    
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --header-height: 60px;

    --animation-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-speed: 0.4s;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    background-color: var(--background-white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.title {
    color: var(--heading-color) !important;
}

.section-title {
    margin-bottom: 3rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--primary-color);
    transition: color var(--transition-speed) var(--animation-timing);
}

a:hover {
    color: var(--primary-color-hover);
}

/* Layout & Helpers */
.section {
    padding: 6rem 1.5rem;
}

/* Reveal Animations Initial State */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
    visibility: hidden;
}


/* Header & Navbar */
.header.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
}

.main-container {
    padding-top: var(--header-height); /* Offset for fixed header */
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--heading-color);
    transition: all var(--transition-speed) var(--animation-timing);
    position: relative;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) var(--animation-timing);
}

.navbar-item:hover::after,
.navbar-item.is-active::after {
    width: 70%;
}

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

.navbar-brand .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
}
.navbar-brand .logo:hover {
    color: var(--primary-color-hover) !important;
}
.navbar-burger {
    color: var(--heading-color);
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .hero-title, .hero .hero-subtitle {
    color: var(--white-color) !important; /* Ensure white text */
}

/* Global Button Styles */
.button {
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: 50px; /* Modern rounded buttons */
    padding: 1.2em 2.5em;
    border-width: 2px;
    transition: all var(--transition-speed) var(--animation-timing);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.is-primary:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
}

.button.is-link {
    background-color: var(--heading-color);
    border-color: var(--heading-color);
}
.button.is-link:hover {
    background-color: #3e5772;
    border-color: #3e5772;
}

.button.is-outlined {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-color);
}

.button.is-outlined:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}


/* Vision Section */
#vision .image-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#vision .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#vision .image-container:hover img {
    transform: scale(1.05);
}

/* Behind the Scenes Section (Accordion) */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed) ease;
}

.accordion-header:hover {
    background-color: #f0f2f3;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-speed) var(--animation-timing);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-in-out, padding var(--transition-speed) ease-in-out;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding-bottom: 1.5rem;
}

/* Media Section (Gallery) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.gallery-item .card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item .card .image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item .card:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* Asymmetrical Balance for Gallery */
@media (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
}


/* Events Section */
.event-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content */
    text-align: center;
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform var(--transition-speed) var(--animation-timing), box-shadow var(--transition-speed) var(--animation-timing);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-card .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.event-card .content {
    flex-grow: 1;
}

.event-card .button {
    margin-top: auto;
}


/* External Resources Section */
.external-links {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.external-links .button {
    border-width: 2px;
    border-radius: 8px;
    text-transform: none;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Contact Section */
.contact-form .label {
    font-weight: 500;
    color: var(--neutral-gray);
}

.contact-form .input,
.contact-form .textarea {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: none;
    transition: all var(--transition-speed) ease;
    padding: 1.2em 1em;
}

.contact-form .input:focus,
.contact-form .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(58, 125, 124, 0.25);
}

/* Footer */
.footer {
    background-color: var(--heading-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 1.5rem 2rem;
}

.footer .title {
    color: var(--white-color) !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer li {
    margin-bottom: 0.5rem;
}

.footer .content p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

/* Page-Specific Styles */

/* Success page */
.success-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    text-align: center;
    padding: 2rem;
}

.success-box {
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Privacy & Terms pages */
.static-page-section {
    padding-top: 100px;
    padding-bottom: 50px;
}
.static-page-section .content h2 {
    margin-top: 2em;
}
.static-page-section .content h2:first-child {
    margin-top: 0;
}


/* Responsive Media Queries */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-white);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        padding: 0.5rem 0;
    }
}


@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }

    .hero.is-fullheight {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
    }

    .title.is-2 {
        font-size: 2rem;
    }
    
    #vision .columns {
        flex-direction: column-reverse;
    }

    .footer .columns {
        text-align: center;
    }
}