/* === CSS Variables === */
:root {
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Work Sans', sans-serif;
  
  /* Colors */
  --primary: #4a56e2;
  --primary-dark: #3a46c2;
  --primary-light: #6a76ff;
  --secondary: #ff6b6b;
  --secondary-dark: #e55858;
  --secondary-light: #ff8a8a;
  --accent: #54d1db;
  --accent-dark: #41b0bb;
  --accent-light: #7ee8f3;
  
  /* Neutrals */
  --white: #ffffff;
  --light: #f8f9fa;
  --light-gray: #e9ecef;
  --medium-gray: #adb5bd;
  --dark-gray: #495057;
  --dark: #212529;
  --black: #000000;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
  --gradient-dark: linear-gradient(135deg, rgba(33, 37, 41, 0.95), rgba(33, 37, 41, 0.8));
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-secondary);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
}

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

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

/* === Utility Classes === */
.has-text-primary {
  color: var(--primary) !important;
}

.has-text-secondary {
  color: var(--secondary) !important;
}

.has-text-accent {
  color: var(--accent) !important;
}

.has-background-primary {
  background-color: var(--primary) !important;
}

.has-background-secondary {
  background-color: var(--secondary) !important;
}

.has-background-accent {
  background-color: var(--accent) !important;
}

.has-background-gradient-primary {
  background: var(--gradient-primary) !important;
}

.has-background-gradient-secondary {
  background: var(--gradient-secondary) !important;
}

.has-background-gradient-accent {
  background: var(--gradient-accent) !important;
}

/* === Buttons === */
.button {
  font-family: var(--font-primary);
  font-weight: 500;
  transition: all var(--transition-medium);
}

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

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

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

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

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

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

.button.is-rounded {
  border-radius: var(--radius-full);
  padding-left: 1.5em;
  padding-right: 1.5em;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 86, 226, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 86, 226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 86, 226, 0);
  }
}

/* === Header and Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-medium);
}

.navbar {
  padding: 1rem 0;
  transition: padding var(--transition-medium);
}

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

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

.navbar-brand h1 {
  margin-bottom: 0;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .navbar {
  padding: 0.5rem 0;
}

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

.parallax-section {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

.hero.is-fullheight .hero-body {
  padding: 0 1.5rem;
  min-height: 100vh;
}

.hero .title, 
.hero .subtitle,
.hero p {
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.scroll-down-icon {
  display: inline-block;
  animation: bounce 2s infinite;
  margin-bottom: 2rem;
  transition: opacity var(--transition-fast);
}

.scroll-down-icon:hover {
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-10px);
  }
}

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

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

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

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

.image-container {
  height: 250px;
  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);
}

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

.service-card .card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .title {
  margin-bottom: 1rem;
}

/* === Timeline Section === */
.timeline-section {
  padding: 6rem 1.5rem;
  color: var(--white);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

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

.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
  margin-left: auto;
  border-left: 2px solid var(--primary);
  padding-left: 3rem;
}

.timeline-item:nth-child(even) {
  border-right: 2px solid var(--primary);
  padding-right: 3rem;
  text-align: right;
}

.timeline-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary);
  top: 1.5rem;
}

.timeline-item:nth-child(odd) .timeline-marker {
  left: -8px;
}

.timeline-item:nth-child(even) .timeline-marker {
  right: -8px;
}

.timeline-content {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

@media screen and (max-width: 768px) {
  .timeline::before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 5rem;
    padding-right: 1rem;
  }
  
  .timeline-item:nth-child(odd), 
  .timeline-item:nth-child(even) {
    border-left: 2px solid var(--primary);
    border-right: none;
    text-align: left;
    padding-left: 5rem;
    padding-right: 1rem;
    margin-left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-marker, 
  .timeline-item:nth-child(even) .timeline-marker {
    left: 22px;
  }
}

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

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

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

.resource-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.resource-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.resource-list li:before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.resource-list a {
  color: var(--primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.resource-list a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* === Events Section === */
.events-section {
  padding: 6rem 1.5rem;
  background-color: var(--light);
}

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

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

.event-date {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 500;
}

.event-date .icon {
  margin-right: 0.5rem;
}

.event-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-details p {
  display: flex;
  align-items: center;
}

.event-details .icon {
  margin-right: 0.5rem;
}

/* === Testimonials Section === */
.testimonials-section {
  padding: 6rem 1.5rem;
  color: var(--white);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  opacity: 0;
  transition: opacity var(--transition-slow);
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.testimonial-slide.active {
  opacity: 1;
  position: relative;
}

.testimonial-card {
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-avatar {
  margin: -50px auto 20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}

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

.testimonial-rating {
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  font-family: var(--font-primary);
  margin-bottom: 0.25rem;
}

.testimonial-position {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.slider-controls {
  margin-top: 2rem;
}

.slider-dots {
  display: inline-flex;
  margin: 0 1rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--white);
}

/* === Careers Section === */
.careers-section {
  padding: 6rem 1.5rem;
}

.accordion-container {
  max-width: 900px;
  margin: 0 auto;
}

.accordion {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: var(--white);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--light);
}

.accordion-header .title {
  margin: 0;
}

.accordion-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.accordion-icon:before,
.accordion-icon:after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: transform var(--transition-fast);
}

.accordion-icon:before {
  top: 11px;
  left: 0;
  right: 0;
  height: 2px;
}

.accordion-icon:after {
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
}

.accordion.active .accordion-icon:after {
  transform: rotate(90deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium), padding var(--transition-medium);
  background-color: var(--white);
}

.accordion.active .accordion-content {
  padding: 1.5rem;
  max-height: 2000px;
}

.accordion-content img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* === Contact Section === */
.contact-section {
  padding: 6rem 1.5rem;
  color: var(--white);
}

.contact-form-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-form-card .card-content {
  padding: 2rem;
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1rem;
}

.contact-item .icon {
  margin-right: 1rem;
  margin-top: 5px;
}

.contact-text {
  flex: 1;
}

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

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

.footer p {
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: var(--medium-gray);
  transition: color var(--transition-fast);
}

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

.social-links a {
  color: var(--medium-gray);
  transition: color var(--transition-fast);
}

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

.newsletter .input {
  border-radius: var(--radius-full);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.newsletter .button {
  border-radius: var(--radius-full);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

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

.success-container {
  max-width: 600px;
  padding: 3rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  color: var(--primary);
  font-size: 4rem;
  margin-bottom: 2rem;
}

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

.content-section {
  padding: 4rem 1.5rem;
}

/* === Animations === */
.animated-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animated-element.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive Adjustments === */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 4rem 1rem;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .timeline-item {
    padding: 1rem;
  }
  
  .contact-form-card .card-content {
    padding: 1.5rem;
  }
}

@media screen and (min-width: 769px) {
  .animated-element:nth-child(1) {
    transition-delay: 0.1s;
  }
  
  .animated-element:nth-child(2) {
    transition-delay: 0.2s;
  }
  
  .animated-element:nth-child(3) {
    transition-delay: 0.3s;
  }
  
  .animated-element:nth-child(4) {
    transition-delay: 0.4s;
  }
  
  .animated-element:nth-child(5) {
    transition-delay: 0.5s;
  }
  
  .animated-element:nth-child(6) {
    transition-delay: 0.6s;
  }
}