/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  gap: 30px;
  width: 100%;
  background: linear-gradient(90deg, rgb(0, 153, 255), rgb(0, 153, 255));
  padding: 12px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-family: 'poppins', sans-serif;
}

/* Desktop categories */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  flex-grow: 0.7;
}

.cat {
  position: relative;
  white-space: nowrap; /* prevents text breaking inside */
}

.cat-btn {
  color: white;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  font-family: 'poppins', sans-serif;
  font-size: 1.1rem;
}

.cat-btn:hover {
  background: linear-gradient(90deg, rgb(120, 139, 187), rgb(114, 117, 175));
}

/* Dropdowns */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #eaeaec;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 10001;
  font-family: Arial, Helvetica, sans-serif;
}

.dropdown.show {
  opacity: 1;
  max-height: 600px;
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  color: black;
  text-decoration: none;
  font-weight: 600;
}

.dropdown a:hover {
  background: linear-gradient(90deg, skyblue, skyblue);
}

/* ===== MOBILE HAMBURGER (Tools) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 26px;
  height: 3px;
  background: #e3f2fd;
  border-radius: 2px;
}

/* Mobile full-screen menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  z-index: 10002;
  animation: slideDown 0.3s ease forwards;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .cat-btn {
  display: block;
  color: white;
  background: rgb(0, 153, 255);
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 6px;
}

.mobile-menu .dropdown {
  position: static;
  box-shadow: none;
  border-radius: 0;
  opacity: 1;
  max-height: none;
  pointer-events: auto;
}

.mobile-menu .dropdown a {
  padding-left: 28px;
  background: #fff;
}

/* Animation */
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .categories { display: none; }
  .hamburger { display: flex; margin-right: 12px; }
}

/* ===== DESKTOP HAMBURGER (Footer Links) ===== */
.desktop-hamburger {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-right: 40px;   /* 🔹 nudges slightly left */
}

.desktop-hamburger .hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.desktop-hamburger .hamburger-icon div {
  width: 26px;
  height: 3px;
  background: #ffca28;  /* yellow bars */
  border-radius: 2px;
}

.desktop-hamburger .hamburger-label {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 6px;
  font-family: 'Poppins', sans-serif;
}

/* Footer dropdown links */
.desktop-hamburger .footer-dropdown {
  display: none;
  position: absolute;
  top: 110%; /* below hamburger */
  right: 0;
  background: #e3e3e4;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px 0;
  z-index: 9999;
  min-width: 160px;
transition: all 0.25s ease;  /* 🔹 smooth animation */
  transform: translateX(0);    /* initial position */
}
.desktop-hamburger:hover .footer-dropdown {
  display: block;
  transform: translateX(28px);  /* 🔹 moves slightly right on hover */
}
.desktop-hamburger .footer-dropdown a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.desktop-hamburger .footer-dropdown a:hover {
  background: skyblue;
}

/* Show dropdown on hover */
@media (min-width: 769px) {
  .desktop-hamburger:hover .footer-dropdown {
    display: block;
  }
}

/* Hide desktop hamburger on mobile */
@media (max-width: 768px) {
  .desktop-hamburger {
    display: none;
  }
}

/* ===== INTRO ===== */
.intro {
  text-align: center;
  padding: 40px 20px;
}

.intro h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1565c0;
}

.intro p {
  font-size: 1.3rem;
  color: #555;
  max-width: 700px;
  margin: 15px auto 0;
  line-height: 1.6;
}

/* ===== POPULAR TOOLS ===== */
.popular-tools-section {
  padding: 40px 20px;
  text-align: center;
}

.popular-tools-section h2 {
  font-size: 2.0rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #1565c0;
}

.popular-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  background: #4577be;
  box-shadow: 0 2px 6px rgba(128, 206, 50, 0.05);
  transition: all 0.25s ease;
  color: black;
}

.tool-card i {
  font-size: 1.9rem;
  color: #dc20c9;
  margin-bottom: 6px;
}

.tool-card span {
  font-size: 1.15rem;
  color: white;
  font-weight: 700;
  font-family: 'poppins', sans-serif;
}

.tool-card:hover {
  background: linear-gradient(90deg, #4577be, #4577be);
  transform: translateY(-4px);
}

/* ===== ADSENSE ===== */
.ads-block {
  margin: 20px auto;
  text-align: center;
}

footer {
  text-align: center;
  padding: 15px;
  width: 100%;
}

.footer-ad {
  margin: 20px auto;
  text-align: center;
}

/* Hide sidebar ads on mobile */
@media (max-width: 1024px) {
  .side-ad { display: none; }
}

/* ===== ADSENSE SPECIAL ===== */
.inline-ad {
  margin: 20px auto;
  text-align: center;
}

.side-ad {
  position: fixed;
  top: 120px;
  width: 160px;
  height: auto;
  z-index: 9998;
}

.left-ad { left: 10px; }
.right-ad { right: 10px; }

@media (max-width: 1024px) {
  .side-ad { display: none; }
}

/* ==== Section Styling ==== */
.features-section,
.faq-section {
  max-width: 1000px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  animation: fadeInUp 1s ease-in-out;
}

/* ==== Headings ==== */
.features-section h2,
.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #333;
  font-weight: 700;
  position: relative;
}

.features-section h2::after,
.faq-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff512f, #dd2476);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ==== Features Grid ==== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.feature {
  flex: 1 1 220px;
  max-width: 280px;
  background: #e3e3e4;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.05rem;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  background: rgb(187, 224, 241);
}

/* ==== FAQ Items ==== */
.faq-item {
  margin: 20px auto;
  padding: 15px 20px;
  border-left: 4px solid #dd2476;
  background: #e3e3e4;
  text-align: left;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 1.05rem;
}

.faq-item:hover {
  background: rgb(187, 224, 241);
  transform: translateX(5px);
}

/* ==== Simple Animation ==== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
