/* Global styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f8f9fa;
}

/* Rotating animation */
.myanime {
  animation: animate 5s linear infinite alternate;
}

@keyframes animate {
  100% {
    transform: rotate(360deg);
  }
}

/* Section styling */
.toolsection {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 30px;
}

.half-section {
  width: 75%;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
  padding: 50px;
  border-radius: 10px;
  background-color: white;
  text-align: center;
}

/* Heading styles */
.toolheading {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  color: #222;
  margin-bottom: 20px;
}

/* Description */
.description {
  max-width: 700px;
  margin: auto;
  text-align: center;
  font-size: 1rem;
  color: #555;
}

/* Responsive styles */
@media (max-width: 710px) {
  .toolsection {
    gap: 40px;
  }

  .half-section {
    width: 90%;
  }
}

/* Tool container */
.toolbox {
  padding: 40px 20px;
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  border: 1px solid #ccc;
  min-height: 200px;
  border-radius: 15px;
  flex-wrap: wrap;
  background: white;
}

.downloadbutton {
  border: 1px solid black;
  padding: 12px 28px;
  border-radius: 50px;
  background: #007bff;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.downloadbutton:hover {
  background: #0056b3;
}

/* Dropdown styles */
.mydrop {
  width: 100%;
  padding: 40px;
}

.mydrop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.mydrop ul li a {
  padding: 12px 20px;
  border-radius: 50px;
  color: #333;
  background: #f5f5f5;
  text-decoration: none;
  transition: 0.3s;
}

.mydrop ul li a:hover {
  background: #e0e0e0;
}

/* Grid layout for tools */
.toollist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding: 5%;
}

@media (min-width: 1068px) {
  .toollist {
    grid-template-columns: repeat(5, minmax(270px, 1fr));
  }
}

/* Individual tool box */
.singletools {
  min-height: 220px;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 6px;
  border-radius: 5px;
  padding: 25px;
  text-align: center;
  transition: 0.3s;
}

.singletools:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 10px;
}

.singletools a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.singletools a img {
  height: 50px;
}

.singletools a h2 {
  font-size: 1.1rem;
  margin-top: 15px;
  font-weight: 600;
  color: #222;
}

.singletools a p {
  font-size: 0.9rem;
  margin-top: 10px;
  color: #666;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 567px) {
  .mydrop {
    padding: 0;
    width: 100%;
  }

  .half-section {
    width: 100%;
    margin-top: 20px;
  }

  .toolbox {
    width: 90%;
    gap: 15px;
  }

  .mydrop ul li a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .singletools {
    padding: 20px;
  }
}

/* Navbar shadow */
nav {
  box-shadow: 0 3px 6px rgba(50, 50, 50, 0.2);
}
