/* ========== TiagoFit - Custom Styles ========== */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFE44D;
}

/* Selection */
::selection {
  background: rgba(255, 215, 0, 0.3);
  color: #fff;
}

/* ========== BUTTONS ========== */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFE44D);
  color: #000;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #FFE44D, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: all 0.3s ease;
}
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFD700;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
}

/* ========== FAQ ========== */
.faq-item.active .faq-toggle {
  background: rgba(255, 255, 255, 0.05);
}
.faq-item.active .faq-toggle i {
  transform: rotate(45deg);
  color: #FFD700;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-content {
  max-height: 300px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ========== RESPONSIVE FIXES ========== */
@media (max-width: 768px) {
  .faq-content {
    max-height: 0;
  }
  .faq-item.active .faq-content {
    max-height: 500px;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 215, 0, 0.2);
  border-top-color: #FFD700;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
