/* Layout Styles */
body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-full-height {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Background Utilities */
.bg-light {
  background-color: var(--bg-light);
}

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

.gradient-bg {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.gradient-bg-light {
  background: var(--gradient-teal);
  background-size: 200% 200%;
}

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

/* Section Title */
.section-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  margin: var(--spacing-md) auto 0;
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Utilities */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.lead {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

/* Animation Utilities */
.animate-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-target.animate-in {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* Stagger Animation */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
}

.animate-stagger.animate-in > * {
  animation: fadeIn 0.6s ease forwards;
}

.animate-stagger.animate-in > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger.animate-in > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger.animate-in > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger.animate-in > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger.animate-in > *:nth-child(5) { animation-delay: 0.5s; }

/* Visibility Utilities */
.hidden {
  display: none;
}

.invisible {
  visibility: hidden;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: var(--fs-3xl);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: var(--fs-2xl);
  }

  .section-subtitle {
    font-size: var(--fs-base);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
