/* Global styles */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0a0a0a; /* Very dark background */
  background-attachment: fixed; /* Keep pattern fixed when scrolling */
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #f0f0f0; /* Light text by default - THIS IS THE "WHITE TEXT" */
  overflow-x: hidden; /* Prevent horizontal scrollbar from particle animation */

  /* Fallback for old browsers or if pattern image fails / dot pattern */
  background: radial-gradient(circle, rgba(250,250,250,0.02) 1px, transparent 1px), #0a0a0a;
  background-size: 20px 20px;
}

/* --- ANIMATED BACKGROUND STYLES (Kept as is, as user provided) --- */
@keyframes move {
  100% {
    transform: translate3d(0, 0, 1px) rotate(360deg);
  }
}

.background {
  position: fixed; /* Fixed to viewport */
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: #100222; /* Base color for the background div (dark purple/blue) */
  overflow: hidden; /* Clip particles that go out of bounds */
  z-index: -1; /* Ensure it stays behind all content */
}

.background span {
  width: 9vmin;
  height: 9vmin;
  border-radius: 9vmin; /* Make them circles */
  backface-visibility: hidden;
  position: absolute;
  animation: move;
  animation-duration: 42s; /* Will be overridden by nth-child */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Individual particle styles for color, position, animation duration/delay, and shadow - DO NOT MODIFY THESE AS USER PROVIDED THIS SPECIFIC AESTHETIC */
.background span:nth-child(0) { color: #E45A84; top: 17%; left: 93%; animation-duration: 76s; animation-delay: -51s; transform-origin: -9vw -24vh; box-shadow: -18vmin 0 3.0001494353748646vmin currentColor; }
.background span:nth-child(1) { color: #E45A84; top: 65%; left: 67%; animation-duration: 25s; animation-delay: -49s; transform-origin: 8vw 4vh; box-shadow: 18vmin 0 2.853835663809593vmin currentColor; }
.background span:nth-child(2) { color: #583C87; top: 18%; left: 99%; animation-duration: 29s; animation-delay: -68s; transform-origin: 16vw 5vh; box-shadow: 18vmin 0 2.916305297608877vmin currentColor; }
.background span:nth-child(3) { color: #583C87; top: 84%; left: 22%; animation-duration: 40s; animation-delay: -54s; transform-origin: 8vw -7vh; box-shadow: 18vmin 0 3.060789852598666vmin currentColor; }
.background span:nth-child(4) { color: #E45A84; top: 7%; left: 73%; animation-duration: 23s; animation-delay: -27s; transform-origin: -2vw -13vh; box-shadow: 18vmin 0 2.8116641948860597vmin currentColor; }
.background span:nth-child(5) { color: #583C87; top: 71%; left: 41%; animation-duration: 33s; animation-delay: -12s; transform-origin: -19vw -24vh; box-shadow: 18vmin 0 2.987763005360822vmin currentColor; }
.background span:nth-child(6) { color: #583C87; top: 46%; left: 39%; animation-duration: 81s; animation-delay: -29s; transform-origin: 11vw 3vh; box-shadow: 18vmin 0 2.9107405682314296vmin currentColor; }
.background span:nth-child(7) { color: #E45A84; top: 37%; left: 37%; animation-duration: 83s; animation-delay: -60s; transform-origin: 25vw -12vh; box-shadow: -18vmin 0 3.0639650908604548vmin currentColor; }
.background span:nth-child(8) { color: #FFACAC; top: 81%; left: 64%; animation-duration: 81s; animation-delay: -15s; transform-origin: 9vw 18vh; box-shadow: 18vmin 0 3.030192700280322vmin currentColor; }
.background span:nth-child(9) { color: #FFACAC; top: 96%; left: 72%; animation-duration: 18s; animation-delay: -26s; transform-origin: -5vw 13vh; box-shadow: -18vmin 0 2.579801267102711vmin currentColor; }
.background span:nth-child(10) { color: #FFACAC; top: 81%; left: 62%; animation-duration: 9s; animation-delay: -67s; transform-origin: 20vw 24vh; box-shadow: -18vmin 0 2.259425528539757vmin currentColor; }
.background span:nth-child(11) { color: #E45A84; top: 52%; left: 24%; animation-duration: 73s; animation-delay: -24s; transform-origin: 20vw -11vh; box-shadow: 18vmin 0 3.1669632544822512vmin currentColor; }
.background span:nth-child(12) { color: #E45A84; top: 67%; left: 20%; animation-duration: 19s; animation-delay: -9s; transform-origin: -4vw -18vh; box-shadow: 18vmin 0 2.795977807727718vmin currentColor; }
.background span:nth-child(13) { color: #E45A84; top: 96%; left: 26%; animation-duration: 36s; animation-delay: -1s; transform-origin: -5vw 9vh; box-shadow: -18vmin 0 3.023308999626882vmin currentColor; }
.background span:nth-child(14) { color: #583C87; top: 65%; left: 31%; animation-duration: 47s; animation-delay: -76s; transform-origin: 25vw -22vh; box-shadow: -18vmin 0 3.215279820837011vmin currentColor; }
.background span:nth-child(15) { color: #583C87; top: 62%; left: 92%; animation-duration: 38s; animation-delay: -44s; transform-origin: 9vw 19vh; box-shadow: 18vmin 0 3.0019458166628867vmin currentColor; }
.background span:nth-child(16) { color: #583C87; top: 20%; left: 1%; animation-duration: 35s; animation-delay: -61s; transform-origin: -8vw -16vh; box-shadow: 18vmin 0 3.17407161805435vmin currentColor; }
.background span:nth-child(17) { color: #FFACAC; top: 15%; left: 78%; animation-duration: 70s; animation-delay: -22s; transform-origin: 6vw -3vh; box-shadow: 18vmin 0 2.5549233846457615vmin currentColor; }
.background span:nth-child(18) { color: #E45A84; top: 11%; left: 91%; animation-duration: 26s; animation-delay: -49s; transform-origin: -21vw 0vh; box-shadow: 18vmin 0 3.217916442456718vmin currentColor; }
.background span:nth-child(19) { color: #FFACAC; top: 87%; left: 48%; animation-duration: 20s; animation-delay: -62s; transform-origin: 10vw 6vh; box-shadow: 18vmin 0 2.3862240423901517vmin currentColor; }
/* --- END ANIMATED BACKGROUND STYLES --- */

/* Remove hero-animated-bg gradient, as new .background covers it */
.hero-animated-bg {
    background: none !important;
    background-size: auto !important;
    animation: none !important;
}

/* Navigation (Adjusted for white text and pink accent) */
nav {
  background: rgba(28, 28, 28, 0.4); /* Much more transparent */
  backdrop-filter: blur(8px); /* Blurry effect */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); /* Softer shadow */
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(51, 51, 51, 0.5); /* Subtle transparent border */
}

nav:hover {
  transform: translateY(-2px);
  background: rgba(40, 40, 40, 0.6); /* Slightly less transparent on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Flowbite overrides for navbar text/hover states */
/* Make all nav text white by default, with pink on hover */
/* Note: Direct Tailwind `text-gray-200` and `hover:text-[#E45A84]` in HTML are also used for robustness */
nav a,
nav button {
  color: #f0f0f0; /* Default text color from body */
  transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:hover,
nav button:hover {
  color: #E45A84; /* Pink accent color for hover */
  background-color: rgba(40, 40, 40, 0.5) !important; /* Darker transparent hover background */
  border-radius: 0.25rem; /* Small rounding on hover */
}

/* Dropdown Menu (Adjusted for white text and pink accent) */
.mydrop {
  width: 100% !important;
  padding: 25px;
  background: rgba(28, 28, 28, 0.95); /* Fairly opaque for readability in dropdown */
  backdrop-filter: blur(10px); /* Blurry effect */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Darker shadow */
  animation: slideDown 0.4s ease;
  border: 1px solid rgba(51, 51, 51, 0.5); /* Subtle transparent border */
}

.mydrop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mydrop ul li a {
  padding: 12px 24px;
  border-radius: 50px;
  background: rgba(40, 40, 40, 0.7); /* Darker transparent background for items */
  color: #f0f0f0 !important; /* Forces light text */
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.mydrop ul li a:hover {
  background: #E45A84; /* Pink accent background on hover */
  color: #0a0a0a !important; /* Very dark text on accent */
  transform: translateY(-3px);
}

.mydrop ul li a:focus {
  outline: 2px solid #E45A84; /* Pink accent color for focus */
  outline-offset: 2px;
}

/* Hero Section Styles (main heading and paragraph) */
/* These target the specific h1 and p in the hero section based on your HTML classes */
h1.text-gray-100 {
  color: #f0f0f0 !important; /* Forces very light white for hero title */
}
p.text-gray-300 {
  color: #b0b0b0 !important; /* Forces lighter grey for hero description */
}

/* Hero section fade-in animation */
.hero-h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards 0.3s; /* Delay start */
}
.hero-p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 1s ease-out forwards 0.6s; /* Longer delay */
}
@keyframes fadeInSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tool Section */
.toolsection {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 30px;
  background: transparent; /* Remains transparent to show body background */
}

/* Half Section (Main content containers for specific tool pages) */
.half-section {
  width: 80%;
  max-width: 900px;
  background: rgba(28, 28, 28, 0.4); /* Transparent background */
  backdrop-filter: blur(10px); /* Blurry effect */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); /* Darker shadow */
  padding: 50px;
  border-radius: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  border: 1px solid rgba(51, 51, 51, 0.5); /* Subtle transparent border */
}

.half-section:hover {
  transform: translateY(-8px);
  background: rgba(40, 40, 40, 0.6); /* Slightly less transparent on hover */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.half-section:focus-within {
  outline: 2px solid #E45A84; /* Pink accent color for focus */
  outline-offset: 4px;
}

/* Tool Heading */
.toolheading {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #E45A84; /* Pink accent color for tool headings */
  text-align: center;
  margin-bottom: 24px;
  animation: fadeIn 1s ease-in;
  letter-spacing: -0.5px;
}

/* Description */
.description {
  width: 85%;
  max-width: 700px;
  text-align: center;
  margin: auto;
  font-size: 1.15rem;
  color: #b0b0b0; /* Lighter grey for descriptions */
  line-height: 1.7;
  opacity: 0.9;
}

/* Tool Box (for specific tool page content sections) */
.toolbox {
  width: 70%;
  max-width: 800px;
  margin: 30px auto;
  padding: 40px;
  background: rgba(28, 28, 28, 0.4); /* Transparent background */
  backdrop-filter: blur(10px); /* Blurry effect */
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); /* Darker shadow */
  transition: all 0.4s ease;
  border: 1px solid rgba(51, 51, 51, 0.5); /* Subtle transparent border */
}

.toolbox:hover {
  background: rgba(40, 40, 40, 0.6); /* Slightly less transparent on hover */
}

.toolbox:focus-within {
  outline: 2px solid #E45A84; /* Pink accent color for focus */
  outline-offset: 2px;
}

/* Download Button (Updated gradient to match new accent colors) */
.downloadbutton {
  background: linear-gradient(90deg, #E45A84, #583C87); /* Gradient matching particle colors */
  color: #ffffff;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.downloadbutton::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1); /* Subtle white ripple */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.downloadbutton:hover::after {
  width: 200px;
  height: 200px;
}

.downloadbutton:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); /* Darker shadow */
}

.downloadbutton:active {
  transform: scale(0.95);
}

.downloadbutton:disabled {
  background: rgba(75, 77, 102, 0.5); /* Darker transparent disabled state */
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

.downloadbutton:focus {
  outline: 2px solid #E45A84; /* Pink accent color for focus */
  outline-offset: 2px;
}

/* Tool List (for index page) */
.toollist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 5%;
  margin-top: 30px;
  max-width: 1200px; /* Constrain width for better layout on large screens */
  margin-left: auto;
  margin-right: auto;
}

/* Single Tool Card (Hover animations and consistent styling) */
.singletools {
  background: rgba(28, 28, 28, 0.4); /* Transparent background */
  backdrop-filter: blur(10px); /* Blurry effect */
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); /* Darker shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; /* Added border-color to transition */
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 51, 51, 0.5); /* Subtle transparent border */
  display: flex; /* Flex container for content */
  flex-direction: column; /* Stack content vertically */
  align-items: center; /* Center content horizontally */
  justify-content: flex-start; /* Align content to top */
  height: 100%; /* Ensure cards are same height */
  text-align: center;
}

.singletools:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); /* Deeper shadow on hover */
  background-color: rgba(40, 40, 40, 0.6); /* Slightly less transparent on hover */
  border-color: #E45A84; /* Pink accent border on hover */
}

.singletools a {
  display: flex; /* Make anchor a flex container */
  flex-direction: column; /* Stack contents within anchor */
  align-items: center; /* Center items within anchor */
  text-decoration: none;
  color: inherit; /* Inherit text color from parent */
  width: 100%; /* Make anchor fill the card */
  height: 100%;
}

/* Tooltip (Added to the single tool card for context) */
.singletools a::after {
  content: attr(data-tooltip); /* Assumes a data-tooltip attribute on the anchor */
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px); /* Adjusted for dark mode positioning */
  background: rgba(40, 40, 40, 0.8); /* Dark background for tooltip */
  color: #f0f0f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.singletools a:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px); /* Move up slightly on hover */
}

.singletools a img {
  height: 55px; /* Default height for single image icons */
  width: auto; /* Maintain aspect ratio */
  transition: transform 0.3s ease;
  /* If your original image icons are dark, they might disappear on dark transparent backgrounds. */
  /* You may need to replace them with light versions or use a filter like this: */
  /* filter: brightness(1.8) saturate(1.5); */ /* Re-enable if icons are too dark */
}

.singletools a:hover img {
  transform: scale(1.15);
}

.singletools a h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #E45A84; /* Pink accent color for titles */
  margin: 18px 0 12px;
  line-height: 1.4;
  transition: color 0.3s ease; /* Added transition for hover effect */
}
.singletools:hover a h2 {
  color: #FFACAC; /* Lighter pink on hover for title */
}

.singletools a p {
  font-size: 0.95rem;
  color: #b0b0b0; /* Lighter grey for descriptions */
  line-height: 1.6;
  margin: 0;
  flex-grow: 1; /* Allow description to take available space */
}

/* Image Box (for icons) */
.imgbox {
  width: 80px; /* Consistent size for icon box */
  height: 80px;
  background-color: rgba(51, 51, 51, 0.5); /* Transparent background for icon circle */
  border-radius: 50%; /* Circular background for icons */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0; /* Prevent shrinking */
  position: relative;
  overflow: hidden; /* Hide overflowing parts of images if any */
  color: #f0f0f0; /* Default color for emoji icons */
}

/* Specific styling for "X TO Y" converter icons (using emojis) */
.imgbox.converter-icons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem; /* Small gap between emoji icons */
  font-size: 2.2rem; /* Make emojis larger */
  background: none; /* No circular background for converter icons */
  border-radius: 0;
  width: auto; /* Auto width for emoji content */
  height: auto; /* Auto height for emoji content */
  color: #E45A84; /* Pink accent color for emojis (first emoji) */
  padding: 0; /* Remove padding */
  margin-bottom: 1rem; /* Consistent margin */
}

.imgbox.converter-icons span {
  display: inline-block; /* Ensure spans are inline-block for alignment */
  line-height: 1; /* Adjust line height for better vertical alignment */
}

.imgbox.converter-icons .arrow-icon {
  font-size: 1.5rem; /* Smaller arrow icon */
  color: #f0f0f0; /* Arrow can be light white */
  transform: translateY(2px); /* Slight vertical adjust for arrow */
}

/* New: Tool Section Headings */
.tool-section-heading {
  grid-column: 1 / -1; /* Make it span all columns */
  width: 100%;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem; /* More space below heading */
}

.tool-section-heading h2 {
  color: #E45A84; /* Pink accent for section headings */
  font-size: 2.5rem; /* Larger font size */
  font-weight: 700;
  margin-bottom: 1rem;
  padding-top: 1rem; /* Padding above heading */
  border-bottom: 2px solid rgba(228, 90, 132, 0.3); /* Subtle pink underline */
  padding-bottom: 0.5rem;
  display: inline-block; /* To make border only span text */
  max-width: 90%; /* Prevent heading from being too wide */
}

/* Features Section (Adjusted for white text and pink accent) */
#features {
  padding: 100px 30px;
  background: transparent; /* Changed to transparent */
  margin-top: 0;
  color: #f0f0f0; /* Light text */
}

#features h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: #E45A84; /* Pink accent color for features title */
  text-align: center;
  margin-bottom: 50px;
  animation: fadeIn 1s ease-in;
}

#features .relative { /* Feature cards */
  background: rgba(28, 28, 28, 0.4); /* Transparent background for feature cards */
  backdrop-filter: blur(10px); /* Blurry effect */
  border-radius: 16px; /* Increased border-radius for consistency with singletools */
  padding: 25px; /* Increased padding for consistency with singletools */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); /* Darker shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; /* Added border-color to transition */
  border: 1px solid rgba(51, 51, 51, 0.5); /* Subtle transparent border */
}

#features .relative:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  background-color: rgba(40, 40, 40, 0.6);
  border-color: #E45A84; /* Pink accent border on hover */
}

#features .relative:focus-within {
  outline: 2px solid #E45A84; /* Pink accent color for focus */
}

#features svg {
  fill: #E45A84; /* Pink accent color for feature icons */
  stroke: #E45A84; /* Ensure stroke is also visible for icons that use it */
}

#features h3 {
  color: #f0f0f0; /* Light text for feature titles */
}

#features p {
  color: #b0b0b0; /* Lighter grey for feature descriptions */
}

/* Trust Section (Adjusted for white text and pink accent) */
.trust-section {
  background-color: #1c1c1c; /* Darker solid background for trust section (as per ZaraSmartTools pattern) */
  color: #f0f0f0;
  min-height: 50vh; /* Reduced min-height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px; /* Reduced padding */
  text-align: center; /* Ensure text is centered */
  margin: 5rem auto; /* Added margin as in previous response */
  max-width: 900px; /* Added max-width as in previous response */
  border-radius: 1rem; /* Added border-radius as in previous response */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Added box-shadow as in previous response */
}

.trust-section h1 {
  color: #E45A84; /* Pink accent color for trust title */
}

.trust-section p {
  color: #b0b0b0;
}

.trust-section svg {
  color: #E45A84; /* Pink accent color for generic icons */
}

/* Footer (More Attractive Footer) */
footer {
  background-color: #111827; /* Very dark background for the footer - Adjusted to match previous response's better contrast */
  color: #f0f0f0; /* Light text */
  padding: 3rem 1rem; /* More padding */
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 5rem; /* More space from content above */
}

footer .max-w-screen-lg {
  display: flex; /* Use flexbox for layout */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: space-between; /* Space out columns */
  align-items: flex-start; /* Align content to the top */
  margin: 0 auto; /* Center the footer content */
  max-width: 1280px; /* Ensure consistency with body/main sections */
}

footer .p-5 { /* General padding for footer columns */
  padding: 1rem;
}

footer .footer-link-section {
  flex: 1; /* Allow section to grow */
  min-width: 180px; /* Minimum width for link section */
  box-sizing: border-box; /* Include padding in width */
  text-align: left; /* Default text alignment for link list */
}

@media (min-width: 640px) { /* sm breakpoint */
  footer .footer-link-section {
    border-right: 1px solid rgba(51, 51, 51, 0.5); /* Subtle border for larger screens */
    padding-right: 2rem; /* Spacing between sections */
  }
}

footer .footer-link-section .text-sm {
  color: #E45A84; /* Pink accent color for footer headings */
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.05em; /* Slightly spaced out */
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.6rem; /* More vertical space between links */
}

footer ul li a {
  color: #b0b0b0; /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #FFACAC; /* Lighter pink highlight on hover */
  text-decoration: none;
}

footer .sm\:w-3\/4 { /* Target the right section directly (logo and main description) */
  flex: 2; /* Allow it to take more space */
  padding-left: 2rem; /* Spacing from left section */
  text-align: left; /* Default text alignment */
  box-sizing: border-box;
}

@media (max-width: 639px) { /* Adjust for smaller screens (mobile) */
  footer .footer-link-section {
    padding-bottom: 2rem;
    padding-right: 0;
    width: 100%;
    text-align: center; /* Center text on mobile for links */
    border-right: none !important; /* Remove vertical borders on mobile */
  }
  footer .footer-link-section:last-of-type { /* No bottom margin for the last link section if stacked */
    margin-bottom: 0;
  }
  footer .sm\:w-3\/4 {
    padding-left: 0;
    width: 100%;
    text-align: center; /* Center text on mobile for logo/description */
  }
}

footer .sm\:w-3\/4 img {
  height: 80px !important; /* Make logo larger again */
  margin-bottom: 1.5rem !important; /* Space below logo */
  display: block !important; /* To center it properly */
  margin-left: auto !important;
  margin-right: auto !important;
  filter: drop-shadow(0 0 5px rgba(228, 90, 132, 0.6)); /* Subtle glow matching accent */
}

footer .sm\:w-3\/4 p {
  color: #9CA3AF; /* Muted for footer description */
  font-size: 0.9rem; /* Slightly larger than copyright, smaller than main content */
}

footer .copyright-text {
  text-align: center;
  margin-top: 2.5rem; /* More space from content above */
  font-size: 0.8rem;
  color: #6B7280; /* Slightly muted copyright text */
  border-top: 1px solid rgba(51, 51, 51, 0.5); /* Separator line */
  padding-top: 1.5rem;
}

/* New: Animations for sections on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px); /* Start slightly below */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.1s; /* Small delay for a staggered effect */
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation Keyframes (existing, ensure no conflicts) */
/* The @keyframes move is already defined at the top for the background particles */

.myanime { /* Not used in provided HTML, but kept if you use it */
  animation: animate 5s alternate infinite;
}

@keyframes fadeIn { /* Used for toolheading and features h2 */
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown { /* Used for mydrop */
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility Enhancements */
:focus-visible { /* Using :focus-visible for better UX, focus only when keyboard navigation */
  outline: 2px solid #FFACAC; /* Lighter pink outline */
  outline-offset: 3px;
  border-radius: 4px; /* Slightly rounded outline */
}
/* If you want outline on ALL focus (mouse clicks too), use :focus instead: */
/*
:focus {
  outline: 2px solid #FFACAC;
  outline-offset: 3px;
  border-radius: 4px;
}
*/

/* Media Queries (adjusted for consistent design) */
@media (max-width: 1068px) {
  .toollist {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 710px) {
  .toolsection {
    gap: 25px;
    padding: 20px;
  }
  .half-section {
    width: 95%;
    padding: 30px;
  }
  .toolbox {
    width: 95%;
    padding: 25px;
  }
  .description {
    width: 90%;
    font-size: 1rem;
  }
  /* Footer layout for smaller screens */
  footer .max-w-screen-lg {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  footer .footer-link-section {
    padding-bottom: 2rem;
    padding-right: 0;
    width: 100%;
    margin-bottom: 1rem; /* Space between stacked sections */
    border-right: none !important; /* Remove vertical borders on small screens */
  }
  footer .footer-link-section:last-of-type { /* No bottom margin for the last link section if stacked */
    margin-bottom: 0;
  }
  footer .sm\:w-3\/4 {
    padding-left: 0;
    width: 100%;
  }
}

@media (max-width: 568px) {
  /* No changes to .herobutton and .herobutton a as they are not present in the provided HTML structure or are Tailwind-controlled */
  #features {
    padding: 50px 15px;
  }
  .toolheading {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
}

@media (max-width: 567px) {
  .mydrop {
    padding: 15px;
  }
  /* The transform for dropdown positioning should be handled by Flowbite JS, manual override here might cause issues. */
  /* If issues, consider removing this: #dropdownNavbar { transform: translate3d(0px, 80px, 0px) !important; } */
  .half-section {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
  }
  .toolbox {
    width: 100%;
    gap: 8px;
    padding: 20px;
  }
  .mydrop ul li a {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  /* .MYIMG is not defined in HTML, so no change */
  .singletools {
    padding: 20px;
  }
  .singletools a h2 {
    font-size: 1.2rem;
  }
  .singletools a p {
    font-size: 0.9rem;
  }
}