/* NAVBAR — handled in index.html */

.hero-text {
  opacity: 0;
  transform: translateY(25px);
  filter: blur(6px);
  transition: all 1.2s ease;
}

.hero-text.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  text-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.hero-typing {
  direction: rtl;
  text-align: right;
  margin: 24px 0 16px;
}

.hero-typing p {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  color: #FBF4E6;
  overflow: hidden;
  white-space: nowrap;
  border-left: 3px solid transparent;
  width: 0;
  animation: none;
}

.hero-typing p.typing {
  animation: typeLine 1.5s steps(20, end) forwards;
  border-left-color: #2BCFCE;
}

.hero-typing p.typed {
  width: 100%;
  border-left-color: transparent;
}

@keyframes typeLine {
  from { width: 0; }
  to { width: 100%; }
}

/* Modern Chatbot Button - 21st.dev Style */
.chatbot-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}
.chatbot-trigger {
  position: relative;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #6E1A2B 0%, #8B2635 50%, #A8303F 100%);
  color: #FBF4E6;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 6s ease-in-out infinite;
  box-shadow:     0 8px 32px rgba(110, 26, 43, 0.4),    0 4px 16px rgba(110, 26, 43, 0.2),    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.button-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.3s ease;
}
/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(1deg); }
  66% { transform: translateY(-4px) rotate(-1deg); }
}
/* Hover Effects */
.chatbot-trigger:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow:     0 12px 48px rgba(110, 26, 43, 0.6),    0 8px 24px rgba(110, 26, 43, 0.3),    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.chatbot-trigger:hover .button-inner {
  transform: scale(1.1);
}
.chatbot-trigger:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}
/* Ripple Effect */
.ripple-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: ripple 3s infinite;
  pointer-events: none;
}
@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  50% {
    width: 120px;
    height: 120px;
    opacity: 0.3;
  }
  100% {
    width: 160px;
    height: 160px;
    opacity: 0;
  }
}
/* Glow Ring */
.glow-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, #2BCFCE, #6E1A2B, #2BCFCE);
  background-size: 200% 200%;
  animation: gradientRotate 4s linear infinite;
  opacity: 0.7;
  z-index: 1;
}
@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #2BCFCE;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}
.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  top: 70%;
  right: 20%;
  animation-delay: 2s;
}
.particle:nth-child(3) {
  bottom: 20%;
  left: 70%;
  animation-delay: 4s;
}
@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0px) scale(0);
    opacity: 0;
  }
  50% { 
    transform: translateY(-20px) scale(1);
    opacity: 1;
  }
}
/* Tooltip */
.chat-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(16, 45, 52, 0.95);
  color: #FBF4E6;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(43, 207, 206, 0.2);
  font-family: 'Vazirmatn', sans-serif;
}
.chatbot-container:hover .chat-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-20px);
}
/* Hide when chat is open */
.chat-hidden {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chatbot-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .chatbot-trigger {
    width: 56px;
    height: 56px;
  }
  
  .glow-ring {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
  }
}