/* ===== VARIABLES ===== */
:root {
  /* Primary Colors */
  --primary: #3273dc;
  --primary-dark: #2160c4;
  --primary-light: #4a89dc;
  --primary-hover: #2366d1;
  
  /* Neutral Colors */
  --neutral-100: #ffffff;
  --neutral-200: #f5f5f5;
  --neutral-300: #e8e8e8;
  --neutral-400: #d1d1d1;
  --neutral-500: #a0a0a0;
  --neutral-600: #808080;
  --neutral-700: #606060;
  --neutral-800: #404040;
  --neutral-900: #202020;
  
  /* Accent Colors */
  --accent-1: #ff3860;
  --accent-1-dark: #e8314d;
  --accent-2: #23d160;
  --accent-2-dark: #1fa14c;
  --accent-3: #ffdd57;
  --accent-3-dark: #eecf4d;
  
  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent-1), var(--accent-1-dark));
  --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

/* ===== GLOBAL STYLES ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  line-height: 1.6;
  background-color: var(--neutral-200);
  overflow-x: hidden;
}

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

p {
  margin-bottom: var(--spacing-sm);
}

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

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

.button {
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.is-primary {
  background: var(--gradient-primary);
  border: none;
}

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

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.button:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(30, 30);
    opacity: 0;
  }
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section:nth-child(odd) {
  background-color: var(--neutral-100);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.title, .subtitle {
  font-weight: 700;
}

.title.is-1, .title.is-2 {
  margin-bottom: var(--spacing-md);
  position: relative;
}

.title.is-1::after, .title.is-2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: var(--spacing-xs) auto;
}

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

.navbar.is-fixed-top {
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar-item {
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.navbar-burger {
  height: 3.25rem;
  width: 3.25rem;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

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

.hero .title, .hero .subtitle, .hero-text {
  color: var(--neutral-100) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

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

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 115, 220, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(50, 115, 220, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(50, 115, 220, 0);
  }
}

/* ===== HISTORY SECTION ===== */
.history-section {
  position: relative;
  overflow: hidden;
}

.history-image-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(5deg);
  transition: transform var(--transition-medium);
}

.history-image-container:hover {
  transform: perspective(1000px) rotateY(0);
}

.history-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-md);
  padding-left: 40px;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--neutral-100);
  z-index: 1;
}

.timeline-content {
  background: var(--neutral-100);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

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

/* ===== TOURS SECTION ===== */
.tours-section {
  position: relative;
}

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

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

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

.image-container {
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md);
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.tour-features {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0;
}

.tour-features li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
}

.tour-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: bold;
}

/* ===== EXTERNAL RESOURCES SECTION ===== */
.external-resources {
  background-color: var(--neutral-200);
}

.external-resource-card {
  height: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

.external-resource-card .title a {
  color: var(--neutral-800);
  transition: color var(--transition-fast);
}

.external-resource-card .title a:hover {
  color: var(--primary);
}

/* ===== EVENTS SECTION ===== */
.events-section {
  position: relative;
  background-color: var(--neutral-100);
}

.events-calendar {
  max-width: 800px;
  margin: 0 auto;
}

.event-card {
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

.event-card .card-content {
  display: flex;
  align-items: flex-start;
}

.event-date {
  min-width: 100px;
  padding-right: var(--spacing-sm);
  border-right: 2px solid var(--primary);
  text-align: center;
  margin-right: var(--spacing-md);
}

.event-month {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}

.event-day {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
}

.event-year {
  display: block;
  font-size: 1rem;
  color: var(--neutral-600);
}

.event-details {
  flex: 1;
}

.progress-container {
  margin: var(--spacing-sm) 0;
}

.progress {
  height: 0.6rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.progress::-webkit-progress-bar {
  background-color: var(--neutral-300);
}

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

.progress + span {
  display: block;
  font-size: 0.8rem;
  color: var(--neutral-600);
  text-align: right;
}

/* ===== WEBINARS SECTION ===== */
.webinars-section {
  position: relative;
  background-color: var(--neutral-200);
}

.webinar-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

.webinar-date {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

/* ===== COMMUNITY SECTION ===== */
.community-section {
  position: relative;
  background-color: var(--neutral-100);
  overflow: hidden;
}

.community-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.community-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.stats-container {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stats-item {
  flex: 1;
}

.stats-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  line-height: 1;
}

.stats-label {
  display: block;
  font-size: 1rem;
  color: var(--neutral-600);
}

.community-posts {
  margin-top: var(--spacing-lg);
}

.media-left figure {
  margin-right: 0;
}

.media-content .title {
  margin-bottom: 0;
}

.media-content .subtitle {
  color: var(--neutral-600);
}

/* ===== CUSTOMER STORIES SECTION ===== */
.customer-stories-section {
  position: relative;
  background-color: var(--neutral-200);
}

.story-card {
  height: 100%;
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

.story-card .media-left figure {
  margin-right: var(--spacing-sm);
}

.story-card .media-content .title {
  margin-bottom: 5px;
}

/* ===== SUCCESS STORIES SECTION ===== */
.success-stories-section {
  position: relative;
  background-color: var(--neutral-100);
}

/* Timeline styles already defined in History section */

/* ===== AWARDS SECTION ===== */
.awards-section {
  position: relative;
  background-color: var(--neutral-200);
  text-align: center;
}

.award-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-md);
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

.award-image {
  width: 120px;
  height: 120px;
  margin-bottom: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.award-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.award-item:hover .award-image img {
  transform: scale(1.1);
}

.award-item .title {
  margin-bottom: var(--spacing-xs);
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
  position: relative;
  background-color: var(--neutral-100);
}

.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

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

/* Image container styles already defined in Tours section */

/* ===== CONTACT SECTION ===== */
.contact-section {
  position: relative;
  background-color: var(--neutral-200);
}

.contact-info {
  margin-bottom: var(--spacing-md);
}

.contact-item {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
}

.contact-item .icon {
  margin-right: var(--spacing-sm);
  color: var(--primary);
}

.map-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.contact-form-container {
  background-color: var(--neutral-100);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form .field {
  margin-bottom: var(--spacing-sm);
}

.contact-form .label {
  color: var(--neutral-800);
}

.contact-form .input, .contact-form .textarea, .contact-form .select select {
  border-color: var(--neutral-400);
  box-shadow: none;
  transition: all var(--transition-fast);
}

.contact-form .input:focus, .contact-form .textarea:focus, .contact-form .select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-light);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding: var(--spacing-xl) 0;
}

.footer .title {
  color: var(--neutral-100);
}

.footer p {
  margin-bottom: var(--spacing-xs);
}

.social-links {
  margin-top: var(--spacing-md);
}

.social-links a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
  display: inline-block;
  margin-right: var(--spacing-sm);
}

.social-links a:hover {
  color: var(--primary-light);
}

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

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer .content.has-text-centered {
  border-top: 1px solid var(--neutral-700);
  padding-top: var(--spacing-md);
  font-size: 0.9rem;
}

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-content, .terms-content {
  padding-top: 100px;
}

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

.success-container {
  max-width: 600px;
  padding: var(--spacing-lg);
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

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

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .timeline-marker {
    left: 12px;
  }
  
  .event-card .card-content {
    flex-direction: column;
  }
  
  .event-date {
    min-width: auto;
    padding-right: 0;
    border-right: none;
    border-bottom: 2px solid var(--primary);
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
  }
  
  .stats-container {
    flex-direction: column;
  }
  
  .stats-item {
    margin-bottom: var(--spacing-sm);
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .community-image {
    margin-bottom: var(--spacing-md);
  }
}

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

.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

.fade-in {
  animation: fadeIn 1s ease-out;
}

/* Particle animation for hero section */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Biomorphic design elements */
.biomorphic-shape {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: linear-gradient(45deg, rgba(50, 115, 220, 0.1), rgba(50, 115, 220, 0.05));
  animation: morph 8s ease-in-out infinite;
  z-index: -1;
}

.biomorphic-shape-1 {
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
}

.biomorphic-shape-2 {
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Glassmorphism effect */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}