:root {
  --primary-color: #ff4b4b;
  --text-color: #222;
  --bg-light: #f9f9f9;
  --bg-white: #fff;
  --border-color: #eee;
}


/* ✅ Global Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* 🌈 BODY BACKGROUND */
body {
  justify-content: center;
  align-items: flex-start; /* keep normal vertical scroll */
  flex-direction: column;
  background: linear-gradient(135deg, #f8fbff 0%, #eef3ff 50%, #ffffff 100%); 
  background-attachment: fixed; 
  color: var(--text-color);
}


.page-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}



body, input, button, select, textarea {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}



/* ✅ HEADER */
header {
    margin-top: 10px;
  background: var(--bg-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  white-space: nowrap;
}

.logo span {
  color: var(--primary-color);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

/* ✅ HERO SECTION */
.hero {
  text-align: center;
  padding: 20px 10px 10px;
  margin-top: 0;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero p {
  font-size: 0.95rem;
  color: #555;
  max-width: 650px;
  margin: 0 ;
}

/* ✅ FILTER BUTTONS */
.filter-buttons {
  text-align: center;
  margin: 0; 
  padding: 0; 
}

.filter-buttons button {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 18px;
  border-radius: 20px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 15px;
}

.filter-buttons button.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.filter-buttons button:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* ✅ TOOLS GRID */
main {
  max-width: 1200px;
  margin-top: 0 auto;
  padding: 0 20px 40px;
}

.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 0; /* remove extra top space */
}

.tool-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-card h3 {
  margin: 10px 0 6px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}

/* ✅ FOOTER */
footer {
  background: var(--bg-white);
  padding: 25px 5%;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: #666;
  font-size: 14px;
}

/* ✅ BREADCRUMB */
.breadcrumb {
  width: 100%;
  display: block;
  text-align: left;
  margin: 10px 0 20px;
  font-size: 0.85rem;
  color: #777;
  padding-left: 5%;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
  color: #999;
}

/* ✅ RESPONSIVE DESIGN */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  nav {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 0; /* remove extra space */
  padding: 0; /* optional */}

}

@media (max-width: 480px) {
  .filter-buttons button {
    padding: 0;
    font-size: 14px;
  }

  .tools-container {
    grid-template-columns: 1fr; /* single column on small screens */
  }

  .tool-card h3 {
    font-size: 1rem;
  }

  .hero {
    padding: 20px 10px 5px;
  }
}

/* ✅ Extra Fix — Remove unwanted top space globally */
body, header, .hero, main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}



/* ---------------------------- */
/*         HEADER CSS           */
/* ---------------------------- */

.site-header {
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-main {
  background: linear-gradient(45deg, #ff4b4b, #ff8a4b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-heart {
  font-size: 28px;
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-menu a {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  position: relative;
  transition: 0.3s ease;
}

.nav-menu a:hover {
  color: #ff4b4b;
}

.nav-menu a::after {
  content: "";
  width: 0%;
  height: 2px;
  position: absolute;
  bottom: -4px;
  left: 0;
  background-color: #ff4b4b;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-menu {
    margin-top: 12px;
  }
}


/* ---------------------------- */
/*         FOOTER CSS           */
/* ---------------------------- */

.site-footer {
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e6e6e6;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.site-footer p {
  color: #555;
  font-size: 15px;
  margin: 5px 0;
}

.dev-credit strong {
  background: linear-gradient(45deg, #ff4b4b, #ff8a4b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
