/* ==== CSS Variables ==== */
:root {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --text: #ecf0f1;
  --text-light: #bdc3c7;
  --bg: #121212;
  --card-bg: #1e1e1e;
  --border: #333;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Inter', sans-serif; background:var(--bg); color:var(--text); line-height:1.6; transition: var(--transition); }
.container { max-width: 1280px; margin:0 auto; padding:0 20px; }
a { text-decoration:none; color:inherit; }

/* Header */
.header {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top:0;
  z-index:1000;
  transition: var(--transition);
}
.header-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 0;
}
.logo {
  font-size:1.8rem;
  font-weight:700;
  color:var(--primary);
}
.nav-list {
  display:flex;
  gap:2rem;
  list-style:none;
  align-items:center;
}
.nav-list a {
  font-weight:500;
  transition:var(--transition);
}
.nav-list a:hover { color:var(--primary); }
.btn-login, .btn-signup {
  padding:0.5rem 1rem;
  border-radius:6px;
  font-weight:600;
}
.btn-login { border:1px solid var(--border); }
.btn-signup {
  background:var(--primary);
  color:white;
  margin-left:1rem;
}
.btn-signup:hover { background:var(--primary-dark); }

/* Hamburger */
.hamburger {
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
}
.hamburger span {
  width:25px;
  height:3px;
  background:var(--text);
  transition:var(--transition);
}

/* Hero */
.hero {
  text-align:center;
  padding:100px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
}
.hero h1 {
  font-size:3rem;
  margin-bottom:1rem;
  color:var(--text);
}
.hero p {
  max-width:700px;
  margin:0 auto 2.5rem;
  font-size:1.2rem;
  color:var(--text-light);
}
.filters {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
}
.filter-btn {
  padding:10px 20px;
  border:1px solid var(--border);
  background:var(--card-bg);
  border-radius:30px;
  cursor:pointer;
  transition:var(--transition);
  font-weight:500;
}
.filter-btn:hover, .filter-btn.active {
  background:var(--primary);
  color:white;
  border-color:var(--primary);
}

/* Tools Grid */
.tools-section { padding:80px 0; }
.tools-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:24px;
}
.tool-card {
  background:var(--card-bg);
  border-radius:12px;
  padding:24px;
  text-align:center;
  box-shadow:var(--shadow);
  transition: var(--transition);
  cursor:pointer;
  border:1px solid var(--border);
}
.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.12);
}
.tool-icon {
  width:70px;
  height:70px;
  background:var(--primary);
  border-radius:12px;
  margin:0 auto 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  color:white;
}
.tool-card h3 { margin-bottom:10px; font-size:1.3rem; }
.tool-card p { color:var(--text-light); font-size:0.95rem; }

/* Dark Mode Toggle */
.dark-mode-toggle {
  position:fixed;
  bottom:30px;
  right:30px;
  width:60px;
  height:60px;
  border-radius:50%;
  background:var(--primary);
  color:white;
  border:none;
  font-size:24px;
  cursor:pointer;
  box-shadow:0 4px 15px rgba(0,0,0,0.2);
  z-index:999;
}

/* Footer */
.footer {
  background:#1a1a1a;
  color:#ddd;
  padding:60px 0 30px;
}
.footer-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap:40px;
  margin-bottom:40px;
}
.footer-col h3,
.footer-col h4 { margin-bottom:20px; color:white; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:10px; }
.footer-col a:hover { color:var(--primary); }
.footer-bottom {
  text-align:center;
  padding-top:30px;
  border-top:1px solid #333;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}
.social-icons a {
  margin-left:15px;
  font-size:20px;
}

/* Mobile Menu */
.mobile-menu {
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.95);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:var(--transition);
}
.mobile-menu.active {
  opacity:1;
  visibility:visible;
}
.mobile-nav-list {
  list-style:none;
  text-align:center;
}
.mobile-nav-list li { margin:20px 0; }
.mobile-nav-list a {
  color:white;
  font-size:1.5rem;
  font-weight:500;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-list { display:none; }
  .hamburger { display:flex; }
  .hero h1 { font-size:2.4rem; }
}

@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction:column; text-align:center; }
}