/* css/style.css */
/* General cosmic styling */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  color: #fff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html,
body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

/* Hamburger icon */
.hamburger {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 9999 !important;
  color: #00ffff !important;
  background: rgba(20, 20, 40, 0.7) !important;
  border-radius: 0 0 18px 0 !important;
  padding: 1rem !important;
  font-size: 32px !important;
  display: block !important;
  box-shadow: 0 2px 12px #00ffff33;
}

/* Floating Sidebar Menu */
.cosmic-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

@media (max-width: 900px) {
  .cosmic-sidebar {
    top: 56px; /* aligns with hamburger height */
  }
}

.cosmic-sidebar.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header,
.sidebar-footer {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.5rem 0.5rem;
  margin: 0;
  align-items: flex-start;
  backdrop-filter: none;
  list-style: none;
  margin-top: 0.2rem;
}

.sidebar-nav li {
  margin: 2px 0;
  opacity: 0;
  transform: translateX(-12px) scale(0.99);
  animation: navItemFadeIn 0.7s cubic-bezier(0.4, 2, 0.6, 1) forwards;
}

.sidebar-nav a {
  color: #e0e6ff;
  font-size: 1.08rem;
  padding: 0.55em 1.2em;
  border-radius: 1.2rem;
  background: none;
  box-shadow: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: none;
  outline: none;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
  background: rgba(127, 127, 255, 0.16);
  color: #fff;
  transform: scale(1.06);
  box-shadow: none;
}

/* .main-content stays as is, no margin-left needed */
.main-content {
  flex: 1 0 auto;
  margin-left: 150px;
  margin-top: 50px;
  padding: 0 1rem;
  max-width: 1000px;
  transition: margin-left 0.3s cubic-bezier(0.77, 0, 0.18, 1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 24px 0 12px 0;
  justify-content: center;
  border-bottom: 1px solid #2e1a47;
}
.sidebar-logo {
  font-size: 2rem;
  margin-right: 10px;
}
.sidebar-title {
  font-family: "Orbitron", "Montserrat", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #fff;
}
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 32px 0 0 0;
}
.sidebar-nav li {
  margin: 8px 0;
  opacity: 0;
  transform: translateX(-24px) scale(0.98);
  animation: navItemFadeIn 0.7s cubic-bezier(0.4, 2, 0.6, 1) forwards;
}
.sidebar-nav li:nth-child(1) {
  animation-delay: 0.25s;
}
.sidebar-nav li:nth-child(2) {
  animation-delay: 0.35s;
}
.sidebar-nav li:nth-child(3) {
  animation-delay: 0.45s;
}
.sidebar-nav li:nth-child(4) {
  animation-delay: 0.55s;
}
.sidebar-nav li:nth-child(5) {
  animation-delay: 0.65s;
}
.sidebar-nav a {
  color: #e0e6ff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 8px 24px;
  border-radius: 20px 0 0 20px;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  position: relative;
}

.sidebar-nav li a {
  padding: 0.55em 1.2em;
  border-radius: 1.2rem;
}

.sidebar-nav li a .nav-icon {
  margin-right: 0.6em;
  font-size: 1.1em;
  transition: transform 0.4s cubic-bezier(0.4, 2, 0.6, 1), filter 0.4s;
}

.sidebar-nav li a:hover .nav-icon,
.sidebar-nav li a:focus .nav-icon {
  transform: scale(1.18) rotate(-8deg);
  filter: drop-shadow(0 0 10px #a18fff) brightness(1.3);
  animation: iconOrbit 0.7s cubic-bezier(0.4, 2, 0.6, 1);
}
@keyframes iconOrbit {
  0% {
    transform: scale(1) rotate(0deg) translateY(0);
  }
  40% {
    transform: scale(1.25) rotate(-18deg) translateY(-3px);
  }
  100% {
    transform: scale(1.18) rotate(-8deg) translateY(0);
  }
}

.sidebar-footer {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #b8b8ff;
  font-size: 0.95rem;
  opacity: 0.8;
  letter-spacing: 1px;
}

.footer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  margin-top: 0;
  padding: 1rem 0;
  /* background: linear-gradient(90deg, #191c2b 0%, #23244d 60%, #2e1a47 100%); */
  color: #b8b8ff;
  /* box-shadow: 0 -2px 24px #120c2e88; */
  /* border-top: 1px solid #28204a; */
  opacity: 1;
  font-family: "Orbitron", "Montserrat", "Poppins", sans-serif;
  letter-spacing: 1px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.parallax-bg {
  background-image: url("https://www.transparenttextures.com/patterns/stardust.png"); /* Optional texture */
  position: fixed;
  top: 0;
  left: 0;
  height: 200%;
  width: 100%;
  background-size: cover;
  z-index: -2;
  transform: translateZ(0);
  animation: parallaxScroll 60s linear infinite;
  opacity: 0.05;
}

@keyframes parallaxScroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 1000px;
  }
}

@keyframes sidebarFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-60px) scale(0.98);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0.5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes navItemFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-24px) scale(0.98);
    filter: blur(4px);
  }
  80% {
    filter: blur(0.5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

#sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 20, 40, 0.35);
  z-index: 1999;
  transition: opacity 0.3s;
}
.cosmic-sidebar.open ~ #sidebar-overlay {
  display: block;
  opacity: 1;
}

/* Hide sidebar on large screens if you want mobile-only floating menu */
/* @media (min-width: 900px) {
  .cosmic-sidebar {
    display: none ;
  }
} */
