/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}



:root {
  --primary-color: #00ff88;
  --secondary-color: #f39c12;
  --success-color: #27ae60;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --info-color: #00ff88;

  --primary-button: #00ff88;

  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #ecf0f1;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;

  --border-color: #dee2e6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  --border-radius: 8px;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --text-primary: #ecf0f1;
  --text-secondary: #bdc3c7;
  --text-light: #2c3e50;

  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #3d3d3d;

  --border-color: #404040;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body {
  /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  font-family: 'Rajdhani', sans-serif !important;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  background: rgba(0, 0, 0, 0.884);
  /* semi-transparent for blur to show */
  backdrop-filter: blur(12px);
  /* actual blur effect */
  -webkit-backdrop-filter: blur(12px);
  /* Safari support */
  /* box-shadow: 0 0 15px rgba(0, 255, 136, 0.15); */
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}


.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}


.nav-item {
  position: relative;
  display: inline-block;
  padding: 0 12px;
}

.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #00ff88;
  box-shadow: 0 0 6px #00ff88, 0 0 12px #00ff88;
  border-radius: 4px;
  transition: width 0.2s ease;
  transform-origin: left;
}

.nav-item:hover::after {
  width: 100%;
}

.nav-item a {
  color: #d9d9d9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.nav-item a:hover {
  color: #00ff88;
  text-shadow: 0 0 8px #00ff88, 0 0 16px #00ff88;
}

.nav-container {
  max-width: auto;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: var(--primary-color);
  margin: 0;
  text-align: left;
  padding-left: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  /* background-color: var(--bg-secondary); */
}

.theme-toggle button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle button:hover {
  background-color: var(--bg-secondary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #00ff88;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

#login-button {
  background-color: #00ff88;
  color: #0a0f0c;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #008a49 0%, #061d12 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-title .animated-text {
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title .animated-text:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-title .animated-text:nth-child(2) {
  animation-delay: 0.6s;
}

.hero-title .animated-text:nth-child(3) {
  animation-delay: 1s;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: linear-gradient(180deg, #032b1d 0%, #01150e 100%);
  margin-bottom: 0;
  /* remove space below */
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: radial-gradient(circle at top, rgba(0, 255, 136, 0.12), rgba(0, 255, 136, 0.03));
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.1), inset 0 0 10px rgba(0, 255, 136, 0.05);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.5s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.4), 0 0 80px rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
  background: radial-gradient(circle at center, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.05));
}

.feature-card h3 {
  color: #00ff88;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover h3 {
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.feature-card p {
  color: #cfcfcf;
  line-height: 1.6;
  font-size: 1rem;
}

.feature-icon {
  font-size: 2.5rem;
  color: #00ff88;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotateY(360deg);
  text-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}


/* Auth Sections */
.auth-section {
  padding: 4rem 0;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  padding: 0 1rem;
}

.auth-card {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  animation: slideUp 0.5s ease;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  color: #00ff88;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.auth-subtitle {
  color: #999;
  font-size: 0.95rem;
  margin: 0;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #00ff88;
  font-size: 0.9rem;
}

/* Input Wrapper with Icons */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: #666;
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.input-wrapper input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1), 0 0 20px rgba(0, 255, 136, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.input-wrapper input:focus~.input-icon,
.input-wrapper input:not(:placeholder-shown)~.input-icon {
  color: #00ff88;
}

.input-wrapper input.error {
  border-color: #ff4d4d;
}

.input-wrapper input.error:focus {
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 1rem;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1;
}

.password-toggle:hover {
  color: #00ff88;
}

/* Error Text */
.error-text {
  display: block;
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  animation: shake 0.3s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* Form Options (Remember Me + Forgot Password) */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  display: inline-block;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 136, 0.5);
  border-radius: 4px;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.checkbox-container:hover .checkmark {
  border-color: #00ff88;
}

.checkbox-container input:checked~.checkmark {
  background-color: #00ff88;
  border-color: #00ff88;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  color: #ccc;
}

.forgot-link {
  color: #00ff88;
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-link:hover {
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Auth Submit Button */
.auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Auth Redirect */
.auth-redirect {
  text-align: center;
  margin-top: 1.5rem;
  color: #999;
  font-size: 0.95rem;
}

.auth-link {
  color: #00ff88;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-link:hover {
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Practice Section */
.practice-section {
  padding: 2rem 0;
  min-height: calc(100vh - 140px);
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.progress-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
  padding: 1rem;
  border-radius: 8px;
  min-width: 300px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
  background: blur(25px);
}

.progress-bar {
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--success-color);
  width: 0%;
  transition: width 0.5s ease;
}

.filters-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

#search-input,
#category-filter,
#difficulty-filter {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  transition: var(--transition);
  border-color: 4px solid var(--primary-color);
}

.category-explorer {
  text-align: center;
  margin: 2rem 0 1rem;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.category-card {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid #333;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.category-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.category-card.active {
  border-color: #00ffff;
  box-shadow: 0 0 10px #00ffff;
  background: rgba(0, 255, 255, 0.1);
}


/* Reset Progress Modal */
.reset-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 12, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.reset-modal {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #00ff88;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.25);
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  color: #fff;
  text-align: center;
  animation: slideUp 0.35s ease;
}

.reset-modal h3 {
  color: #00ff88;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.reset-modal p {
  margin-bottom: 1.5rem;
  color: #ccc;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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


/* === CTF Filters Styling === */
.filters-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.search-box input,
.filter-group select {
  background-color: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

.filters-container select,
.search-box input {
  background: rgba(0, 255, 136, 0.05);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 6px;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.filters-container select:hover,
.search-box input:focus {
  border-color: #00ffaa;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
  outline: none;
}


.search-box input::placeholder {
  color: rgba(0, 255, 136, 0.4);
}

.search-box input:focus,
.filter-group select:focus {
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  background-color: rgba(0, 255, 136, 0.08);
}

.filter-group select option {
  background-color: #0a0f0a;
  color: #00ff88;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #00ff88;
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.checkbox-label:hover {
  color: #0affb0;
}

.checkbox-label input {
  accent-color: #00ff88;
  transform: scale(1.2);
}

/* Neon glow hover */
.search-box input:hover,
.filter-group select:hover {
  border-color: #0affb0;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}


/* Hint Revealer Styles */
.hint-revealer {
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
  /* border: 1px solid var(--border-color); */
  border-radius: var(--border-radius);
  /* padding: 1rem; */
  transition: var(--transition);
}

/* .hint-revealer:hover {
    background-color: var(--bg-secondary);
} */

.hint-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  /* border: 1px solid var(--border-color); */
  font-weight: 500;
  /* padding: 5px; */
  margin-left: 0;
  border-radius: 10px;
}

.hint-content {
  background-color: var(--bg-secondary);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: none;
  margin-top: 8px;
  border-left: 3px solid var(--primary-color);
}

.hint-content.revealed {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Download Link Styles */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: var(--transition);
  /* padding: 0.5rem 1rem; */
  /* border: 1px solid var(--border-color); */
  /* border-radius: var(--border-radius); */
}

.download-link:hover {
  /* background-color: var(--bg-secondary); */
  text-decoration: none;
}

.dare-section {
  border: 2px dashed #ffd700;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.1);
}

.dare-section h4 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.dare-container {
  text-align: center;
  margin: 1rem 0;
}

.btn-warning {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #000;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.dare-timer {
  margin-top: 1rem;
  padding: 0.5rem;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  font-weight: bold;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #444;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: bold;
}

/* Flag Form Styles */
.flag-form {
  margin-top: 16px;
}

.flag-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  transition: var(--transition);
}

.flag-input:focus {
  outline: none;
  border-color: #009952;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #00d170;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: #009952;
}

.submit-btn.solved {
  background-color: var(--success-color);
  cursor: default;
}

/* Modal adjustments for new content */
.modal-description {
  /* margin-bottom: 1rem; */
  line-height: 1.6;
}

.modal-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-info span {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Animation for hint reveal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

#enter-flag {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  transition: var(--transition);
  border-color: 4px solid var(--primary-color);
}

.search-box {
  flex: 1;
  min-width: 250px;
}

.filter-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group select {
  min-width: 150px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.challenges-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.challenge-card {
  background: rgba(20, 25, 20, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 1.8rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.challenge-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.challenge-card:hover::before {
  opacity: 1;
}

.challenge-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.challenge-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.1);
  border-color: #00ff88;
  background: rgba(255, 255, 255, 0.12);
}

.challenge-card.solved {
  position: relative;
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.challenge-card.solved::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), transparent);
  pointer-events: none;
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.challenge-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.challenge-points {
  background-color: #00d170;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 800;
  min-width: 70px;
  /* ensures equal width */
  text-align: center;
  /* keeps text centered */
  display: inline-block;
  /* prevents stretch issues */
  box-sizing: border-box;
  /* consistent padding */
}

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


.challenge-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.challenge-category,
.challenge-difficulty {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.challenge-category {
  background-color: var(--bg-secondary);
}

.challenge-difficulty.easy {
  background-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.challenge-difficulty.medium {
  background-color: rgba(234, 179, 8, 0.2);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.challenge-difficulty.hard {
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Category Specific Accents */
.challenge-card[data-category="Web"] {
  border-top: 4px solid #3b82f6;
}

.challenge-card[data-category="Crypto"] {
  border-top: 4px solid #a855f7;
}

.challenge-card[data-category="Forensics"] {
  border-top: 4px solid #10b981;
}

.challenge-card[data-category="Pwn"] {
  border-top: 4px solid #ef4444;
}

.challenge-card[data-category="OSINT"] {
  border-top: 4px solid #f59e0b;
}

.challenge-card[data-category="Reverse Engineering"] {
  border-top: 4px solid #6366f1;
}

.challenge-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.challenge-status {
  background: linear-gradient(45deg, #22c55e, #16a34a);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* animation: pulse-glow 2s  */
}

/* @keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
  }
} */

/* Creator style */
.challenge-creator {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.challenge-creator-small {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

.challenge-status.solved {
  color: var(--success-color);
}

/* Modal */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-actions button {
  margin: 0.5rem;
}

.modal-content {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}



/* form controls */
.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-input,
.form-group textarea,
#challenge-category,
#challenge-difficulty {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-primary, #0f0f0f);
  color: var(--text-primary, #eaeaea);
  border: 1px solid var(--border-color, #2d2d2d);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

#modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.close-btn:hover {
  color: var(--text-primary);
}

.modal-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-description {
  /* margin-bottom: 1rem; */
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 100px;
}

/* Leaderboard Section */
.leaderboard-section {
  padding: 2rem 0;
  min-height: calc(100vh - 140px);
}

.leaderboard-container {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
}

.leaderboard-table tr:hover {
  background-color: var(--bg-secondary);
}

.leaderboard-table .rank-1 {
  background-color: rgba(255, 215, 0, 0.1);
}

.leaderboard-table .rank-2 {
  background-color: rgba(192, 192, 192, 0.1);
}

.leaderboard-table .rank-3 {
  background-color: rgba(205, 127, 50, 0.1);
}

/* --- Modern Cyber-Themed Profile Page --- */
.profile-section {
  min-height: calc(100vh - 120px);
  background: radial-gradient(circle at top left, #001a10 0%, #000 80%);
  color: #d9d9d9;
  padding: 3rem 0;
  font-family: 'Rajdhani', sans-serif;
}

/* Header */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-header h1 {
  font-size: 2.2rem;
  color: #00ff88;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

.profile-header button {
  border-radius: 8px;
}

/* Layout */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ! Cards  **/
.profile-card,
.stats-card,
.achievements-card {
  background: rgba(0, 10, 5, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.profile-card:hover,
.stats-card:hover,
.achievements-card:hover {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.25);
  transform: translateY(-4px);
}

/* Profile Picture */
.profile-pic-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
  transition: box-shadow 0.3s ease;
}

.profile-pic:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.upload-btn {
  background: transparent;
  border: 1px solid #00ff88;
  color: #00ff88;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: #00ff88;
  color: #000;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: #00ff88;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.25);
}

.stat-item h3 {
  color: #00ff88;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.stat-item p {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.achievement-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
}

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #00ff88;
}

/* Buttons */
.btn-danger {
  background: transparent;
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: #ff4d4d;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.6);
}

.btn-secondary {
  background: transparent;
  color: #00ff88;
  border: 1px solid #00ff88;
}

.btn-secondary:hover {
  background: #00ff88;
  color: #000;
}

/* --- Activity (Streak Calendar) --- */
.streak-calendar-card {
  background: rgba(0, 10, 5, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #d9d9d9;
}

.streak-calendar-card h2 {
  color: #00ff88;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* --- Inline Editing Fields --- */
.info-field {
  position: relative;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edit-icon-btn {
  background: transparent;
  border: none;
  color: #00ff88;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
}

.edit-icon-btn:hover {
  color: #00cc66;
}

.inline-edit {
  position: relative;
  top: -1px;
}

.edit-field-container {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edit-field-container input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 8px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  outline: none;
  width: 100%;
  transition: border 0.3s ease;
}

.edit-field-container input:focus {
  border-color: #00ff88;
}

.edit-actions {
  display: flex;
  gap: 0.5rem;
}

.error-text {
  color: #ff4d4d;
  font-size: 0.85rem;
}

.error {
  border-color: #ff4d4d !important;
}

/* --- Profile Picture Edit Button --- */
.profile-pic-wrapper {
  position: relative;
  display: inline-block;
}

.profile-pic-wrapper .edit-icon-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 1);
  border: 1px solid #00ff88;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff88;
}

.profile-pic-wrapper .edit-icon-btn:hover {
  background: #00ff88;
  color: #000;
}

.dit-text-btn {
  color: #00ff88;
  background: blur;
  background-color: #000000c2;
  text-decoration: none;
  padding: 10px;
  border: none;
  transition: color 0.3s ease;
}

/* --- Activity Color Legend --- */
.streak-calendar-card .legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #aaa;
}

/* Activity / Streak Calendar styles */
.streak-calendar-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 255, 136, 0.12);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
  color: #d9d9d9;
  margin-top: 1.5rem;
}

.streak-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.streak-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.streak-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.streak-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #cfeee0;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.streak-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.streak-month-label {
  color: #00ff88;
  font-weight: 700;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 136, 0.06);
}

/* layout */
.streak-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* left calendar */
.streak-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.weekday-labels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.weekday {
  font-size: 12px;
  color: #8c8c8c;
  height: 18px;
  line-height: 18px;
}

/* weeks columns */
.calendar-weeks {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.week-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.day-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.day-cell.out-month {
  opacity: 0.35;
  filter: grayscale(0.2);
}

/* right panel */
.streak-right {
  min-width: 190px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35));
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 255, 136, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.streak-stat {
  width: 100%;
}

.stat-title {
  color: #00ff88;
  font-size: 12px;
  margin-bottom: 4px;
}

.stat-value {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.streak-legend {
  margin-top: 6px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item {
  font-size: 12px;
  color: #bfbfbf;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-box {
  width: 14px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.45);
}

/* responsive */
@media (max-width:900px) {
  .streak-body {
    flex-direction: column;
  }

  .streak-right {
    min-width: unset;
    width: 100%;
  }

  .calendar-weeks {
    max-width: 100%;
  }
}

.activity-section {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #00ff8840;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #00ff88;
  margin-bottom: 16px;
}

.month-switch button {
  background: #111;
  border: 1px solid #00ff8850;
  color: #00ff88;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.month-switch span {
  margin: 0 8px;
  font-weight: 600;
}

.activity-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(7, 18px);
  grid-auto-rows: 18px;
  gap: 5px;
  align-items: center;
}

.day-label {
  font-size: 10px;
  color: #777;
  text-align: center;
}

.day-box {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  transition: 0.2s ease;
}

.day-box:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px #00ff8894;
}

.day-box.dim {
  opacity: 1;
}

.month-switch button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.streak-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
  background: rgba(0, 255, 136, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
}

.streak-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.streak-item .icon {
  color: #00ff88;
  width: 16px;
}

.streak-item span {
  flex: 1;
  color: #aaa;
}

.streak-item b {
  color: #fff;
}


/* Headings */
.profile-card h2,
.stats-card h2,
.achievements-card h2 {
  color: #00ff88;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}


/* About Section */
/* About Section */
.about-section {
  background: linear-gradient(135deg, #008a49 0%, #061d12 100%);
  color: white;
  padding: 4rem 1rem;
  margin: 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: white;
  font-weight: 700;
  border-left: 5px solid #4caf50;
  padding-left: 1rem;
}

.about-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 800px;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  width: 100%;
}

.about-column h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.about-column i {
  color: #4caf50;
  font-size: 1.2rem;
}

.about-column p {
  line-height: 1.6;
  font-size: 1rem;
  opacity: 0.9;
}

.about-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-column li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

.about-column li i {
  color: #4caf50;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-text h2 {
    font-size: 2rem;
  }

  .about-intro {
    font-size: 1rem;
  }

  .about-column h3 {
    font-size: 1.2rem;
  }
}


.contact-info {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  height: fit-content;
}

/* Admin Section */
.admin-section {
  padding: 2rem 0;
  min-height: calc(100vh - 140px);
  background: transparent;
}

.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #333;
  background: rgba(255, 255, 255, 0.082);
  border-radius: 8px 8px 0 0;
  padding: 0 1rem;
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ccc;
  font-family: 'Rajdhani', sans-serif;
}

.tab-btn.active {
  color: #00ff88;
  border-bottom-color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.tab-btn:hover:not(.active) {
  color: #fff;
  background-color: rgba(0, 255, 136, 0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h2 {
  color: #00ff88;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.admin-table-container {
  background: rgba(255, 255, 255, 0.123);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #333;
  backdrop-filter: blur(10px);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #333;
  color: #fff;
}

.admin-table th {
  background: rgb(0, 255, 136);
  font-weight: 600;
  color: #00ff88;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tr:hover {
  background: rgba(0, 255, 136, 0.05);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #0a0f0c;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid #333;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #00ff88;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  margin-right: 1rem;
}

.btn-danger {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.btn-danger:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.category-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #333;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.category-item:hover {
  border-color: #00ff88;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.2);
}

.category-item span {
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #00ff88;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00ff88;
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
}

#form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #00ff88;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#form-group input,
#form-group select,
#form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#form-group input:focus,
#form-group select:focus,
#form-group textarea:focus {
  outline: none;
  border-color: #00ff88;
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

#form-group input::placeholder,
#form-group textarea::placeholder {
  color: #666;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(26, 26, 26, 0.95);
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid #333;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #666;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

/* Badge Styles */
.category-badge {
  background: rgba(0, 123, 255, 0.3);
  color: #66b3ff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.difficulty-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.difficulty-badge.easy {
  background: rgba(0, 255, 136, 0.3);
  color: #66ffb3;
}

.difficulty-badge.medium {
  background: rgba(255, 193, 7, 0.3);
  color: #ffd966;
}

.difficulty-badge.hard {
  background: rgba(220, 53, 69, 0.3);
  color: #ff6666;
}

.points-badge {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.badge-current {
  background: rgba(0, 255, 136, 0.3);
  color: #00ff88;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.empty-state p {
  margin: 0;
  font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: #00ff88;
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #00ff88;
  margin: 0.5rem 0;
}

.stat-info h3 {
  color: #ccc;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Quick Actions */
.quick-actions {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #333;
}

.quick-actions h3 {
  color: #00ff88;
  margin-bottom: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-tabs {
    flex-direction: column;
    padding: 0;
  }

  .tab-btn {
    padding: 1rem;
    border-bottom: 1px solid #333;
    border-left: 3px solid transparent;
  }

  .tab-btn.active {
    border-left-color: #00ff88;
    border-bottom-color: #333;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-table-container {
    overflow-x: auto;
  }
}

/* Footer */
.footer {
  background: #0b0f0c;
  color: #d9d9d9;
  padding: 60px 0px 10px;
  font-family: 'Rajdhani', sans-serif;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 65px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.footer-column h3 {
  color: #00ff88;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin: 8px 0;
}

.footer-column a {
  color: #d9d9d9;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.footer-column a:hover {
  color: #00ff88;
  text-shadow: 0 0 5px #00ff88;
}

.footer-logo {
  margin-top: 10px;
  width: 50px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

.footer-column.brand h2 {
  color: #00ff88;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 50%;
  color: #00ff88;
  transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
  background: #00ff88;
  color: #000;
  transform: translateY(-3px);
}

.footer-divider {
  border: none;
  border-top: 1px solid #093c28;
  margin: 30px auto 15px;
  width: 90%;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  padding-bottom: 30px;
}

.footer-bottom a {
  color: #00ff88;
  text-decoration: none;
  margin: 0 4px;
}

.footer-bottom a:hover {
  text-shadow: 0 0 5px #00ff88;
}

.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #00ff88;
  color: #0a0f0c;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ff88;
  transition: transform 0.3s;
}

.scroll-top:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }

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

/* --- Popup Overlay --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease-in-out;
  backdrop-filter: blur(4px);
}

/* --- Popup Content --- */
.popup-content {
  background: linear-gradient(180deg, #0d0d0d 0%, #101010 100%);
  color: #e0e0e0;
  padding: 2.5rem;
  width: 90%;
  max-width: 650px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.4);
  animation: slideIn 0.25s ease-out;
  text-align: left;
  overflow: hidden;
  position: relative;
}

/* --- Title --- */
.popup-content h2 {
  color: #00ff88;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  padding-bottom: 0.5rem;
}

/* --- Scrollable Text --- */
.popup-text {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #00ff88 #0a0a0a;
  line-height: 1.6;
}

.popup-text strong {
  color: #00ff88;
}

.popup-text a {
  color: #00c878;
  text-decoration: underline;
}

.popup-text::-webkit-scrollbar {
  width: 6px;
}

.popup-text::-webkit-scrollbar-thumb {
  background: #00ff88;
  border-radius: 3px;
}

/* --- Close Button --- */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 1px solid #00ff88;
  color: #00ff88;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.close-btn:hover {
  background: #00ff88;
  color: #000;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

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


/* Messages */
.message {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 500;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.message.success {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.3);
}

.message.error {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border-color: rgba(255, 71, 87, 0.3);
}

.close-message {
  background: none;
  border: none;
  color: inherit;
  float: right;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: var(--bg-primary);
    flex-direction: column;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    padding: 2rem 0;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .tab-btn {
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .tab-btn.active {
    border-left-color: var(--primary-color);
  }

  .practice-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .search-box {
    min-width: 100%;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

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

/* Validation Styles */
.form-group input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

#form-group input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.error-text {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background-color: #ecf0f1;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
}

.strength-text {
  font-size: 0.75rem;
  color: #7f8c8d;
}

/* Admin Dashboard Styles */
.admin-section {
  padding: 2rem 0;
  min-height: 80vh;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e9ecef00;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.tab-btn.active {
  border-bottom-color: #00ff88;
  color: #00ff88;
  font-weight: 600;
}

.tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 2rem;
}

.stat-info h3 {
  margin: 0 0 0.5rem 0;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-number {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Tables */
.admin-table-container {
  background: #00000021;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px #00ff881a;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  color: white;
}

.admin-table th {
  background: #595c5f1c;
  font-weight: 600;
  color: #00ff88;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

/* Badges */
.category-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.difficulty-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.difficulty-badge.easy {
  background: #e8f5e8;
  color: #2e7d32;
}

.difficulty-badge.medium {
  background: #fff3e0;
  color: #ef6c00;
}

.difficulty-badge.hard {
  background: #ffebee;
  color: #c62828;
}

.points-badge {
  background: #fff3e0;
  color: #ef6c00;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.badge-current {
  background: #007bff;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Quick Actions */
.quick-actions {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.challenge-description {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.close-message {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
}

.challenge-stats {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #b3b3b3;
  margin-bottom: 10px;
  padding-left: 10px;
}

.challenge-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.challenge-stats span:hover {
  color: #00ff88;
}

.challenge-stats i {
  color: #00ff88;
  font-size: 1rem;
}

.challenge-card.solved .challenge-stats i {
  color: #5aff9b;
}

.challenge-stats-modal {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin: 10px 0 15px 0;
  padding: 10px 0;
  border-top: 1px solid #2b2b2b;
  border-bottom: 1px solid #2b2b2b;
  color: #b3b3b3;
  font-size: 0.95rem;
}

.challenge-stats-modal span {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  transition: color 0.3s ease;
}

.challenge-stats-modal span:hover {
  color: #00ff88;
}

.challenge-stats-modal i {
  color: #00ff88;
  font-size: 1rem;
}

/* About Section Styles */


.what-is-exoquest {
  margin-top: 2rem;
}

.what-is-exoquest h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: white;
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.meaning-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.meaning-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: white;
}

.contact-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(60px);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.contact-details {
  margin-bottom: 1.5rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: #4FC3F7;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


/* Hero Button Styles */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .meaning-grid {
    grid-template-columns: 1fr;
  }

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

  .about-section {
    padding: 2rem 0;
  }


}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  }

  100% {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
  }
}

.stat-item:hover {
  animation: pulse-glow 1.2s infinite;
}

/* ===== Custom Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0f0c;
  /* matches footer background */
}

::-webkit-scrollbar-thumb {
  background-color: #00ff88;
  border-radius: 10px;
  border: 2px solid #0a0f0c;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #00cc6f;
  /* slightly darker green on hover */
}

/* ===== Additional Responsive Base Styles ===== */

/* Flexible images and media */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive tables */
table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  table {
    font-size: 0.9rem;
  }
}

/* Base fluid typography */
@media (max-width: 576px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
}

/* Improve touch targets */
@media (max-width: 768px) {
  a,
  button,
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
  }
}

/* Flexible containers */
@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Responsive spacing utilities */
@media (max-width: 768px) {
  section {
    padding: 2rem 0;
  }

  .card {
    padding: 1rem;
  }
}

/* Flexible grid default behavior */
.grid,
.grid-container {
  display: grid;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 769px) {
  .grid,
  .grid-container {
    gap: 1.5rem;
  }
}

@media (min-width: 1025px) {
  .grid,
  .grid-container {
    gap: 2rem;
  }
}

/* Ensure all form elements are responsive */
input,
textarea,
select {
  width: 100%;
  max-width: 100%;
}

/* Fix Safari iOS zoom on input focus */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  textarea {
    font-size: 16px;
  }
}

/* Smooth scrolling except for reduced motion preference */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}