/* ✅ GLOBAL STYLING */

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  margin: 0;
}

/* ✅ NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #0f172a;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* ✅ HERO SECTION */

.hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

/* ⭐ FEATURED TOOL */

.featured-tool {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  margin: 40px auto 10px;
  width: 90%;
  max-width: 1100px;
  border-radius: 18px;
  padding: 35px 25px;
  color: white;
  text-align: center;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

/* ⭐ Badge */

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ✅ CONTAINER */

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ✅ TOOL CATEGORIES */

.categories {
  margin-top: 35px;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.category-card {
  background: white;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.category-card.active {
  background: #2563eb;
  color: white;
}

/* 🔍 SEARCH */

.search-section {
  margin-top: 15px;
  text-align: center;
}

#searchInput {
  width: 100%;
  max-width: 400px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 14px;
  outline: none;
  transition: 0.25s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#searchInput:focus {
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* 🔢 TOOLS STATUS */

.tools-status {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 10px;
}

/* ✅ TOOLS GRID */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin: 35px 0;
}

/* ✅ TOOL CARD */

.tool-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.tool-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* 🏷 TOOL TAGS */

.tool-tags {
  margin-top: 10px;
  margin-bottom: 12px;
}

.tool-tag {
  display: inline-block;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  margin: 4px 4px 0 0;
}

/* ❌ EMPTY STATE */

.empty-state {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  padding: 20px;
}

/* ✅ BUTTON */

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 15px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.btn:hover {
  background: #1d4ed8;
}

/* ========================= */
/* ✅ MODAL STYLING */
/* ========================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-box {
  background: white;
  width: 90%;
  max-width: 420px;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: modalPop 0.25s ease;
  position: relative;
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #64748b;
}

.modal-close:hover {
  color: #ef4444;
}

.modal-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ========================= */
/* ✅ TOOL DETAIL PAGE */
/* ========================= */

.tool-detail {
  margin-top: 40px;
}

.tool-detail-card {
  background: white;
  padding: 35px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.detail-icon {
  width: 70px;
  margin-bottom: 15px;
}

.detail-description {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.detail-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-btn {
  background: #e2e8f0;
  color: #0f172a;
}

.secondary-btn:hover {
  background: #cbd5f5;
}

/* ========================= */
/* ✅ ABOUT PAGE */
/* ========================= */

.about-section {
  margin-top: 40px;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

/* ======================= */
/* ✅ CONTACT PAGE */
/* ======================= */

.contact-section {
  margin-top: 40px;
  text-align: center;
}

.contact-card {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  max-width: 500px;
  margin: auto;
}

.contact-form {
  margin-top: 35px;
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
}

/* ✅ FOOTER */

.footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 25px 15px;
  margin-top: 60px;
}
