/* === Custom Styles for LST Construction === */

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F0F7;
}
::-webkit-scrollbar-thumb {
  background: #D9C5E0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #BE9DC8;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

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

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

/* Scroll reveal animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered scroll reveal delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 20px rgba(123, 74, 140, 0.08) !important;
}

/* Hero section */
#hero {
  background-attachment: fixed;
}

/* Service card hover glow */
.group:hover .rounded-xl {
  box-shadow: 0 8px 30px rgba(123, 74, 140, 0.2);
}

/* Selection color */
::selection {
  background: #D9C5E0;
  color: #301D36;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #7B4A8C;
  outline-offset: 2px;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

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

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B4A8C' 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;
  padding-right: 2.5rem;
}

/* Project image overlay transition */
.group .absolute {
  transition: opacity 0.5s ease;
}

/* Subtle parallax on decorative blobs */
@media (prefers-reduced-motion: no-preference) {
  .absolute.rounded-full {
    animation: float 8s ease-in-out infinite;
  }
  .absolute.rounded-full:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
  }
  .absolute.rounded-full:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 12s;
  }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }
}
