/* Custom Styles */

::selection {
  background-color: #8D775F;
  color: #F2EDE4;
}

html {
  scroll-behavior: smooth;
}

/* Navbar scroll effect */
#navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
#mobile-menu.open {
  max-height: 24rem;
  opacity: 1;
}

/* Fade In Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.fade-in-up.delay-1 {
  animation-delay: 0.4s;
}

.fade-in-up.delay-2 {
  animation-delay: 0.5s;
}

/* Smooth transitions for links */
a {
  transition: color 0.3s ease;
}

/* Form focus states */
input:focus,
textarea:focus {
  outline: none;
  border-color: #8D775F;
}

/* Button hover effects */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-1px);
}

/* Practice Area Card Hover Effects */
.practice-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.practice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #8D775F;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37, 35, 36, 0.12);
}

.practice-card:hover::before {
  transform: scaleX(1);
}

.practice-card:hover [data-lucide] {
  transform: scale(1.15);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ensure lucide icons are properly sized */
[data-lucide] {
  display: inline-block;
}
