/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
  /* Colors */
  --primary-color: #00bcd4; /* A bright, techy cyan */
  --primary-color-dark: #0097a7;
  --accent-color: #ffeb3b; /* A vibrant yellow for highlights */
  --text-color-light: #f5f5f5;
  --text-color-dark: #212121;
  --text-color-medium: #616161;
  --bg-color-light: #f9f9f9;
  --bg-color-dark: #121212;
  --bg-color-section-dark: #1a1a1a;
  --border-color: #e0e0e0;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border-color: rgba(255, 255, 255, 0.2);
  --glass-blur: 10px;

  /* Fonts */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Spacing & Sizing */
  --navbar-height: 4.5rem;
  --container-max-width: 1140px;
  --section-padding: 4rem 1.5rem;
  --card-border-radius: 16px;
  --button-border-radius: 50px;
}

/* ==========================================================================
   2. GLOBAL STYLES & RESETS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-color-dark);
  background-color: var(--bg-color-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   3. TYPOGRAPHY & UTILITIES
   ========================================================================== */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-color-dark);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.title.is-1 { font-size: 4rem; }
.title.is-2 { font-size: 3rem; margin-bottom: 2.5rem; }
.title.is-3 { font-size: 2.25rem; }
.title.is-4 { font-size: 1.75rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

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

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-dark {
  background-color: var(--bg-color-dark);
  color: var(--text-color-light);
}

.section-dark .title, .section-dark .subtitle, .section-dark .label {
  color: var(--text-color-light);
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border-color);
  transition: background-color 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--navbar-height);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color-light) !important;
}

.logo strong {
  color: var(--primary-color) !important;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-end {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.navbar-item {
  color: var(--text-color-light);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  text-decoration: none;
  padding: 0.5rem 0;
}

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

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

.navbar-burger {
  display: none;
  color: var(--text-color-light);
  cursor: pointer;
  height: 3.25rem;
  position: relative;
  width: 3.25rem;
  border: none;
  background: none;
}

.navbar-burger span {
  background-color: currentColor;
  display: block;
  height: 2px;
  left: calc(50% - 8px);
  position: absolute;
  transform-origin: center;
  transition-duration: 86ms;
  transition-property: background-color, opacity, transform;
  transition-timing-function: ease-out;
  width: 16px;
}
.navbar-burger span:nth-child(1) { top: calc(50% - 6px); }
.navbar-burger span:nth-child(2) { top: calc(50% - 1px); }
.navbar-burger span:nth-child(3) { top: calc(50% + 4px); }
.navbar-burger.is-active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.navbar-burger.is-active span:nth-child(2) { opacity: 0; }
.navbar-burger.is-active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   5. BUTTONS & FORMS
   ========================================================================== */

.button, button, input[type="submit"] {
  border: none;
  border-radius: var(--button-border-radius);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.8rem 2rem;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px var(--shadow-color);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.button:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

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

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

.button-secondary {
  background-color: transparent;
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

.button-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.input, .textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--glass-border-color);
  border-radius: 8px;
  background-color: var(--glass-bg);
  color: var(--text-color-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.input::placeholder, .textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.5);
}

.label {
  font-family: var(--font-heading);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.field {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  min-height: 100vh;
}

.hero-body {
  text-align: center;
  z-index: 2;
  perspective: 1000px;
}

.hero-title, .hero-subtitle {
  transform: translateZ(50px);
}

/* ==========================================================================
   7. CARDS & WIDGETS
   ========================================================================== */
   
.card {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px 0 var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 16px 40px 0 rgba(0,0,0,0.3);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-color);
}

.card-image {
  width: 100%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
  text-align: left;
}
   
/* ==========================================================================
   8. SPECIFIC SECTIONS
   ========================================================================== */

/* Statistics */
.stat-widget .stat-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-widget .stat-label {
  font-size: 1.25rem;
  text-transform: uppercase;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item .timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-color-light);
  border: 3px solid var(--primary-color);
  top: 20px;
  z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-marker { right: -10px; }
.timeline-item:nth-child(even) .timeline-marker { left: -10px; }
.timeline-content {
  padding: 20px 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Press */
.press-item {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}
.press-source {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-color-medium);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-slide .media {
  align-items: center;
}
.testimonial-slide .media-content {
  line-height: 1.2;
}
.testimonial-slide .content {
  font-style: italic;
}
.is-rounded { border-radius: 50%; }

/* Clientele Slider */
.client-logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}
.slide-track {
  display: flex;
  width: calc(250px * 10);
  animation: scroll 40s linear infinite;
}
.slide {
  height: 100px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}
.slide img {
  max-width: 150px;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 5)); }
}

/* External Resources */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.resource-item {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: inherit;
}
.resource-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}
.resource-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color-dark);
}
.resource-description {
  color: var(--text-color-medium);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--bg-color-dark);
  color: var(--text-color-light);
  padding: 3rem 1.5rem;
}

.footer .columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer .column {
  flex: 1;
  min-width: 200px;
}

.logo-footer {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.logo-footer strong {
  color: var(--primary-color);
}

.footer .title.is-5 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

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

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

.footer a {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer .social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
}

.footer .content {
  border-top: 1px solid var(--glass-border-color);
  margin-top: 2rem;
  padding-top: 2rem;
}

/* ==========================================================================
   10. OTHER PAGES (SUCCESS, TERMS, PRIVACY)
   ========================================================================== */

.page-container {
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 4rem;
}

.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-color-dark) 0%, #2c3e50 100%);
  color: var(--text-color-light);
}

.success-content {
  background: var(--glass-bg);
  padding: 3rem;
  border-radius: var(--card-border-radius);
  border: 1px solid var(--glass-border-color);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.success-content h1 {
  color: var(--primary-color);
  font-size: 3rem;
}

/* ==========================================================================
   11. ANIMATIONS
   ========================================================================== */

[data-scroll-anim] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

[data-scroll-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Barba.js Transitions */
.barba-leave-active, .barba-enter-active {
  transition: opacity 0.5s ease;
}
.barba-leave-to, .barba-enter-from {
  opacity: 0;
}

/* ==========================================================================
   12. RESPONSIVE DESIGN
   ========================================================================== */
   
/* Tablets */
@media screen and (max-width: 1023px) {
  .columns {
    display: block;
  }
  .column:not(:last-child) {
    margin-bottom: 2rem;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-color-dark);
    flex-direction: column;
    padding: 1.5rem 0;
  }
  
  .navbar-menu.is-active {
    display: flex;
  }
  
  .navbar-end {
    flex-direction: column;
    width: 100%;
  }

  .navbar-item {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-burger {
    display: block;
  }

  .section {
    padding: 3rem 1rem;
  }

  .title.is-1 { font-size: 2.5rem; }
  .title.is-2 { font-size: 2rem; }

  .hero {
    min-height: 80vh;
  }

  .timeline::after { left: 10px; }
  .timeline-item { width: 100%; padding-left: 50px; padding-right: 10px; }
  .timeline-item:nth-child(even) { left: 0%; }
  .timeline-item .timeline-marker { left: 0; }

  .footer .columns {
    flex-direction: column;
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
  }
}