/* ===================================
   BodyFitFast - Modern Professional Design
   =================================== */

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
  background: #1f1f1f;
}

::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8860b;
}

/* Selection */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: inherit;
}

/* Navigation Links */
.nav-link {
  position: relative;
  font-weight: 500;
  color: #4d4d4d;
  transition: color 0.3s ease;
}

.dark .nav-link {
  color: #c2c2c2;
}

.nav-link:hover {
  color: #d4af37;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #b8860b);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-weight: 500;
  color: #4d4d4d;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dark .mobile-nav-link {
  color: #c2c2c2;
}

.mobile-nav-link:hover {
  background: #f3f4f6;
  color: #d4af37;
}

.dark .mobile-nav-link:hover {
  background: #1f1f1f;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: #4d4d4d;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .btn-secondary {
  background: #1f1f1f;
  color: #c2c2c2;
  border-color: #333333;
}

.btn-secondary:hover {
  border-color: #d4af37;
  color: #d4af37;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Feature Cards */
.feature-card {
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .feature-card {
  background: #1f1f1f;
  border-color: #333333;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: #d4af37;
}

.dark .feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(212, 175, 55, 0.05) 100%
  );
  border-radius: 16px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 60px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #d4af37 0%, rgba(212, 175, 55, 0.2) 100%);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.timeline-content {
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.dark .timeline-content {
  background: #1f1f1f;
  border-color: #333333;
}

.timeline-content:hover {
  border-color: #d4af37;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark .timeline-content:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(212, 175, 55, 0.1);
  color: #b8860b;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.dark .badge {
  background: rgba(212, 175, 55, 0.2);
  color: #f3c853;
}

/* Testimonial Cards */
.testimonial-card {
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.dark .testimonial-card {
  background: #1f1f1f;
  border-color: #333333;
}

.testimonial-card:hover {
  border-color: #d4af37;
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark .testimonial-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Form Input */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  color: #333333;
  font-size: 16px;
  transition: all 0.3s ease;
}

.dark .form-input {
  background: #1f1f1f;
  border-color: #333333;
  color: #c2c2c2;
}

.form-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder {
  color: #a3a3a3;
}

/* Footer Links */
.footer-link {
  color: #a3a3a3;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #d4af37;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  color: #a3a3a3;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #d4af37;
  color: white;
  transform: translateY(-2px);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.3s ease-out;
}

.dark .modal-content {
  background: #1f1f1f;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .modal-close {
  background: #333333;
  color: #a3a3a3;
}

.modal-close:hover {
  background: #d4af37;
  color: white;
  transform: rotate(90deg);
}

/* Form Status Messages */
.form-status {
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .btn-lg {
    padding: 14px 28px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .feature-card {
    padding: 24px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .timeline-item::before {
    left: 23px;
    top: 48px;
  }

  .timeline-content {
    padding: 24px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .modal-content {
    padding: 30px;
  }
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  nav,
  footer,
  .modal,
  #themeToggle,
  #themeToggleMobile,
  #mobileMenuBtn {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
