* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Vazir', -apple-system, BlinkMacSystemFont, sans-serif; background: #fff; color: #1a1a1a; line-height: 1.5; -webkit-font-smoothing: antialiased;max-width:600px;margin:0 auto } #app-shell { padding: 0; margin-top: 65px; padding-bottom: 50px; } .search-section { padding: 15px; background: white; } .search-container { background: #f8f9fa; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; } .search-input { flex: 1; border: none; background: transparent; font-size: 14px; color: #1a1a1a; outline: none; } .search-input::placeholder { color: #8c8c8c; } .location-bar { padding: 12px 15px; background: white; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #595959; } .location-icon { color: #2d2d2d; } .category-section { padding: 0 15px; background: white; margin-bottom: 8px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .section-title { font-size: 12px; font-weight: 600; color: #1a1a1a; } .see-all { font-size: 10px; color: #2d2d2d; text-decoration: none;padding: 6px 8px; font-weight: 700;display: flex; justify-content: center; align-items: center;} .category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .category-item { text-align: center; text-decoration: none; color: #1a1a1a; } .category-icon { width: 72px; height: 72px; background: #f8f9fa; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 24px; transition: all 0.2s ease; } .category-name { font-size: 11px; font-weight: 700; color: #595959; line-height: 1.4; } /* Banner */ .banner-section { padding: 15px; margin-bottom: 0; } .banner-container { background: #1a1a1a; border-radius: 16px; padding: 24px; position: relative; overflow: hidden; } .banner-title { color: white; font-size: 13px; font-weight: 600; margin-bottom: 8px; } .banner-subtitle { color: #b3b3b3; font-size: 11px; margin-bottom: 20px; } .banner-button { background: white; color: #1a1a1a; border: none; padding: 10px 20px; border-radius: 8px; font-size: 11px; font-weight: 500; cursor: pointer; } /* Installment Products */ .installment-section { padding: 20px 15px; background: white; margin-bottom: 8px; } .product-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 8px 0;} .product-card { min-width: 140px; background: white; border-radius: 12px; padding: 12px; border: 1px solid #f0f0f0; text-decoration: none; color: #1a1a1a; transition: all 0.2s ease; } .product-image { width: 100%; height: 100px; border-radius: 8px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #8c8c8c; } .product-name { font-size: 11px; font-weight: 500; margin-bottom: 6px; line-height: 1.4; } .product-price { font-size: 10px; font-weight: 100; color: #1a1a1a; margin-bottom: 8px; } .installment-badge { display: inline-block; background: #f0f7ff; color: #0066ff; font-size: 11px; padding: 2px 8px; border-radius: 4px; } /* Featured Services */ .services-section { padding: 10px 15px 10px; background: white; margin-bottom: 8px; } .service-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } .service-card { background: white; border-radius: 12px; padding: 16px; border: 1px solid #f0f0f0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #1a1a1a; transition: all 0.2s ease; } .service-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; } .service-info { flex: 1;text-align: right; } .service-title { font-size: 12px; font-weight: 500; margin-bottom:6px; } .service-desc { font-size: 10px; color: #8c8c8c; } /* Village Products */ .village-products { padding: 0 15px 20px; background: white; margin-bottom: 8px; } .village-header {border: 1px solid #f0f0f0; border-radius: 10px; display: flex; align-items: center; gap: 10px; height: 50px; margin-bottom: 16px; } .village-avatar { width: 40px; height: 40px; background: #f8f9fa; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; } .village-info { flex: 1; } .village-title { font-size: 12px; font-weight: 500;} .village-location { font-size: 11px; color: #8c8c8c; } /* Bottom Navigation */ .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; display: flex; justify-content: space-around; padding: 12px 0; border-top: 1px solid #f0f0f0; z-index: 1000; } .nav-item { text-align: center; text-decoration: none; color: #8c8c8c; font-size: 10px; flex: 1; } .nav-item.active { color: #1a1a1a; } .nav-icon { font-size: 22px; margin-bottom: 4px; display: block; height: 24px; } /* Hover & Active States */ .category-item:hover .category-icon, .category-item:active .category-icon { background: #e8e8e8; transform: translateY(-2px); } .product-card:hover, .product-card:active { border-color: #d9d9d9; transform: translateY(-2px); } .service-card:hover, .service-card:active { border-color: #d9d9d9; background: #f8f9fa; } /* Scrollbar */ .product-scroll::-webkit-scrollbar { height: 0; } .product-scroll::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; } .product-scroll::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 10px; } /* Responsive */ @media (min-width: 768px) { .category-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; } .service-row { grid-template-columns: repeat(3, 1fr); } .product-card { min-width: 160px; } } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .category-item, .product-card, .service-card { animation: fadeIn 0.3s ease forwards;text-align:center } /* Status Bar Space */ @supports (padding-top: env(safe-area-inset-top)) { #app-shell { margin-top: calc(65px + env(safe-area-inset-top)); } .bottom-nav { padding-bottom: calc(12px + env(safe-area-inset-bottom)); } }
.ai-assistant-section { padding: 0 16px; margin: 16px 0; position: relative; } .ai-assistant-btn { width: 100%; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); border: none; border-radius: 20px; padding: 20px; color: white; text-align: right; display: flex; flex-direction: column; gap: 8px; cursor: pointer; box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3); transition: all 0.3s ease; position: relative; overflow: hidden; } .ai-assistant-btn:before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%); animation: shine 3s infinite linear; } @keyframes shine { 0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); } 100% { transform: translateX(100%) translateY(100%) rotate(45deg); } } .ai-assistant-btn:active { transform: scale(0.97); box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2); } .ai-icon-wrapper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .ai-icon { font-size: 32px; animation: pulse 2s infinite; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } .ai-status { background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 12px; font-size: 11px; display: flex; align-items: center; gap: 4px; } .ai-status.online:before { content: ''; width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: blink 2s infinite; } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .ai-text { font-size: 18px; font-weight: bold; margin-bottom: 4px; } .ai-subtext { font-size: 13px; opacity: 0.9; line-height: 1.4; } .ai-features { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .ai-feature { background: rgba(255,255,255,0.15); padding: 6px 12px; border-radius: 12px; font-size: 11px; display: flex; align-items: center; gap: 4px; } /* مودال چت پیشرفته */ .ai-chat-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 9998; opacity: 0; transition: opacity 0.3s ease; } .ai-chat-overlay.show { opacity: 1; } .ai-chat-modal { position: fixed; bottom: 0; left: 0; right: 0; top: 0; background: white; border-radius:0; z-index: 9999; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); box-shadow: 0 -20px 60px rgba(0,0,0,0.3); overflow: hidden; } .ai-chat-modal.show { transform: translateY(0); } .ai-chat-header { padding: 20px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; } .ai-chat-title { display: flex; align-items: center; gap: 15px; } .ai-chat-icon { font-size: 36px; animation: float 3s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } } .ai-chat-name { font-weight: bold; font-size: 18px; } .ai-chat-status { font-size: 12px; opacity: 0.9; margin-top: 2px; display: flex; align-items: center; gap: 6px; } .ai-chat-status.online:before { content: ''; width: 8px; height: 8px; background: #10b981; border-radius: 50%; } .ai-close-btn { background: rgba(255,255,255,0.2); border: none; width: 40px; height: 40px; border-radius: 20px; font-size: 22px; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } .ai-close-btn:hover { background: rgba(255,255,255,0.3); } .ai-chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; background: #f8fafc; } .ai-message { max-width: 85%; padding: 15px; border-radius: 20px; animation: messageAppear 0.3s ease; position: relative; line-height: 1.6; } @keyframes messageAppear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .ai-bot-message { background: white; border: 1px solid #e2e8f0; align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); } .ai-user-message { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; align-self: flex-end; border-bottom-right-radius: 5px; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); } .ai-message-text { font-size: 14px; } .ai-message-time { font-size: 11px; opacity: 0.7; text-align: left; margin-top: 8px; } .ai-message-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .ai-action-btn { background: rgba(99, 102, 241, 0.1); border: 1px solid #6366f1; color: #6366f1; padding: 6px 12px; border-radius: 12px; font-size: 12px; cursor: pointer; transition: all 0.2s; } .ai-action-btn:hover { background: #6366f1; color: white; } .ai-chat-input-section { padding: 20px; border-top: 1px solid #f0f0f0; background: white; } .ai-input-wrapper { display: flex; gap: 10px; align-items: center; } .ai-chat-input { flex: 1; padding: 15px 20px; border: 2px solid #e2e8f0; border-radius: 25px; font-size: 12px; background: #f8fafc; transition: border 0.3s; } .ai-chat-input:focus { outline: none; border-color: #6366f1; } .ai-voice-btn, .ai-send-btn { width: 50px; height: 50px; border-radius: 25px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: all 0.3s; } .ai-voice-btn { background: #f1f5f9; color: #64748b; } .ai-voice-btn.listening { background: #ef4444; color: white; animation: pulseVoice 1.5s infinite; } @keyframes pulseVoice { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } .ai-send-btn { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; } .ai-send-btn:active { transform: scale(0.95); } .ai-quick-buttons { display: flex; gap: 10px; margin-bottom: 15px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; } .ai-quick-buttons::-webkit-scrollbar { display: none; } .ai-quick-btn { white-space: nowrap; padding: 10px 18px; background: #f1f5f9; border: none; border-radius: 20px; font-size: 13px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; gap: 6px; transition: all 0.2s; } .ai-quick-btn:hover { background: #e2e8f0; transform: translateY(-2px); } /* استایل‌های مخصوص نمایش محصولات */ .ai-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 15px; } .ai-product-card { background: white; border-radius: 16px; padding: 12px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all 0.3s; cursor: pointer; } .ai-product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); } .ai-product-image { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 10px; } .ai-product-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #1e293b; } .ai-product-price { font-size: 12px; color: #6366f1; font-weight: bold; } /* استایل‌های مخصوص خدمات */ .ai-services-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; } .ai-service-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: white; border-radius: 12px; border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.2s; } .ai-service-item:hover { border-color: #6366f1; background: #f8fafc; } .ai-service-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; } .ai-service-info { flex: 1; } .ai-service-title { font-weight: 600; font-size: 14px; margin-bottom: 3px; } .ai-service-desc { font-size: 12px; color: #64748b; } /* لودینگ */ .ai-typing-indicator { display: flex; gap: 4px; padding: 15px; background: white; border-radius: 20px; width: fit-content; border: 1px solid #e2e8f0; } .ai-typing-dot { width: 8px; height: 8px; background: #94a3b8; border-radius: 50%; animation: typing 1.4s infinite ease-in-out; } .ai-typing-dot:nth-child(1) { animation-delay: -0.32s; } .ai-typing-dot:nth-child(2) { animation-delay: -0.16s; } @keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

.ai-assistant-section { padding: 16px; margin: 10px 0; } .ai-assistant-btn { width: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 20px; padding: 20px; color: white; text-align: right; cursor: pointer; box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3); transition: all 0.3s; position: relative; overflow: hidden; } .ai-assistant-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4); } .ai-icon-wrapper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .ai-icon { font-size: 40px; animation: pulse 2s infinite; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } .ai-status { background: rgba(255,255,255,0.2); padding: 6px 12px; border-radius: 15px; font-size: 12px; display: flex; align-items: center; gap: 6px; } .ai-status:before { content: ''; width: 8px; height: 8px; background: #4ade80; border-radius: 50%; display: inline-block; animation: blink 1.5s infinite; } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .ai-text { font-size: 20px; font-weight: bold; margin-bottom: 8px; } .ai-subtext { font-size: 14px; opacity: 0.9; line-height: 1.6; margin-bottom: 15px; } .ai-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; } .ai-feature { background: rgba(255,255,255,0.15); padding: 6px 12px; border-radius: 12px; font-size: 11px; display: flex; align-items: center; gap: 5px; } /* ========== مودال چت ========== */ .ai-chat-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); z-index: 9998; opacity: 0; visibility: hidden; transition: all 0.3s; } .ai-chat-overlay.active { opacity: 1; visibility: visible; } .ai-chat-modal { margin:0 auto; max-width:600px; position: fixed; bottom: 0; left: 0; right: 0; height: 100vh; max-height: 100vh; background: white; border-radius: 0; z-index: 9999; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); box-shadow: 0 -20px 60px rgba(0,0,0,0.3); top:0; } .ai-chat-modal.active { transform: translateY(0); } .ai-chat-header { padding: 20px; background: #f7e8cb; color: #2a4157; border-radius: 0; display: flex; justify-content: space-between; align-items: center; } .ai-chat-title { display: flex; align-items: center; gap: 15px; } .ai-chat-icon { font-size: 36px; animation: float 3s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } } .ai-chat-info { flex: 1; } .ai-chat-name { font-size: 12px; font-weight: bold; margin-bottom: 6px; } .ai-chat-status { font-size: 10px; opacity: 0.9; } .ai-close-btn { background: rgba(255,255,255,0.2); border: none; width: 40px; height: 40px; border-radius: 50%; color: white; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } .ai-close-btn:hover { background: rgba(255,255,255,0.3); } .ai-chat-messages { flex: 1; overflow-y: auto; padding: 20px; background: #f8fafc; } .ai-message { max-width: 85%; margin-bottom: 15px; animation: fadeIn 0.3s; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .ai-bot-message { align-self: flex-start; } .ai-user-message { align-self: flex-end; margin-left: auto; } .ai-message-bubble { padding: 12px 0; border-radius: 20px; line-height: 2; font-size: 11px; position: relative; } .ai-user-message .ai-message-bubble { color: white; border-bottom-right-radius: 5px; } .ai-message-time { font-size: 11px; color: #94a3b8; margin-top: 5px; text-align: right; } .ai-user-message .ai-message-time { text-align: left; color:#fff; } .ai-chat-input-section { padding: 15px; background: white; border-top: 1px solid #e2e8f0; } .ai-quick-buttons { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; } .ai-quick-buttons::-webkit-scrollbar { display: none; } .ai-quick-btn { white-space: nowrap; padding: 8px 16px; background: #f1f5f9; border: none; border-radius: 20px; font-size: 10px; cursor: pointer; flex-shrink: 0; transition: all 0.2s; } .ai-quick-btn:hover { background: #e2e8f0; } .ai-input-wrapper { display: flex; gap: 10px; align-items: center; } .ai-chat-input { flex: 1; padding: 12px 18px; border: 2px solid #e2e8f0; border-radius: 25px; font-size: 15px; background: #f8fafc; transition: border 0.3s; } .ai-chat-input:focus { outline: none; border-color: #667eea; } /* دکمه‌های صدا و ارسال */ .ai-voice-btn, .ai-send-btn { width: 50px; height: 50px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; transition: all 0.3s; position: relative; } .ai-voice-btn { background: #f1f5f9; color: #64748b; } .ai-voice-btn.listening { background: #ef4444 !important; color: white !important; animation: voicePulse 1.5s infinite; } @keyframes voicePulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } } .ai-send-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .ai-send-btn:hover { transform: scale(1.05); } /* تایپینگ */ .ai-typing { display: flex; align-items: center; gap: 4px; padding: 12px 16px; background: white; border-radius: 20px; width: fit-content; border: 1px solid #e2e8f0; } .ai-typing-dot { width: 8px; height: 8px; background: #94a3b8; border-radius: 50%; animation: typingDot 1.4s infinite ease-in-out; } .ai-typing-dot:nth-child(1) { animation-delay: -0.32s; } .ai-typing-dot:nth-child(2) { animation-delay: -0.16s; } @keyframes typingDot { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } } /* محصولات در چت */ .ai-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 15px; } .ai-product-card { background: white; border-radius: 16px; padding: 12px; text-align: center; border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.3s; } .ai-product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: #667eea; } .ai-product-image { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 10px; } .ai-product-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #1e293b; } .ai-product-price { font-size: 12px; color: #667eea; font-weight: bold; } /* سرویس‌ها در چت */ .ai-services-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; } .ai-service-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: white; border-radius: 12px; border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.2s; } .ai-service-item:hover { border-color: #667eea; background: #f8fafc; } .ai-service-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; } .ai-service-info { flex: 1; } .ai-service-title { font-weight: 600; font-size: 11px; margin-bottom: 3px; } .ai-service-desc { font-size: 10px; color: #64748b; } /* راهنمای صدا */ .voice-guide { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px 25px; border-radius: 20px; text-align: center; font-size: 14px; z-index: 10000; animation: slideInUp 0.3s ease; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3); display: none; } @keyframes slideInUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } } .voice-guide.show { display: block; } /* وضعیت صدا */ .voice-status { position: fixed; top: 70px; left: 0; right: 0; background: #3b82f6; color: white; padding: 10px; text-align: center; font-size: 13px; z-index: 10000; display: none; } .voice-status.show { display: block; animation: slideDown 0.3s ease; } @keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }