/* ─── Base & Typography ─── */
html {
  scroll-behavior: smooth;
}

body {
  cursor: default;
}

body.custom-cursor {
  cursor: none;
}

body.custom-cursor a,
body.custom-cursor button {
  cursor: none;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ─── Noise Texture Overlay ─── */
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ─── Premium Loader ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e0e0d;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #e9c176, transparent);
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-brand {
  animation: loaderFade 1.5s ease-in-out infinite;
}

/* ─── Site Logo ─── */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.35s ease;
}

.site-logo-link:hover {
  opacity: 0.88;
}

.site-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.site-logo {
  display: block;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.site-logo--nav {
  height: 5.5rem;
  transition: height 0.45s ease, transform 0.45s ease;
}

.navbar.scrolled .site-logo--nav {
  height: 4.75rem;
}

@media (min-width: 768px) {
  .navbar {
    overflow: visible;
  }

  .navbar-inner {
    position: relative;
    min-height: 4rem;
    height: 4rem;
    padding-top: 0;
    padding-bottom: 0;
    transition: height 0.45s ease, min-height 0.45s ease;
  }

  /* Açılış: menü tam ortada, logo & ikonlar bağımsız */
  .navbar:not(.scrolled) .navbar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .navbar:not(.scrolled) .navbar-logo-slot {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 60;
    pointer-events: auto;
  }

  .navbar:not(.scrolled) .navbar-menu {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
    width: max-content;
    z-index: 50;
  }

  .navbar:not(.scrolled) .navbar-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    z-index: 70;
  }

  .navbar:not(.scrolled) .site-logo--nav {
    height: 8rem;
  }

  .navbar:not(.scrolled) #mobile-open {
    display: none !important;
  }

  /* Scroll sonrası: klasik 3 sütun */
  .navbar.scrolled .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .navbar.scrolled .navbar-logo-slot {
    position: static;
  }

  .navbar.scrolled .navbar-menu {
    display: flex !important;
    flex: 1;
    justify-content: center;
    width: auto;
    grid-column: auto;
    grid-row: auto;
  }

  .navbar.scrolled .navbar-actions {
    position: static;
    transform: none;
    grid-column: auto;
    grid-row: auto;
  }

  .navbar.scrolled .site-logo--nav {
    height: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .navbar:not(.scrolled) .site-logo--nav {
    height: 9rem;
  }

  .navbar.scrolled .site-logo--nav {
    height: 3.75rem;
  }
}

.site-logo--loader {
  height: 9rem;
}

@media (min-width: 768px) {
  .site-logo--loader {
    height: 12rem;
  }
}

.site-logo--footer {
  height: 7rem;
}

@media (min-width: 768px) {
  .site-logo--footer {
    height: 9rem;
  }
}

.site-logo--mobile {
  height: 7.5rem;
}

.mobile-menu-logo {
  margin-bottom: 1rem;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes loaderFade {
  0%, 100% { opacity: 0.75; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

/* ─── Custom Cursor ─── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    display: block;
  }
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #e9c176;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(233, 193, 118, 0.4);
}

.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  border-color: #e9c176;
  background: rgba(233, 193, 118, 0.05);
}

/* ─── Navbar ─── */
.navbar {
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar.scrolled {
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(19, 19, 18, 0.92);
  border-color: rgba(197, 160, 89, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled > div,
.navbar.scrolled .navbar-inner {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

@media (min-width: 768px) {
  .navbar.scrolled > div,
  .navbar.scrolled .navbar-inner {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }

  .navbar-menu .nav-link {
    line-height: 1.2;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .navbar-actions .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 13, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mobile-menu.open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 380px);
  height: 100%;
  background: #1c1c1a;
  border-left: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #d1c5b4;
  transition: color 0.3s;
}

.mobile-menu-close:hover {
  color: #e9c176;
}

.mobile-nav-link {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d1c5b4;
  transition: color 0.3s, transform 0.3s;
  transform: translateX(20px);
  opacity: 0;
}

.mobile-menu.open .mobile-nav-link {
  transform: translateX(0);
  opacity: 1;
}

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

.mobile-nav-link:hover {
  color: #e9c176;
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  opacity: 0;
  transition: opacity 0.5s 0.35s;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
}

/* ─── Hero ─── */
.hero-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-text-glow {
  text-shadow: 0 0 40px rgba(233, 193, 118, 0.15);
}

.gold-shimmer {
  background: linear-gradient(
    90deg,
    #e9c176 0%,
    #ffdea5 25%,
    #e9c176 50%,
    #c5a059 75%,
    #e9c176 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s linear infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-badge.animate-in,
.hero-title.animate-in,
.hero-desc.animate-in,
.hero-cta.animate-in {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title.animate-in { animation-delay: 0.15s; }
.hero-desc.animate-in { animation-delay: 0.3s; }
.hero-cta.animate-in { animation-delay: 0.45s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  width: 1px;
  height: 48px;
  background: rgba(209, 197, 180, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-dot {
  width: 100%;
  height: 12px;
  background: #e9c176;
  position: absolute;
  top: 0;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 0; opacity: 1; }
  50% { top: 36px; opacity: 0.3; }
}

/* ─── Gold Border Cards ─── */
.gold-border-gradient {
  border: 1px solid rgba(197, 160, 89, 0.25);
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-border-gradient:hover {
  border-color: rgba(233, 193, 118, 0.6);
  box-shadow: inset 0 0 30px rgba(233, 193, 118, 0.04),
              0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ─── Feature Cards ─── */
.feature-card {
  padding: 2rem 1rem;
  border: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}

.feature-card:hover {
  border-color: rgba(197, 160, 89, 0.15);
  background: rgba(32, 32, 30, 0.5);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 50%;
  transition: border-color 0.4s, background 0.4s, transform 0.4s;
}

.feature-card:hover .feature-icon {
  border-color: #e9c176;
  background: rgba(233, 193, 118, 0.08);
  transform: scale(1.05);
}

/* ─── Collection Cards ─── */
.collection-card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-card:hover {
  transform: translateY(-4px);
}

.collection-img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-card:hover .collection-img {
  transform: scale(1.08);
}

.card-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.collection-card:hover .card-corner {
  opacity: 1;
}

.card-corner-tl {
  top: 16px;
  left: 16px;
  border-top: 1px solid #e9c176;
  border-left: 1px solid #e9c176;
}

.card-corner-br {
  bottom: 16px;
  right: 16px;
  border-bottom: 1px solid #e9c176;
  border-right: 1px solid #e9c176;
}

/* ─── Experience Image ─── */
.experience-img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.experience-img:hover {
  transform: scale(1.04);
}

/* ─── Scroll Reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Marquee ─── */
.marquee-track {
  animation: marquee 35s linear infinite;
  width: max-content;
}

.marquee-content {
  flex-shrink: 0;
}

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

/* ─── Buttons & Interactive ─── */
.btn-primary,
.btn-ghost,
.collection-btn,
.icon-btn,
.social-link,
.footer-link {
  position: relative;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #131312;
}

::-webkit-scrollbar-thumb {
  background: #474746;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c5a059;
}

/* ─── Promo Showcase Images ─── */
.promo-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

.gold-border-gradient img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gold-border-gradient:hover img {
  transform: scale(1.01);
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal,
  .hero-badge,
  .hero-title,
  .hero-desc,
  .hero-cta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .marquee-track {
    animation: none;
  }

  .gold-shimmer {
    animation: none;
    -webkit-text-fill-color: #e9c176;
  }

  .loader {
    display: none;
  }
}
