/* ===============================
   Global Reset & Base
================================ */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(99, 102, 241, 0.25),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(236, 72, 153, 0.2),
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(34, 197, 94, 0.15),
      transparent 40%
    ),
    #05070f;
  color: #e5e7eb;
  overflow-x: hidden;
}


body {
  padding-top: 60px; 
}

/* ===============================
   Typography
================================ */
h1,
h2,
h3,
h4,
h5 {
  color: #f9fafb;
}

p {
  color: #9ca3af;
}

.lead {
  max-width: 760px;
  margin-inline: auto;
}

/* ===============================
   Hero Section
================================ */
.hero {
  position: relative;
  padding: 6rem 1rem;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 15, 0.2),
    rgba(5, 7, 15, 0.85)
  );
  z-index: -1; /* FIX: behind content */
  pointer-events: none; /* FIX: allow clicks */
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Gradient heading text */
.gradient-text {
  background: linear-gradient(
    90deg,
    #6366f1,
    #22d3ee,
    #a855f7
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===============================
   Buttons
================================ */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #f9fafb;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===============================
   Sections
================================ */
.section {
  padding: 6rem 1rem;
}

/* ===============================
   Glass Cards
================================ */

.glass-card,
.glass-card p,
.glass-card span {
  color: #e5e7eb; /* readable light text */
}

.glass-card .text-muted {
  color: #cbd5f5 !important; /* soft but visible */
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}


.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

/* Glass card text */
.glass-text {
  color: #e5e7eb; /* bright readable text */
  opacity: 0.95;
}

.glass-card .lead {
  font-size: 1.25rem;
}

/* ===============================
   Header / Footer
================================ */
#header,
#footer {
  position: relative;
  z-index: 999;
}

/* ===============================
   Glass Navbar (CRITICAL FIX)
================================ */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050; /* FIX: above hero & overlays */
  background: rgba(5, 7, 15, 0.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  letter-spacing: 0.5px;
}

.nav-link {
  color: #e5e7eb !important;
  opacity: 0.85;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  opacity: 1;
}

/* ===============================
   Dropdown (FIXED)
================================ */
.dropdown-menu {
  z-index: 1100; /* FIX: clickable */
}

.glass-dropdown {
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 14px;
}

.dropdown-item {
  color: #e5e7eb;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
}

/* ===============================
   Animations
================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.hero .btn {
  animation: fadeUp 0.8s ease forwards;
}

/* ===============================
   Responsive
================================ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 1rem;
  }
}



/* ===============================
   About Page Full Height + Glass Card
================================ */
.about .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.about .glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  color: #e5e7eb;
}

.glass-text {
  color: #e5e7eb;
  opacity: 0.95;
}

/* ===============================
   Sticky Footer Fix
================================ */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
  padding-top: 72px; /* navbar height if fixed */
}


#doc-x-upload .glass-card {
  margin-top: 2rem;
  text-align: left;
}

#doc-x-upload .form-label {
  color: #e5e7eb;
}

#doc-x-upload textarea,
#doc-x-upload input[type="file"] {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#doc-x-upload button.btn-primary {
  width: 100%;
}

#doc-x-upload pre {
  color: #f9fafb;
  white-space: pre-wrap;
}
