/* Sci-Fi Theme CSS for neuromint.co.in */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Titillium+Web:wght@200;300;400;600;700;900&display=swap');

:root {
  --primary: #00f6ff;
  --primary-dark: #00c8d4;
  --secondary: #7928ca;
  --accent: #ff0080;
  --background: #0a0a1f;
  --surface: #13132b;
  --surface-light: #1c1c3a;
  --text-primary: #ffffff;
  --text-secondary: #b8c7ff;
  --text-tertiary: #8a96c2;
  --glow-primary: 0 0 10px rgba(0, 246, 255, 0.5), 0 0 20px rgba(0, 246, 255, 0.3);
  --glow-secondary: 0 0 10px rgba(121, 40, 202, 0.5), 0 0 20px rgba(121, 40, 202, 0.3);
  --glow-accent: 0 0 10px rgba(255, 0, 128, 0.5), 0 0 20px rgba(255, 0, 128, 0.3);
}

/* ======================== */
/* Homepage Responsive Additions */
/* ======================== */

/* Hero heading and subheading (match classes used in index.html) */
.sci-fi-heading {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 4rem);
  text-align: center;
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
}

.gradient-text {
  display: block;
  background: linear-gradient(90deg, var(--primary) 0%, #ffffff 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow {
  text-shadow: var(--glow-primary);
}

.sci-fi-subheading {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0.5rem auto 0;
  line-height: 1.6;
  padding: 0 1rem;
}

/* Hero background FX used on homepage */
.cyber-grid::before,
.cyber-stars::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cyber-grid::before {
  background-image: linear-gradient(rgba(0, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 246, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  opacity: 0.4;
}

.cyber-stars::before {
  background-image: radial-gradient(circle at 20% 30%, rgba(121, 40, 202, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 246, 255, 0.12) 0%, transparent 40%);
  opacity: 0.5;
}

/* Search */
.search-container { max-width: 900px; padding: 0 1rem; }
.search-wrapper { position: relative; }
.sci-fi-search {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 1.2rem;
  border-radius: 999px;
  border: 2px solid rgba(0, 246, 255, 0.3);
  background: rgba(10, 10, 31, 0.6);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}
.sci-fi-search:focus { outline: none; border-color: var(--primary); box-shadow: var(--glow-primary); }
.sci-fi-search::placeholder { color: var(--text-tertiary); }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: 0.75; }
.sci-fi-no-results { color: var(--text-tertiary); text-align: center; margin-top: 0.5rem; }

/* Tool grid (match sci-fi classes used in index) */
.sci-fi-toollist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  padding: 1.5rem;
}

.sci-fi-tool-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 246, 255, 0.12);
}

.sci-fi-tool-card a { text-decoration: none; display: block; color: inherit; }
.sci-fi-tool-card h2 { font-family: 'Orbitron', sans-serif; font-size: 1.15rem; color: var(--primary); margin: 14px 0 10px; }
.sci-fi-tool-card p { font-family: 'Rajdhani', sans-serif; color: var(--text-secondary); line-height: 1.55; }
.sci-fi-tool-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 12px rgba(0,246,255,0.18); }

.sci-fi-imgbox { display: flex; align-items: center; gap: 14px; }
.sci-fi-imgbox img { max-width: 100%; height: 44px; object-fit: contain; filter: drop-shadow(0 0 5px rgba(0, 246, 255, 0.45)); transition: transform 0.25s ease; }
.sci-fi-tool-card:hover .sci-fi-imgbox img { transform: scale(1.06); }

/* Restored previous dropdown styling */
.sci-fi-dropdown {
  position: absolute;
  margin-top: 10px;
  top: calc(100% + 0px);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(19, 19, 43, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 246, 255, 0.18);
  border-radius: 10px;
  width: min(1100px, calc(100vw - 48px));
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 10px rgba(0, 246, 255, 0.2);
  z-index: 2000;
}
.sci-fi-dropdown ul {
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  max-height: 70vh;
  overflow-y: auto;
}
.sci-fi-dropdown a {
  display: inline-flex !important;
  align-items: center;
  padding: 10px 16px !important;
  color: var(--text-secondary) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 9999px !important; /* pill */
  text-decoration: none !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  white-space: nowrap;
}
.sci-fi-dropdown a:hover {
  background: rgba(0, 246, 255, 0.14) !important;
  border-color: rgba(0, 246, 255, 0.35) !important;
  color: var(--primary) !important;
}

/* Responsive adjustments: make dropdown fuller and centered on small screens */
@media (max-width: 640px) {
  .sci-fi-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 24px); /* tighter side margins on very small screens */
    max-width: none;
    border-radius: 12px;
  }
  .sci-fi-dropdown ul { padding: 16px; gap: 12px 14px; justify-content: center; }
  .sci-fi-dropdown a { padding: 12px 16px !important; }
}

/* Tablet + Desktop spacing tweaks */
@media (min-width: 641px) {
  .sci-fi-dropdown { width: min(1200px, calc(100vw - 64px)); }
  .sci-fi-dropdown ul { gap: 16px 20px; padding: 24px 32px; }
}

/* Make images and containers safe on mobile */
img { max-width: 100%; height: auto; }

/* Top nav enhancements */
.navbar-clean #navbar-sticky > ul,
#navbar-sticky > ul {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  align-items: center;
  padding: 6px 10px; /* outer breathing room */
}
.nm-nav-link {
  position: relative;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .1s ease;
  letter-spacing: .2px;
  line-height: 1.2;
  color: var(--text-primary) !important; /* ensure readable on dark header */
}
.nm-nav-link:hover { color: var(--primary) !important; }
.nm-nav-link[aria-current="page"], .nm-nav-link.active { color: var(--primary) !important; }
/* Remove heavy underline by default; keep a thin bottom border on active if desired */
.nm-nav-link::after { display: none; }
.nm-nav-link:focus {
  outline: 2px solid rgba(0, 246, 255, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Active page gets a soft pill so it's obvious */
.nm-nav-link[aria-current="page"], .nm-nav-link.active {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 6px rgba(0,246,255,0.18) inset;
  border-radius: 9999px;
}

.nm-nav-cta {
  border: 1px solid rgba(0, 246, 255, 0.35);
  border-radius: 9999px;
  padding: 8px 12px;
  background: transparent;
  box-shadow: none;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .1s ease;
  color: var(--text-primary) !important;
}
.nm-nav-cta:hover { background: rgba(255,255,255,0.06); color: var(--primary) !important; border-color: rgba(0, 246, 255, 0.55); box-shadow: 0 0 8px rgba(0, 246, 255, 0.25); transform: translateY(-1px); }
.nm-nav-cta:focus {
  outline: 2px solid rgba(0, 246, 255, 0.55);
  outline-offset: 2px;
}
.nm-nav-cta:active { transform: translateY(1px); }
.nm-nav-cta svg { width: 10px; height: 10px; margin-left: 6px; }

@media (max-width: 640px) {
  .nm-nav-cta { padding: 12px 16px; font-size: 0.98rem; }
  /* Make top links larger tap targets and centered on mobile */
  #navbar-sticky > ul { gap: 10px !important; padding: 8px 12px; }
  #navbar-sticky > ul a.nm-nav-link { display: block; padding: 14px 16px; border-radius: 12px; text-align: center; background: rgba(255,255,255,0.04); font-weight: 600; }
  #navbar-sticky > ul a.nm-nav-link:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
}

/* Tablet enhancements */
@media (min-width: 641px) and (max-width: 1023px) {
  #navbar-sticky > ul { gap: 22px !important; padding: 6px 12px; }
  a.nm-nav-link { padding: 9px 12px; border-radius: 9999px; font-weight: 600; }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
  #navbar-sticky > ul { gap: 28px !important; align-items: center; padding: 8px 14px; }
  a.nm-nav-link { font-weight: 600; padding: 10px 14px; border-radius: 9999px; letter-spacing: .25px; }
  a.nm-nav-link:hover { background: rgba(255,255,255,0.06); box-shadow: 0 0 6px rgba(0,246,255,0.18); transform: translateY(-1px); }
  .nm-nav-cta { padding: 10px 14px; }
}
/* Mobile adjustments */
@media (max-width: 640px) {
  nav img { height: 44px !important; }
  .hero-section { padding-top: 96px; padding-bottom: 56px; }
  .sci-fi-toollist { grid-template-columns: 1fr; padding: 1rem; gap: 16px; }
  .sci-fi-tool-card { padding: 16px; }
  .singletools { padding: 16px; }
  .imgbox { gap: 12px; }
  .sci-fi-imgbox img, .imgbox img { height: 38px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .sci-fi-toollist { grid-template-columns: repeat(2, 1fr); }
}


/* Global styles */
html {
  scroll-behavior: smooth;
  font-family: 'Rajdhani', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Prevent horizontal scroll on mobile */
* {
  box-sizing: border-box;
}

body {
  background: var(--background);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(121, 40, 202, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 246, 255, 0.15) 0%, transparent 40%),
    linear-gradient(to bottom, var(--background), #050518);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.03)' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* Glowing elements */
.glow-text {
  text-shadow: var(--glow-primary);
}

.glow-border {
  border: 1px solid var(--primary);
  box-shadow: var(--glow-primary);
}

/* Navigation */
nav {
  background: rgba(10, 10, 31, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 246, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav:hover {
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 246, 255, 0.2);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--glow-primary);
  transition: all 0.3s ease;
}

.nav-logo:hover {
  color: #ffffff;
  text-shadow: var(--glow-primary);
}

.nav-link {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  box-shadow: var(--glow-primary);
}

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

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

/* Dropdown Menu */
.mydrop {
  background: rgba(19, 19, 43, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 246, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 246, 255, 0.2);
  animation: slideDown 0.4s ease;
  padding: 20px;
}

.mydrop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mydrop ul li a {
  padding: 10px 20px;
  border-radius: 4px;
  background: var(--surface-light);
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mydrop ul li a:hover {
  background: rgba(0, 246, 255, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(90deg, var(--primary) 0%, #ffffff 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.search-container {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid rgba(0, 246, 255, 0.3);
  background: rgba(10, 10, 31, 0.5);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

/* Tool List */
.toollist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 2rem;
}

/* Single Tool */
.singletools {
  background: var(--surface);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 246, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.singletools::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.singletools:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 246, 255, 0.2);
  border-color: var(--primary);
}

.singletools:hover::before {
  opacity: 1;
}

.singletools a {
  display: block;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.singletools a h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin: 18px 0 12px;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.singletools:hover a h2 {
  text-shadow: var(--glow-primary);
}

.singletools a p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Image Box */
.imgbox {
  display: flex;
  align-items: center;
  gap: 18px;
}

.imgbox img {
  filter: drop-shadow(0 0 5px rgba(0, 246, 255, 0.5));
  transition: all 0.3s ease;
}

.singletools:hover .imgbox img {
  transform: scale(1.1);
}

/* Features Section */
#features {
  padding: 100px 30px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

#features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(121, 40, 202, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 246, 255, 0.1) 0%, transparent 50%);
  z-index: 0;
}

#features h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

#features p {
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

#features .relative {
  background: var(--surface-light);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(0, 246, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

#features .relative:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 246, 255, 0.2);
  border-color: var(--primary);
}

#features .relative svg {
  color: var(--primary);
  filter: drop-shadow(0 0 5px rgba(0, 246, 255, 0.5));
}

#features .relative h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-primary);
}

#features .relative p {
  color: var(--text-tertiary);
}

/* Footer */
.footer-section {
  background: var(--background);
  border-top: 1px solid rgba(0, 246, 255, 0.2);
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 10, 31, 0.9), transparent);
  pointer-events: none;
}

.footer-title {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.footer-link {
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.footer-text {
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-tertiary);
}

.footer-logo {
  filter: drop-shadow(0 0 8px rgba(0, 246, 255, 0.5));
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 246, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 246, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 246, 255, 0);
  }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .sci-fi-toollist {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 1.5rem;
  }
  
  .search-container {
    max-width: 500px;
    margin: 0 auto 2rem;
  }
}

@media (max-width: 1068px) {
  .sci-fi-toollist {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
  
  .sci-fi-tool-card {
    padding: 22px;
  }
  
  .sci-fi-heading {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
  }
  
  .sci-fi-subheading {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 90px;
    padding-bottom: 50px;
  }
  
  .sci-fi-heading {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.3;
  }
  
  .sci-fi-subheading {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 2rem;
  }
  
  .search-container {
    max-width: 450px;
    margin: 0 auto 1.5rem;
  }
  
  .sci-fi-search {
    padding: 0.9rem 1.3rem;
    font-size: 1rem;
  }
  
  .sci-fi-toollist {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    padding: 1rem;
  }
  
  .sci-fi-tool-card {
    padding: 20px;
  }
  
  .sci-fi-tool-card a h2 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
  }
  
  .sci-fi-tool-card a p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .sci-fi-imgbox {
    gap: 15px;
  }
  
  .sci-fi-imgbox img {
    max-width: 45px;
  }
  
  #features {
    padding: 50px 20px;
  }
  
  #features h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 30px;
  }
  
  #features .relative {
    padding: 18px;
  }
  
  .sci-fi-dropdown {
    padding: 15px;
    max-width: 95vw;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  .sci-fi-dropdown ul {
    gap: 8px;
  }
  
  .sci-fi-dropdown ul li a {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  
  .sci-fi-heading {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
  }
  
  .sci-fi-subheading {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 1.5rem;
  }
  
  .search-container {
    max-width: 400px;
    margin: 0 auto 1rem;
  }
  
  .sci-fi-search {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .sci-fi-toollist {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0.8rem;
  }
  
  .sci-fi-tool-card {
    padding: 18px;
  }
  
  .sci-fi-tool-card a h2 {
    font-size: 1.1rem;
    margin: 12px 0 8px;
  }
  
  .sci-fi-tool-card a p {
    font-size: 0.85rem;
  }
  
  .sci-fi-imgbox {
    gap: 12px;
  }
  
  .sci-fi-imgbox img {
    max-width: 40px;
  }
  
  #features {
    padding: 40px 15px;
  }
  
  #features h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 25px;
  }
  
  #features .relative {
    padding: 15px;
  }
  
  .sci-fi-dropdown {
    padding: 12px;
    max-width: 98vw;
  }
  
  .sci-fi-dropdown ul {
    gap: 6px;
  }
  
  .sci-fi-dropdown ul li a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 70px;
    padding-bottom: 30px;
  }
  
  .sci-fi-heading {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    line-height: 1.4;
  }
  
  .sci-fi-subheading {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1rem;
  }
  
  .search-container {
    max-width: 350px;
    margin: 0 auto 0.8rem;
  }
  
  .sci-fi-search {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  
  .sci-fi-toollist {
    gap: 12px;
    padding: 0.6rem;
  }
  
  .sci-fi-tool-card {
    padding: 15px;
  }
  
  .sci-fi-tool-card a h2 {
    font-size: 1rem;
    margin: 10px 0 6px;
  }
  
  .sci-fi-tool-card a p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .sci-fi-imgbox {
    gap: 10px;
  }
  
  .sci-fi-imgbox img {
    max-width: 35px;
  }
  
  #features {
    padding: 30px 10px;
  }
  
  #features h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 20px;
  }
  
  #features .relative {
    padding: 12px;
  }
  
  .sci-fi-dropdown {
    padding: 10px;
  }
  
  .sci-fi-dropdown ul li a {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* Navigation responsive improvements */
@media (max-width: 768px) {
  .sci-fi-nav .max-w-screen-xl {
    padding: 0.75rem 1rem;
  }
  
  .sci-fi-nav img {
    height: 50px !important;
  }
  
  .sci-fi-nav button {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  /* Improve mobile menu */
  .sci-fi-nav #navbar-sticky {
    background: rgba(19, 19, 43, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 246, 255, 0.2);
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  .sci-fi-nav #navbar-sticky ul {
    border: none;
    background: transparent;
  }
  
  .sci-fi-nav #navbar-sticky ul li a {
    color: var(--text-secondary);
    border-radius: 4px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
  }
  
  .sci-fi-nav #navbar-sticky ul li a:hover {
    background: rgba(0, 246, 255, 0.1);
    color: var(--primary);
  }
}

@media (max-width: 480px) {
  .sci-fi-nav .max-w-screen-xl {
    padding: 0.5rem 0.75rem;
  }
  
  .sci-fi-nav img {
    height: 45px !important;
  }
  
  .sci-fi-nav button {
    padding: 0.4rem;
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Footer responsive improvements */
@media (max-width: 768px) {
  .bg-gray-100 .max-w-screen-lg {
    flex-direction: column;
    text-align: center;
  }
  
  .bg-gray-100 .max-w-screen-lg > div {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 1rem;
  }
  
  .bg-gray-100 .max-w-screen-lg > div:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .bg-gray-100 .max-w-screen-lg > div {
    padding: 1rem 0.75rem;
  }
  
  .bg-gray-100 img {
    height: 50px !important;
  }
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
  .sci-fi-tool-card,
  .singletools {
    min-height: 120px;
  }
  
  .sci-fi-tool-card a,
  .singletools a {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .sci-fi-search,
  .search-input {
    min-height: 48px;
  }
  
  .sci-fi-dropdown ul li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improve focus states for accessibility */
  .sci-fi-tool-card:focus-within,
  .singletools:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  
  .sci-fi-search:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  
  /* Better tap targets */
  .sci-fi-nav button {
    min-width: 44px;
    min-height: 44px;
  }
  
  .sci-fi-dropdown ul li a {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding-top: 60px;
    padding-bottom: 20px;
  }
  
  .sci-fi-heading {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
  }
  
  .sci-fi-subheading {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1rem;
  }
  
  .search-container {
    margin-bottom: 0.8rem;
  }
  
  .sci-fi-toollist {
    padding: 0.5rem;
    gap: 10px;
  }
  
  .sci-fi-tool-card {
    padding: 12px;
  }
}

/* --- Sci‑Fi responsive aliases and new classes --- */

/* Nav (sci-fi variant) */
.sci-fi-nav {
  background: rgba(10, 10, 31, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 246, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}
.sci-fi-nav:hover {
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 246, 255, 0.2);
}

/* Dropdown (sci-fi variant) */
.sci-fi-dropdown {
  background: rgba(19, 19, 43, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 246, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 246, 255, 0.2);
  animation: slideDown 0.4s ease;
  padding: 20px;
}
.sci-fi-dropdown ul { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sci-fi-dropdown ul li a {
  padding: 10px 20px;
  border-radius: 4px;
  background: var(--surface-light);
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.sci-fi-dropdown ul li a:hover {
  background: rgba(0, 246, 255, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

/* Hero additions for new markup */
.cyber-grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 246, 255, 0.08), transparent 35%),
              radial-gradient(circle at 70% 80%, rgba(121, 40, 202, 0.08), transparent 35%);
  pointer-events: none;
}
.cyber-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
                    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.5), transparent),
                    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.5), transparent);
}
.sci-fi-heading {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 1.5rem;
}
.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, #ffffff 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.glow { text-shadow: var(--glow-primary); }
.sci-fi-subheading {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* Search components (new classes) */
.search-wrapper { 
  position: relative; 
  max-width: 100%;
}

.search-glow { 
  position: absolute; 
  inset: -2px; 
  border-radius: 50px; 
  pointer-events: none; 
}

.sci-fi-search {
  width: 100%; 
  padding: 1rem 1.5rem; 
  border-radius: 50px; 
  border: 2px solid rgba(0, 246, 255, 0.3);
  background: rgba(10, 10, 31, 0.5); 
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif; 
  font-size: 1.1rem; 
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.sci-fi-search:focus { 
  outline: none; 
  border-color: var(--primary); 
  box-shadow: var(--glow-primary); 
}

.sci-fi-search::placeholder { 
  color: var(--text-tertiary); 
  opacity: 0.7;
}

.search-icon {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color 0.3s ease;
}

.sci-fi-search:focus + .search-icon {
  color: var(--primary);
}
/* typing/searching states toggled by JS */
.sci-fi-search.typing { animation: typingFocus 1.4s ease-in-out infinite; }
.search-container.searching { animation: pulse 1.6s ease-out infinite; }

/* Tool list and cards (new sci-fi classes) */
.sci-fi-toollist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 2rem;
}
.sci-fi-tool-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 246, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.sci-fi-tool-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.1) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.4s ease;
}
.sci-fi-tool-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 15px rgba(0,246,255,0.2); border-color: var(--primary); }
.sci-fi-tool-card:hover::before { opacity: 1; }
.sci-fi-tool-card a { display: block; text-decoration: none; position: relative; z-index: 1; }
.sci-fi-tool-card a h2 { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--primary); margin: 18px 0 12px; line-height: 1.4; transition: all 0.3s ease; }
.sci-fi-tool-card:hover a h2 { text-shadow: var(--glow-primary); }
.sci-fi-tool-card a p { font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
/* appear animation hook used by JS */
.sci-fi-tool-card.appear { animation: popFade 0.35s ease both; }

/* Image box (new sci-fi class) */
.sci-fi-imgbox { display: flex; align-items: center; gap: 18px; }
.sci-fi-imgbox img { max-width: 100%; height: auto; filter: drop-shadow(0 0 5px rgba(0, 246, 255, 0.5)); transition: all 0.3s ease; }
.sci-fi-tool-card:hover .sci-fi-imgbox img { transform: scale(1.08); }

/* No results glitch effect */
.sci-fi-no-results { color: var(--text-secondary); text-align: center; margin-top: 10px; opacity: 0.9; }
.sci-fi-no-results.glitch { position: relative; animation: glitchShift 1s infinite; }

/* Keyframes for new effects */
@keyframes popFade { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes glitchShift {
  0% { text-shadow: 2px 0 var(--accent), -2px 0 var(--primary); }
  20% { text-shadow: -2px 0 var(--accent), 2px 0 var(--primary); }
  40% { text-shadow: 1px 0 var(--accent), -1px 0 var(--primary); }
  60% { text-shadow: -1px 0 var(--accent), 1px 0 var(--primary); }
  80% { text-shadow: 3px 0 var(--accent), -3px 0 var(--primary); }
  100% { text-shadow: 0 0 transparent; }
}
@keyframes typingFocus {
  0% { box-shadow: 0 0 0 0 rgba(0, 246, 255, 0.4); }
  50% { box-shadow: 0 0 18px 4px rgba(0, 246, 255, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(0, 246, 255, 0.4); }
}

/* Responsive rules for new sci-fi classes - Updated */
@media (max-width: 1068px) {
  .sci-fi-toollist { 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 18px;
  }
}

@media (max-width: 710px) {
  .sci-fi-toollist { 
    padding: 1rem; 
    gap: 16px; 
  }
  .sci-fi-subheading { 
    font-size: clamp(1rem, 2vw, 1.2rem); 
  }
}

@media (max-width: 568px) {
  .sci-fi-search { 
    padding: 0.8rem 1.2rem; 
    font-size: 1rem; 
  }
  .sci-fi-tool-card { 
    padding: 18px; 
  }
  .sci-fi-tool-card a h2 { 
    font-size: 1.1rem; 
  }
  .sci-fi-tool-card a p { 
    font-size: 0.9rem; 
  }
  .sci-fi-dropdown { 
    padding: 12px; 
  }
  .sci-fi-dropdown ul li a { 
    padding: 8px 16px; 
    font-size: 0.85rem; 
  }
}