:root {
  --primary: #d4af37;
  --primary-dark: #b38f2d;
  --primary-light: rgba(212, 175, 55, 0.1);
  --text: #2c3e50;
  --text-light: #666;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

body {
  background: linear-gradient(135deg, var(--bg) 0%, #e9ecef 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, var(--primary-light) 0%, transparent 50%);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.03;
  pointer-events: none;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out;
  position: relative;
  padding: 1.2rem 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  opacity: 0.8;
}

.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  padding: 2px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: white;
}

.logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.logo:hover img {
  transform: scale(1.1);
}

.header-content {
  max-width: 450px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--text);
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
}

.header h1::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.header h1:hover::after {
  width: 130px;
}

.header p {
  color: var(--text-light);
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.5;
  position: relative;
}

.power-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0 3px;
}

.power-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.power-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.power-link:hover::after {
  transform: scaleX(1);
}

.search-box {
  position: relative;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-box input {
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.9);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  outline: none;
  background: white;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  transition: all 0.3s ease;
}

.search-box input:focus + i {
  color: var(--primary-dark);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.tool-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.2rem;
  text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tool-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: white;
  text-decoration: none !important;
  color: var(--text);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover::after {
  opacity: 0.03;
}

.tool-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-dark);
}

.tool-text {
  position: relative;
  z-index: 1;
  width: 100%;
}

.tool-text h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  color: var(--text);
  transition: color 0.3s ease;
  text-decoration: none !important;
}

.tool-text p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  transition: color 0.3s ease;
  text-decoration: none !important;
}

.tool-card:hover .tool-text h5,
.tool-card:hover .tool-text p {
  text-decoration: none !important;
}

a.tool-card:hover,
a.tool-card:focus,
a.tool-card:active {
  text-decoration: none !important;
  color: var(--text);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 576px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .tool-card {
    padding: 1rem;
  }

  .tool-icon {
    font-size: 1.5rem;
  }

  .tool-text h5 {
    font-size: 0.9rem;
  }

  .tool-text p {
    font-size: 0.8rem;
  }

  .header {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .logo {
    width: 75px;
    height: 75px;
  }

  .header h1 {
    font-size: 1.4rem;
    margin: 0.4rem 0;
  }

  .header p {
    font-size: 0.7rem;
  }
}
