@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-red: #ED1C24;
  --primary-dark: #C9141B;
  --dark: #111827;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Font Awesome Icon Helpers */
i.fa-solid, i.fa-regular, i.fa-brands {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

/* Extra bottom padding on mobile for sticky bottom bar */
@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Custom Utilities */
.bg-morgato-red {
  background-color: var(--primary-red);
}
.bg-morgato-dark {
  background-color: var(--primary-dark);
}
.text-morgato-red {
  color: var(--primary-red);
}
.border-morgato-red {
  border-color: var(--primary-red);
}

.hover\:bg-morgato-dark:hover {
  background-color: var(--primary-dark);
}

/* Section Headings with red accent bar */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #111827;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.35em;
  background-color: var(--primary-red);
  border-radius: 2px;
  shrink: 0;
}

/* =================================================== */
/* 3D VISUAL EFFECTS & TACTILE DEPTH */
/* =================================================== */

/* Property Cards 3D Effect */
.prop-card {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 12px -2px rgba(17, 24, 39, 0.05), 0 2px 4px -2px rgba(17, 24, 39, 0.03);
  will-change: transform, box-shadow;
}

.prop-card:hover {
  transform: translateY(-8px) scale(1.015) rotateX(2deg);
  box-shadow: 0 22px 35px -8px rgba(17, 24, 39, 0.12), 0 10px 18px -4px rgba(237, 28, 36, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.prop-card:hover .prop-card-img {
  transform: scale(1.06) translateZ(15px);
}

.prop-card-img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 3D Category Cards */
.cat-card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.08);
}

.cat-card-3d:hover {
  transform: translateY(-6px) scale(1.02) rotateX(2.5deg);
  box-shadow: 0 20px 30px -8px rgba(0, 0, 0, 0.18), 0 8px 16px -4px rgba(237, 28, 36, 0.15);
}

/* 3D Pushable Buttons */
.btn-3d {
  position: relative;
  transition: all 0.15s ease-out;
  transform-style: preserve-3d;
  user-select: none;
}

.btn-3d-red {
  background: linear-gradient(180deg, #ED1C24 0%, #d9141b 100%);
  box-shadow: 0 4px 0 #9e0e14, 0 8px 16px rgba(237, 28, 36, 0.35);
}

.btn-3d-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #9e0e14, 0 12px 20px rgba(237, 28, 36, 0.4);
}

.btn-3d-red:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #9e0e14, 0 4px 8px rgba(237, 28, 36, 0.25);
}

.btn-3d-white {
  background: #FFFFFF;
  box-shadow: 0 4px 0 #e2e8f0, 0 8px 16px rgba(0, 0, 0, 0.1);
}

.btn-3d-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #cbd5e1, 0 12px 20px rgba(0, 0, 0, 0.12);
}

.btn-3d-white:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #cbd5e1, 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* 3D Floating Elements */
@keyframes float3D {
  0%, 100% {
    transform: translateY(0px) rotate3d(1, 1, 0, 0deg);
  }
  50% {
    transform: translateY(-10px) rotate3d(1, 1, 0, 1.5deg);
  }
}

@keyframes float3D-alt {
  0%, 100% {
    transform: translateY(0px) rotate3d(1, -1, 0, 0deg);
  }
  50% {
    transform: translateY(-8px) rotate3d(1, -1, 0, -1.5deg);
  }
}

.float-3d {
  animation: float3D 5s ease-in-out infinite;
}

.float-3d-delayed {
  animation: float3D-alt 6s ease-in-out 1.5s infinite;
}

/* 3D Glassmorphic Depth */
.glass-3d {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07), inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -1px 1px rgba(0, 0, 0, 0.03);
}

/* 3D Badge Depth */
.badge-3d {
  box-shadow: 0 3px 8px -1px rgba(237, 28, 36, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* 3D Hero Showcase Box */
.hero-box-3d {
  perspective: 1200px;
  transform-style: preserve-3d;
  box-shadow: 0 30px 60px -20px rgba(17, 24, 39, 0.25), 0 15px 30px -10px rgba(237, 28, 36, 0.15);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-box-3d:hover {
  transform: rotateY(-3deg) rotateX(2deg) translateY(-4px);
}

/* Modal animation */
.modal-overlay {
  background-color: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Smooth hide scrollbar for horizontal chips */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Badge styles */
.badge-featured {
  background: linear-gradient(135deg, #ED1C24 0%, #C9141B 100%);
}

.tab-active {
  color: #ED1C24;
  border-bottom: 2px solid #ED1C24;
}

/* Pulse animation for CTA */
@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.cta-pulse:hover {
  animation: softPulse 1.5s infinite;
}

/* Drawer transitions */
.mobile-drawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
