/* ==== Search Bar ====== */
/* Styles for the search input and icon */

.search-box {
  height: 45px;
  width: 45px;
  border-radius: 50px;
  position: relative;
  transition: 0.4s;
  margin: auto;
  margin-bottom: 3rem;
  transition: 0.6s;
}

.search-box.active {
  width: 400px;
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 0px 20px;
  font-size: 14px;
  outline: none;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--text-muted);
  color: #000;
}

.search-box input::placeholder {
  color: var(--text-muted);
  text-transform: capitalize;
}

.search-box i {
  position: absolute;
  width: 45px;
  height: 100%;
  border-radius: 50px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  top: 0px;
  right: 0px;
}

/* ===== Hero section =====*/
/* Styles for the hero section at the top of the page */

.hero {
  width: 100%;
  height: 60vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0px;
}

.hero h1 {
  color: #fff;
  font-size: 55px;
  margin-bottom: 10px;
}

.hero p {
  color: #ddd;
  font-size: 18px;
  text-transform: capitalize;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero a {
  width: 150px;
  border-radius: 50px;
  padding: 10px;
  background: #fff;
  color: var(--primary-glow);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

.hero a:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-2px);
  color: var(--primary-color);
}

/* ===== Projects Section ===== */
/* Styles for the projects cards and container */

#projects {
  background: var(--gradient-section);
}

.container {
  width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card styles for each project */
.card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-medium);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.image-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-information {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.project-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title {
  color: var(--text-primary);
}

.condition {
  font-size: 12px;
  text-transform: capitalize;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 2px 10px;
  cursor: default;
}

.project-info {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.tech-title {
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--muted-font);
  font-weight: bold;
}

.Technologies {
  margin: 10px 0px;
}

.Technologies span {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 7px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: default;
  margin-right: 10px;
}

.project-type {
  font-size: 13px;
  padding: 5px 15px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 50px;
  width: fit-content;
  text-transform: capitalize;
  border: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.view-project-btn {
  width: 48%;
  border-radius: 5px;
  padding: 8px 0px;
  font-size: 17px;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  font-weight: 500;
}

.view-project-btn:first-child {
  background: var(--x-color-2);
  color: var(--x-color-1);
  box-shadow: var(--shadow-light);
}

.view-project-btn:first-child:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

.view-project-btn:last-child {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

/* Styles for hidden projects (show more/less) */
.hiddenProjects {
  display: none;
}

.hiddenProjects.show {
  display: block;
}

.show-more {
  margin: 3rem auto 0;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#more {
  background: var(--gradient-hero);
  border-radius: 5px;
  padding: 12.5px 0px;
  width: 150px;
  color: #fff;
  font-size: 18px;
  text-transform: capitalize;
}

/** Make Website Responsive */
@media (max-width: 1270px) {
  #projects {
    padding: 100px 0px;
  }
  
  .container {
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    row-gap: 2rem;
    max-width: 90%;
  }
}

@media (max-width: 980px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    max-width: 90%;
  }

  .section-head .main-title {
    font-size: 40px;
  }

  .section-head .section-desc {
    width: 100%;
    font-size: 16px;
  }
}

@media (max-width: 570px) {
  .hero h1 {
    font-size: 40px;
    text-align: center;
  }

  .section-head .main-title {
    font-size: 25px;
  }

  .section-head .section-desc {
    font-size: 15px;
  }

  .search-box.active {
    width: 90%;
  }

  #TopBtn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 500px) {
  .container {
    max-width: 100%;
  }
}

@media (max-width: 408px) {
  #projects {
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: 30px;
    text-align: center;
  }

  .hero p {
    font-size: 15px;
  }

  .section-head .main-title {
    font-size: 25px;
  }

  .section-head .section-desc {
    font-size: 14px;
  }
}

@media (max-width: 351px) {
  .title {
    font-size: 16px;
  }

  .condition {
    font-size: 10px;
    padding: 2px 7px;
  }

  .project-info {
    font-size: 12px;
  }

  .Technologies span {
    font-size: 10px;
  }

  .project-type {
    font-size: 12px;
  }

  .view-project-btn {
    font-size: 15px;
  }
}
