/* initial site visit */
/* page refresh */
/* any direct navigation to internal pages */
/* === Modern Cube Loader === */
/* === Dynamic Page Loader === */
#pageLoader {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, var(--bg, #0f172a), #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease;
  overflow: hidden;
}

/* Floating cube wrapper */
.loader-cube {
  width: 60px;
  height: 60px;
  transform-style: preserve-3d;
  animation: rotateCube 2s infinite linear;
}

/* Cube faces using dynamic gradient and shadow */
.loader-cube div {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    145deg,
    var(--primary, #2563eb),
    var(--secondary, #38bdf8),
    var(--tertiary, #93c5fd)
  );
  opacity: 0.9;
  border-radius: 6px;
  box-shadow: 0 0 25px var(--accent, rgba(37, 99, 235, 0.4));
}

/* Cube faces positioning */
.loader-cube div:nth-child(1) { transform: rotateY(0deg) translateZ(30px); }
.loader-cube div:nth-child(2) { transform: rotateY(90deg) translateZ(30px); }
.loader-cube div:nth-child(3) { transform: rotateY(180deg) translateZ(30px); }
.loader-cube div:nth-child(4) { transform: rotateY(-90deg) translateZ(30px); }
.loader-cube div:nth-child(5) { transform: rotateX(90deg) translateZ(30px); }
.loader-cube div:nth-child(6) { transform: rotateX(-90deg) translateZ(30px); }

@keyframes rotateCube {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Floating glow pulse using dynamic accent color */
.loader-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--accent, rgba(37, 99, 235, 0.4)), transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Loading text using dynamic tertiary color */
.loading-text {
  margin-top: 2rem;
  font-size: 1rem;
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  color: var(--tertiary, #cbd5e1);
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: textFade 2s ease-in-out infinite;
  text-shadow: 0 0 10px var(--accent, rgba(37, 99, 235, 0.4));
}

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

/* Fade-out state */
#pageLoader.fade-out {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .loader-cube {
    width: 40px;
    height: 40px;
  }

  .loader-cube div {
    width: 40px;
    height: 40px;
  }

  .loader-glow {
    width: 70px;
    height: 70px;
  }

  .loading-text {
    font-size: 0.7rem;
  }
}
/* initial site visit */
/* page refresh */
/* any direct navigation to internal pages */

.main-container {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}   

.main-container.display {
  opacity: 1;
  transform: translateY(0);
}












/* === HEADER (Neon Glow Theme) === */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: radial-gradient(circle at top left, #020617, #0b0f1a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === LOGO === */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  width: 38px;
  height: 38px;
}

.logo span {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(90deg, #06b6d4, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  background-clip: text;
  color: transparent;
}

/* === HAMBURGER MENU === */
.hamburger {
  background: none;
  border: none;
  font-size: 2rem;
  color: #22d3ee;
  cursor: none;
  z-index: 1200;
  transition: transform 0.3s ease, color 0.3s ease;
}

.hamburger:hover {
  color: #9333ea;
  transform: scale(1.1);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 70px;
  right: 0;
  width: 100%;
  height: calc(100vh - 70px);
  transform: translateX(100%); /* ✅ Off-screen safely */
  transition: transform 0.4s ease-in-out;
  background: rgba(2, 6, 23, 0.98);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1000;
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.1);
  pointer-events: none;
  overflow-y: auto;
}

/* When active (menu shown) */
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Global safety */
html, body {
  overflow-x: hidden;
}

/* === MOBILE NAV LINKS === */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.mobile-menu ul li {
  margin: 1rem 0;
}

.mobile-menu ul li a {
  background: linear-gradient(90deg, #06b6d4, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  background-clip: text;
  color: transparent;
}

.mobile-menu ul li a:hover {
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.7);
}

/* === AUTH BUTTONS (MOBILE) === */
.auth-buttons-mobile {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.auth-buttons-mobile button {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

/* Signup = outline gradient */
.auth-buttons-mobile .signup {
  background: transparent;
  border: 2px solid transparent;
  border-image: linear-gradient(90deg, #06b6d4, #9333ea) 1;
  color: #22d3ee;
}

.auth-buttons-mobile .signup:hover {
  background: linear-gradient(90deg, #06b6d4, #9333ea);
  color: #fff;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

/* Login = filled gradient */
.auth-buttons-mobile .login {
  background: linear-gradient(90deg, #06b6d4, #9333ea);
  color: #fff;
  border: none;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.4);
}

.auth-buttons-mobile .login:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
  transform: translateY(-2px);
}

/* Hide desktop-only elements */
.desktop-only {
  display: none;
}

/* ========== Desktop Styles ========== */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .desktop-only {
    display: flex;
    align-items: center;
  }

  .nav-links ul {
    display: flex;
    list-style: none;
    gap: 1rem;
  }

  .nav-links a {
    background: linear-gradient(90deg, #06b6d4, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-weight: bold;
    background-clip: text;
  color: transparent;
  }

  .auth-buttons {
    gap: 1rem;
    margin-left: 1.5rem;
  }

  .auth-buttons .signup {
    background: linear-gradient(90deg, #06b6d4, #9333ea);
    color: #fff;
    border: none;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.4);
  }
  
  
  .auth-buttons .login {
    background: transparent;
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #06b6d4, #9333ea) 1;
    color: #22d3ee;
  }

  .auth-buttons button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
  }

  /* Mobile menu stays hidden */
  .mobile-menu {
    display: none;
  }
}