/* ===== Custom Styles for Damians Hardwood Flooring ===== */

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

/* Selection color */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

/* ===== Floating Card Animations ===== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: -1.5s;
}

.card-3 {
  animation-delay: -3s;
}

.card-4 {
  animation-delay: -4.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Progressive enhancement: animations only when JS runs and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
  background: rgba(26, 10, 46, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s, color 0.2s;
}

.mobile-link:hover {
  background: rgba(251, 191, 36, 0.1);
}

#mobileMenu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Card Hover Effects ===== */
.floating-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.floating-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(251, 191, 36, 0.1) !important;
}

/* ===== Input Autofill Styling ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px rgb(45, 28, 63) inset !important;
  -webkit-text-fill-color: #fff !important;
}

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

::-webkit-scrollbar-track {
  background: rgb(26, 10, 46);
}

::-webkit-scrollbar-thumb {
  background: rgb(61, 38, 84);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(125, 77, 168);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
  
  #hero {
    min-height: 100vh;
    padding-top: 80px;
  }
}

/* ===== Focus Visible for Accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Print Styles ===== */
@media print {
  nav, #contactForm, .floating-card {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
