/* ==========================================================================
   WINWAYS SYSTEMS — PREMIER ENTERPRISE DESIGN SYSTEM
   Red Hat Authorized Partner & IT Infrastructure Training Institute
   ========================================================================== */

:root {
  --color-rh-red: #DC2626;
  --color-rh-red-dark: #991B1B;
  --color-rh-red-light: #F87171;
  --color-navy-dark: #0F172A;
  --color-navy-card: #1E293B;
  --color-accent-blue: #2563EB;
  --color-accent-cyan: #06B6D4;
  --color-emerald: #10B981;
  --color-gold: #F59E0B;
  --color-surface: #F8FAFC;
}

/* Base Styles & Typography */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-surface);
  color: #334155;
  overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Glowing Elements */
.rh-glow {
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.35);
}

.rh-glow-sm {
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.25);
}

.rh-gradient-text {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-gradient-text {
  background: linear-gradient(135deg, #38BDF8 0%, #2563EB 50%, #9333EA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Keyframe Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes floatElement {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.float-element {
  animation: floatElement 3.5s ease-in-out infinite;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0F172A;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #DC2626;
}

/* Course Card Hover Effects */
.course-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  border-color: rgba(220, 38, 38, 0.4);
}

/* Active Category Tab */
.tab-btn.active {
  background-color: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

/* Digital Certificate Frame */
.certificate-frame {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 12px solid #0F172A;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.certificate-frame::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid #DC2626;
  pointer-events: none;
}

/* Chatbot Drawer & Widget */
#chat-widget-body {
  height: 400px;
  scroll-behavior: smooth;
}

#chat-widget-body::-webkit-scrollbar {
  width: 5px;
}

#chat-widget-body::-webkit-scrollbar-track {
  background: transparent;
}

#chat-widget-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 10px;
}

.chat-bubble-user {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.chat-bubble-ai {
  background-color: #FFFFFF;
  color: #0F172A;
  border-radius: 18px 18px 18px 4px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.chat-prompt-pill {
  transition: all 0.2s ease-in-out;
}

.chat-prompt-pill:hover {
  transform: translateY(-2px);
  background-color: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Typing Indicator Dots */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: #F1F5F9;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #94A3B8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; background-color: #DC2626; }
}

/* AI Inline Course Card */
.ai-course-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 16px;
  padding: 12px;
  color: #FFFFFF;
  margin-top: 8px;
}

/* Launcher Notification Badge Animation */
@keyframes badgePing {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.badge-pulse {
  animation: badgePing 2s infinite ease-in-out;
}

/* Modal Overlay backdrop */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

/* Nav Dropdown Styles */
.nav-dropdown-group {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}

.nav-dropdown-group:hover .nav-dropdown-menu,
.nav-dropdown-group:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: #FEF2F2;
  color: #DC2626;
}

.nav-dropdown-item i {
  color: #94A3B8;
  transition: color 0.15s ease;
}

.nav-dropdown-item:hover i {
  color: #DC2626;
}

/* Floating WhatsApp Widget */
.whatsapp-glow {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

@keyframes waPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
}

.wa-pulse-btn {
  animation: waPulse 3s infinite ease-in-out;
}

/* Accordion Smooth Expand */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-content.open {
  max-height: 1000px;
  transition: max-height 0.35s ease-in-out;
}




/* Custom Background Image Utilities */
.hero-bg-img {
  background-image: url('../images/hero_tech_center.png');
}

.lab-bg-img {
  background-image: url('../images/redhat_training_lab.png');
}
