/* ===================================
   ROADMAP99 - DARK PROFESSIONAL THEME
   Navy Background with Professional Elements
   Based on Eduma Theme Reference
   =================================== */

/* === ROOT VARIABLES === */
:root {
  /* Color Palette - Dark Navy Theme */
  --bg-body: #0A1628;
  --bg-surface: #0F1D35;
  --bg-elevated: #1A2942;

  --text-primary: #FFFFFF;
  --text-secondary: #B4C0D3;
  --text-muted: #7C8BA1;

  --primary: #FF8B38;
  --primary-dark: #E67A2E;
  --primary-light: #FFA55F;

  --accent-yellow: #FFC107;
  --accent-blue: #4A90E2;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.15);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 139, 56, 0.3);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
}

/* === BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-light);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* === CARDS === */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 139, 56, 0.5);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-white {
  background: white;
  color: var(--bg-body);
  border: 1px solid white;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--bg-body);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* === NAVBAR === */
.navbar {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  align-items: center;
}

/* Adjust main content padding since navbar is fixed */
main {
  padding-top: 100px;
}

@media (max-width: 768px) {
  .navbar {
    top: 10px;
    width: 95%;
    min-width: auto;
    padding: 0.75rem 1rem;
    border-radius: 16px;
  }

  .navbar-nav {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .navbar-brand span {
    display: none;
    /* Hide brand text on really small screens if needed, or adjust */
  }
}

.nav-link {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

/* === FOOTER === */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

/* === UTILITIES === */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-white {
  color: white;
}

.bg-surface {
  background-color: var(--bg-surface);
}

.border {
  border: 1px solid var(--border-light);
}

.border-top {
  border-top: 1px solid var(--border-light);
}

.border-bottom {
  border-bottom: 1px solid var(--border-light);
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.p-2 {
  padding: var(--spacing-md);
}

.p-3 {
  padding: var(--spacing-lg);
}

.p-4 {
  padding: var(--spacing-xl);
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: var(--spacing-md);
}

.gap-3 {
  gap: var(--spacing-lg);
}

.text-center {
  text-align: center;
}

.fw-bold {
  font-weight: var(--font-weight-bold);
}

.fw-extrabold {
  font-weight: var(--font-weight-extrabold);
}

/* === GRID === */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--spacing-md) * -1);
}

.col {
  flex: 1;
  padding: 0 var(--spacing-md);
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 var(--spacing-md);
}

.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 var(--spacing-md);
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 var(--spacing-md);
}

/* === ANIMATIONS === */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 139, 56, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 139, 56, 0.6);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .col-6,
  .col-4,
  .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* === SITE-WIDE UNIFICATION === */

/* Utility: Grid Pattern Background */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}

/* Animation: Floating */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

.floating-element-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

/* Text Styles */
.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #B4C0D3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-stroke {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  color: transparent;
}

.parallax-text-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.03);
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--font-sans);
}

/* Card Components */
.roadmap-card {
  position: relative;
  background: var(--bg-body);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.roadmap-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  border-color: var(--border-medium);
}

.roadmap-card-image {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--border-light);
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(255, 139, 56, 0.1) 100%);
}

.roadmap-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.roadmap-card:hover .roadmap-card-image img {
  transform: scale(1.05);
}

.roadmap-card-content {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.roadmap-card-title {
  color: white;
  font-size: 1.125rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.roadmap-card-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Badge System */
.badge-ui {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-popular {
  background: #4A90E2;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.badge-hot {
  background: linear-gradient(135deg, #FF1744, #F50057);
  box-shadow: 0 4px 12px rgba(255, 23, 68, 0.4);
}

.badge-new {
  background: linear-gradient(135deg, #00C853, #00E676);
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
}

.badge-warning {
  background: linear-gradient(135deg, #FF9800, #FFB74D);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Tabs System */
.site-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 0;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
  color: white;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-count {
  background: var(--primary);
  color: var(--bg-body);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  font-weight: 700;
}

/* Floating Stats Widgets */
.floating-stat-card {
  position: absolute;
  background: rgba(15, 29, 53, 0.8);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.floating-stat-left {
  top: 20%;
  left: -5%;
}

.floating-stat-right {
  bottom: 20%;
  right: -5%;
}

/* === AUTHENTICATION PAGES === */
.auth-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: rgba(15, 29, 53, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-blue));
}

.auth-input,
.auth-card input:not([type="checkbox"]):not([type="radio"]),
.auth-card select,
.auth-card textarea {
  display: block;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-light);
  color: white;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  width: 100%;
  transition: all 0.3s ease;
}

.auth-input:focus,
.auth-card input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-card select:focus,
.auth-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 139, 56, 0.15);
}

.auth-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-link {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}

.auth-link:hover {
  text-decoration: underline;
  color: var(--primary-light);
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

/* === MISSING ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(.9);
  }

  100% {
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation-name: fadeInUp;
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.animate-fade-in-right {
  animation-name: fadeInRight;
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.animate-bounce-in {
  animation-name: bounceIn;
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

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

/* === AI CHATBOT TOGGLE (MOBILE) === */
.ai-toggle-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 139, 56, 0.4);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 10px 30px rgba(255, 139, 56, 0.6);
}

.ai-toggle-btn.active {
  transform: rotate(45deg);
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  color: var(--primary);
}

/* Hide toggle on desktop, show on mobile */
@media (min-width: 993px) {
  .ai-toggle-btn {
    display: none;
  }
}

@media (max-width: 992px) {
  .ai-sidebar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
  }

  .ai-sidebar-container.show {
    visibility: visible;
    transform: translateY(0);
  }

  .ai-sidebar {
    height: 70vh !important;
    /* Overriding inline height */
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  }
}