/* Root Variables */
:root {
  /* Primary Colors */
  --primary-color: #3a7bd5;
  --primary-dark: #2c5ea3;
  --primary-light: #5c95e8;
  
  /* Complementary Colors */
  --complementary-color: #d5823a;
  --complementary-dark: #a3632c;
  --complementary-light: #e89f5c;
  
  /* Neutral Colors */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f7fa;
  --background-dark: #2b2d42;
  
  /* 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);
  
  /* Dark Glassmorphism */
  --dark-glass-bg: rgba(43, 45, 66, 0.75);
  --dark-glass-border: rgba(255, 255, 255, 0.1);
  
  /* Transitions */
  --transition-speed: 0.3s;
  --transition-function: ease-in-out;
}

/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--background-light);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

/* Global Link Styles */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-function);
}

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

img {
  object-fit: cover;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: var(--text-light);
}

.success-content {
  max-width: 600px;
  padding: 2rem;
}

/* Glassmorphism Containers */
.glassmorphism-container {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.glassmorphism-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px 0 var(--glass-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) var(--transition-function), 
              box-shadow var(--transition-speed) var(--transition-function);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

/* Hero Section */
.hero {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  position: relative;
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

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

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

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

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

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

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

/* Animation for Buttons */
.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.morph-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.morph-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.morph-btn:hover::after {
  width: 200%;
  height: 200%;
}

/* Form Inputs */
.morph-input {
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.morph-input:focus {
  box-shadow: 0 0 0 2px var(--primary-color);
  border-color: var(--primary-color);
}

/* Section Styles */
.section {
  padding: 3rem 1.5rem;
}

.section .title {
  margin-bottom: 1rem;
}

.section .subtitle {
  margin-bottom: 2rem;
  color: #666;
}

/* Card Images */
.card-image {
  overflow: hidden;
}

.image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

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

/* Card Content */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  margin-bottom: 0.75rem;
}

.card-content .content {
  flex-grow: 1;
  margin-bottom: 1rem;
}

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

/* Price Tags */
.price-tag {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Progress Bars */
.progress-container {
  margin: 1rem 0;
}

.progress.is-primary::-webkit-progress-value {
  background-color: var(--primary-color);
}

.progress.is-primary::-moz-progress-bar {
  background-color: var(--primary-color);
}

/* Media Objects */
.media-left img {
  border-radius: 8px;
}

/* Statistics */
.statistics-container {
  margin-top: 2rem;
}

.statistic-widget {
  text-align: center;
  padding: 1rem;
}

.statistic-widget .is-size-1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 2rem 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-right: 1rem;
}

.timeline-content {
  background-color: var(--glass-bg);
  border-radius: 10px;
  padding: 1rem;
  flex-grow: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px 0 var(--glass-shadow);
}

.timeline-content .heading {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Research Projects */
.research-projects {
  margin-top: 2rem;
}

.research-project {
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.research-project:last-child {
  margin-bottom: 0;
}

/* External Resources */
.resource-card {
  height: 100%;
}

/* Success Stories */
.media {
  border-radius: 10px;
}

.media-left .image {
  overflow: hidden;
  border-radius: 50%;
}

/* News Section */
.news-card {
  height: 100%;
}

.news-card .image {
  height: 200px;
  overflow: hidden;
}

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

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

/* FAQ Section */
.faq-question {
  cursor: pointer;
  position: relative;
  padding-right: 30px;
  transition: color var(--transition-speed) var(--transition-function);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  transition: transform var(--transition-speed) var(--transition-function);
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 1rem;
  max-height: 1000px;
  overflow: hidden;
  transition: max-height var(--transition-speed) var(--transition-function);
}

/* Contact Form */
.contact-form .field {
  margin-bottom: 1.5rem;
}

/* Map Container */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
  height: 300px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Community Section */
.events-timeline {
  margin-top: 2rem;
}

.event-card {
  padding: 1.5rem;
  height: 100%;
}

.event-date {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.event-title {
  margin-bottom: 0.75rem;
}

/* Footer */
.footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 3rem 1.5rem;
}

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

.footer a {
  color: var(--text-light);
  transition: color var(--transition-speed) var(--transition-function);
}

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

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

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

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  transition: transform var(--transition-speed) var(--transition-function);
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Terms & Privacy Pages */
.terms-page, .privacy-page {
  padding-top: 100px;
}

.terms-page .container, .privacy-page .container {
  max-width: 800px;
  margin: 0 auto;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .glassmorphism-container, .glassmorphism-card {
    padding: 1.5rem;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-marker {
    margin-bottom: 1rem;
  }
  
  .card-image .image-container {
    height: 200px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .glassmorphism-container, .glassmorphism-card {
    padding: 1rem;
  }
  
  .card-image .image-container {
    height: 180px;
  }
}

/* Navbar Styles */
.navbar {
  transition: background-color 0.3s ease;
}

.navbar.is-transparent {
  background-color: transparent;
}

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

.navbar-item img {
  max-height: 2.5rem;
}

.navbar-menu.is-active {
  background-color: var(--dark-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-item {
  transition: color 0.3s ease;
}

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

/* Transitions between pages */
.page-transition {
  transition: opacity 0.5s ease;
}

.page-transition.is-entering {
  opacity: 0;
}

.page-transition.is-leaving {
  opacity: 0;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}