* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  color: white;
  overflow-x: hidden;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1 0 auto; /* Important for sticky footer */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer {
  flex-shrink: 0; /* Ensures footer doesn't collapse */
  margin-top: 50px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #00f9ff;
  text-shadow: 0 0 10px #00f9ff;
  margin-top: 5rem;
}

.top-nav {
  width: 100%;
  background: rgba(15, 12, 41, 0.8);
  border-bottom: 1px solid #00f9ff40;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hamburger {
  font-size: 1.8rem;
  color: #00f9ff;
  display: none;
  cursor: pointer;
  user-select: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 1px solid #00f9ff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #00f9ff;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-shadow: 0 0 6px #00f9ff;
  text-decoration: none;
}

.nav-btn:hover {
  background: #00f9ff;
  color: black;
  box-shadow: 0 0 10px #00f9ff;
}

.nav-search {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #00f9ff;
  border-radius: 8px;
  color: white;
  font-family: 'Orbitron', sans-serif;
  outline: none;
}

.nav-search input {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.nav-search input:focus {
  box-shadow: 0 0 10px #00f9ff;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: rgba(15, 12, 41, 0.95);
  padding: 1rem;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 20;
  border-top: 1px solid #00f9ff40;
}

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

.mobile-menu .nav-btn {
  margin-bottom: 1rem;
  width: 100%;
  text-align: left;
}

.mobile-menu input#mobileSearchInput {
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #00f9ff;
  border-radius: 6px;
  color: white;
  width: 90%;
  margin: 0 auto;
}

.search-bar {
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #00f9ff;
  color: white;
  font-size: 1rem;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  box-shadow: 0 0 10px #00f9ff;
}

.cards {
  display: grid;
  width: 100%;
  max-width: 1200px;
  gap: 1.5rem;
  padding: 0 1rem;
}

.card {
  background-color: rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: 1/1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px #00f9ff;
  z-index: 5;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.card:hover .image-wrapper img {
  opacity: 0.3;
}

.tool-title {
  width: 100%;
  text-align: center;
  color: #00f9ff;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 0 5px #00f9ff;
  z-index: 3;
  transition: all 0.4s ease;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.4rem;
  position: relative;
  margin-top: auto;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.card:hover .tool-title {
  position: absolute;
  top: 10px;
  left: 50%;
  max-width: fit-content;
  transform: translateX(-50%);
  margin-top: 0;
}

.card .info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 2;
  pointer-events: none;
  padding: 1rem;
}

.card:hover .info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card .info .desc {
  font-size: 1rem;
  color: #ccc;
  opacity: 1;
  transform: none;
  padding-top: 1rem;
}

.side-button {
  position: absolute;
  left: 10px;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  background: transparent;
  border: 2px solid #00f9ff40;
  border-radius: 50%;
  color: #00f9ff;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 6;
  box-shadow: 0 0 10px #340957;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: large;
}

.btn1 {
  top: 10px;
}

.btn2 {
  top: 50px;

}

.card:hover .side-button {
  opacity: 1;
  border-color: #00f9ff;
}

.side-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #00f9ff;
}

.side-button.btn1 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.side-button.btn2 i {
  font-size: 2rem;
  color: #00f9ff;
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 12, 41, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-family: 'Orbitron', sans-serif;
}

.popup-content {
  background: #1a1a2e;
  color: #00f9ff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: left;
  box-shadow: 0 0 20px #00f9ff80;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.popup-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.popup-content h2 {
  color: #00f9ff;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #00f9ff;
  font-size: 1.5rem;
}

.popup-content p {
  color: #ccc;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.popup-content button {
  margin-top: 1rem;
  background: #00f9ff;
  color: #0f0c29;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #00f9ff;
  transition: all 0.3s ease;
}

.popup-content button:hover {
  background: #0ff;
  color: #0f0c29;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(15, 12, 41, 0.95);
  min-width: 160px;
  border: 1px solid #00f9ff40;
  border-radius: 8px;
  box-shadow: 0 0 10px #00f9ff40;
  z-index: 50;
  flex-direction: column;
  margin-top: 0.5rem;
}

.dropdown-content.show {
  display: flex;
}

.dropdown-item {
  background: transparent;
  border: none;
  color: #00f9ff;
  padding: 0.5rem 1rem;
  text-align: left;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  transition: background 0.3s ease;
  border-radius: 6px;
}

.dropdown-item:hover {
  background: #00f9ff20;
}

.footer {
  background: rgba(15, 12, 41, 0.8);
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #00f9ff40;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a {
  color: #00f9ff;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.footer-social a {
  color: #00f9ff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #0ff;
  text-shadow: 0 0 10px #00f9ff;
}

.cards.loading {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* Responsive Card Layout */
@media screen and (max-width: 600px) {
  h1 {
  margin-top: 70px;
}

   .container {
    padding: 1rem 0.5rem 2rem; /* reduce padding on top/sides */
  }
  .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 5%;
  gap: 15px; /* small vertical spacing between rows */
}
  .card {
  width: 42.5%;
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
}
  h1 {
    font-size: 2rem;
  }
  .search-bar input {
    font-size: 0.9rem;
  }
  .card .info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
   /* Align content to bottom */
  background: rgba(0, 0, 0, 0.8);
  text-align: left;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 2;
  pointer-events: none;
  padding: 1rem;
}

  .card .info h2 {
    font-size: 1.2rem;
  }
.card .info .desc {
  margin-top: auto; /* pushes it to the bottom of available space */
  text-align: left;
  font-size: 0.75rem;
  font-family: sans-serif;
  padding: 0.5rem 1rem;
}

  .tool-title {
    font-size: 0.9rem;
  }
  .popup-content {
    width: 90%;
    max-width: 90%;
    margin: 0 2.5%;
    padding: 2.5%;
    font-size: 0.95rem;
  }
  .side-button {
  position: absolute;
  left: 6px;
  width: 24px;            /* smaller width */
  height: 24px;           /* smaller height */
  font-size: 0.7rem;      /* smaller icon/text size */
  background: transparent;
  border: 2px solid #00f9ff40;
  border-radius: 50%;
  color: #00f9ff;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 6;
  box-shadow: 0 0 6px #340957;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0px;
}

}




@media screen and (min-width: 601px) and (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .card {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1025px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .card {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: rgba(15, 12, 41, 0.95);
    padding: 1rem 0;
    border-radius: 12px;
    margin-top: 1rem;
    gap: 1rem;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links .nav-search {
    width: 90%;
    margin: 0 auto;
  }
  .nav-links .nav-btn {
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }
  /* Main heading like "Canva" */





}
/* Section questions like “What can it do?” */
.tool-section-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 1.5rem;
  display: block;
  color: #fff;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
}

/* Bullet points */
.tool-list {
  font-size: 1rem;
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
  color: #ddd;
}

/* Bold text inside bullet points */
.bullet-head {
  font-size: 1.2rem;
  font-weight: bold;
  color: #eee;
}

/* Supporting paragraph text */
.tool-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #bbb;
}
.side-button.btn2{
  font-size: 18px;
  color: white;
  padding-top: 1%;
}
  
