/* Custom Styles for Joy C. Paul & Co. Law Firm Website */

/* Hero section enhancements */
.hero-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

/* Card hover effects */
.practice-card, .team-member {
  transition: all 0.3s ease;
  transform: translateY(0);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

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

/* Button animations */
.btn-animate {
  position: relative;
  overflow: hidden;
}

.btn-animate::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-animate:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(50, 50);
    opacity: 0;
  }
}

/* Form input focus effects */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-line {
    display: none;
  }
  
  .timeline-item {
    margin-bottom: 2rem;
  }
  
  .timeline-item:last-child {
    margin-bottom: 0;
  }
}

/* Footer link hover effect */
.footer-link {
  position: relative;
  padding-bottom: 2px;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;
}

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

/* Section heading underline */
.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #1e3a8a;
}

/* Social media icon hover effects */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Navigation active link indicator */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1e3a8a;
  transition: width 0.3s ease;
}

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

/* Contact form error styling */
.form-error {
  border-color: #ef4444 !important;
}

/* Success message animation */
.success-message {
  animation: fadeIn 0.5s ease-in;
}

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

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

/* Timeline animation */
.timeline-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hover effect for practice cards and team members */
.practice-card.hovered, .team-member.hovered {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* FAQ Section Styling */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Enhanced section spacing */
section {
  scroll-margin-top: 80px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* Animation for section transitions */
.section-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-transition.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu enhancements */
.mobile-menu {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Contact form enhancements */
.contact-form {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Map placeholder styling */
.map-placeholder {
  background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  font-weight: 500;
}

/* Article tag styling */
.article-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Team member image placeholder */
.team-member-image {
  background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
}

/* Enhanced footer styling */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

/* Print styles */
@media print {
  nav, .btn-animate, .social-icon, .footer {
    display: none;
  }
  
  .hero-bg {
    background: white !important;
    color: black !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0f172a;
    color: #e2e8f0;
  }
  
  .bg-white {
    background-color: #1e293b;
  }
  
  .bg-gray-50 {
    background-color: #0f172a;
  }
  
  .text-gray-800 {
    color: #f1f5f9;
  }
  
  .text-gray-600 {
    color: #cbd5e1;
  }
  
  .text-gray-700 {
    color: #e2e8f0;
  }
  
  .text-gray-300 {
    color: #cbd5e1;
  }
}

/* Disclaimer Popup Styles */
.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.disclaimer-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.disclaimer-content {
  padding: 1.2rem;
}

.disclaimer-content h2 {
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.disclaimer-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #000000;
}

.disclaimer-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.btn-disclaimer {
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-agree {
  background-color: #1e3a8a;
  color: white;
  border: none;
}

.btn-agree:hover {
  background-color: #3b82f6;
}

.btn-decline {
  background-color: #ef4444;
  color: white;
  border: none;
}

.btn-decline:hover {
  background-color: #dc2626;
}

@media (max-width: 768px) {
  .disclaimer-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-disclaimer {
    width: 100%;
  }
}

/* Team Member Image Styles */
.team-member .rounded-full {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.05);
}

/* Responsive adjustments for team member images */
@media (max-width: 768px) {
  .team-member .rounded-full {
    width: 60px;
    height: 60px;
  }
}
