/* 1. Branding & Visual Language */

/* Import a modern, readable font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

/* --- Button Microinteractions --- */

.w-button {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Base transition for all buttons */
.w-button {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

/* Hover state */
.w-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Active/press state */
.w-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading state */
.w-button.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.w-button.is-loading::after {
  content: '';
  display: block;
  width: 1.5em; /* Adjust size as needed */
  height: 1.5em; /* Adjust size as needed */
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -0.75em;
  margin-top: -0.75em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Transitions for carousel buttons */
.carousel-button {
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.carousel-button:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}

.carousel-button:active {
    transform: scale(0.95);
}

/* --- Feature Card Animations --- */

.home_feature_list {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.home_feature_item {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.home_feature_item:hover {
  transform: translateZ(20px) rotateY(-5deg) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.home_feature_item .home_feature_item-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

/* --- Card Microinteractions --- */

.home_cta_card,
.linkedin-post {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.home_cta_card:hover,
.linkedin-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.home_cta_card:active,
.linkedin-post:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Scroll-triggered Animations --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Apply a base font style to the body */
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #333;
}

/* Standardize heading styles for visual rhythm */
h1, .h1 {
  font-size: 3rem; /* 48px */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2, .h2 {
  font-size: 2.25rem; /* 36px */
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

h3, .h3 {
  font-size: 1.75rem; /* 28px */
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
}

h4, .h4 {
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

h5, .h5, h6, .h6 {
  font-size: 1rem; /* 16px */
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
