:root {
  --bg-obsidian: #070709;
  --bg-onyx: #0d0d11;
  --bg-velvet: #14141a;
  --gold-primary: #d4af37;
  --gold-champagne: #f3e5ab;
  --gold-antique: #9c7a22;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --text-ivory: #f6f3eb;
  --text-muted: #b3aba0;
  --glass-bar: rgba(7, 7, 9, 0.28);
  --glass-card: rgba(18, 18, 24, 0.56);
  --border-gold: rgba(212, 175, 55, 0.22);
  --border-gold-strong: rgba(212, 175, 55, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg-obsidian);
  color: var(--text-ivory);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-serif-luxury {
  font-family: 'Cormorant Garamond', 'Cinzel', Georgia, serif;
}

.text-gold-gradient {
  background: linear-gradient(120deg, #b88a28 0%, #f5e6b3 45%, #d4af37 70%, #fff4cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Transparent Glassmorphic Navigation Bars */
.glass-navbar {
  background: rgba(7, 7, 9, 0.16);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.glass-navbar.scrolled {
  background: rgba(7, 7, 9, 0.42);
  border-bottom-color: rgba(212, 175, 55, 0.32);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

.glass-bar {
  background: rgba(10, 10, 14, 0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.glass-panel {
  background: linear-gradient(145deg, rgba(22, 22, 28, 0.68), rgba(10, 10, 14, 0.78));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 28px rgba(212, 175, 55, 0.10);
}

/* Gold Buttons */
.btn-gold {
  background: linear-gradient(135deg, #c69a2c 0%, #f0da92 50%, #b88922 100%);
  color: #09090b;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 244, 207, 0.45);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(212, 175, 55, 0.42);
  filter: brightness(1.06);
}

.btn-outline-gold {
  background: rgba(212, 175, 55, 0.06);
  color: #f3e5ab;
  border: 1px solid rgba(212, 175, 55, 0.45);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}
.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: #f3e5ab;
  transform: translateY(-2px);
}

/* 3D Animated Hero Stage */
.hero-3d-stage {
  position: relative;
  perspective: 1400px;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-3d-layer {
  position: absolute;
  inset: -4%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s ease-out;
  animation: hero3DFloat 18s ease-in-out infinite alternate;
}
.hero-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08) brightness(1.04) saturate(1.16);
  transform: scale(1.05);
}
@keyframes hero3DFloat {
  0%   { transform: scale(1.04) rotateX(0.6deg) rotateY(-1.2deg) translate3d(-0.8%, -0.5%, 0); }
  50%  { transform: scale(1.09) rotateX(-0.8deg) rotateY(1.2deg) translate3d(0.8%, 0.6%, 24px); }
  100% { transform: scale(1.06) rotateX(0.4deg) rotateY(-0.6deg) translate3d(-0.4%, 0.4%, 12px); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.64) 0%, rgba(7, 7, 9, 0.28) 48%, rgba(7, 7, 9, 0.06) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.30) 0%, rgba(7, 7, 9, 0.04) 45%, rgba(7, 7, 9, 0.78) 100%);
  pointer-events: none;
}
.hero-text-shadow {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.72);
}

/* 3D Tilt Card (Info Card in Hakkimizda & Service Cards) */
.card-3d-wrap {
  perspective: 1100px;
}
.card-3d-inner {
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.35s ease;
  will-change: transform;
}
.luxury-info-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.18), transparent 46%),
    radial-gradient(circle at 88% 84%, rgba(243, 229, 171, 0.12), transparent 45%),
    linear-gradient(145deg, #101015 0%, #070709 55%, #15120b 100%);
  border: 1px solid rgba(212, 175, 55, 0.42);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(243, 229, 171, 0.28);
}
.luxury-info-card::after {
  content: "";
  position: absolute;
  inset: -120% -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(243, 229, 171, 0.12) 50%, transparent 58%);
  transform: rotate(12deg);
  animation: goldShimmer 7.5s infinite linear;
  pointer-events: none;
}
@keyframes goldShimmer {
  0% { transform: translateX(-60%) rotate(12deg); }
  100% { transform: translateX(60%) rotate(12deg); }
}

/* Gallery Hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: #0d0d11;
}
.gallery-item img {
  transition: transform 0.65s cubic-bezier(.22,.61,.36,1), filter 0.45s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
}
.gallery-item .gallery-overlay {
  background: linear-gradient(180deg, transparent 35%, rgba(7, 7, 9, 0.92) 100%);
  opacity: 0.92;
  transition: opacity 0.35s ease;
}

/* Fixed Bottom-Right WhatsApp & Call Buttons */
.floating-contact-dock {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.floating-action-btn:hover {
  transform: translateY(-3px) scale(1.03);
}
.floating-wa {
  background: rgba(18, 140, 74, 0.88);
  border: 1px solid rgba(110, 231, 167, 0.55);
  color: #ffffff;
}
.floating-call {
  background: rgba(20, 17, 10, 0.86);
  border: 1px solid rgba(212, 175, 55, 0.72);
  color: #f3e5ab;
}

/* RGB / Neon Glowing MB-Code Signature */
@keyframes rgbNeonFlow {
  0%   { background-position: 0% 50%; filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.65)); }
  33%  { background-position: 50% 50%; filter: drop-shadow(0 0 10px rgba(255, 0, 200, 0.72)); }
  66%  { background-position: 100% 50%; filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.85)); }
  100% { background-position: 0% 50%; filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.65)); }
}
.mbcode-neon-signature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: linear-gradient(90deg, #00f5ff, #ff2bd6, #ffe066, #38ef7d, #00f5ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rgbNeonFlow 4.5s linear infinite;
  transition: transform 0.25s ease;
}
.mbcode-neon-signature:hover {
  transform: scale(1.04);
}

/* Active Nav Link */
.nav-link-elegance {
  position: relative;
  color: rgba(246, 243, 235, 0.84);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-link-elegance:hover,
.nav-link-elegance.active {
  color: #f3e5ab;
}
.nav-link-elegance::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}
.nav-link-elegance:hover::after,
.nav-link-elegance.active::after {
  transform: scaleX(1);
}

/* Subtle Reveal */
.fade-in-view {
  animation: fadeInUp 0.45s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #070709; }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.35); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.65); }

/* Toast Notification */
.toast-elegance {
  position: fixed;
  top: 86px;
  right: 20px;
  z-index: 120;
  background: rgba(14, 14, 18, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #f3e5ab;
  padding: 12px 18px;
  border-radius: 12px;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  font-size: 13.5px;
  font-weight: 600;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
}
.toast-elegance.show {
  transform: translateY(0);
  opacity: 1;
}

/* Form Inputs in Admin */
.luxury-input {
  width: 100%;
  background: rgba(10, 10, 14, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.26);
  color: #f6f3eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.luxury-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}
