/* ===== VARIABLES ===== */
:root {
  /* Tetrad Color Scheme */
  --primary: #ff6b35; /* Vibrant Orange */
  --primary-dark: #e85a2a;
  --secondary: #2ec4b6; /* Teal */
  --secondary-dark: #1ea89d;
  --accent1: #a23bec; /* Purple */
  --accent1-dark: #8b27d0;
  --accent2: #ffbc42; /* Yellow */
  --accent2-dark: #e5a935;

  /* Neutral Colors */
  --white: #ffffff;
  --light: #f5f5f5;
  --gray-light: #e0e0e0;
  --gray: #9e9e9e;
  --dark: #333333;
  --black: #121212;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent2));
  --gradient-secondary: linear-gradient(
    135deg,
    var(--secondary),
    var(--accent1)
  );
  --gradient-dark: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.5)
  );

  /* Typography */
  --font-heading: "Oswald", sans-serif;
  --font-body: "Nunito", sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

p {
  margin-bottom: var(--space-md);
}

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

/* ===== PARTICLES ANIMATION ===== */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 3s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

/* ===== UTILITIES ===== */
.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}
.text-accent1 {
  color: var(--accent1);
}
.text-accent2 {
  color: var(--accent2);
}
.text-white {
  color: var(--white) !important;
}
.text-dark {
  color: var(--dark);
}

.bg-primary {
  background-color: var(--primary);
}
.bg-secondary {
  background-color: var(--secondary);
}
.bg-accent1 {
  background-color: var(--accent1);
}
.bg-accent2 {
  background-color: var(--accent2);
}
.bg-light {
  background-color: var(--light);
}
.bg-dark {
  background-color: var(--dark);
}

.has-shadow-sm {
  box-shadow: var(--shadow-sm);
}
.has-shadow-md {
  box-shadow: var(--shadow-md);
}
.has-shadow-lg {
  box-shadow: var(--shadow-lg);
}

.has-gradient-primary {
  background: var(--gradient-primary);
}
.has-gradient-secondary {
  background: var(--gradient-secondary);
}

/* ===== BUTTONS ===== */
.button,
button,
input[type="submit"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button::after,
button::after,
input[type="submit"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: height var(--transition-medium);
  z-index: -1;
}

.button:hover::after,
button:hover::after,
input[type="submit"]:hover::after {
  height: 100%;
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.button.is-secondary,
.button.is-secondary:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
}

.button.is-light,
.button.is-light:hover {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.button.is-light:hover {
  background-color: var(--light);
  transform: translateY(-2px);
}

.button.is-large {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
  padding: 0.5rem 0;
}

.navbar.is-fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dark);
  position: relative;
}

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

.navbar-brand .title {
  margin-bottom: 0;
  color: var(--primary);
}

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

.navbar-burger span {
  height: 2px !important;
  width: 20px;
  left: calc(50% - 10px);
  background-color: var(--dark);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-fullheight {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--gradient-dark);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
}

.hero-body .title,
.hero-body .subtitle,
.hero-body p {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-body .title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-body .subtitle {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ===== FEATURES SECTION ===== */
.section {
  padding: 4rem 1.5rem;
}

.section .title.is-2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section .title.is-2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image figure {
  transition: transform var(--transition-slow);
}

.card:hover .card-image figure {
  transform: scale(1.05);
}

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

.card-content .title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-content .content {
  color: var(--dark);
}

/* ===== MISSION SECTION ===== */
.box {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background-color: var(--white);
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--gray-light);
  top: 0;
  bottom: 0;
  left: 30px;
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 70px;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  left: 22px;
  background-color: var(--primary);
  border-radius: 50%;
  z-index: 1;
}

.timeline-marker.is-primary {
  background: var(--gradient-primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.timeline-content {
  padding: 1rem;
  background-color: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-content .title {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* ===== RESOURCES SECTION ===== */
.resource-box {
  transition: all var(--transition-medium);
  border-left: 5px solid var(--primary);
  padding: 1.5rem;
  height: 100%;
}

.resource-box:hover {
  border-left-color: var(--accent1);
  background-color: var(--light);
  transform: translateX(5px);
}

.resource-box .title {
  color: var(--dark);
  transition: color var(--transition-fast);
}

.resource-box:hover .title {
  color: var(--primary);
}

/* ===== EVENTS SECTION ===== */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.carousel-items {
  display: flex;
  transition: transform var(--transition-slow);
}

.carousel-item {
  flex: 0 0 100%;
  display: none;
  width: 100%;
}

.carousel-item.active {
  display: block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: none;
  transition: all var(--transition-fast);
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: var(--white);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* ===== ACCOLADES SECTION ===== */
.h-100 {
  height: 100%;
}

/* ===== CONTACT SECTION ===== */
.map-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 1.5rem;
}

.label {
  color: var(--dark);
  font-weight: 600;
}

.input,
.textarea,
.select select {
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-light);
  transition: border-color var(--transition-fast);
  box-shadow: none;
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

img {
  object-fit: cover;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark) !important;
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
}

.footer .title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer p {
  margin-bottom: 1rem;
  color: var(--gray-light);
}

.footer ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

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

.footer ul li a {
  color: var(--gray-light);
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--primary);
}

.social-links p {
  margin-bottom: 0.75rem;
}

.social-links a {
  color: var(--gray-light);
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* ===== COOKIE CONSENT ===== */
#cookieConsent {
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

#acceptCookies {
  transition: background-color var(--transition-fast);
}

#acceptCookies:hover {
  background-color: #3e8e41;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* ===== PRIVACY & TERMS PAGES ===== */
.content-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

.content-page .container {
  max-width: 800px;
}

.content-page h1 {
  margin-bottom: 2rem;
  color: var(--primary);
}

.content-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.content-page p {
  margin-bottom: 1.5rem;
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 768px) {
  .hero-body .title {
    font-size: 2.5rem;
  }

  .hero-body .subtitle {
    font-size: 1.5rem;
  }

  .section .title.is-2 {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 12px;
  }

  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .navbar-item {
    padding: 0.75rem 1.5rem;
  }

  .navbar-item::after {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .hero-body .title {
    font-size: 2rem;
  }

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

  .button.is-large {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
  }
}

/* Adaptive Typography */
@media screen and (min-width: 1200px) {
  html {
    font-size: 18px;
  }

  .hero-body .title {
    font-size: 4rem;
  }

  .hero-body .subtitle {
    font-size: 2.5rem;
  }
}

@media screen and (min-width: 1600px) {
  html {
    font-size: 20px;
  }

  .container {
    max-width: 1400px;
  }
}

/* === ADDITIONAL UTILITIES === */
.mb-5 {
  margin-bottom: 1.5rem !important;
}

.mb-6 {
  margin-bottom: 2rem !important;
}

.mt-5 {
  margin-top: 1.5rem !important;
}

.mt-6 {
  margin-top: 2rem !important;
}

.p-5 {
  padding: 1.5rem !important;
}

.p-6 {
  padding: 2rem !important;
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.4s;
}

.card:nth-child(4) {
  animation-delay: 0.6s;
}

.card:nth-child(5) {
  animation-delay: 0.8s;
}

.card:nth-child(6) {
  animation-delay: 1s;
}

.carousel-item .image img {
  width: 100%;
  max-width: 500px;
  max-height: 200px;
  object-fit: cover;
  display: block;
  margin: 14px auto 0;
}
