/* ==========================================================================
   Bhima Apps - Modern Obsidian & Sapphire Indigo Design System
   ========================================================================== */

:root, [data-theme="light"] {
  /* Clean Pearl & Royal Indigo Light Mode (DEFAULT) */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.95);
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(79, 70, 229, 0.35);
  --border-glow-hover: rgba(99, 102, 241, 0.65);
  
  /* Primary & Accent Colors */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent-violet: #7c3aed;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  
  /* Text Tokens */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  /* Shadows & Glows */
  --glow-primary: 0 0 25px rgba(79, 70, 229, 0.15);
  --glow-violet: 0 0 25px rgba(124, 58, 237, 0.15);
  --glow-cyan: 0 0 25px rgba(2, 132, 199, 0.15);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 16px 32px -8px rgba(79, 70, 229, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  
  /* Layout & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  /* Obsidian & Sapphire Indigo Dark Mode */
  --bg-main: #070a12;
  --bg-surface: #0e1424;
  --bg-surface-elevated: #151e36;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-glass-card: rgba(21, 30, 54, 0.6);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --border-glow-hover: rgba(139, 92, 246, 0.7);
  
  /* Primary & Accent Glows */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent-violet: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  /* Text Tokens */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Shadows & Glows */
  --glow-primary: 0 0 35px rgba(99, 102, 241, 0.25);
  --glow-violet: 0 0 35px rgba(139, 92, 246, 0.3);
  --glow-cyan: 0 0 35px rgba(6, 182, 212, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 20px 40px -15px rgba(99, 102, 241, 0.35);
  color-scheme: dark;
}


*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Atmospheric Background Glows */
.ambient-glow-1 {
  position: fixed;
  top: -150px;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(7, 10, 18, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

.ambient-glow-2 {
  position: fixed;
  bottom: 10%;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(7, 10, 18, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Navigation Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.05rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--border-glow);
  color: var(--primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--glow-primary);
}

[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #d97706;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* Button Component */
.btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  background: var(--bg-surface);
  transform: translateY(-2px);
}

.btn-playstore {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.btn-playstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

/* Hero Section */
.hero {
  padding: 5.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  color: #c7d2fe;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.hero-badge i {
  color: #818cf8;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #ffffff 40%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filter Bar */
.filter-section {
  margin-bottom: 2.5rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.5rem 0.75rem;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  min-width: 240px;
}

.search-box i {
  color: var(--text-dim);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-dim);
}

/* App Showcase Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 5rem;
}

.app-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
  opacity: 0;
  transition: var(--transition);
}

.app-card:hover {
  border-color: var(--border-glow-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.app-card-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  transition: var(--transition);
  object-fit: cover;
}

.app-card:hover .app-card-icon {
  transform: scale(1.05);
}

.app-card-title-group {
  flex: 1;
  min-width: 0;
}

.app-category,
.app-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.app-title,
.app-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-title a,
.app-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.app-title a:hover,
.app-card-title a:hover {
  color: var(--primary);
}

.app-desc,
.app-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.app-meta,
.app-card-rating-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.app-rating,
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #b45309;
  border-radius: var(--radius-full);
}

.app-rating i,
.rating-pill i {
  color: #f59e0b;
}

.app-downloads {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  border-radius: var(--radius-full);
}

.app-downloads i {
  color: var(--primary);
}

[data-theme="dark"] .app-rating,
[data-theme="dark"] .rating-pill {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

[data-theme="dark"] .app-downloads {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

[data-theme="dark"] .app-downloads i {
  color: #a5b4fc;
}

[data-theme="dark"] .app-category,
[data-theme="dark"] .app-card-badge {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.app-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.app-card-btn-view {
  flex: 1;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

.app-card-btn-play {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Screenshot Gallery & Carousel */
.screenshot-gallery-wrapper {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 3.5rem;
  width: 100%;
}

.screenshot-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.screenshot-gallery-header h2 {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.screenshot-carousel-container {
  position: relative;
  width: 100%;
}

.screenshot-scroll-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.25rem;
  overflow-x: auto;
  width: 100%;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  -webkit-overflow-scrolling: touch;
}

.screenshot-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.screenshot-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-full);
}

.screenshot-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}

.screenshot-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.screenshot-item {
  flex: 0 0 auto;
  height: 400px;
  width: auto;
  max-width: 90vw;
  display: block;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  object-fit: cover;
  object-position: center;
  background: rgba(14, 20, 36, 0.6);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.screenshot-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

/* Scroll Arrows Overlay */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 20, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
}

.scroll-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.prev-arrow {
  left: -24px;
}

.next-arrow {
  right: -24px;
}

@media (max-width: 992px) {
  .screenshot-item {
    height: 340px;
  }
  .prev-arrow {
    left: 4px;
  }
  .next-arrow {
    right: 4px;
  }
}

@media (max-width: 768px) {
  .screenshot-gallery-wrapper {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
  }
  
  .screenshot-item {
    height: 280px;
  }
  
  .scroll-arrow {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  
  .prev-arrow {
    left: 2px;
  }
  
  .next-arrow {
    right: 2px;
  }
}


/* Feature Highlights Grid */
.features-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 20, 36, 0.4);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-box {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #818cf8;
  margin-bottom: 1.25rem;
}

.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-question i {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.5rem 1.25rem;
}

/* Footer */
.footer {
  background: #04070d;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--text-main);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title { font-size: 2.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: 2.15rem; }
  .apps-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Light Mode Overrides & High-Contrast Adjustments
   ========================================================================== */
[data-theme="light"] {
  background-color: var(--bg-main);
  color: var(--text-main);
}

[data-theme="light"] body {
  background-color: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6 {
  color: #0f172a;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .header .logo-text {
  background: linear-gradient(135deg, #0f172a 30%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0f172a;
}

[data-theme="light"] .hero-badge {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
  color: #4338ca;
}

[data-theme="light"] .hero-title {
  color: #0f172a;
}

[data-theme="light"] .hero-title-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-desc {
  color: #475569;
}

[data-theme="light"] .stat-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .stat-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
  transform: translateY(-4px);
}

[data-theme="light"] .stat-value {
  background: linear-gradient(135deg, #0f172a 30%, #4f46e5 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800;
}

[data-theme="light"] .stat-label {
  color: #475569 !important;
  font-weight: 600;
}

[data-theme="light"] .search-box {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


[data-theme="light"] .search-box i {
  color: #6366f1;
}

[data-theme="light"] .search-box input {
  color: #0f172a;
}

[data-theme="light"] .search-box input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .filter-btn {
  color: #475569;
}

[data-theme="light"] .filter-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

[data-theme="light"] .app-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .app-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 16px 32px -8px rgba(79, 70, 229, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .app-category,
[data-theme="light"] .app-card-badge {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  color: #4338ca;
}

[data-theme="light"] .app-title,
[data-theme="light"] .app-card-title {
  color: #0f172a;
}

[data-theme="light"] .app-title a,
[data-theme="light"] .app-card-title a {
  color: #0f172a;
}

[data-theme="light"] .app-title a:hover,
[data-theme="light"] .app-card-title a:hover {
  color: #4f46e5;
}

[data-theme="light"] .app-desc,
[data-theme="light"] .app-card-desc {
  color: #475569;
}

[data-theme="light"] .app-rating,
[data-theme="light"] .rating-pill {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #b45309;
}

[data-theme="light"] .app-downloads {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  color: #4338ca;
}

[data-theme="light"] .app-downloads i {
  color: #4f46e5;
}

/* Buttons In Light Mode */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-secondary:hover {
  background: #f1f5f9;
  color: #4f46e5;
  border-color: #4f46e5;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.18);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-playstore {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.35);
}

[data-theme="light"] .btn-playstore:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.5);
  transform: translateY(-2px);
}


[data-theme="light"] .features-section {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .feature-box {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .feature-box:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.15);
}

[data-theme="light"] .feature-icon-wrapper {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
  color: #4f46e5;
}

[data-theme="light"] .feature-box h3 {
  color: #0f172a;
}

[data-theme="light"] .feature-box p {
  color: #475569;
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .faq-question {
  color: #0f172a;
}

[data-theme="light"] .faq-question i {
  color: #4f46e5;
}

[data-theme="light"] .faq-answer p {
  color: #475569;
}

[data-theme="light"] .screenshot-gallery-wrapper {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .screenshot-gallery-header h2 {
  color: #0f172a;
}

[data-theme="light"] .screenshot-item {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  background: #e2e8f0;
}

[data-theme="light"] .scroll-arrow {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .scroll-arrow:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

/* App Detail Page Light Mode Adjustments */
[data-theme="light"] .app-detail-tagline {
  color: #475569 !important;
}

[data-theme="light"] .app-detail-meta-row {
  color: #475569 !important;
}

[data-theme="light"] .specs-matrix-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .spec-label {
  color: #64748b !important;
}

[data-theme="light"] .spec-val-pkg {
  color: #4338ca !important;
}

[data-theme="light"] .spec-val-main {
  color: #0f172a !important;
}

[data-theme="light"] .spec-val-accent {
  color: #059669 !important;
}

[data-theme="light"] .about-desc-text {
  color: #334155 !important;
}

/* Legal & Compliance Pages in Light Mode */
[data-theme="light"] .legal-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .legal-card p,
[data-theme="light"] .legal-card li {
  color: #334155;
}

[data-theme="light"] .legal-card h2,
[data-theme="light"] .legal-card h3 {
  color: #0f172a;
}

[data-theme="light"] .form-input-box {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-input-box:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

[data-theme="light"] .ambient-glow-1 {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
}

[data-theme="light"] .ambient-glow-2 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, rgba(248, 250, 252, 0) 70%);
}

[data-theme="light"] .footer {
  background: #0f172a;
  color: #cbd5e1;
}

[data-theme="light"] .footer .logo-text {
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .footer h4,
[data-theme="light"] .footer h5,
[data-theme="light"] .footer .footer-col h4,
[data-theme="light"] .footer .footer-col h5 {
  color: #f8fafc;
}

[data-theme="light"] .footer .footer-brand p,
[data-theme="light"] .footer .footer-desc {
  color: #94a3b8;
}

[data-theme="light"] .footer .footer-links a {
  color: #94a3b8;
}

[data-theme="light"] .footer .footer-links a:hover {
  color: #ffffff;
}

[data-theme="light"] .footer .social-links a {
  color: #94a3b8;
}

[data-theme="light"] .footer .social-links a:hover {
  color: #ffffff;
}

[data-theme="light"] .footer .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #64748b;
}

[data-theme="light"] .footer .footer-bottom a {
  color: #94a3b8;
}

[data-theme="light"] .footer .footer-bottom a:hover {
  color: #ffffff;
}

