/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero Pattern Overlay */
.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.hero-slide-content.active {
  display: block;
  animation: slideContentIn 0.8s ease-out 0.3s forwards;
}

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

/* Slider Dots */
.hero-dot {
  transition: all 0.3s ease;
}

.hero-dot.active {
  background-color: #d4a843;
  width: 2rem;
  border-radius: 9999px;
}

/* Slider Arrows */
.hero-arrow {
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

#hero:hover .hero-arrow {
  opacity: 1;
}

@media (max-width: 640px) {
  .hero-arrow {
    opacity: 0.7;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
}

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

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

.animate-fade-in-up-delayed-2 {
  opacity: 0;
  animation: fade-in-up 0.8s ease-out 0.6s forwards;
}

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

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

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

/* Navbar States */
#navbar.nav-transparent {
  background: transparent;
}

#navbar.nav-transparent.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.nav-transparent.scrolled .nav-brand-text {
  color: #1b4332;
}

#navbar.nav-transparent.scrolled .nav-sub-text {
  color: #a68a64;
}

#navbar.nav-transparent.scrolled .nav-link {
  color: #534432;
}

#navbar.nav-transparent.scrolled .nav-link:hover {
  color: #1b4332;
}

/* Service Card Hover Effects */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1b4332, #d4a843);
  border-radius: 2rem 2rem 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card:hover::before {
  opacity: 1;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
  border-color: #d4a843;
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a68a64;
}

/* Selection Color */
::selection {
  background: rgba(27, 67, 50, 0.2);
  color: #1b4332;
}

/* Mobile Menu Transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }
}
