/* Smooth scrolling for all anchor links */
html {
  scroll-behavior: smooth;
}

/* General layout optimizations */
.toolsection {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.half-section {
  width: 75%;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding-bottom: 50px;
  border-radius: 10px;
}

.toolheading {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.description {
  width: 70%;
  text-align: center;
  margin: auto;
}

/* Mobile-responsive styles */
@media (max-width: 710px) {
  .toolsection {
    gap: 50px;
    padding-block: 30px;
  }

  .half-section {
    width: 95%;
  }
}

/* Toolbox container with better spacing and responsive handling */
.toolbox {
  padding-block: 40px;
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  border: 1px solid black;
  min-height: 200px;
  border-radius: 20px;
  flex-wrap: wrap;
  padding-inline: 20px;
}

/* Download button styling */
.downloadbutton {
  border: 1px solid black;
  padding: 12px 28px;
  border-radius: 50px;
}

/* Dropdown styling */
.mydrop {
  width: 100% !important;
  padding: 50px;
}

.mydrop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.mydrop ul li a {
  padding: 12px 25px;
  border-radius: 50px;
  color: black;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.mydrop ul li a:hover {
  color: black;
}

/* Tool list grid styling */
.toollist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 5px;
  margin-top: 0;
  padding: 5%;
}

@media (min-width: 1068px) {
  .toollist {
    grid-template-columns: repeat(5, minmax(270px, 1fr));
  }
}

/* Single tool box styling */
.singletools {
  min-height: 220px;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border-radius: 5px;
  padding: 20px;
  padding-top: 30px;
}

.singletools a {
  height: 100%;
  width: 100%;
  display: inline-block;
  z-index: 5;
  cursor: pointer;
}

.singletools a img {
  height: 50px;
}

.singletools a h2 {
  font-size: 1.1rem;
  margin-top: 20px;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 28px;
  color: #33333b;
  margin-bottom: 8px;
}

.singletools a p {
  font-size: 0.8rem;
  margin-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(0, 0, 0, 0.937);
  line-height: 18px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #707078;
}

/* Hero Section Button Styling for better visibility */
.herobutton {
  width: 100%;
  display: flex;
  flex-flow: column !important;
  gap: 20px;
}

.herobutton a {
  width: 60%;
}

/* Image box section */
.imgbox {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 20px;
}

/* Features section */
#features {
  margin-top: 0;
  padding-block: 100px;
}

/* Mobile-responsive hero section */
@media (max-width: 568px) {
  #features {
    padding-block: 50px;
  }
}

/* More responsive adjustments */
@media (max-width: 567px) {
  .mydrop {
    padding: 0;
    width: 100%;
  }

  #dropdownNavbar {
    transform: translate3d(0px, 80px, 0px) !important;
  }

  .half-section {
    width: 100%;
    margin-top: 20px;
  }

  .toolbox {
    width: 85%;
    gap: 0;
  }

  .mydrop ul {
    padding-inline: 10px;
  }

  .mydrop ul li a {
    padding: 8px 16px;
    zoom: 0.8;
  }

  .MYIMG {
    width: 100% !important;
  }

  .singletools {
    min-height: 220px;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 5px;
    padding: 20px;
    padding-top: 30px;
  }
}

/* Navbar styling for improved appearance */
nav {
  box-shadow: 0 3px 6px rgba(50, 50, 50, 0.3);
  background-color: #fff; /* Consistent background for navbar */
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  text-decoration: none;
  color: inherit;
}

nav ul li a:hover {
  color: #1D4ED8; /* Hover color for links */
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* Keyframe animations */
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.myanime {
  animation: rotate 5s infinite alternate;
}
