/* ============================================
   TOOLS - Self-contained Stylesheet
   Dark Glassmorphism Theme
   ============================================ */

/* CSS Variables */
:root {
  --bg: #07071a;
  --bg2: #0d0d2b;
  --text: #f5f5f5;
  --muted: #a0a0b8;
  --accent: #6c63ff;
  --accent-2: #ff6584;
  --accent-3: #43e97b;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --tr: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108,99,255,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,101,132,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 26, 0.8);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

/* Logo styling - now plain text */

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--tr);
  position: relative;
}

.nav a:hover {
  color: var(--text);
}

.nav a.active {
  color: var(--accent);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--tr);
}

.back-btn:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--tr);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-title .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   TOOLS GRID
   ============================================ */
.tools-section {
  padding: 40px 0 100px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  text-decoration: none;
  color: inherit;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--tr);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(108, 99, 255, 0.18);
  border-color: rgba(108, 99, 255, 0.25);
}

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

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
  color: white;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
}

.tool-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tool-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  flex-grow: 1;
}

.tool-tags {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tool-tag {
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .tool-card {
    padding: 24px;
  }
  
  .tool-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}
