/* ==========================================================================
   INTERNWELL SLIET - Modern UI Components & Micro-Interactions
   ========================================================================== */

/* Clean Floating Card Animation */
.floating-tech-badge {
  position: absolute;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  z-index: 10;
  animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* 3D Card Physics */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Radar Pulse for Hub */
.radar-sweep-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.4);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radar-sweep-box::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--blue-light);
}

/* Blinking Cursor in Terminal */
.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--blue-light);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Modern Toast Notification */
.cyber-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1100;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.cyber-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.2rem;
  color: var(--emerald-accent);
}

.toast-message {
  font-size: 0.9rem;
  color: #ffffff;
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1002;
}

/* Subtle live pulse indicator */
.live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-accent);
  box-shadow: 0 0 6px var(--emerald-accent);
}

/* ==========================================================================
   MOVING BACKGROUND STARS CANVAS (ALL PAGES)
   ========================================================================== */
#bg-stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* ==========================================================================
   OFFICIAL SLIET DRONE VIDEO FULL-SCREEN INTRO (5 SECONDS)
   ========================================================================== */
#cinematic-intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #020617;
  z-index: 99999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: center center;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

#cinematic-intro-overlay.portal-minimize {
  animation: videoPortalExit 0.95s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes videoPortalExit {
  0% {
    transform: scale(1.0);
    filter: brightness(1.0) blur(0px);
    opacity: 1;
    border-radius: 0px;
  }
  35% {
    transform: scale(0.92) translateY(10px);
    filter: brightness(1.4) contrast(1.15) blur(3px);
    opacity: 0.95;
    border-radius: 28px;
  }
  70% {
    transform: scale(0.35) translateY(-30px);
    filter: brightness(2.2) blur(10px);
    opacity: 0.7;
    border-radius: 60px;
    box-shadow: 0 0 80px rgba(56, 189, 248, 0.9), 0 0 120px rgba(37, 99, 235, 0.8);
  }
  100% {
    transform: scale(0.05) translateY(-60px);
    filter: brightness(3.5) blur(20px);
    opacity: 0;
    border-radius: 100px;
  }
}

/* ==========================================================================
   PORTAL FLASH FLARE & SHOCKWAVE FX
   ========================================================================== */
.portal-transition-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
}

.portal-flash-flare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.7) 0%, rgba(37, 99, 235, 0.35) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

body.intro-revealing .portal-flash-flare {
  animation: shockwaveFlash 0.9s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes shockwaveFlash {
  0% { opacity: 0; transform: scale(0.4); }
  20% { opacity: 0.95; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.8); }
}

/* ==========================================================================
   MAIN SITE REVEAL - EPIC MAXIMIZE & PERSPECTIVE ZOOM
   ========================================================================== */
.main-site-wrapper {
  width: 100%;
  transform-origin: center 25vh;
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

body.intro-active .main-site-wrapper {
  opacity: 0;
  transform: scale(0.82) translateY(45px);
  filter: blur(14px);
  pointer-events: none;
}

body.intro-revealing .main-site-wrapper {
  animation: siteEpicZoomEntrance 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes siteEpicZoomEntrance {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(45px);
    filter: blur(14px) brightness(1.6);
  }
  45% {
    opacity: 0.9;
    filter: blur(4px) brightness(1.2);
  }
  75% {
    transform: scale(1.025) translateY(-5px);
    filter: blur(1px) brightness(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1.0) translateY(0);
    filter: blur(0px) brightness(1.0);
  }
}

/* 3D Emblem Hero Cosmic Bloom Animation */
body.intro-revealing #hero-logo-stage {
  animation: emblemCosmicBloom 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes emblemCosmicBloom {
  0% {
    opacity: 0;
    transform: scale(0.25) translateY(40px);
    filter: drop-shadow(0 0 50px #38bdf8);
  }
  65% {
    opacity: 1;
    transform: scale(1.1) translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: scale(1.0) translateY(0);
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4));
  }
}

/* Staggered entrance of Navbar & Hero elements */
body.intro-revealing .navbar {
  animation: navbarDropIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
body.intro-revealing .hero-badge {
  animation: heroRevealSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
body.intro-revealing .hero-title {
  animation: heroRevealSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
body.intro-revealing .hero-subtitle {
  animation: heroRevealSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
body.intro-revealing .hero-cta-group {
  animation: heroRevealSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

@keyframes navbarDropIn {
  0% {
    opacity: 0;
    transform: translateY(-25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRevealSlideUp {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1.0);
    filter: blur(0px);
  }
}

.intro-fullscreen-video {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.92) contrast(1.05);
}

.intro-vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 40%, rgba(2, 6, 23, 0.65) 100%),
              linear-gradient(180deg, rgba(2, 6, 23, 0.75) 0%, transparent 22%, transparent 78%, rgba(2, 6, 23, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

.intro-hud-top {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--blue-light);
  background: rgba(4, 9, 20, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.intro-countdown-badge {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.intro-hud-bottom {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(4, 9, 20, 0.65);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-telemetry-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-divider {
  opacity: 0.35;
}

.skip-intro-btn {
  position: fixed;
  top: 76px;
  right: 32px;
  z-index: 10000;
  padding: 9px 22px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(37, 99, 235, 0.3);
}

.skip-intro-btn:hover {
  background: var(--blue-primary);
  border-color: #38bdf8;
  box-shadow: 0 4px 25px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .intro-hud-top, .intro-hud-bottom {
    padding: 12px 16px;
    font-size: 0.7rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .skip-intro-btn {
    top: auto;
    bottom: 84px;
    right: 16px;
    padding: 7px 16px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   REGISTRATION FORM & ALERTS
   ========================================================================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.required-star {
  color: #f43f5e;
  margin-left: 2px;
}

.form-status-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: alertFadeIn 0.3s ease;
}

@keyframes alertFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-status-alert.error {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fda4af;
}

.form-status-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.footer-admin-link {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.footer-admin-link:hover {
  color: var(--blue-light);
}

/* ==========================================================================
   STUDENT PROFILE DOSSIER & INDUCTIONS DASHBOARD
   ========================================================================== */
.student-profile-card {
  max-width: 660px;
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.1);
  padding: 28px 28px 48px;
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) rgba(15, 23, 42, 0.5);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  text-transform: capitalize;
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-pill.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-pill.completed {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.status-pill.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.profile-completed-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-header-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  text-transform: uppercase;
}

.profile-verified-check {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border: 2px solid #0b1120;
}

.profile-title-block {
  flex: 1;
}

.profile-student-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.badge-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.profile-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

@media (max-width: 580px) {
  .profile-telemetry-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.telemetry-box {
  display: flex;
  flex-direction: column;
}

.telemetry-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.telemetry-val {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
}

.profile-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-details-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

@media (max-width: 580px) {
  .profile-details-table {
    grid-template-columns: 1fr;
  }
}

.profile-detail-row {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.4);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.profile-detail-row .p-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.profile-detail-row .p-value {
  font-size: 0.88rem;
  color: #f1f5f9;
  word-break: break-all;
}

.profile-detail-row .p-value a {
  color: var(--blue-light);
  text-decoration: underline;
}

.profile-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #bae6fd;
}

/* Roadmap Track */
.roadmap-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 12px;
}

.roadmap-track::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.roadmap-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.roadmap-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.roadmap-step.step-done .roadmap-dot {
  background: #059669;
  border-color: #10b981;
  color: #fff;
}

.roadmap-step.step-active .roadmap-dot {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.roadmap-content {
  display: flex;
  flex-direction: column;
}

.roadmap-content strong {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
}

.roadmap-content span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.profile-community-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.community-text strong {
  font-size: 0.9rem;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.community-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 380px;
}

.community-actions {
  display: flex;
  gap: 8px;
}

.profile-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Print Slip Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #student-profile-modal,
  #student-profile-modal * {
    visibility: visible;
  }
  #student-profile-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff !important;
    display: block !important;
  }
  .student-profile-card {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 20px !important;
  }
  .student-profile-card * {
    color: #000 !important;
  }
  .modal-close-btn,
  .profile-footer-actions,
  .community-actions {
    display: none !important;
  }
}

/* ==========================================================================
   MODAL TAB SWITCHER (REGISTER VS LOGIN)
   ========================================================================== */
.modal-tab-switcher {
  display: flex;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}

.modal-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.modal-tab-btn:hover {
  color: #fff;
}

.modal-tab-btn.active {
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
