/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #2D2421;
  background-color: #FDF8F0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(253, 248, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 89, 0.1);
  transition: all duration-500;
}

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  box-shadow: 0 4px 30px rgba(45, 36, 33, 0.08);
}

.nav-logo-text {
  transition: color 0.3s ease;
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-menu-link {
  animation: fadeSlideIn 0.4s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* ===== HERO SHAPES ===== */
.hero-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 112, 75, 0.08) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 165, 89, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: 35%;
  border-radius: 50%;
  animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(196, 112, 75, 0.06);
  border: 2px solid rgba(196, 112, 75, 0.15);
  border-radius: 24px;
  top: 25%;
  right: 8%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(212, 165, 89, 0.08);
  bottom: 20%;
  left: 5%;
  animation: float-slow 7s ease-in-out infinite;
}

.shape-dot-grid {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(196, 112, 75, 0.2) 1px, transparent 1px);
  background-size: 12px 12px;
  top: 40%;
  left: 2%;
  opacity: 0.6;
}

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

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

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

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

/* ===== MARQUEE ===== */
.marquee-track {
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: marquee 25s linear infinite;
}

.marquee-content:nth-child(2) {
  animation-delay: -12.5s;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
}

/* ===== GALLERY ===== */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 36, 33, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item > img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== FORM ===== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(196, 112, 75, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .shape-circle-1 {
    width: 300px;
    height: 300px;
  }

  .shape-circle-2 {
    width: 150px;
    height: 150px;
  }

  .shape-rect-1 {
    width: 60px;
    height: 60px;
  }

  .shape-triangle {
    border-left-width: 30px;
    border-right-width: 30px;
    border-bottom-width: 52px;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .service-card {
    padding: 1.5rem;
  }
}
