/* ============================================
   Master of Decor — Premium Dark Luxury Theme
   Colors: Midnight Blue + Mint + Gold
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #050d18;
  color: #ffffff;
  font-family: 'Montserrat', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050d18;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #a8e6cf, #d4af61);
  border-radius: 4px;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(168, 230, 207, 0.2);
  color: #a8e6cf;
}

/* ---------- Navbar ---------- */
#navbar {
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(5, 13, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Mobile Menu ---------- */
#mobileMenu.open {
  transform: translateX(0);
}

#mobileMenu.closed {
  transform: translateX(100%);
}

/* ---------- Hero Floating Cards ---------- */
.floating-card {
  animation: float1 4s ease-in-out infinite;
}
.floating-card-2 {
  animation: float2 4s ease-in-out infinite 0.5s;
}
.floating-card-3 {
  animation: float3 4s ease-in-out infinite 1s;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ---------- Scroll Indicator ---------- */
@keyframes scrollDown {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.animate-scroll-down {
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* ---------- Service Cards ---------- */
.service-card,
.service-card-2,
.service-card-3,
.service-card-4,
.service-card-5,
.service-card-6 {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s ease;
}

.service-card:hover,
.service-card-2:hover,
.service-card-3:hover,
.service-card-4:hover,
.service-card-5:hover,
.service-card-6:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ---------- Gallery Items ---------- */
.gallery-item {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover {
  transform: translateY(-4px);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- Button Ripple Effect ---------- */
button, a {
  cursor: pointer;
  text-decoration: none;
}

/* ---------- Input Focus ---------- */
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(168, 230, 207, 0.4) !important;
  box-shadow: 0 0 0 1px rgba(168, 230, 207, 0.1) !important;
}

/* ---------- Custom Select ---------- */
select option {
  background: #0a1a2e;
  color: #ffffff;
  padding: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* ---------- Print ---------- */
@media print {
  body { background: white; color: black; }
  nav, .floating-card, .floating-card-2, .floating-card-3 { display: none; }
}
