/* Modern Theme Variables */
:root {
  --primary-color: #2563EB;
  --primary-hover: #1D4ED8;
  --secondary-color: #EC4899;
  --accent-color: #8B5CF6;
  --background-light: #F8FAFC;
  --background-gradient: linear-gradient(135deg, #2563EB 0%, #EC4899 100%);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.myanime {
  animation: animate 5s alternate infinite;
}

@keyframes animate {
  100% {
    transform: rotate(360deg);
  }
}

/* Base styles */
html {
  scroll-behavior: smooth;
  background-color: var(--background-light);
}

body {
  color: var(--text-primary);
  line-height: 1.6;
}

/* Tool section styles */
.toolsection {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(-45deg, #2563EB, #EC4899, #8B5CF6);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  padding: 3rem 0;
}

.half-section {
  width: 80%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.6s ease-out;
}

.half-section:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.toolheading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: 'Inter', Arial, sans-serif;
  text-align: center;
  background: var(--background-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s ease infinite;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.description {
  width: 75%;
  text-align: center;
  margin: 1.5rem auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Tool box styles */
.toolbox {
  padding: 2.5rem;
  width: 70%;
  display: flex;
  margin: 2rem auto;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  border: 2px solid transparent;
  background: white;
  border-radius: 20px;
  flex-wrap: wrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.toolbox:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.downloadbutton {
  background: var(--background-gradient);
  background-size: 200% auto;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s ease;
  border: none;
  box-shadow: var(--shadow-sm);
}

.downloadbutton:hover {
  background-position: right center;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Dropdown styles */
.mydrop {
  width: 100% !important;
  padding: 3rem;
}

.mydrop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.mydrop ul li a {
  padding: 1rem 1.5rem;
  border-radius: 50px;
  color: var(--text-primary);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  font-weight: 500;
}

.mydrop ul li a:hover {
  color: white;
  background: var(--background-gradient);
  background-size: 200% auto;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Tool list styles */
.toollist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  margin-top: 1rem;
}

.singletools {
  min-height: 240px;
  background: white;
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.6s ease-out;
}

.singletools:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-color);
}

.singletools a img {
  height: 60px;
  transition: transform 0.4s ease;
}

.singletools:hover a img {
  transform: scale(1.1) rotate(5deg);
}

.singletools a h2 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  font-weight: 700;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text-primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.singletools:hover a h2 {
  color: var(--primary-color);
}

.singletools a p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-family: 'Inter', Arial, sans-serif;
}

/* Navigation styles */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

nav:hover {
  box-shadow: var(--shadow-md);
}

nav a {
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--accent-color) !important;
  transform: translateY(-1px);
}

/* Responsive styles */
@media (max-width: 768px) {
  .half-section {
    width: 90%;
    padding: 1.5rem;
  }
  
  .toolbox {
    width: 90%;
    padding: 1.5rem;
  }
  
  .description {
    width: 85%;
  }
  
  .toollist {
    padding: 1rem;
    gap: 1rem;
  }
}

@media (max-width: 567px) {
  .mydrop {
    padding: 1rem;
  }
  
  .mydrop ul li a {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .singletools {
    padding: 1.5rem;
    min-height: 200px;
  }
  
  .toolheading {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
}
