/* ==========================================================================
   108 ASTERA - SIMPLE, ELEGANT & USER-FRIENDLY SLIDING ENGINE STYLES
   ========================================================================== */

html {
  scroll-behavior: smooth !important;
}

body {
  background-color: #0A0C0E;
  overflow-x: hidden;
}

.slide-container {
  width: 100%;
  position: relative;
  scroll-snap-type: y proximity;
  background-color: #0A0C0E;
}

.slide-section {
  width: 100%;
  min-height: 100vh;
  position: relative;
  scroll-snap-align: start;
  scroll-margin-top: 70px;
  padding-top: 100px;
  padding-bottom: 70px;
  box-sizing: border-box;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
  transition: opacity 0.5s ease;
}

/* Elegant Viewport Entrance Animations */
.slide-section .section-header,
.slide-section .hero-content,
.slide-section .glass-card-dark,
.slide-section .stats-grid,
.slide-section .layout-interactive-container {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.slide-section.in-view .section-header,
.slide-section.in-view .hero-content,
.slide-section.in-view .glass-card-dark,
.slide-section.in-view .stats-grid,
.slide-section.in-view .layout-interactive-container {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .slide-section .section-header,
  .slide-section .hero-content,
  .slide-section .glass-card-dark,
  .slide-section .stats-grid,
  .slide-section .layout-interactive-container {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Floating Vertical Dots Navigation (Desktop) */
.slide-nav-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(13, 15, 18, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 8px;
  border-radius: 30px;
  border: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 991px) {
  .slide-nav-dots {
    display: none !important;
  }
}

.slide-nav-dot {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  outline: none;
  padding: 4px;
}

.dot-icon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(197, 160, 89, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-nav-dot:hover .dot-icon,
.slide-nav-dot.active .dot-icon {
  background: var(--primary-gold);
  box-shadow: 0 0 12px var(--primary-gold);
  transform: scale(1.45);
}

.dot-tooltip {
  position: absolute;
  right: 28px;
  white-space: nowrap;
  background: rgba(13, 15, 18, 0.95);
  border: 1px solid var(--border-gold);
  color: var(--primary-gold);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.slide-nav-dot:hover .dot-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Floating Progress Counter & Bar */
.slide-progress-bar-wrap {
  position: fixed;
  bottom: 24px;
  left: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  padding: 8px 18px;
  border-radius: 30px;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .slide-progress-bar-wrap {
    bottom: 80px;
    left: 16px;
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

.slide-progress-track {
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.slide-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 8.33%;
  background: var(--gold-gradient);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   AI PROPERTY ASSISTANT CHAT WIDGET
   ========================================================================== */

/* Floating Launcher Button */
.ai-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #0D0F12;
  border: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseGoldGlow 3s infinite;
}

.ai-chat-trigger:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(197, 160, 89, 0.6);
}

@keyframes pulseGoldGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3); }
  50% { box-shadow: 0 10px 40px rgba(197, 160, 89, 0.65); }
}

.ai-sparkle-icon {
  width: 20px;
  height: 20px;
  animation: spinSparkle 8s linear infinite;
}

@keyframes spinSparkle {
  100% { transform: rotate(360deg); }
}

/* Floating AI Chat Window */
.ai-chat-window {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 400px;
  height: 600px;
  max-height: calc(100vh - 110px);
  background: rgba(15, 18, 24, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.ai-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (max-width: 576px) {
  .ai-chat-window {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    bottom: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    border: none !important;
  }
}

/* Chat Header */
.ai-chat-header {
  padding: 16px 20px;
  background: rgba(21, 24, 30, 0.9);
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
}

.ai-info h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.ai-info p {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.ai-chat-close {
  background: transparent;
  border: none;
  color: var(--text-light-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.ai-chat-close:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

/* Messages Body Area */
.ai-chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.ai-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: fadeInMsg 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ai-msg.bot {
  background: #1C2028;
  color: var(--text-light);
  border-top-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-self: flex-start;
}

.ai-msg.user {
  background: var(--gold-gradient);
  color: #0D0F12;
  font-weight: 500;
  border-top-right-radius: 4px;
  align-self: flex-end;
}

/* Typing Indicator */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: #1C2028;
  border-radius: 16px;
  border-top-left-radius: 4px;
  width: fit-content;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-gold);
  animation: typingBlink 1.4s infinite ease-in-out both;
}

.ai-typing span:nth-child(1) { animation-delay: 0s; }
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Quick Action Chips */
.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ai-chip-btn {
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--primary-gold);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-chip-btn:hover {
  background: var(--primary-gold);
  color: #0D0F12;
}

/* Chat Input Footer */
.ai-chat-footer {
  padding: 14px 16px;
  background: rgba(21, 24, 30, 0.95);
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-input {
  flex: 1;
  background: #15181E;
  border: 1px solid var(--border-dark);
  color: #FFF;
  padding: 10px 14px;
  border-radius: 24px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.ai-chat-input:focus {
  border-color: var(--primary-gold);
}

.ai-send-btn {
  background: var(--gold-gradient);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D0F12;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ai-send-btn:hover {
  transform: scale(1.08);
}

/* Floating WhatsApp Button (Bottom-Left) */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

.floating-wa-btn .wa-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .floating-wa-btn {
    bottom: 80px;
    left: 16px;
    padding: 8px 14px;
    font-size: 0.775rem;
  }
}
