 /* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Body === */
body {
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.4s, color 0.4s;
}

/* === Nav Styling === */
nav {
  background: linear-gradient(90deg, #4f46e5, #9333ea, #ec4899);
  color: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
}

/* === Nav Container === */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

/* === Logo === */
.logo a {
  font-size: 1.6em;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

/* === Menu Icon === */
.menu-icon {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* === Nav Links === */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links li {
  position: relative;
}

/* === Links === */
.nav-links a,
.nav-links button.dropdown-toggle {
  color: white;
  background: none;
  border: none;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links button.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* === Dropdown === */
.dropdown {
  display: none;
  position: absolute;
  background: #6d28d9;
  top: 100%;
  left: 0;
  min-width: 160px;
  border-radius: 6px;
  padding: 5px 0;
  z-index: 999;
}

.nav-links li:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px;
  color: white;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* === Dark Mode Toggle === */
.dark-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #9333ea, #4f46e5);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.dark-toggle-btn:hover {
  background: linear-gradient(90deg, #ec4899, #9333ea);
}

body.dark-mode {
  background: #111827;
  color: #f3f4f6;
}

body.dark-mode nav {
  background: linear-gradient(90deg, #1e1b4b, #312e81, #581c87);
}

body.dark-mode .dropdown {
  background: #312e81;
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #6d28d9;
    margin-top: 10px;
    border-radius: 8px;
    padding: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .dropdown {
    position: static;
    background: #5b21b6;
  }

  .nav-links li:hover .dropdown {
    display: none;
  }

  .nav-links li.open .dropdown {
    display: block;
  }
}

/* Navbar Responsivenes */
/* Hero Section */
/* HERO SECTION BASE */
.hero {
  background: linear-gradient(135deg, #4f46e5, #9333ea, #ec4899);
  color: white;
  padding: 100px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* CONTENT */
.hero h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  transition: transform 0.5s ease, color 0.3s ease;
}

.hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  transition: opacity 0.5s ease;
}

/* CTA Button */
.cta-button {
  background: white;
  color: #4f46e5;
  padding: 14px 30px;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: #ec4899;
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Entrance Animation */
.fade-in {
  animation: fadeIn 1.2s ease-in-out forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 1s ease-in-out forwards;
  opacity: 0;
}

/* Keyframes */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }
}

}

/* Hero Section */

/* Grid Start */
.section-title {
  text-align: center;
  font-size: 2em;
  margin: 50px 0 20px;
  color: #4f46e5;
  animation: fadeIn 1.2s ease-in-out;
}

.tool-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.tool-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  transform: scale(1);
  animation: slideUp 1s ease-in-out forwards;
  opacity: 0;

  /* Add Flexbox */
  display: flex;
  flex-direction: column;
}


.tool-card h3 {
  font-size: 1.4em;
  color: #9333ea;
  margin-bottom: 10px;
}

.tool-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 20px;
}

.tool-card a {
  display: inline-block;
  text-decoration: none;
  color: white;
  background: linear-gradient(to right, #4f46e5, #9333ea);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;

  /* Push to bottom */
  margin-top: auto;
}


.tool-card a:hover {
  background: #ec4899;
}

.tool-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Animation */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
body.dark-mode {
background: linear-gradient(-45deg, #1f1b2e, #2d2a47, #352f5b, #1f1b2e);
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
color: #e0e0e0;
}

body.dark-mode nav,
body.dark-mode .hero,
body.dark-mode .search-wrapper,
body.dark-mode .filter-bar select {
  background: linear-gradient(135deg, #2e1e4d, #3b2e63);
  color: #f3f3f3 !important;
}

body.dark-mode .tool-card {
  background: linear-gradient(145deg, #2d2a47, #1f1b2e);
  color: #e0e0e0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tool-card h3 {
  color: #c084fc;
}

body.dark-mode .cta-button {
  background: linear-gradient(to right, #ec4899, #9333ea);
  color: white;
}

body.dark-mode .cta-button:hover {
  background: #ffffff;
  color: #9333ea;
}

body.dark-mode input,
body.dark-mode select {
  background: #2c2c2c;
  border-color: #9333ea;
  color: #e0e0e0;
}

/* Grid End */
.filter-bar {
  text-align: center;
  margin: 30px auto;
}

.filter-bar select {
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1em;
  border: 2px solid #9333ea;
  outline: none;
  background-color: white;
  color: #4f46e5;
  cursor: pointer;
  transition: 0.3s;
}

.filter-bar select:hover {
  border-color: #ec4899;
  box-shadow: 0 0 5px #ec4899;
}
.search-bar {
  text-align: center;
  margin: 40px auto 20px;
}

.search-bar input {
  width: 90%;
  max-width: 500px;
  padding: 12px 20px;
  font-size: 1em;
  border: 2px solid #9333ea;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #4f46e5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Hover Effect */
.search-bar input:hover {
  transform: scale(1.03);
  border-color: #ec4899;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.3);
}

/* Focused Input */
.search-bar input:focus {
  transform: scale(1.04);
  border-color: #ec4899;
  box-shadow: 0 0 8px #ec4899;
}
.search-wrapper {
  position: relative;
  width: 90%;
  max-width: 500px;
  margin: auto;
}

.search-wrapper input {
  width: 100%;
  padding: 12px 45px 12px 40px;
  font-size: 1em;
  border: 2px solid #9333ea;
  border-radius: 10px;
  outline: none;
  background: white;
  color: #4f46e5;
  transition: all 0.3s ease;
}

.search-wrapper input:hover {
  transform: scale(1.03);
  border-color: #ec4899;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.3);
}

.search-wrapper input:focus {
  transform: scale(1.04);
  border-color: #ec4899;
  box-shadow: 0 0 8px #ec4899;
}

/* Search Icon */
.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 18px;
  color: #9333ea;
}

/* Reset Button */
.reset-btn {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 16px;
  color: #9333ea;
  cursor: pointer;
  display: none;
}

/* Mic Button */
.mic-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 16px;
  color: #9333ea;
  cursor: pointer;
}
/* ========================== */
body.dark-mode {
  background: linear-gradient(-45deg, #1f1b2e, #2d2a47, #352f5b, #1f1b2e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #e0e0e0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================== */


