/* ================================================================
   Mono Mebel — Home page styles  (v2 — animations + mobile)
================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; overflow-x: hidden; }

/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
  --indigo: #4f46e5;
  --blue:   #3b82f6;
  --dark:   #1e1b4b;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero-bg {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e3a5f 100%);
  position: relative;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Animated gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(59,130,246,0.15) 0%, transparent 50%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite alternate;
}
@keyframes heroPulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* Floating blobs */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobFloat 12s ease-in-out infinite;
}
.shape:nth-child(2) { animation-delay: -4s; animation-duration: 15s; }
.shape:nth-child(3) { animation-delay: -8s; animation-duration: 10s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav-scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.09);
}
.nav-scrolled .nav-link { color: #374151 !important; }
.nav-scrolled .nav-link:hover { color: var(--indigo) !important; }

/* Hamburger (mobile) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrolled .hamburger span { background: #1e1b4b; }

/* Mobile nav drawer */
#mobileNav {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 40;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  border-bottom: 1px solid #e5e7eb;
}
#mobileNav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#mobileNav a {
  display: flex; align-items: center;
  padding: 14px 24px;
  color: #374151; font-weight: 600; font-size: 0.95rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
#mobileNav a:hover { background: #f0f4ff; color: var(--indigo); }
#mobileNav a:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════
   SCROLL-REVEAL
═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.19s; }
.stagger-4 { transition-delay: 0.26s; }
.stagger-5 { transition-delay: 0.33s; }
.stagger-6 { transition-delay: 0.40s; }
.stagger-7 { transition-delay: 0.47s; }
.stagger-8 { transition-delay: 0.54s; }

/* ═══════════════════════════════════════════════════════════════
   HERO ANIMATIONS
═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) forwards; }
.delay-100 { animation-delay: 0.10s; opacity: 0; }
.delay-200 { animation-delay: 0.22s; opacity: 0; }
.delay-300 { animation-delay: 0.36s; opacity: 0; }
.delay-400 { animation-delay: 0.52s; opacity: 0; }
.delay-500 { animation-delay: 0.70s; opacity: 0; }

/* ═══════════════════════════════════════════════════════════════
   SECTION TAG
═══════════════════════════════════════════════════════════════ */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  color: #4f46e5;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 9999px;
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════════════════ */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════ */
.category-card {
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease;
}
.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14);
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(59,130,246,0.04));
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.feature-card:hover::before { opacity: 1; }

.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.11);
}

.product-card { transition: transform 0.35s ease, box-shadow 0.35s ease; overflow: hidden; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.12); }
.product-card .product-img { transition: transform 0.5s ease; }
.product-card:hover .product-img { transform: scale(1.06); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79,70,229,0.45);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-outline { transition: all 0.3s ease; }
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }

.admin-btn {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  transition: all 0.3s ease;
}
.admin-btn:hover {
  background: linear-gradient(135deg, #312e81, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(49,46,129,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════════════════════════ */
.lang-switcher {
  display: flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px; overflow: hidden;
  font-size: 0.7rem; font-weight: 700;
}
.lang-btn {
  padding: 4px 10px; color: rgba(255,255,255,0.6);
  cursor: pointer; transition: all 0.2s;
  background: transparent; border: none;
  font-family: inherit; font-size: inherit; font-weight: inherit;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }
.lang-btn.active { background: rgba(255,255,255,0.22); color: #fff; }
.lang-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.3); }

.nav-scrolled .lang-switcher { border-color: #d1d5db; }
.nav-scrolled .lang-btn { color: #6b7280; }
.nav-scrolled .lang-btn:hover { color: #1e1b4b; background: #f3f4f6; }
.nav-scrolled .lang-btn.active { background: #1e1b4b; color: #fff; }
.nav-scrolled .lang-sep { background: #d1d5db; }

/* ═══════════════════════════════════════════════════════════════
   STATS — counter animation
═══════════════════════════════════════════════════════════════ */
.stat-number {
  font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON (mobile)
═══════════════════════════════════════════════════════════════ */
#floatingCta {
  display: none;
  position: fixed; bottom: 20px; right: 16px;
  z-index: 50;
  flex-direction: column; gap: 10px;
  align-items: flex-end;
}
#floatingCta a {
  display: flex; align-items: center; gap-8px;
  width: 52px; height: 52px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-content: center;
  text-decoration: none;
}
#floatingCta a:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(0,0,0,0.25); }
#floatingCtaTg { background: #29a9e0; }
#floatingCtaCall { background: #22c55e; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Show hamburger, hide desktop links */
  .hamburger { display: flex !important; }
  .desktop-nav { display: none !important; }

  /* Show floating CTA */
  #floatingCta { display: flex; }

  /* Hero adjustments */
  .hero-bg .max-w-3xl { text-align: center; }
  .hero-bg h1 { font-size: 2rem !important; line-height: 1.25; }
  .hero-bg .flex-wrap { justify-content: center; }
  .hero-bg .gap-8 { gap: 1.5rem !important; justify-content: center; }

  /* Stats row on hero — 2 columns */
  .hero-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-stats .w-px { display: none; }

  /* Section padding */
  section { padding-left: 1rem !important; padding-right: 1rem !important; }

  /* Category grid — 2 cols on phones */
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }

  /* Feature grid — 1 col on small phones */
  .feat-grid { grid-template-columns: 1fr !important; }

  /* Products grid — 1 col */
  .prod-grid { grid-template-columns: 1fr !important; }

  /* Testimonials — 1 col */
  .test-grid { grid-template-columns: 1fr !important; }

  /* CTA section */
  .cta-section { padding: 2rem 1.5rem !important; }

  /* Contacts grid — 1 col */
  .con-grid { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-direction: column; gap: 0.5rem; align-items: center; }

  /* Reduce blob opacity on mobile for performance */
  .shape { opacity: 0.1; filter: blur(50px); }

  /* Nav call button — hide on very small */
  .nav-call-btn { display: none !important; }
}

@media (max-width: 400px) {
  .hero-bg h1 { font-size: 1.7rem !important; }
  .cat-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (min-width: 768px) {
  #mobileNav { display: none !important; }
  .hamburger { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SHIMMER / GLOW on feature icon
═══════════════════════════════════════════════════════════════ */
.feature-card:hover .feature-icon {
  animation: iconPop 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes iconPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2) rotate(-6deg); }
  100% { transform: scale(1.08); }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL INDICATOR
═══════════════════════════════════════════════════════════════ */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.5; }
}
.scroll-dot { animation: scrollBounce 1.8s ease-in-out infinite; }
