/* ==========================================================================
   HARSHGURUJI — ENHANCED HOMEPAGE DESIGN SYSTEM
   Supplemental CSS for Ecosystem Showcase, Store Preview, Games & Tools Hub
   Preserves all existing style.css rules while providing modern UI/UX enhancements.
   ========================================================================== */

:root {
  --hg-bg: #000000;
  --hg-surface: #0a0a0f;
  --hg-surface-card: #0f121a;
  --hg-surface-hover: #161b26;
  --hg-border: rgba(255, 255, 255, 0.08);
  --hg-border-glow: rgba(255, 107, 74, 0.35);
  --hg-accent-orange: #ff6b4a;
  --hg-accent-peach: #feb47b;
  --hg-accent-green: #54b247;
  --hg-accent-cyan: #06b6d4;
  --hg-accent-purple: #9d4edd;
  --hg-text-primary: #ffffff;
  --hg-text-secondary: #a1a1aa;
  --hg-text-muted: #71717a;
  --hg-radius-md: 14px;
  --hg-radius-lg: 20px;
  --hg-radius-xl: 28px;
  --hg-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --hg-shadow-hover: 0 20px 40px -15px rgba(255, 107, 74, 0.25);
  --hg-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════
   1. "WHAT IS HARSHGURUJI?" SECTION
   ═══════════════════════════════════════════════════════════ */
.hg-about-overview {
  padding: 5rem 0 3rem;
  position: relative;
}

.hg-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hg-overview-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hg-overview-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hg-overview-text p {
  color: var(--hg-text-secondary);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.hg-overview-pillars {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 600px) {
  .hg-overview-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hg-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--hg-surface-card);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-md);
  transition: var(--hg-transition);
}

.hg-pillar-item:hover {
  border-color: rgba(255, 107, 74, 0.4);
  transform: translateY(-2px);
  background: var(--hg-surface-hover);
}

.hg-pillar-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hg-pillar-info h4 {
  font-size: 1.02rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.hg-pillar-info p {
  font-size: 0.88rem;
  color: var(--hg-text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

/* Overview Visual Card */
.hg-overview-card {
  background: linear-gradient(145deg, rgba(20, 24, 36, 0.8), rgba(12, 14, 22, 0.9));
  border: 1px solid rgba(255, 107, 74, 0.25);
  border-radius: var(--hg-radius-xl);
  padding: 2.25rem;
  box-shadow: var(--hg-shadow-card), 0 0 30px rgba(255, 107, 74, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.hg-overview-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ff6b4a, #feb47b, #9d4edd);
}

.hg-ov-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.hg-ov-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hg-ov-header h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.hg-ov-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--hg-accent-peach);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hg-ov-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.hg-ov-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--hg-text-secondary);
}

.hg-ov-list-item svg {
  color: var(--hg-accent-green);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   2. ECOSYSTEM OVERVIEW CARDS
   ═══════════════════════════════════════════════════════════ */
.hg-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .hg-ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hg-ecosystem-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hg-eco-card {
  background: var(--hg-surface-card);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--hg-transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.hg-eco-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: transparent;
  transition: var(--hg-transition);
}

.hg-eco-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 74, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 107, 74, 0.15);
  background: var(--hg-surface-hover);
}

.hg-eco-card:hover::before {
  background: linear-gradient(90deg, var(--hg-accent-orange), var(--hg-accent-peach));
}

.hg-eco-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
  transition: var(--hg-transition);
}

.hg-eco-card:hover .hg-eco-icon-wrap {
  transform: scale(1.08) rotate(3deg);
  background: rgba(255, 107, 74, 0.15);
  border-color: rgba(255, 107, 74, 0.4);
}

.hg-eco-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hg-eco-card p {
  font-size: 0.9rem;
  color: var(--hg-text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.hg-eco-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hg-accent-peach);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--hg-transition);
  margin-top: auto;
}

.hg-eco-card:hover .hg-eco-link {
  color: #ffffff;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════
   3. STORE PREVIEW SHOWCASE
   ═══════════════════════════════════════════════════════════ */
.hg-store-preview-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hg-store-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hg-store-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hg-store-item-card {
  background: var(--hg-surface-card);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--hg-transition);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.hg-store-item-card:hover {
  transform: translateY(-6px);
  border-color: rgba(84, 178, 71, 0.45);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(84, 178, 71, 0.15);
  background: var(--hg-surface-hover);
}

.hg-store-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hg-store-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hg-store-tag {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(84, 178, 71, 0.15);
  color: #72cc64;
  border: 1px solid rgba(84, 178, 71, 0.3);
}

.hg-store-item-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.hg-store-author {
  font-size: 0.82rem;
  color: var(--hg-accent-peach);
  margin-bottom: 10px;
  font-weight: 500;
}

.hg-store-desc {
  font-size: 0.88rem;
  color: var(--hg-text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.hg-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  transition: var(--hg-transition);
}

.hg-store-item-card:hover .hg-store-btn {
  background: var(--hg-accent-green);
  border-color: var(--hg-accent-green);
  box-shadow: 0 4px 14px rgba(84, 178, 71, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   4. GAMES & TOOLS SHOWCASE
   ═══════════════════════════════════════════════════════════ */
.hg-tools-pill-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .hg-tools-pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .hg-tools-pill-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hg-tool-pill-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.25rem 1.4rem;
  background: var(--hg-surface-card);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--hg-transition);
}

.hg-tool-pill-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  background: var(--hg-surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(6, 182, 212, 0.15);
}

.hg-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hg-tool-details h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.hg-tool-details p {
  font-size: 0.84rem;
  color: var(--hg-text-secondary);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   5. QUICK ACCESS TILES
   ═══════════════════════════════════════════════════════════ */
.hg-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hg-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hg-quick-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.hg-quick-tile {
  background: var(--hg-surface-card);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-md);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: var(--hg-transition);
}

.hg-quick-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 74, 0.5);
  background: var(--hg-surface-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 107, 74, 0.2);
}

.hg-quick-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.hg-quick-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   6. WHY CHOOSE HARSHGURUJI CARDS
   ═══════════════════════════════════════════════════════════ */
.hg-why-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .hg-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hg-why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hg-why-card {
  background: var(--hg-surface-card);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 1.75rem;
  transition: var(--hg-transition);
}

.hg-why-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  background: var(--hg-surface-hover);
}

.hg-why-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hg-why-card h4 {
  font-size: 1.12rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.hg-why-card p {
  font-size: 0.9rem;
  color: var(--hg-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   7. FINAL HOMEPAGE CTA BANNER
   ═══════════════════════════════════════════════════════════ */
.hg-final-cta-section {
  padding: 4rem 0 5rem;
}

.hg-final-cta-box {
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 74, 0.18) 0%, rgba(15, 18, 26, 0.95) 75%);
  border: 1px solid rgba(255, 107, 74, 0.35);
  border-radius: var(--hg-radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 107, 74, 0.15);
}

.hg-final-cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hg-final-cta-box p {
  color: var(--hg-text-secondary);
  font-size: 1.12rem;
  max-width: 650px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hg-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   8. RESPONSIVE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hg-about-overview {
    padding: 3.5rem 0 2rem;
  }
  .hg-overview-card {
    padding: 1.75rem 1.25rem;
  }
  .hg-final-cta-box {
    padding: 2.5rem 1.25rem;
  }
  .hg-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hg-quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hg-quick-tile {
    padding: 1rem 0.5rem;
  }
  .hg-quick-label {
    font-size: 0.8rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hg-eco-card,
  .hg-store-item-card,
  .hg-tool-pill-card,
  .hg-quick-tile,
  .hg-pillar-item {
    transition: none !important;
    transform: none !important;
  }
}
