/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --secondary: #fbbf24;
  --orange: #f97316;
  --purple: #a855f7;
  --blue: #3b82f6;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
.header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon {
  font-size: 28px;
}

.nav {
  display: flex;
  gap: 25px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  transition: color 0.2s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-premium {
  background: linear-gradient(135deg, var(--secondary), var(--orange));
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s;
}

.btn-premium:hover {
  transform: scale(1.05);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
}

/* AD BANNERS */
.ad-banner {
  background: var(--bg-alt);
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.ad-top {
  margin-top: 0;
}

.ad-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.ad-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ad-placeholder {
  background: #e5e7eb;
  padding: 40px 20px;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 14px;
  border: 2px dashed #d1d5db;
}

.ad-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  padding: 80px 20px;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.highlight {
  color: var(--primary);
}

.hero-sub {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 35px;
}

.search-bar {
  max-width: 650px;
  margin: 0 auto 30px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  outline: none;
  transition: border 0.2s;
  font-family: 'Poppins', sans-serif;
}

.search-bar input:focus {
  border-color: var(--primary);
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 5px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: var(--bg-alt);
}

.search-result-item:last-child {
  border-bottom: none;
}

.quick-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-btn {
  background: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

/* SECTION */
.section {
  padding: 60px 20px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.alt-bg {
  background: var(--bg-alt);
}

/* TOOLS GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.tool-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.tool-info p {
  font-size: 14px;
  color: var(--text-light);
}

.ad-inline-grid {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* CATEGORY SECTIONS */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.category-header h2 {
  font-size: 28px;
  font-weight: 700;
}

.view-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s;
}

.view-all:hover {
  transform: translateX(5px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.cat-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  border: 2px solid transparent;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cat-card.green:hover { border-color: var(--primary); }
.cat-card.orange:hover { border-color: var(--orange); }
.cat-card.purple:hover { border-color: var(--purple); }
.cat-card.blue:hover { border-color: var(--blue); }
.cat-card.teal:hover { border-color: #0891b2; }

.ad-banner-section {
  margin-top: 30px;
  background: var(--bg-alt);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

/* SEO SECTION */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.seo-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-left: 4px solid var(--primary);
}

.seo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.seo-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.seo-tag.india { background: var(--blue); }
.seo-tag.electronics { background: var(--purple); }
.seo-tag.pdf { background: var(--orange); }

.seo-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.seo-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 12px;
}

.stat-num {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* PREMIUM CTA */
.premium-cta {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.premium-box {
  text-align: center;
  padding: 40px;
}

.premium-box h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
}

.premium-box p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 25px;
}

.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s;
}

.btn-cta:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* FOOTER */
.footer {
  background: #1f2937;
  color: #fff;
  padding: 50px 20px 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand p {
  color: #9ca3af;
  font-size: 14px;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 14px;
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 10px 0;
  z-index: 1000;
}

.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 20px;
  color: var(--text-light);
  transition: color 0.2s;
}

.mob-nav-item span {
  font-size: 11px;
  font-weight: 500;
}

.mob-nav-item.active,
.mob-nav-item:hover {
  color: var(--primary);
}

.mob-nav-item.upload-btn {
  font-size: 24px;
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .tools-grid,
  .category-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mobile-nav {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  .section {
    padding: 40px 15px;
  }

  .quick-btns {
    flex-direction: column;
  }

  .quick-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 24px;
  }

  .stat-num {
    font-size: 36px;
  }
}
