/* ========================================
   anTech - Main Stylesheet
   ======================================== */

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

/* WordPress Admin Bar adjustment */
.admin-bar #progress-container {
  top: 32px;
}
.admin-bar header {
  top: 33px;
}
.admin-bar #mobile-menu {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #progress-container {
    top: 46px;
  }
  .admin-bar header {
    top: 47px;
  }
  .admin-bar #mobile-menu {
    top: 46px;
  }
}

/* Scroll progress indicator */
.progress-bar {
  transform-origin: left !important;
  transform: scaleX(0) !important;
  transition: none !important;
}
#progress {
  transform-origin: left !important;
}

/* Fade up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-up {
  animation: fadeUp 0.7s ease-out forwards;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}
.delay-6 {
  animation-delay: 0.6s;
}

/* Section animations */
.section-content {
  opacity: 0 !important;
  transform: translateY(60px) !important;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.section-content.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger children */
.section-content.active .stagger-item:nth-child(1) {
  transition-delay: 0.1s !important;
}
.section-content.active .stagger-item:nth-child(2) {
  transition-delay: 0.2s !important;
}
.section-content.active .stagger-item:nth-child(3) {
  transition-delay: 0.3s !important;
}
.section-content.active .stagger-item:nth-child(4) {
  transition-delay: 0.4s !important;
}
.section-content.active .stagger-item:nth-child(5) {
  transition-delay: 0.5s !important;
}
.section-content.active .stagger-item:nth-child(6) {
  transition-delay: 0.6s !important;
}

.stagger-item {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out !important;
}
.section-content.active .stagger-item {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Horizontal line animation */
.line-reveal {
  width: 0 !important;
  transition: width 0.8s ease-out 0.3s !important;
}
.section-content.active .line-reveal {
  width: 80px !important;
}

/* Number counter style */
.section-number {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #d1d5db;
  opacity: 0.5;
}

/* Tag style */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.tag-blue {
  background: #e5f1ff;
  color: #0a84ff;
}

/* Card hover effect - all animations synchronized */
.card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
/* Sync all child transitions with card */
.card * {
  transition: all 0.15s ease;
}

/* Services cards - sync number color with card transform */
.service-number {
  transition: color 0.15s ease;
}

/* Services card sync */
.group.rounded-3xl {
  transition: all 0.15s ease;
}

/* Hide scrollbar but keep functionality */
.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

/* Prose styles for article content */
.prose p {
  margin-bottom: 1.5em;
}
.prose h2 {
  margin-top: 2em;
  margin-bottom: 1em;
}
.prose ul {
  margin-bottom: 1.5em;
}
.prose li {
  margin-bottom: 0.5em;
}
