/* Base Styles */
:root {
  /* Triada color scheme */
  --primary-color: #1e88e5;
  --primary-dark: #1565c0;
  --primary-light: #64b5f6;
  --secondary-color: #e53935;
  --secondary-dark: #c62828;
  --secondary-light: #ef5350;
  --tertiary-color: #43a047;
  --tertiary-dark: #2e7d32;
  --tertiary-light: #66bb6a;
  --light-color: #f5f5f5;
  --dark-color: #333333;
  --text-color: #2c2c2c;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-bg-dark: rgba(0, 0, 0, 0.15);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --glass-radius: 15px;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* Glassmorphism Elements */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.glass-card-dark {
  background: var(--glass-bg-dark);
  color: white;
}

/* Biomorphic Design Elements */
.bio-shape {
  position: absolute;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  background: linear-gradient(to right, rgba(30, 136, 229, 0.2), rgba(67, 160, 71, 0.2));
  animation: morph 15s linear infinite alternate;
  z-index: -1;
}

@keyframes morph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    border-radius: 58% 42% 30% 70% / 55% 55% 45% 45%;
    transform: translate(20px, 20px) rotate(5deg);
  }
}

/* Header */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
}

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

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

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

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

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero .title, 
.hero .subtitle,
.hero p {
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Button Styles */
.button {
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button:hover::after {
  left: 100%;
}

.button:active {
  transform: translateY(0);
}

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

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

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

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

.button.is-tertiary {
  background-color: var(--tertiary-color);
  color: white;
}

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

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

.button.is-light:hover {
  background-color: #e8e8e8;
}

.button.is-outlined {
  border: 2px solid;
}

.button.is-rounded {
  border-radius: 9999px;
}

/* Stats Widget */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

.stat-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  min-width: 180px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease;
}

.stat-widget:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  text-align: center;
}

/* Vision Section */
.vision-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vision-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Cards */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--glass-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
  overflow: hidden;
  border-radius: var(--glass-radius) var(--glass-radius) 0 0;
}

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

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

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

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

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

/* Team Section */
.team-card {
  text-align: center;
}

.team-card .image-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .social-links {
  margin-top: 1rem;
}

/* Events Calendar */
.calendar-card {
  overflow: hidden;
}

.event-item {
  display: flex;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.event-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.event-date {
  min-width: 80px;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--primary-color);
  color: white;
  margin-right: 1rem;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

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

/* Webinars Section */
.webinar-card {
  position: relative;
  overflow: hidden;
}

.webinar-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
}

.webinar-card .image-container {
  height: 200px;
}

.webinar-content {
  padding: 1.5rem;
}

.webinar-meta {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Community Section */
.community-card {
  text-align: center;
}

.community-icon {
  font-size: 2.5rem;
  color: var(--tertiary-color);
  margin-bottom: 1rem;
}

.member-count {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1rem 0;
}

/* News Section */
.news-card {
  display: flex;
  flex-direction: column;
}

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

.news-meta {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.news-tag {
  display: inline-block;
  background: var(--primary-light);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.read-more::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Awards Section */
.awards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.award-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px;
}

.award-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.award-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.award-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* Media Section */
.media-card {
  position: relative;
  overflow: hidden;
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-card:hover .media-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.media-card:hover .play-button {
  transform: scale(1.1);
  background: var(--primary-dark);
}

/* Contact Form */
.contact-card {
  overflow: hidden;
}

.contact-info {
  height: 100%;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
  color: white;
  border-radius: var(--glass-radius) 0 0 var(--glass-radius);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  margin-right: 1rem;
  font-size: 1.2rem;
}

.contact-image {
  margin-top: 2rem;
  text-align: center;
}

.contact-image img {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

/* Form Styling */
.input, .textarea, .select select {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(200, 200, 200, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.input:focus, .textarea:focus, .select select:focus {
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.3);
  border-color: var(--primary-color);
}

.label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.field {
  margin-bottom: 1.5rem;
}

.control.is-focused {
  position: relative;
}

.control.is-focused::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.control.is-focused.is-active::after {
  transform: scaleX(1);
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: #f5f5f5;
  padding: 4rem 1.5rem;
}

.footer .title {
  color: white;
}

.footer-links {
  list-style: none;
  margin-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #b3b3b3;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  color: #b3b3b3;
  margin-right: 1rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  color: white;
}

/* Newsletter Form */
.newsletter-form .input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.newsletter-form .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

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

.newsletter-form .button:hover {
  background: var(--primary-dark);
}

/* Success Page */
.success-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.success-card {
  text-align: center;
  padding: 3rem;
}

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

.success-message {
  margin: 2rem 0;
}

.success-image img {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

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

/* FAQ Section */
.faq-card {
  padding: 2rem;
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding-top: 1rem;
  display: none;
}

.faq-answer.is-active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Testimonials */
.testimonial-card {
  text-align: center;
  padding: 2rem;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  font-style: italic;
  position: relative;
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-content::before,
.testimonial-content::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-light);
  position: absolute;
  line-height: 1;
}

.testimonial-content::before {
  top: -10px;
  left: 0;
}

.testimonial-content::after {
  bottom: -30px;
  right: 0;
  transform: rotate(180deg);
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-position {
  font-size: 0.9rem;
  color: #777;
}

/* Resource Cards */
.resource-card {
  height: 100%;
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

/* Cookie Popup Styling */
#cookiePopup {
  font-family: 'IBM Plex Sans', sans-serif;
  border-radius: 10px 10px 0 0;
}

#acceptCookies {
  background-color: var(--tertiary-color);
  transition: background-color 0.3s ease;
}

#acceptCookies:hover {
  background-color: var(--tertiary-dark);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

/* Media Queries */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .navbar-item {
    color: var(--dark-color);
  }
}

@media screen and (max-width: 768px) {
  .contact-info {
    border-radius: var(--glass-radius) var(--glass-radius) 0 0;
    margin-bottom: 1rem;
  }
  
  .stats-container {
    flex-direction: column;
  }
  
  .stat-widget {
    width: 100%;
  }
  
  .event-item {
    flex-direction: column;
  }
  
  .event-date {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .button.is-large {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

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

.mb-3 {
  margin-bottom: 0.75rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.mb-5 {
  margin-bottom: 1.5rem !important;
}

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

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

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

.mt-3 {
  margin-top: 0.75rem !important;
}

.mt-4 {
  margin-top: 1rem !important;
}

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

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

.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 0.25rem !important;
}

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

.p-3 {
  padding: 0.75rem !important;
}

.p-4 {
  padding: 1rem !important;
}

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

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