/* ==============================================================================
   SamuDev Platform - Cyber Design System & Aesthetics
   ============================================================================== */

:root {
  --background: #030712;
  --foreground: #f1f5f9;
  --cyber-blue: #0070f3;
  --cyber-cyan: #38bdf8;
  --card-bg: rgba(13, 21, 39, 0.7);
  --card-border: rgba(30, 43, 72, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: normal;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  min-height: 100vh;
}

/* Global Responsive Media Safeguards: Prevents any image/media from expanding mobile viewport */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

code, pre, .font-mono, [class*="font-mono"] {
  font-family: inherit !important;
  letter-spacing: normal;
}

/* Custom Cyber Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #030712;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 2px solid #030712;
}

::-webkit-scrollbar-thumb:hover {
  background: #0070f3;
}

/* Apple Frosted Glass Navigation Pill */
.apple-glass {
  background: rgba(10, 15, 29, 0.65);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 112, 243, 0.08);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(13, 21, 39, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: rgba(13, 21, 39, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 112, 243, 0.25);
  box-shadow: 0 8px 32px 0 rgba(0, 112, 243, 0.08);
}

.glass-card {
  background: linear-gradient(135deg, rgba(13, 21, 39, 0.7) 0%, rgba(8, 14, 26, 0.8) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(0, 112, 243, 0.45);
  box-shadow: 0 16px 36px -10px rgba(0, 112, 243, 0.2);
}

/* Cyber Gradients & Glows - Dark rich tones without pure white */
.text-gradient-cyber {
  background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 55%, #0a1738 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 0.18em;
  margin-right: -0.18em;
  padding-bottom: 0.05em;
}

/* White / Silver Overhead Lighting Gradient (matches lighting angle & falloff of cyber gradient) */
.text-gradient-silver {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 55%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 0.06em;
  margin-right: -0.06em;
  padding-bottom: 0.05em;
}


/* Dynamic Header Morph & Docking System */
.header-wrapper {
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.header-docked {
  top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.header-docked #main-header-bar {
  border-radius: 0 0 1.5rem 1.5rem;
  border-top-width: 0;
  max-width: 74rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 640px) {
  .header-docked #main-header-bar {
    border-radius: 0;
    border-left-width: 0;
    border-right-width: 0;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    width: 100%;
    max-width: 100vw;
  }

  .header-floating {
    top: 0.5rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .header-floating #main-header-bar {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    width: 100%;
    max-width: 100%;
  }
}

.header-floating {
  top: 1.25rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.header-floating #main-header-bar {
  border-radius: 9999px;
  max-width: 58rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  background: rgba(8, 14, 26, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.85), 0 0 20px -5px rgba(0, 112, 243, 0.2);
}

#main-header-bar {
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.glow-blue {
  box-shadow: 0 0 25px rgba(0, 112, 243, 0.45);
}

/* Cyber Grid Background Pattern */
.bg-grid-cyber {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(0, 112, 243, 0.18) 0%, rgba(56, 189, 248, 0.06) 35%, transparent 70%);
}

/* Subtle animation */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Modals */
.modal-backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

/* Custom Top Announcement & Notification System */
@keyframes slideDownAnnounce {
  0% {
    opacity: 0;
    transform: translateY(-26px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideUpAnnounce {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-24px) scale(0.95);
  }
}

.announce-enter {
  animation: slideDownAnnounce 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.announce-exit {
  animation: slideUpAnnounce 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.site-announcement-card {
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
}

/* ==============================================================================
   Dark Rich Cyber Primary Buttons (Darker gradient replacing neon bright cyan)
   ============================================================================== */
.btn-cyber-primary {
  background: linear-gradient(135deg, #0051cc 0%, #003ba3 55%, #002870 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(50, 145, 255, 0.35) !important;
  box-shadow: 0 4px 14px -2px rgba(0, 81, 204, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-cyber-primary:hover {
  background: linear-gradient(135deg, #0060e6 0%, #0047ab 55%, #003080 100%) !important;
  border-color: rgba(112, 180, 255, 0.6) !important;
  box-shadow: 0 6px 20px -2px rgba(0, 112, 243, 0.55) !important;
  transform: translateY(-1px);
}

.btn-cyber-primary:active {
  transform: translateY(0);
}


