/* CSS Variables */
:root {
  --white: #ffffff;
  --black: #000000;
  --black2: #262626;
  --orange: #ff8b26;
  --bg-dark: #00161e;
  --dark-primary: #1b343a;
  --primary: #291c66;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body & HTML */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  color: var(--white);
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Canvas for stars - Fixed background */
#spaceCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Navbar - Fixed at top with blurred background */
nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3) !important;

  -webkit-backdrop-filter: blur(30px);
  border-bottom: 2px solid rgb(107, 72, 41);

  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.6rem !important;
  color: var(--white) !important;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.navbar-brand::before {
  content: "✨";
  font-size: 1.4rem;
}

.navbar-brand:hover {
  color: var(--orange) !important;
  transform: translateY(-2px);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 400;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--orange) !important;
  background: rgba(255, 139, 38, 0.15);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 1rem;
}

/* Navbar toggler */
.navbar-toggler {
  border-color: rgba(255, 139, 38, 0.5);
}



.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 139, 38, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content */
.main-content {
  flex: 1;
  position: relative;
  z-index: 10;
  margin-top: 90px;
  margin-bottom: 2rem;
  padding: 0 1rem;
  min-height: calc(100vh - 180px);
}

/* Content Card - Beautiful glassmorphism card with blurred background */
.content-card {
  background: rgba(0, 0, 0, 0.8);

  /* border-radius: 24px; */
  /* padding: 2.5rem; */
  /* border: 2px solid rgb(107, 72, 41); */

  /* max-width: 1200px;
  margin: 0 auto;
  position: relative; */
  animation: fadeInUp 0.6s ease;
}

/* Footer - Sticky at bottom with blurred background */
.footer {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);

  -webkit-backdrop-filter: blur(50px);
  border-top: 2px solid rgb(107, 72, 41);

  padding: 1.5rem 0;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.footer small {
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(255, 139, 38, 0.6),
    rgba(255, 215, 0, 0.6)
  );
  border-radius: 5px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 139, 38, 0.9),
    rgba(255, 215, 0, 0.9)
  );
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 139, 38, 0.6) rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Navbar scroll effect */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.5) !important;
  box-shadow: 0 4px 30px rgba(255, 139, 38, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1.4rem !important;
  }

  .nav-link {
    padding: 0.4rem 0.8rem !important;
  }

  .content-card {
    padding: 2rem;
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.3rem !important;
  }

  .main-content {
    margin-top: 80px;
    padding: 0 0.75rem;
  }

  .content-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .footer {
    padding: 1rem 0;
  }

  .footer small {
    font-size: 0.9rem;
  }

  /* Mobile navbar menu */
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 139, 38, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .nav-link {
    margin: 0.2rem 0;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.2rem !important;
  }

  .navbar-brand::before {
    font-size: 1.2rem;
  }

  .main-content {
    padding: 0 0.5rem;
  }

  .content-card {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .footer small {
    font-size: 0.85rem;
  }
}

/* Page transition */
.main-content {
  animation: fadeIn 0.4s ease;
}

/* Loading state for content card */
.content-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.content-card.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 139, 38, 0.3);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 100;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
