/* ===== Root Variables ===== */
:root {
  /* Primary Colors */
  --primary-color: #2e86de;
  --primary-light: #54a0ff;
  --primary-dark: #1c6dc9;
  
  /* Secondary Colors */
  --secondary-color: #26de81;
  --secondary-light: #2ecc71;
  --secondary-dark: #20be6b;
  
  /* Accent Colors */
  --accent-color: #fd9644;
  --accent-light: #fa8231;
  --accent-dark: #fc6f3d;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f7f9fb;
  --medium-gray: #dfe6e9;
  --dark-gray: #636e72;
  --black: #2d3436;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --blur-radius: 10px;
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  
  /* Animations */
  --transition-speed: 0.3s;
  --transition-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--black);
  line-height: 1.6;
  background-color: var(--light-gray);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Glassmorphism Elements ===== */
.glassmorphism-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-radius));
  -webkit-backdrop-filter: blur(var(--blur-radius));
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glassmorphism-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.15);
}

.glassmorphism-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.glassmorphism-footer {
  background: linear-gradient(135deg, rgba(46, 134, 222, 0.9), rgba(38, 222, 129, 0.9));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--white);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

/* ===== Buttons ===== */
.button {
  transition: all 0.3s ease;
  font-family: var(--heading-font);
  font-weight: 600;
  border-radius: 8px;
}

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

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

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

.button.is-outlined.is-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.glassmorphism-btn {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 134, 222, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 134, 222, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 134, 222, 0);
  }
}

/* ===== Animated Links ===== */
.animated-link {
  position: relative;
  overflow: hidden;
}

.animated-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.animated-link:hover::after {
  width: 100%;
}

/* ===== Navigation ===== */
.navbar {
  padding: 1rem 0;
}

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

.navbar-item:hover {
  color: var(--primary-color);
}

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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-title {
  margin-bottom: 1rem;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero .subtitle {
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-body {
  display: flex;
  align-items: center;
  padding: 9rem 1.5rem;
}

.adaptive-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-down-arrow {
  margin-bottom: 2rem;
}

.pulse {
  animation: pulse-down 2s infinite;
}

@keyframes pulse-down {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== About Section ===== */
.about-section {
  padding: 6rem 0;
  position: relative;
}

.about-section .image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.animated-image {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.animated-image:hover {
  transform: scale(1.03);
}

.animated-image img {
  transition: transform 0.8s ease;
}

.animated-image:hover img {
  transform: scale(1.05);
}

/* ===== Services Section ===== */
.services-section {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.services-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-section .card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.services-section .card .title {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

/* ===== Workshops Section ===== */
.workshops-section {
  padding: 6rem 0;
  position: relative;
}

.custom-slider {
  position: relative;
  margin: 2rem 0;
}

.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 2rem;
  padding-bottom: 2rem;
}

.slider-container::-webkit-scrollbar {
  height: 6px;
}

.slider-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 10px;
}

.slider-container::-webkit-scrollbar-track {
  background-color: var(--medium-gray);
  border-radius: 10px;
}

.slide {
  flex: 0 0 auto;
  width: calc(100% - 2rem);
  scroll-snap-align: center;
  padding: 1rem;
}

@media screen and (min-width: 769px) {
  .slide {
    width: calc(50% - 2rem);
  }
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.slider-controls button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* ===== Instructors Section ===== */
.instructors-section {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.instructors-section .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.instructors-section .image {
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

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

.instructors-section .card:hover .image {
  transform: scale(1.03);
}

.instructors-section .card-content {
  padding: 1.5rem;
}

/* ===== Mission Section ===== */
.mission-section {
  padding: 6rem 0;
  position: relative;
}

.mission-section .image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

/* ===== Research Section ===== */
.research-section {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.research-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.research-section .card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.research-section .card-content {
  flex-grow: 1;
  padding: 1.5rem;
}

/* ===== Resources Section ===== */
.resources-section {
  padding: 6rem 0;
  position: relative;
}

.resources-section .card {
  height: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease;
}

.resources-section .card:hover {
  transform: translateY(-10px);
}

.resources-section .card .fas {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ===== Projects Section ===== */
.projects-section {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.projects-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-section .card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.projects-section .card-content {
  flex-grow: 1;
  padding: 1.5rem;
}

.projects-section .tag {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ===== News Section ===== */
.news-section {
  padding: 6rem 0;
  position: relative;
}

.news-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-section .card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.news-section .card-content {
  flex-grow: 1;
  padding: 1.5rem;
}

.news-section .subtitle {
  color: var(--dark-gray);
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.contact-section .card {
  padding: 2rem;
}

.contact-section .social-links a {
  color: var(--primary-color);
  transition: color 0.3s ease;
  margin-right: 1rem;
}

.contact-section .social-links a:hover {
  color: var(--primary-dark);
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Footer ===== */
.footer {
  padding: 4rem 0 2rem;
}

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

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.9);
}

.footer a {
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

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

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

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

.footer .social-links a {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.footer .social-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer .newsletter-signup .input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.footer .newsletter-signup .input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer .newsletter-signup .button {
  background-color: var(--white);
  color: var(--primary-color);
}

.footer .newsletter-signup .button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ===== Back to top button ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Utility Classes ===== */
.h-100 {
  height: 100%;
}

/* ===== Animations ===== */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

[data-animation="slide-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="fade-in"] {
  opacity: 0;
  transition: opacity 0.8s ease;
}

[data-animation="scale-in"] {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-active[data-animation="slide-up"] {
  opacity: 1;
  transform: translateY(0);
}

.animate-active[data-animation="fade-in"] {
  opacity: 1;
}

.animate-active[data-animation="scale-in"] {
  opacity: 1;
  transform: scale(1);
}

/* ===== Success Page ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  padding: 2rem;
}

.success-card {
  max-width: 600px;
  width: 100%;
  padding: 3rem;
  text-align: center;
}

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

/* ===== Terms & Privacy Pages ===== */
.content-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

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

.content-page h1 {
  margin-bottom: 2rem;
}

.content-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* ===== Media Queries ===== */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-body {
    padding: 6rem 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .column.is-one-third,
  .column.is-half {
    padding: 0.75rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .hero-body {
    padding: 5rem 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .title.is-2 {
    font-size: 1.75rem;
  }
}

*{
  opacity: 1 !important;
}