/* Custom Styles for REPLASA Website */

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

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

/* Tab button styles */
.tab-btn {
  background-color: #f3f4f6;
  color: #4b5563;
}

.tab-btn:hover {
  background-color: #e5e7eb;
}

.tab-btn.active {
  background-color: #222b30;
  color: #ffffff;
}

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

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #e2a73d;
  outline-offset: 2px;
}

/* Custom selection color */
::selection {
  background-color: #e2a73d;
  color: #ffffff;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prose styles for blog content */
.prose h2 {
  color: #222b30;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose ul {
  list-style: none;
  padding: 0;
}

.prose strong {
  color: #222b30;
}

/* Image hover effect */
.group:hover img {
  transform: scale(1.05);
}

/* Button hover states */
.btn-primary {
  background-color: #e2a73d;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c9932f;
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Header shadow on scroll */
#header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Project card animation */
.project-card {
  transition: all 0.3s ease;
}

/* Form input styles */
input:focus,
textarea:focus,
select:focus {
  border-color: #e2a73d;
  box-shadow: 0 0 0 3px rgba(226, 167, 61, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

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

/* Loading animation for buttons */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
  .text-balance {
    text-wrap: balance;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }
}
