/* ==========================================================================
   SKILLSFY - INSTITUTE OF TECHNOLOGY
   Global Design System & Component Stylesheet
   Based on DESIGN.md (Navy #031636, Electric Blue #00ccf9, Surface #faf8ff)
   ========================================================================== */

:root {
  --color-primary: #031636;
  --color-primary-container: #1a2b4c;
  --color-primary-fixed: #d8e2ff;
  --color-secondary: #00677f;
  --color-secondary-container: #00ccf9;
  --color-secondary-fixed-dim: #4cd6ff;
  --color-surface: #faf8ff;
  --color-surface-dim: #d4d9ed;
  --color-surface-container: #e9edff;
  --color-surface-container-high: #e2e8fc;
  --color-surface-container-highest: #dde2f6;
  --color-surface-container-low: #f1f3ff;
  --color-surface-container-lowest: #ffffff;
  --color-on-surface: #151b29;
  --color-on-surface-variant: #44474e;
  --color-outline: #75777f;
  --color-outline-variant: #c5c6cf;
  --color-error: #ba1a1a;
  --color-success: #0d9488;
  
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-label: 'Geist', -apple-system, BlinkMacSystemFont, monospace, sans-serif;

  --shadow-level-1: 0px 4px 20px rgba(26, 43, 76, 0.06);
  --shadow-level-2: 0px 10px 30px rgba(26, 43, 76, 0.12);
  --shadow-level-3: 0px 20px 40px rgba(3, 22, 54, 0.18);
  --shadow-glow-cyan: 0 0 25px rgba(0, 204, 249, 0.35);
}

/* Material symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Brand Logo styles */
.brand-logo-img {
  height: 34px;
  max-width: 140px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

.brand-logo-white {
  height: 32px;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-badge-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Frozen Sticky Header & Floating Island Navigation */
.sticky-header-frozen {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8fc;
  box-shadow: 0 4px 15px rgba(3, 22, 54, 0.06);
  transition: all 0.2s ease-in-out;
}

.floating-island-nav {
  position: sticky;
  top: 0.75rem;
  z-index: 999;
  width: 100%;
  padding: 0 0.75rem;
}
@media (min-width: 640px) {
  .floating-island-nav {
    padding: 0 1.5rem;
    top: 1rem;
  }
}
.floating-island-card {
  max-width: 72rem;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease-in-out;
}
@media (min-width: 640px) {
  .floating-island-card {
    border-radius: 1.25rem;
    padding: 0.75rem 1.75rem;
  }
}
.floating-island-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.09);
  border-color: rgba(203, 213, 225, 0.95);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f3ff;
}
::-webkit-scrollbar-thumb {
  background: #b6c6f0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8293ba;
}

/* Smooth Focus Rings */
*:focus-visible {
  outline: 2px solid #00ccf9;
  outline-offset: 2px;
}

/* Interactive Card Elevations */
.card-elevated {
  background-color: #ffffff;
  border: 1px solid #e2e8fc;
  box-shadow: var(--shadow-level-1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-elevated:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-level-2);
  border-color: #c5c6cf;
}

/* Buttons */
.btn-primary {
  background-color: #031636;
  color: #ffffff;
  transition: all 0.2s ease-in-out;
}
.btn-primary:hover {
  background-color: #1a2b4c;
  box-shadow: 0 4px 14px rgba(3, 22, 54, 0.25);
  transform: translateY(-1px);
}

.btn-cyan {
  background-color: #00ccf9;
  color: #003644;
  font-weight: 700;
  transition: all 0.2s ease-in-out;
}
.btn-cyan:hover {
  background-color: #4cd6ff;
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-1px);
}

/* Glassmorphism Header */
.glass-nav {
  background: rgba(250, 248, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 252, 0.85);
}

/* Modal Animations */
.modal-backdrop {
  background-color: rgba(3, 22, 54, 0.65);
  backdrop-filter: blur(4px);
}

@keyframes modalPop {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-content-pop {
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: #031636;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s ease forwards;
  border-left: 4px solid #00ccf9;
}
.toast-item.success { border-left-color: #10b981; }
.toast-item.error { border-left-color: #ef4444; }
.toast-item.warning { border-left-color: #f59e0b; }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Video Player */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07101e;
  border-radius: 16px;
  overflow: hidden;
}

/* Badge styles */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Floating AI Chat Assistant Widget */
#skillsfy-ai-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
}

.ai-chat-bubble {
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 204, 249, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(0, 204, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 204, 249, 0); }
}

/* Interactive Slider */
input[type=range] {
  accent-color: #00677f;
}

/* Mobile Responsiveness & Touch Optimization */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
  }
  
  .brand-logo-img {
    height: 26px;
  }
  
  #ai-chat-window {
    width: calc(100vw - 24px) !important;
    right: 0 !important;
    bottom: 70px !important;
    height: 440px !important;
    border-radius: 20px !important;
  }

  .modal-content-pop {
    max-height: 92vh;
    overflow-y: auto;
  }
}

