/* ==========================================================================
   Minoshands — custom stylesheet
   Tailwind handles utility classes; bu dosya Tailwind'in kolay
   karşılayamadığı şeyler için: özel imleç, reveal animasyonları,
   navbar blur geçişi, iplik (thread) imza öğesi, whatsapp butonu.
   ========================================================================== */

:root {
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  cursor: none;
}

@media (pointer: coarse), (hover: none) {
  body {
    cursor: auto;
  }
  #cursor-dot {
    display: none !important;
  }
}

/* ---------------- Custom cursor ---------------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D4B895;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.35s var(--ease-lux), height 0.35s var(--ease-lux),
    background-color 0.35s var(--ease-lux), border-color 0.35s var(--ease-lux),
    opacity 0.3s ease;
  mix-blend-mode: normal;
  will-change: transform;
}

.cursor-dot.is-hover {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid #D4B895;
}

.cursor-dot.is-hidden {
  opacity: 0;
}

/* ---------------- Navbar ---------------- */
#navbar.is-scrolled {
  background-color: rgba(250, 249, 246, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(43, 36, 32, 0.06);
}

#navbar.is-scrolled .nav-link,
#navbar.is-scrolled a {
  color: #2B2420;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: #A9673F;
  transition: width 0.45s var(--ease-lux);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------------- Hero reveal ---------------- */
.hero-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-lux), transform 1.1s var(--ease-lux);
}

.hero-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-chevron {
  width: 1px;
  height: 28px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}

.scroll-chevron::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #E3CAA5;
  animation: threadDrop 2.2s var(--ease-lux) infinite;
}

@keyframes threadDrop {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------------- Scroll reveal blocks ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #A9673F;
  font-weight: 500;
}

/* ---------------- Thread (imza öğesi) ---------------- */
#thread-svg {
  z-index: 0;
}

#thread-fg {
  transition: stroke-dashoffset 0.15s linear;
}

.thread-knot {
  position: absolute;
  left: -63px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #F1EAE0;
  border: 1.5px solid #A9673F;
  margin-top: 6px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux),
    background-color 0.6s var(--ease-lux);
}

@media (min-width: 1024px) {
  .thread-knot {
    left: -87px;
  }
}

[data-reveal].is-in .thread-knot {
  opacity: 1;
  transform: scale(1);
  background: #A9673F;
}

/* ---------------- Hero galerisi (yazının etrafında süzülen fotoğraflar) ---------------- */
.hero-gallery {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(250, 249, 246, 0.35);
  box-shadow: 0 10px 28px rgba(43, 36, 32, 0.32);
  background: #2B2420;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobil: yazının hemen üstünde ve altında iki güvenli şerit */
.hero-photo-1 { width: clamp(3.5rem, 15vw, 4.5rem); top: 7%;  left: 14%; animation: floatSoft1 6.5s ease-in-out infinite; }
.hero-photo-2 { width: clamp(3.5rem, 15vw, 4.5rem); top: 7%;  right: 14%; animation: floatSoft2 7.5s ease-in-out infinite -3s; }
.hero-photo-3 { width: clamp(3.75rem, 16vw, 4.75rem); bottom: 8%; left: 20%;  animation: floatSoft3 8.5s ease-in-out infinite -5s; }
.hero-photo-4 { width: clamp(3.75rem, 16vw, 4.75rem); bottom: 8%; right: 20%; animation: floatSoft4 7s ease-in-out infinite -2s; }

@media (min-width: 640px) {
  .hero-photo-1 { top: 15%; left: 5%;  right: auto; width: clamp(6.5rem, 11vw, 9rem); }
  .hero-photo-2 { top: 18%; right: 5%; left: auto;  width: clamp(6rem, 10vw, 8.25rem); }
  .hero-photo-3 { bottom: 14%; left: 6%;  right: auto; width: clamp(6rem, 10vw, 8.25rem); }
  .hero-photo-4 { bottom: 10%; right: 6%; left: auto;  width: clamp(6.5rem, 11vw, 9rem); }
}

@media (min-width: 1024px) {
  .hero-photo-1 { top: 17%; left: 8%;  width: clamp(8.5rem, 9.5vw, 11rem); }
  .hero-photo-2 { top: 20%; right: 9%; width: clamp(8rem, 9vw, 10.25rem); }
  .hero-photo-3 { bottom: 16%; left: 11%;  width: clamp(8rem, 9vw, 10.25rem); }
  .hero-photo-4 { bottom: 12%; right: 12%; width: clamp(8.5rem, 9.5vw, 11rem); }
}

@media (min-width: 1536px) {
  .hero-photo-1 { left: 12%; }
  .hero-photo-2 { right: 13%; }
  .hero-photo-3 { left: 15%; }
  .hero-photo-4 { right: 16%; }
}

@keyframes floatSoft1 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-28px) rotate(-4deg); } }
@keyframes floatSoft2 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(24px) rotate(3.5deg); } }
@keyframes floatSoft3 { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-22px) translateX(12px); } }
@keyframes floatSoft4 { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(20px) translateX(-12px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-photo-1, .hero-photo-2, .hero-photo-3, .hero-photo-4 {
    animation: none;
  }
}

/* ---------------- WhatsApp button ---------------- */
.whatsapp-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2B2420;
  color: #FAF9F6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(43, 36, 32, 0.25);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux),
    background-color 0.5s var(--ease-lux);
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.06);
  background: #25D366;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4);
}

@media (max-width: 640px) {
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
  }
}

/* ---------------- Mobil menü tetikleyici (hamburger) ---------------- */
.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 80;
}

.menu-toggle-bar {
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: #FAF9F6;
  border-radius: 1px;
  transition: transform 0.5s var(--ease-lux), opacity 0.3s var(--ease-lux),
    background-color 0.4s var(--ease-lux);
}

.menu-toggle-bar:first-child { transform: translateY(-4px); }
.menu-toggle-bar:last-child { transform: translateY(4px); }

#navbar.is-scrolled .menu-toggle-bar {
  background: #2B2420;
}

.menu-toggle.is-active .menu-toggle-bar:first-child {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:last-child {
  transform: translateY(0) rotate(-45deg);
}

/* ---------------- Mobil menü paneli ---------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  background: rgba(250, 249, 246, 0.98);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.65s var(--ease-lux), opacity 0.5s var(--ease-lux),
    visibility 0s linear 0.65s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.65s var(--ease-lux), opacity 0.5s var(--ease-lux),
    visibility 0s linear 0s;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mobile-menu-link {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  color: #2B2420;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux),
    color 0.3s ease;
}

.mobile-menu-link:active {
  color: #A9673F;
}

.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  border: 1px solid rgba(43, 36, 32, 0.25);
  border-radius: 999px;
  padding: 0.9rem 2.25rem;
  color: #2B2420;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux),
    background-color 0.4s ease, color 0.4s ease;
}

.mobile-menu.is-open .mobile-menu-link,
.mobile-menu.is-open .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu-link:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu.is-open .mobile-menu-cta { transition-delay: 0.44s; }

body.menu-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .mobile-menu,
  .menu-toggle {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-link,
  .mobile-menu-cta,
  .menu-toggle-bar {
    transition-duration: 0.01ms !important;
  }
}
