:root {
  --primary: #00ffff;
  --secondary: #9933ff;
  --accent: #ff3366;
  --bg-dark: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: var(--final-opacity, 1);
    transform: translateY(0);
  }
}

.background {
  position: fixed;
  inset: 0;
  z-index: -10;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(153, 51, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(0, 255, 255, 0.3) 0%,
      transparent 60%
    );
}

.hero {
  animation: fadeIn 1s ease-out forwards;
}
.hero h1 {
  background-image: linear-gradient(45deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero .title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  font-weight: 800;
}
@media (min-width: 640px) {
  .hero .title {
    font-size: 4rem;
  }
}
@media (min-width: 768px) {
  .hero .title {
    font-size: 5rem;
  }
}
@media (min-width: 1024px) {
  .hero .title {
    font-size: 3.5rem;
  }
}
.hero .subtitle {
  font-size: 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
  color: #a0aec0;
}
@media (min-width: 1024px) {
  .hero .subtitle {
    font-size: 2rem;
  }
}

.hero .description {
  max-width: 800px;
  margin: 2rem auto 3rem;
  font-size: 1.25rem;
  color: #d1d5db;
}
@media (min-width: 640px) {
  .hero .description {
    font-size: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .hero .description {
    font-size: 1.25rem;
  }
}

.tools-grid {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.3s ease;
  overflow: hidden;
  text-align: center;
  width: 100%;
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: calc(var(--card-index) * 0.3s);
  opacity: 0;
  --final-opacity: 1;
}

.tool-card:not([href]) {
  --final-opacity: 0.5;
  filter: grayscale(0.4) brightness(0.8);
  cursor: not-allowed;
}

.tool-card:not([href]):hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.tool-card:not([href])::before {
  display: none;
}

.tool-card:not([href]) .tool-icon-container {
  transform: none !important;
}

.tool-card:not([href]) .tool-icon {
  transform: none !important;
}

.tool-card:hover {
  transform: scale(1.02);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 0%, var(--hover-color) 150%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 0;
}

.tool-card:hover::before {
  opacity: 0.4;
}

.tool-icon-container {
  position: relative;
  width: 9rem;
  height: 9rem;
  margin-bottom: 2rem;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-card:hover .tool-icon-container {
  transform: scale(1.1);
}

.tool-card::after {
  content: attr(data-label);
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover::after {
  opacity: 1;
}

.tool-icon {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-card:hover .tool-icon {
  transform: rotate(3deg) scale(1.1);
}

.tool-card:nth-child(1) {
  --hover-color: #3b82f6;
  --icon-color: #60a5fa;
}
.tool-card:nth-child(2) {
  --hover-color: #10b981;
  --icon-color: #34d399;
}
.tool-card:nth-child(3) {
  --hover-color: #6b7280;
  --icon-color: #a3a3a3;
}
.tool-card:nth-child(4) {
  --hover-color: #f59e0b;
  --icon-color: #facc15;
}
.tool-card:nth-child(5) {
  --hover-color: #8b5cf6;
  --icon-color: #c084fc;
}
.tool-card:nth-child(6) {
  --hover-color: #ef4444;
  --icon-color: #f87171;
}

::selection {
  background-color: var(--secondary) !important;
  color: var(--text-primary);
}

::-moz-selection {
  background-color: var(--secondary) !important;
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .tool-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .tool-card:not([href]) {
    opacity: 0.4 !important;
    filter: grayscale(0.6);
    pointer-events: none;
  }
}
