/* --- Base & Background Styles --- */

body {
  /* Set the base font for better readability */
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  /* Default weight */
  color: #E0E0E0;
  /* Slightly off-white for softer contrast */
  line-height: 1.6;
}

.space-background {
  background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
  margin: 0;
  padding: 0;
  /* Ensure body text color applies */
  color: #E0E0E0;
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABHNCSVQICAgIfAhkiAAAAMFJREFUeJzt0EENwCAAwMBOmPzbQQrScJxcNZnF/7O7h1je8QMwBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEMQQxBDEEuQA8XAZBXh5raAAAAABJRU5ErkJggg==') repeat top center;
  z-index: -3;
}

.twinkling {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAxMC8yOS8xMiKqq3kAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAABHklEQVR4nO3YMQ7CMBQFQYHo8P9X0qRBbKWwZyYOW21OcPdR5HpfDzA3QoIICSIkiJAgQoIICSIkiJAgQoIICSIkiJAgQoIICSIkiJAgQoIICSIkiJAgQoIICSIkiJAgQoIICSIkiJAgQoIICSIkiJAgQoIICSIkiJAgQoIICSIkyLnxyN77s9Z6zLzJ7LZCzlrrbeb9/gZ9WUGEBBESREgQIUGEBBESREgQIUGEBBESREgQIUGEBBESREgQIUGEBBESREgQIUGEBBESREgQIUGEBBESREgQIUGEBBESREgQIUGEBBESREgQIUGEBBESREiQyxeXvvTM+0KCCAkiJIiQIEKCCAkiJIiQIEKCCAkiJIiQIEKCCAkiJIiQIEKCCAkiJMgb6uY1YlYWH5YAAAAASUVORK5CYII=') repeat top center;
  animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -10000px 5000px;
  }
}

/* --- Typography Refinements --- */

/* Main Title (Hero Section) */
h1.futuristic-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 5rem;
  /* Slightly reduced size */
  font-weight: 900;
  letter-spacing: 0.2rem;
  /* Reduced spacing */
  text-transform: uppercase;
  color: #FFFFFF;
  /* Brighter white for main title */
  /* Subtle glow, removed pulse animation */
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
  /* Removed animation: pulse */
}

/* Section Titles (h2) */
h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #C8FFFF;
  /* Slightly softer cyan/white */
  margin-bottom: 1.5rem !important;
  /* Ensure spacing below h2 */
  /* Optional: Add a very subtle shadow if desired */
  /* text-shadow: 0 0 5px rgba(0, 243, 255, 0.3); */
}

/* Card Titles (h5) */
.card-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: #A0EFFF;
  /* Even softer cyan/white */
}

/* General Text (Paragraphs, list items etc. - Inherits from body) */
p,
.card-text,
label,
.form-text,
li,
footer p {
  font-family: 'Poppins', sans-serif;
  /* Ensure body font */
  font-weight: 400;
  font-size: 1rem;
  /* Standard readable size */
  text-transform: none;
  /* Override uppercase */
  letter-spacing: normal;
  /* Override spacing */
  text-shadow: none;
  /* Remove glow */
  color: inherit;
  /* Inherit from body or card parent */
}

.lead {
  /* Bootstrap class used in Hero */
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  text-shadow: none;
  line-height: 1.7;
  color: #B0C4DE;
  /* Light steel blue - readable */
}

/* --- Component Styling --- */

/* Navbar */
.navbar {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.4);
  /* Subtle glow for brand */
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  /* Bolder links */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

/* Content Box (Hero) */
.content-box {
  background: rgba(10, 20, 45, 0.6);
  backdrop-filter: blur(8px);
  /* Slightly reduced blur */
  border-radius: 15px;
  border: 1px solid rgba(100, 200, 255, 0.3);
  /* Reduced opacity */
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
  /* Reduced opacity */
  padding: 2rem 1.5rem;
  /* Adjusted padding */
  position: relative;
  z-index: 1;
}

.glow-container {
  position: relative;
  /* Keep for potential future use */
}

/* Cards */
.card {
  /* Ensure card background doesn't conflict if text-bg-dark isn't used */
  background-color: rgba(20, 30, 55, 0.7);
  /* Darker, slightly transparent */
  backdrop-filter: blur(5px);
  border-width: 1px;
  /* Keep border thin */
}

/* Specific card text colors if needed */
.card.text-bg-dark .card-text,
.card.text-bg-dark .card-header,
.card.text-bg-dark label,
.card.text-bg-dark .form-text {
  color: #E0E0E0 !important;
  /* Ensure readability on dark cards */
}

.card.text-bg-dark .card-title {
  color: #A0EFFF !important;
  /* Ensure title color stands out */
}


/* Buttons */
.btn {
  font-family: 'Poppins', sans-serif;
  /* Use readable font */
  font-weight: 700;
  /* Bold buttons */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  /* Adjust padding */
  border-radius: 5px;
  text-shadow: none;
  /* No glow on buttons */
  transition: all 0.3s ease;
  /* Smooth transitions */
}

/* Keep specific button colors from Bootstrap, but ensure text contrast */
.btn-info {
  color: #000;
}

/* Example: Ensure dark text on light blue */
.btn-warning {
  color: #000;
}

/* Example: Ensure dark text on yellow */
/* Add more overrides if Bootstrap defaults lack contrast */

.btn:hover {
  transform: translateY(-2px);
  /* Subtle hover effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Social Icons */
.social-icon i {
  color: #00f3ff;
  /* Keep cyan color for icons */
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(0, 243, 255, 0.6));
  /* Subtle drop shadow */
}

.social-icon:hover i {
  color: #FFFFFF;
  /* Change color on hover */
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(0, 243, 255, 1));
  /* Enhance glow on hover */
}

/* Browser Icons (Legacy - check if still used directly, FontAwesome is preferred now) */
.browsers-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}


/* Remove Pulse Animation Keyframes */
/* @keyframes pulse { ... } - This whole block is removed */

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  h1.futuristic-title {
    font-size: 2.5rem;
    /* Reduce title size on smaller screens */
    letter-spacing: 0.1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .content-box {
    padding: 1.5rem 1rem;
  }

  p,
  .card-text,
  label,
  .form-text,
  li,
  footer p {
    font-size: 0.95rem;
    /* Slightly smaller text on mobile */
  }

  .lead {
    font-size: 1.1rem;
  }
}

/* --- Pagination Styling --- */
.pagination {
  --bs-pagination-padding-x: 0.85rem;
  /* Adjust horizontal padding */
  --bs-pagination-padding-y: 0.45rem;
  /* Adjust vertical padding */
  --bs-pagination-color: #A0EFFF;
  /* Default link text color (soft cyan) */
  --bs-pagination-bg: rgba(10, 20, 45, 0.7);
  /* Default background (dark blue, semi-transparent) */
  --bs-pagination-border-width: 1px;
  --bs-pagination-border-color: rgba(100, 200, 255, 0.3);
  /* Subtle blue border */
  --bs-pagination-border-radius: 5px;
  /* Match button border radius */
  --bs-pagination-hover-color: #FFFFFF;
  /* Hover text color (white) */
  --bs-pagination-hover-bg: rgba(0, 243, 255, 0.3);
  /* Hover background (brighter cyan, semi-transparent) */
  --bs-pagination-hover-border-color: rgba(100, 200, 255, 0.5);
  /* Slightly stronger hover border */
  --bs-pagination-focus-color: #FFFFFF;
  --bs-pagination-focus-bg: rgba(0, 243, 255, 0.4);
  /* Focus background */
  --bs-pagination-focus-box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
  /* Add glow on focus */
  --bs-pagination-active-color: #090A0F;
  /* Active text color (dark background color) */
  --bs-pagination-active-bg: #00f3ff;
  /* Active background (bright cyan) */
  --bs-pagination-active-border-color: #00f3ff;
  /* Active border */
  --bs-pagination-disabled-color: rgba(160, 239, 255, 0.4);
  /* Disabled text color (faded cyan) */
  --bs-pagination-disabled-bg: rgba(10, 20, 45, 0.5);
  /* Disabled background (more transparent) */
  --bs-pagination-disabled-border-color: rgba(100, 200, 255, 0.2);
  /* Faded disabled border */

  /* Apply custom font if desired - optional */
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  /* Slightly bolder */
}

/* Additional transition for smoother hover effects */
.pagination .page-link {
  transition: all 0.3s ease;
  text-shadow: none;
  /* Ensure no inherited text-shadow */
  backdrop-filter: blur(3px);
  /* Subtle blur for background items */
}

/* Optional: Subtle glow on hover for non-disabled items */
.pagination .page-item:not(.disabled) .page-link:hover {
  box-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

/* Ensure active state overrides hover glow if needed */
.pagination .page-item.active .page-link {
  box-shadow: none;
  /* Remove hover glow from active item */
  font-weight: 700;
  /* Make active number bolder */
}