/* ============================================
   AMAR TOOLS HUB - Main Stylesheet
   A Premium AI + SEO + Web Tools Platform
   ============================================ */

/* --------------------------------------------
   CSS Variables & Theme
   -------------------------------------------- */
:root {
  /* Primary Colors */
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --secondary: #00cec9;
  --accent: #fd79a8;
  --accent-blue: #0984e3;
  --accent-purple: #a29bfe;
  --accent-cyan: #00cec9;

  /* Neon Colors */
  --neon-blue: #00d4ff;
  --neon-purple: #7c3aed;
  --neon-cyan: #00f5d4;
  --neon-pink: #ff006e;
  --neon-glow: rgba(108, 92, 231, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --gradient-secondary: linear-gradient(135deg, #00cec9 0%, #0984e3 100%);
  --gradient-accent: linear-gradient(135deg, #fd79a8 0%, #6c5ce7 100%);
  --gradient-hero: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

  /* Background */
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #b0b0cc;
  --text-muted: #6c6c8a;
  --text-inverse: #0a0a1a;

  /* Borders */
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(255, 255, 255, 0.2);
  --border-color: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);
  --shadow-glow-blue: 0 0 30px rgba(0, 212, 255, 0.2);
  --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.3);

  /* Sizes */
  --header-height: 70px;
  --container-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Font */
  --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', monospace;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8a8aaa;
  --border-glass: rgba(0, 0, 0, 0.1);
  --border-glass-hover: rgba(0, 0, 0, 0.2);
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-normal), color var(--transition-normal);
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* --------------------------------------------
   Container
   -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------
   Animated Background
   -------------------------------------------- */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.animated-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite;
}

.animated-bg .orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--neon-purple);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.animated-bg .orb:nth-child(2) {
  width: 500px;
  height: 500px;
  background: var(--neon-blue);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.animated-bg .orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: var(--neon-cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(100px, -100px) scale(1.1); }
  50% { transform: translate(-50px, 100px) scale(0.9); }
  75% { transform: translate(100px, 50px) scale(1.05); }
}

/* Particles Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------
   Utility Classes
   -------------------------------------------- */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.neon-glow {
  box-shadow: var(--shadow-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header .gradient-text {
  display: inline-block;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.tag-primary {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(108, 92, 231, 0.3);
}

.tag-success {
  background: rgba(0, 206, 201, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(0, 206, 201, 0.3);
}

/* --------------------------------------------
   Breadcrumb
   -------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary-light);
}

.breadcrumb .separator {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.breadcrumb .current {
  color: var(--primary-light);
}

/* --------------------------------------------
   Page Header
   -------------------------------------------- */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------
   Navbar
   -------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.navbar .logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  font-weight: 900;
}

.navbar .logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  transform: rotate(30deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(10, 10, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-20px);
  transition: all var(--transition-normal);
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu a {
  display: block;
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

/* --------------------------------------------
   Hero Section
   -------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.3);
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .gradient-text {
  display: inline-block;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 32px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-search {
  max-width: 700px;
  margin: 40px auto 0;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.2);
  background: var(--bg-glass-hover);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.search-box .search-shortcut {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  background: var(--bg-glass);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Floating Tool Cards in Hero */
.hero-floating-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-card {
  position: absolute;
  padding: 12px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: var(--shadow-md);
}

.floating-card .fc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.floating-card:nth-child(1) {
  top: 20%;
  left: 5%;
  animation-delay: 0s;
}

.floating-card:nth-child(1) .fc-icon { background: rgba(108, 92, 231, 0.2); }

.floating-card:nth-child(2) {
  top: 60%;
  left: 3%;
  animation-delay: -2s;
}

.floating-card:nth-child(2) .fc-icon { background: rgba(0, 206, 201, 0.2); }

.floating-card:nth-child(3) {
  top: 30%;
  right: 5%;
  animation-delay: -1s;
}

.floating-card:nth-child(3) .fc-icon { background: rgba(253, 121, 168, 0.2); }

.floating-card:nth-child(4) {
  top: 65%;
  right: 3%;
  animation-delay: -3s;
}

.floating-card:nth-child(4) .fc-icon { background: rgba(9, 132, 227, 0.2); }

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* --------------------------------------------
   Categories Section
   -------------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.category-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.category-card .cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  transition: all var(--transition-normal);
}

.category-card:hover .cat-icon {
  transform: scale(1.1) rotate(-5deg);
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cat-icon.ai { background: rgba(108, 92, 231, 0.15); color: var(--primary-light); }
.cat-icon.seo { background: rgba(0, 206, 201, 0.15); color: var(--secondary); }
.cat-icon.image { background: rgba(253, 121, 168, 0.15); color: var(--accent); }
.cat-icon.pdf { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.cat-icon.social { background: rgba(9, 132, 227, 0.15); color: var(--accent-blue); }
.cat-icon.dev { background: rgba(255, 218, 121, 0.15); color: #ffda79; }
.cat-icon.calc { background: rgba(0, 245, 212, 0.15); color: var(--neon-cyan); }

/* --------------------------------------------
   Tools Grid
   -------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.tool-card .tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card .tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.tool-card .tool-category {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary-light);
  font-weight: 500;
}

.tool-card .tool-actions {
  display: flex;
  gap: 8px;
}

.tool-card .tool-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.tool-card .tool-btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.tool-card .tool-btn-primary:hover {
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.tool-card .trending-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--neon-pink), var(--accent));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.tool-card .tool-icon.ai { background: rgba(108, 92, 231, 0.15); }
.tool-card .tool-icon.seo { background: rgba(0, 206, 201, 0.15); }
.tool-card .tool-icon.image { background: rgba(253, 121, 168, 0.15); }
.tool-card .tool-icon.pdf { background: rgba(255, 107, 107, 0.15); }
.tool-card .tool-icon.social { background: rgba(9, 132, 227, 0.15); }
.tool-card .tool-icon.dev { background: rgba(255, 218, 121, 0.15); }
.tool-card .tool-icon.calc { background: rgba(0, 245, 212, 0.15); }

/* --------------------------------------------
   Statistics Section
   -------------------------------------------- */
.stats-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
}

.stat-item .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* --------------------------------------------
   FAQ Section
   -------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--border-glass-hover);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  background: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px;
  max-height: 500px;
}

/* --------------------------------------------
   Blog Section
   -------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-glass-hover);
}

.blog-card .blog-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card .blog-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, var(--bg-primary));
}

.blog-card .blog-content {
  padding: 24px;
}

.blog-card .blog-category {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary-light);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------
   Newsletter Section
   -------------------------------------------- */
.newsletter-section {
  background: var(--gradient-hero);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-box {
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-box p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

/* --------------------------------------------
   Footer
   -------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------
   Tool Page Layout
   -------------------------------------------- */
.tool-page {
  padding-top: calc(var(--header-height) + 30px);
  min-height: 100vh;
}

.tool-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 30px 0;
}

.tool-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  height: fit-content;
}

.tool-sidebar-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.tool-sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-tool-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

.sidebar-tool-list a:hover,
.sidebar-tool-list a.active {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-light);
}

.sidebar-tool-list a .st-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.tool-main {
  min-height: 60vh;
}

.tool-header {
  margin-bottom: 24px;
}

.tool-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tool-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tool-body {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  min-height: 400px;
}

.tool-body textarea,
.tool-body input[type="text"],
.tool-body input[type="number"],
.tool-body select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  margin-bottom: 16px;
}

.tool-body textarea:focus,
.tool-body input:focus,
.tool-body select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

.tool-body textarea {
  min-height: 150px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tool-body label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tool-body .form-group {
  margin-bottom: 20px;
}

.tool-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.output-area {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px;
  min-height: 100px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
  position: relative;
}

.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tool-result {
  margin-top: 24px;
}

.tool-result .result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tool-result .result-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --------------------------------------------
   Share Buttons
   -------------------------------------------- */
.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
}

.share-btn:hover {
  color: white;
  transform: translateY(-2px);
}

.share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share-btn.copy:hover { background: var(--primary); border-color: var(--primary); }

/* --------------------------------------------
   Pagination
   -------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* --------------------------------------------
   404 Page
   -------------------------------------------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
}

.error-page h1 {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.error-page h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* --------------------------------------------
   About/Contact/Policy Pages
   -------------------------------------------- */
.content-page {
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 60px;
  min-height: 100vh;
}

.content-page .page-content {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  line-height: 1.8;
}

.content-page .page-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
}

.content-page .page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.content-page .page-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.content-page .page-content ul,
.content-page .page-content ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-page .page-content li {
  margin-bottom: 8px;
}

.content-page .page-content ul li {
  list-style: disc;
}

.content-page .page-content ol li {
  list-style: decimal;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* --------------------------------------------
   Skeleton Loading
   -------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-hover) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  padding: 24px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
}

.skeleton .skeleton-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.skeleton .skeleton-text {
  height: 14px;
  margin-bottom: 10px;
}

.skeleton .skeleton-text:last-child {
  width: 60%;
}

.skeleton .skeleton-title {
  height: 20px;
  width: 80%;
  margin-bottom: 12px;
}

/* --------------------------------------------
   Floating Action Button
   -------------------------------------------- */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.fab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}

.fab-btn.secondary {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------
   Cookie Consent
   -------------------------------------------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  z-index: 9999;
  display: none;
  backdrop-filter: blur(20px);
}

.cookie-consent.show {
  display: block;
}

.cookie-consent .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

/* --------------------------------------------
   Back to Top
   -------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}

/* --------------------------------------------
   Mouse Glow Effect
   -------------------------------------------- */
.mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* --------------------------------------------
   Animations
   -------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* --------------------------------------------
   Filter & Search Dropdown
   -------------------------------------------- */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-results-dropdown .result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.search-results-dropdown .result-item:last-child {
  border-bottom: none;
}

.search-results-dropdown .result-item:hover {
  background: var(--bg-glass);
}

.search-results-dropdown .result-item .ri-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-results-dropdown .result-item .ri-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.search-results-dropdown .result-item .ri-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* --------------------------------------------
   Toast Notifications
   -------------------------------------------- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

.toast.success { border-left: 4px solid var(--secondary); }
.toast.error { border-left: 4px solid var(--accent); }
.toast.info { border-left: 4px solid var(--primary); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------
   Responsive Design
   -------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-sidebar {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 0;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .tool-body .form-row {
    grid-template-columns: 1fr;
  }

  .tool-header h1 {
    font-size: 1.4rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .content-page .page-content {
    padding: 24px;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  .hero-floating-cards {
    display: none;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .category-card {
    padding: 20px 16px;
  }

  .category-card .cat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}
