/* Starion AI - Custom Corporate Styles & Chatbot Demo */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy: #0a0e27;
  --navy-dark: #060919;
  --navy-light: #151b3b;
  --gold: #f59e0b;
  --gold-hover: #d97706;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--navy);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background pattern */
.bg-corporate-grid {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(10, 14, 39, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 14, 39, 0.025) 1px, transparent 1px);
}

/* Card hover lift */
.corporate-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}
.corporate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(10, 14, 39, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Accordion Transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}
.faq-item.active .faq-answer {
  max-height: 600px;
  opacity: 1;
}
.faq-item .faq-icon {
  transition: transform 0.25s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Sticky Header Scroll effect */
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -2px rgba(10, 14, 39, 0.04);
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#toast.show {
  transform: translateY(0);
}

/* Chatbot Demo Message Bubbles */
.chat-bubble-bot {
  background-color: #f1f5f9;
  color: #0a0e27;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px;
  max-width: 82%;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.chat-bubble-user {
  background-color: #0a0e27;
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 16px;
  max-width: 82%;
  font-size: 13.5px;
  line-height: 1.45;
  margin-left: auto;
}

.typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #94a3b8;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

/* ============================================================
   Media Card Component - Photo/Video Toggle System
   ============================================================ */

/* Smooth tab switch animation */
[data-media-view] {
  transition: opacity 0.2s ease;
}
[data-media-view].hidden {
  opacity: 0;
  pointer-events: none;
}
[data-media-view]:not(.hidden) {
  opacity: 1;
}

/* Media card hover glow */
[data-media-card]:hover {
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25),
              0 20px 40px -8px rgba(10, 14, 39, 0.15);
  transition: box-shadow 0.25s ease;
}

/* Fade-in on scroll utility */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Aspect ratio utility polyfill */
.aspect-video {
  aspect-ratio: 16 / 9;
}
.aspect-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Real Project green pulse badge */
.project-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #15803d;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 4px;
}
.project-live-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: livePulse 1.5s infinite ease-in-out;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
