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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: #0e0e10;
  color: #e8e4dd;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(212, 168, 98, 0.3);
  color: #f5efe6;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0e0e10;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3e;
}

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

#navbar.scrolled {
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(42, 42, 46, 0.5);
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
  position: relative;
  padding-left: 0;
  border-bottom: 1px solid rgba(42, 42, 46, 0.5);
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

/* ===== Hero Floating Cards Animation ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

/* Apply subtle floating to hero cards */
#hero .absolute.top-0.left-0 {
  animation: float 6s ease-in-out infinite;
}

#hero .absolute.top-8.right-0 {
  animation: float-delayed 7s ease-in-out infinite;
  animation-delay: 1s;
}

#hero .absolute.bottom-8.left-0 {
  animation: float 5.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

#hero .absolute.bottom-4.right-0 {
  animation: float-delayed 6.5s ease-in-out infinite;
  animation-delay: 2s;
}

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

.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; }

/* ===== Service Cards Stagger ===== */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Material Gallery ===== */
.material-card {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.material-card.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ===== Form Styles ===== */
select option {
  background: #18181b;
  color: #e8e4dd;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  #hero h1 {
    font-size: 2.75rem !important;
  }

  #hero .relative.h-\\[480px\\] {
    display: none;
  }

  .font-display {
    font-family: 'Playfair Display', Georgia, serif;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero .relative.h-\\[480px\\] {
    display: none;
  }
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 2px solid rgba(212, 168, 98, 0.6);
  outline-offset: 2px;
}

/* ===== Print ===== */
@media print {
  #navbar, #mobile-menu-btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
