/* ============================================================
   DSID Studio — custom styles (supplements Tailwind CDN)
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333333;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0eb;
}
::-webkit-scrollbar-thumb {
  background: #c9a96e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4b97a;
}

/* ------------------------------------------------------------
   Navbar scrolled state (JS toggles .scrolled)
   ------------------------------------------------------------ */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
#navbar.scrolled #logo-text { color: #1a1a1a; }
#navbar.scrolled .nav-link { color: #333333; }
#navbar.scrolled #nav-wa { border-color: #e5e7eb; color: #333333; }
#navbar.scrolled #icon-menu { color: #1a1a1a; }

/* ------------------------------------------------------------
   Scroll-reveal system (replaces framer-motion entrance anims)
   Elements get [data-reveal]; JS adds .is-visible when in view.
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(0.85); }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* Stagger helper: delay children via inline --d */
[data-reveal][style*="--d"] {
  transition-delay: var(--d);
}

/* ------------------------------------------------------------
   Hero slideshow
   ------------------------------------------------------------ */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero text swap animation */
.hero-text-swap {
  animation: heroTextIn 0.8s ease both;
}
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   Navbar entrance (slides down once on load)
   ------------------------------------------------------------ */
.nav-enter {
  animation: navDrop 0.6s ease both;
}
@keyframes navDrop {
  from { transform: translateY(-100px); }
  to   { transform: translateY(0); }
}

/* ------------------------------------------------------------
   Mobile menu
   ------------------------------------------------------------ */
.mobile-menu {
  clip-path: circle(0% at calc(100% - 40px) 40px);
  opacity: 0;
  transition: clip-path 0.5s ease-in-out, opacity 0.5s ease-in-out;
  pointer-events: none;
}
.mobile-menu.open {
  clip-path: circle(150% at calc(100% - 40px) 40px);
  opacity: 1;
  pointer-events: auto;
}

/* ------------------------------------------------------------
   Scroll indicator bounce
   ------------------------------------------------------------ */
.scroll-bounce {
  animation: bounceY 2s ease-in-out infinite;
}
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ------------------------------------------------------------
   WhatsApp float button
   ------------------------------------------------------------ */
.wa-enter {
  animation: waPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 2s;
}
@keyframes waPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ------------------------------------------------------------
   Testimonials fade-swap
   ------------------------------------------------------------ */
.testimonial-swap {
  animation: fadeSwap 0.5s ease both;
}
@keyframes fadeSwap {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Portfolio lightbox fade */
.lightbox {
  transition: opacity 0.3s ease;
}
.lightbox-img {
  animation: lbIn 0.3s ease both;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
