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

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 149, 108, 0.3);
  color: #E8D5C0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0D0B08;
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 149, 108, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 149, 108, 0.5);
}

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

#navbar.scrolled {
  background: rgba(13, 11, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 149, 108, 0.1);
}

/* ===== Mobile Menu ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== Menu Button ===== */
.menu-line {
  transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.5rem;
}

/* ===== Scroll Indicator ===== */
@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.scroll-dot {
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 149, 108, 0), transparent);
  transition: background 0.5s ease;
}

.service-card:hover::after {
  background: linear-gradient(90deg, transparent, rgba(200, 149, 108, 0.6), transparent);
}

/* ===== Approach Steps ===== */
.approach-step {
  transition: all 0.4s ease;
}

.approach-step:hover {
  padding-left: 1rem;
}

.approach-step:hover span {
  color: rgba(200, 149, 108, 0.4);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Vertical Text ===== */
.writing-vertical {
  position: absolute;
  left: -2rem;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

/* ===== Form Focus Styles ===== */
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(200, 149, 108, 0.6) !important;
  box-shadow: 0 0 0 1px rgba(200, 149, 108, 0.2);
}

/* ===== Button Hover Glow ===== */
button[type="submit"]:hover {
  box-shadow: 0 0 30px rgba(200, 149, 108, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .writing-vertical {
    display: none;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 14px;
  }
}
