/* === BASE VARIABLES AND STYLES === */
:root {
  /* Bright Color Scheme */
  --primary-color: #ff6b6b;
  --primary-dark: #e55252;
  --primary-light: #ff8c8c;
  --secondary-color: #4ecdc4;
  --secondary-dark: #3aa39b;
  --secondary-light: #6fdbde;
  --accent-color: #ffd166;
  --accent-dark: #e5b84d;
  --accent-light: #ffe39f;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --mid-color: #495057;
  --gray-color: #adb5bd;
  --success-color: #78c2ad;
  --warning-color: #ffce67;
  --danger-color: #ff7851;
  --info-color: #6cc3d5;
  
  /* Typography */
  --heading-font: 'Roboto', sans-serif;
  --body-font: 'Lato', sans-serif;
  
  /* Spacing */
  --section-spacing: 5rem;
  --element-spacing: 2rem;
  --small-spacing: 1rem;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Borders */
  --border-radius: 8px;
  --border-radius-large: 15px;
  --border-radius-small: 4px;
  
  /* Shadows */
  --shadow-small: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-inset: inset 0 2px 10px rgba(0, 0, 0, 0.1);
  
  /* Card styling */
  --card-bg: white;
  --card-padding: 1.5rem;
  
  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

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

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

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

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

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

p {
  margin-bottom: 1.5rem;
}

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

section {
  padding: 4rem 0;
}

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

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

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

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

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

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

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }
.mt-6 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mb-6 { margin-bottom: 3rem !important; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
  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); }
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === BUTTONS === */
.button {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-small);
}

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

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-small);
}

.button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
}

.button:hover::after {
  transform: translateX(0);
}

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

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

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

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

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

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

.button.is-outlined.is-light {
  border-color: white;
  color: white;
}

.button.is-outlined.is-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.animated-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.animated-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  z-index: -1;
}

.animated-button:hover::before {
  animation: shine 1.5s infinite;
}

/* === NAVBAR === */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-small);
  transition: all var(--transition-fast);
}

.navbar.is-fixed-top {
  padding: 0.5rem 0;
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--dark-color);
  transition: color var(--transition-fast);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
}

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

.navbar-brand .logo {
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.navbar-brand .logo:hover {
  color: var(--primary-dark);
}

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

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

.hero.is-fullheight {
  display: flex;
  align-items: center;
}

.hero-body {
  z-index: 2;
  padding: 3rem 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: white !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: white !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero .buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.arrow-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: white;
  animation: float 2s ease-in-out infinite;
  cursor: pointer;
}

.arrow-down i {
  transition: transform var(--transition-fast);
}

.arrow-down:hover i {
  transform: translateY(5px);
}

/* === FEATURES SECTION === */
.features-section {
  background-color: var(--light-color);
  padding: 5rem 0;
}

.feature-card {
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-small);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

.feature-card .card-image {
  overflow: hidden;
}

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

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

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

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

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--mid-color);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* === METHODOLOGY SECTION === */
.methodology-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 5rem 0;
  position: relative;
}

.timeline {
  margin-top: 4rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  background-color: var(--primary-light);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.3), 0 0 20px var(--primary-light);
}

.timeline-content {
  width: 80%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-fast);
}

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

.timeline-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* === RESOURCES SECTION === */
.resources-section {
  background-color: white;
  padding: 5rem 0;
}

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

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

.resource-card .card-image {
  overflow: hidden;
}

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

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

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

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

.resource-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.resource-card p {
  color: var(--mid-color);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* === TEAM SECTION === */
.team-section {
  background-color: var(--light-color);
  padding: 5rem 0;
}

.team-card {
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-small);
  display: flex;
  flex-direction: column;
}

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

.team-card .card-image {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

.team-card h3 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.team-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.team-card p {
  color: var(--mid-color);
  flex-grow: 1;
}

/* === CAREERS SECTION === */
.careers-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 5rem 0;
  position: relative;
}

.career-card {
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.95);
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
}

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

.career-card .card-content {
  flex-grow: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.career-card h3 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.career-card h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.career-card p {
  color: var(--mid-color);
  margin-bottom: 1.5rem;
}

.career-card strong {
  color: var(--dark-color);
  font-weight: 700;
}

/* === CONTACT SECTION === */
.contact-section {
  background-color: white;
  padding: 5rem 0;
}

.contact-form-card {
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-small);
}

.contact-form-card:hover {
  box-shadow: var(--shadow-medium);
}

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

.contact-form-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-info-card {
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-small);
  background-color: var(--light-color);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-medium);
}

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

.contact-info-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

.contact-item .icon {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--mid-color);
}

.map-container {
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  width: 100%;
  height: 200px;
}

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

/* Form styling */
.label {
  color: var(--dark-color);
  font-weight: 600;
}

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

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25);
}

.control.is-expanded {
  width: 100%;
}

/* === FOOTER === */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer .title {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer .title.is-5 {
  font-size: 1.25rem;
}

.footer p {
  color: var(--gray-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

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

.footer ul li a {
  color: var(--gray-color);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer .social-links {
  margin-top: 1.5rem;
}

.footer .social-links a {
  color: var(--gray-color);
  margin-right: 1rem;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

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

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

.footer .newsletter-form .input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.footer .content {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === ABOUT, PRIVACY, TERMS PAGES === */
.page-content {
  padding-top: 100px;
  min-height: 80vh;
}

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

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

.success-content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.success-content p {
  font-size: 1.25rem;
  color: var(--mid-color);
  margin-bottom: 2rem;
}

.success-content .icon {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 1023px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-marker {
    left: 2rem;
  }
  
  .timeline-content {
    width: calc(100% - 4rem);
    margin-left: 4rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 3rem 0 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .timeline-marker {
    left: 1rem;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-content {
    width: calc(100% - 2rem);
    margin-left: 2rem;
    padding: 1rem;
  }
}

/* Retro Design System Elements */
.feature-card, .resource-card, .team-card, .career-card, .contact-form-card, .contact-info-card {
  border: 3px solid var(--dark-color);
  box-shadow: 8px 8px 0 var(--dark-color);
  transition: all var(--transition-fast);
}

.feature-card:hover, .resource-card:hover, .team-card:hover, .career-card:hover {
  box-shadow: 12px 12px 0 var(--dark-color);
  transform: translate(-4px, -4px);
}

.button {
  border-width: 2px;
  border-radius: 0;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--dark-color);
  transition: all var(--transition-fast);
}

.button:hover {
  box-shadow: 7px 7px 0 var(--dark-color);
  transform: translate(-3px, -3px);
}

.title {
  position: relative;
  display: inline-block;
}

.title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.title:hover::after {
  transform: scaleX(1);
}

/* Adaptive Typography */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  }
  
  .section .title.is-2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }
  
  .section .subtitle.is-5 {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }
}

@media (max-width: 767px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }
  
  .section .title.is-2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .section .subtitle.is-5 {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
}

/* Micro-animations */
.navbar-item {
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast), left var(--transition-fast);
}

.navbar-item:hover::after {
  width: 80%;
  left: 10%;
}

input, textarea, select {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  transform: scale(1.01);
}

.card {
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 1;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}