:root {
  --bg-dark: #03050a;
  --accent: #00c3ff;
  --accent-hover: #00a8cc;
  --secondary: #002aff;
  --text-main: #ffffff;
  --text-sub: #94a3b8;
  --card-bg: rgba(15, 23, 42, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.03);
  --glow: 0 0 25px rgba(0, 195, 255, 0.25);
  --font-main: "Inter", sans-serif;
  --font-accent: "Outfit", sans-serif;
  --radius-lg: 24px;
  --radius-md: 14px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image:
    radial-gradient(
      circle at 0% 0%,
      rgba(0, 195, 255, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(0, 42, 255, 0.05) 0%,
      transparent 40%
    );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Typography System */
.hero-title {
  font-size: clamp(32px, 8vw, 64px);
  font-weight: 800;
  font-family: var(--font-accent);
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  text-shadow: 0 0 30px rgba(0, 195, 255, 0.3);
}

.hero-desc {
  display: block;
  font-size: 18px;
  color: var(--text-sub);
  max-width: 800px;
  margin-bottom: 40px;
}

.section-hero .hero-title,
.section-hero .hero-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Glassmorphic Components */
.card-premium {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  height: 100%;
}

.card-premium:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button System */
.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 15px 30px rgba(0, 195, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-sub);
}

.btn-auth {
  background: rgba(255, 255, 255, 0.03);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-auth:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1000px;
  padding: 12px 24px;
  background: rgba(11, 13, 22, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-accent);
  color: white;
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.btn-nav {
  background: var(--accent);
  color: #000;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
}

/* Forms */
input,
textarea,
select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 195, 255, 0.1);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section-hero {
  padding: 80px 0;
  text-align: center;
}

.footer {
  background: #05060b;
  padding: 80px 40px 40px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-link {
  color: var(--text-sub);
  margin-bottom: 12px;
  display: block;
  font-size: 15px;
}

.footer-link:hover {
  color: var(--accent);
}

/* Mobile Responsive Enhancements */
@media (max-width: 900px) {
  body {
    padding-top: 80px;
  }

  .navbar {
    width: 95%;
    border-radius: 20px;
    top: 10px;
    padding: 10px 15px;
  }

  .nav-links {
    display: none;
    /* Hidden by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 13, 22, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-top: 10px;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
    text-align: center;
  }

  .nav-link {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Move Auth/Dev buttons into the mobile menu or simplify bar */
  .navbar > div:last-child {
    gap: 10px;
  }

  /* Hide text-heavy auth elements on mobile bar to prevent overlap */
  #auth-user-display,
  #btn-nav-dev {
    display: none !important;
  }

  /* We can reinject these into the mobile menu via JS if needed, 
       but for now, preventing overlap is priority. 
       Users can login/logout via the main buttons which remain. */

  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
    margin-left: 10px;
  }

  .menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-grid div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-grid p {
    margin: 0 auto;
  }

  .section-hero {
    padding: 40px 0;
  }
}

.menu-toggle {
  display: none;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 900px) {
  .mobile-only {
    display: block !important;
  }
}

/* Sidebar Scroll Fix */
.right-sidebar {
  overflow-y: auto;
  max-height: 100vh;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
