/* ===== VARIABLES ===== */
:root {
  /* Colors */
  --color-primary: #2ecc71;
  --color-primary-dark: #27ae60;
  --color-primary-light: #a9dfbf;
  --color-secondary: #3498db;
  --color-secondary-dark: #2980b9;
  --color-secondary-light: #aed6f1;
  --color-accent: #e74c3c;
  --color-accent-dark: #c0392b;
  --color-accent-light: #f5b7b1;
  --color-dark: #2c3e50;
  --color-light: #ecf0f1;
  --color-grey: #95a5a6;
  --color-grey-light: #bdc3c7;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  --gradient-dark: linear-gradient(135deg, var(--color-dark), #34495e);
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* 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-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  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(--spacing-sm);
}

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

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

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

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

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

.section {
  padding: var(--spacing-lg) 0;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.button.is-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color var(--transition-normal);
  background-color: #7f7f7f;
}

.navbar {
  padding: var(--spacing-sm) 0;
}

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

.navbar-item {
  color: white;
  font-weight: 600;
  transition: color var(--transition-normal);
}

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

.navbar-brand .title {
  color: white;
  margin-bottom: 0;
}

.navbar-burger span {
  background-color: white;
}

/* Change navbar on scroll */
.header.scrolled {
  background-color: white;
  box-shadow: var(--shadow-md);
}

.header.scrolled .navbar-item {
  color: var(--color-dark);
}

.header.scrolled .navbar-brand .title {
  color: var(--color-primary);
}

.header.scrolled .navbar-burger span {
  background-color: var(--color-dark);
}

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

.hero::before {
  content: "";
  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-body .title,
.hero-body .subtitle,
.hero-body p {
  color: white;
}

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

/* ===== SERVICES SECTION ===== */
.services-section {
  background-color: var(--color-light);
}

.services-section .title {
  color: var(--color-dark);
}

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

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

.service-card .card-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.service-card .image-container {
  width: 100%;
  height: 100%;
}

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

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

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

.service-card .title {
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  background: linear-gradient(to bottom, white, var(--color-light));
}

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

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

.pricing-card .card-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.pricing-card .image-container {
  width: 100%;
  height: 100%;
}

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

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

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

.pricing-card .title {
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.pricing-card .price-tag {
  margin: var(--spacing-sm) 0;
  text-align: center;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.pricing-card .period {
  font-size: 1rem;
  color: var(--color-grey);
}

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

.pricing-card .features-list li {
  margin-bottom: var(--spacing-xs);
  position: relative;
  padding-left: 1.5rem;
}

.pricing-card .features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Statistics Widget */
.statistics-container {
  padding: var(--spacing-lg) 0;
}

.statistic-widget {
  text-align: center;
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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

.statistic-icon {
  margin-bottom: var(--spacing-sm);
  display: flex;
  justify-content: center;
}

.statistic-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.statistic-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-heading);
}

.statistic-label {
  font-size: 1rem;
  color: var(--color-grey);
}

/* ===== INNOVATION SECTION ===== */
.innovation-section {
  background: linear-gradient(to bottom, var(--color-light), white);
}

.timeline {
  position: relative;
  padding: var(--spacing-md) 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 120px;
  height: 100%;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.timeline-marker {
  position: absolute;
  left: 115px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  margin-left: 150px;
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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

.timeline-title {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.timeline-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  margin-top: var(--spacing-sm);
}

.timeline-item[data-year]::after {
  content: attr(data-year);
  position: absolute;
  left: 30px;
  top: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

/* ===== RESEARCH SECTION ===== */
.research-section {
  background-color: var(--color-light);
}

.research-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: transform var(--transition-normal);
}

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

.research-card .card-image {
  height: 250px;
  width: 100%;
  overflow: hidden;
}

.research-card .image-container {
  width: 100%;
  height: 100%;
}

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

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

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

.research-card .title {
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

/* ===== EXTERNAL RESOURCES ===== */
.external-resources {
  background: linear-gradient(to bottom, var(--color-light), white);
}

.resource-card {
  padding: var(--spacing-md);
  text-align: center;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--transition-normal);
}

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

.resource-icon {
  margin-bottom: var(--spacing-sm);
}

.resource-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.resource-card .title {
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.resource-card p {
  margin-bottom: var(--spacing-md);
}

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

/* ===== EVENTS SECTION ===== */
.events-section {
  background: linear-gradient(to bottom, white, var(--color-light));
}

.event-card {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-normal);
}

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

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  padding: var(--spacing-sm);
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.event-date .month {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
}

.event-date .day {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin: var(--spacing-xs) 0;
}

.event-date .year {
  font-size: 1rem;
}

.event-content {
  flex: 1;
  padding: var(--spacing-md);
}

.event-content .title {
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary);
}

.event-content .location {
  margin-bottom: var(--spacing-sm);
  color: var(--color-grey);
  font-style: italic;
}

.event-content p {
  margin-bottom: var(--spacing-md);
}

.event-content .button {
  display: inline-flex;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: url('image/contact-bg.jpg') center/cover no-repeat;
  position: relative;
  color: white;
}

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

.contact-section .container {
  position: relative;
  z-index: 2;
}

.contact-section .title,
.contact-section .subtitle {
  color: white;
}

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

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

.contact-item .icon {
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}

.contact-item .icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.contact-item .text h3 {
  color: var(--color-primary-light);
  margin-bottom: var(--spacing-xs);
  font-size: 1.2rem;
}

.contact-item .text p {
  color: white;
  margin-bottom: 0;
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
}

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

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border-radius: var(--border-radius-md);
  box-shadow: none;
  border: 1px solid var(--color-grey-light);
  transition: border-color var(--transition-normal);
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: var(--spacing-lg) 0;
}

.footer .title {
  color: white;
}

.footer p {
  color: var(--color-grey-light);
}

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

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

.footer-links a {
  color: var(--color-grey-light);
  transition: color var(--transition-normal);
}

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

.social-links a {
  color: var(--color-primary-light);
  margin-right: var(--spacing-sm);
  transition: color var(--transition-normal);
}

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

.footer form .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: white;
}

.footer form .input::placeholder {
  color: var(--color-grey-light);
}

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

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

.success-page .title {
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

.success-page .subtitle {
  color: var(--color-grey);
  margin-bottom: var(--spacing-md);
}

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

.terms-page .content,
.privacy-page .content {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

.pulse {
  animation: pulse 2s infinite;
}

.float {
  animation: float 4s ease infinite;
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
  }
  
  .navbar-menu .navbar-item {
    color: var(--color-dark);
  }
  
  .timeline::before {
    left: 50px;
  }
  
  .timeline-marker {
    left: 45px;
  }
  
  .timeline-content {
    margin-left: 80px;
  }
  
  .timeline-item[data-year]::after {
    left: 10px;
    font-size: 1.2rem;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-date {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: var(--spacing-xs);
  }
  
  .event-date .day {
    margin: 0 var(--spacing-xs);
  }
}

@media screen and (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
  }
  
  .hero-body {
    padding: var(--spacing-lg) 0;
  }
  
  .service-card,
  .pricing-card,
  .research-card,
  .resource-card {
    margin-bottom: var(--spacing-md);
  }
  
  .contact-info {
    margin-bottom: var(--spacing-lg);
  }
}

/* ===== UTILITY CLASSES ===== */
.has-text-justified {
  text-align: justify;
}

.mb-6 {
  margin-bottom: var(--spacing-md);
}

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

.mt-6 {
  margin-top: var(--spacing-md);
}