/* -------------------------------------------------------------------------- */
/*                                  VARIABLES                                 */
/* -------------------------------------------------------------------------- */
:root {
  /* Triad Color Scheme */
  --primary-color: #9D00FF;   /* Vibrant Purple */
  --secondary-color: #00D1B2;  /* Teal */
  --accent-color: #FFC700;    /* Gold/Amber */

  /* Dark Theme Backgrounds */
  --bg-dark: #121212;
  --bg-dark-accent: #1c1c1c;
  --bg-darker: #0a0a0a;

  /* Text Colors */
  --text-light: #FFFFFF;
  --text-medium: #E0E0E0;
  --text-dark: #222222;
  --text-grey-light: #a0a0a0;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --dynamic-gradient: linear-gradient(135deg, #6a057f 0%, #f3a712 100%);
  
  /* Fonts */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;

  /* Sizing & Spacing */
  --navbar-height: 52px;
  --card-border-radius: 15px;
  --button-border-radius: 50px;
}

/* -------------------------------------------------------------------------- */
/*                                GLOBAL STYLES                               */
/* -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark); /* Prevents white flash on load */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-medium);
  background-color: var(--bg-dark);
  line-height: 1.6;
}

.section {
  padding: 5rem 1.5rem;
}

/* -------------------------------------------------------------------------- */
/*                                TYPOGRAPHY                                  */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, .title, .subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-light); /* Override Bulma defaults for dark theme */
}

h2.title, .title.is-2 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 3rem !important;
}

.subtitle {
    color: var(--text-medium);
}

a {
  color: var(--secondary-color);
  transition: color 0.3s ease-in-out;
}

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

.has-text-primary-light {
    color: var(--secondary-color) !important;
}

.has-text-shadow-strong {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

/* -------------------------------------------------------------------------- */
/*                            GLOBAL UI COMPONENTS                            */
/* -------------------------------------------------------------------------- */
/* === Buttons === */
.button {
  border-radius: var(--button-border-radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease-in-out;
  border: none;
}

.button.is-primary {
  background: var(--primary-gradient);
  color: var(--text-light);
}

.button.is-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 25px var(--primary-color);
  color: var(--text-light);
}

.button.is-secondary {
    background-color: var(--bg-dark-accent);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.button.is-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 0 15px var(--secondary-color);
}

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

/* === Forms === */
.futuristic-input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--secondary-color);
    color: var(--text-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.futuristic-input::placeholder {
    color: var(--text-grey-light);
}
.futuristic-input:focus, .futuristic-input:active {
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
}
.contact-form .label {
    color: var(--text-medium);
}

/* === Cards === */
.card {
  background-color: rgba(40, 40, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--secondary-color);
}

.card-content {
  color: var(--text-medium);
  width: 100%;
  flex-grow: 1; /* Allows content to push footer down */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-image {
    width: 100%;
}
.card-image img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

/* -------------------------------------------------------------------------- */
/*                                 LAYOUT                                     */
/* -------------------------------------------------------------------------- */
/* === Header / Navbar === */
.header.is-fixed-top .navbar {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-item.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.navbar-item {
  transition: color 0.3s ease, background-color 0.3s ease;
  font-weight: 700;
}

.navbar-item:hover, .navbar-item:focus {
  color: var(--secondary-color);
  background-color: transparent !important;
}

.navbar-burger {
  color: var(--text-light);
}

/* === Footer === */
.footer {
  background-color: var(--bg-darker);
  border-top: 2px solid var(--primary-color);
  padding: 4rem 1.5rem 3rem;
}
.footer .title {
  color: var(--text-light);
}
.footer a, .footer p {
  color: var(--text-grey-light);
}
.footer a:hover {
  color: var(--secondary-color);
}
.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/*                                 SECTIONS                                   */
/* -------------------------------------------------------------------------- */
/* === Hero Section === */
.hero#hero {
  position: relative;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

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

.hero .title, .hero .subtitle {
  color: var(--text-light);
}

/* === Statistics Section === */
.stat-card .counter {
    font-size: 4rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.stat-card .animated-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

/* === Testimonials Section === */
.testimonials-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}
.testimonial-card {
    background: rgba(18, 18, 18, 0.7);
}
.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
}
.author {
    font-weight: bold;
    color: var(--secondary-color);
}

/* === Gallery Section === */
.gallery-card {
    background-color: transparent;
    backdrop-filter: none;
    border: none;
}
.gallery-card .card-image {
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

/* === Press Section === */
.press-article.card {
    height: 100%;
}

/* === Events Calendar Section === */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.event-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-dark-accent);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    align-items: center;
    transition: background-color 0.3s ease;
}
.event-item:hover {
    background-color: #2a2a2a;
}
.event-date {
    background: var(--primary-gradient);
    color: var(--text-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    min-width: 80px;
}
.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}
.event-date .day {
    font-size: 2rem;
    line-height: 1;
}

/* === Resources Section === */
.resource-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
}
.resource-box ul {
    list-style: none;
    margin-left: 0;
}
.resource-box ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}
.resource-box ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
    top: 5px;
}
.resource-box ul li a {
    color: var(--text-light);
    font-weight: bold;
    text-decoration: none;
}
.resource-box ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*                               STATIC PAGES                                 */
/* -------------------------------------------------------------------------- */
.static-page-content, .contacts-page-content, .about-page-content {
    padding-top: calc(var(--navbar-height) + 3rem); /* Offset for fixed header */
    padding-bottom: 4rem;
    min-height: 80vh;
}
.static-page-content .container h1,
.contacts-page-content .container h1,
.about-page-content .container h1 {
    margin-bottom: 2rem;
}

.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background: var(--bg-dark);
  padding: 1.5rem;
}
.success-page .success-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/*                             ANIMATIONS & EFFECTS                           */
/* -------------------------------------------------------------------------- */
@keyframes float {
	0% { transform: translatey(0px); }
	50% { transform: translatey(-10px); }
	100% { transform: translatey(0px); }
}

.stat-card .animated-icon {
    animation: float 4s ease-in-out infinite;
}

/* On-scroll reveal animation */
.js-scroll-trigger {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-scroll-trigger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Transition */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

body.fade-in #page-transition-overlay {
    opacity: 0;
}

/* -------------------------------------------------------------------------- */
/*                                RESPONSIVE                                  */
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background: rgba(18, 18, 18, 0.98);
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    }
}

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

    h1.title.is-1 {
        font-size: 2.5rem;
    }
    h2.title.is-2 {
        font-size: 2rem;
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-date {
        flex-direction: row;
        gap: 1rem;
        align-items: baseline;
    }
}