/* Custom styles for Blue Port Realty */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
  background: #35355a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff451a;
}

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover glow */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(255, 69, 26, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
}

/* Testimonial card hover */
#testimonials .bg-charcoal-800\/60:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff451a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Mobile menu transition */
#mobileMenu {
  animation: slideDown 0.3s ease forwards;
}
#mobileMenu.hidden {
  animation: slideUp 0.2s ease forwards;
}

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

/* Mobile link hover */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card,
  #testimonials .bg-charcoal-800\/60,
  .group img {
    transition: none;
  }
  .group img {
    transform: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }
  .floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
  }
}

/* Geometric shape animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-12px) rotate(12deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-shape-1 {
  animation: float 6s ease-in-out infinite;
}
.floating-shape-2 {
  animation: floatSlow 8s ease-in-out infinite;
}
</style>
