:root {
  --bg: #e0e5ec; /* Soft background */
  --card: #e0e5ec; /* Card surface */
  --text: #2e2e2e; /* Readable dark text */
  --accent: #00aaff; /* Accent Blue */
  --accent2: #ff4da6; /* Accent Pink */
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Poppins", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  padding: 0 20px;
}

/* Hero Section */
header.hero {
  text-align: center;
  padding: 60px 20px;
  max-width: 100%;
}
header.hero h1 {
  font-size: 44px;
  color: var(--accent);
  margin-bottom: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
}
header.hero h1:hover {
  transform: scale(1.05);
  color: var(--accent2);
}
header.hero p {
  margin-top: 12px;
  font-size: 18px;
  color: #555;
}
.cta {
  margin-top: 20px;
  font-size: 16px;
  color: var(--accent2);
  font-weight: 600;
}

/* Section Title */
.tools-section {
  max-width: 1100px;
  margin: 0 auto 60px;
  flex: 1;
}
h2.section-title {
  font-size: 22px;
  margin: 40px 0 20px;
  color: var(--accent);
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent2);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 100%;
}
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* Neumorphic Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.6s forwards;
  max-width: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 8px 16px #b8bcc2, -8px -8px 16px #ffffff;
}
.card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card p {
  font-size: 14px;
  margin: 8px 0 16px;
  color: #444;
}

/* Buttons */
.card button,
.card .btn {
  background: var(--card);
  color: var(--text);
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 8px #b8bcc2, -4px -4px 8px #ffffff;
  transition: all 0.2s ease;
  text-align: center;
}
.card button:hover,
.card .btn:hover {
  background: linear-gradient(145deg, var(--accent), var(--accent2));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px #b8bcc2, -6px -6px 12px #ffffff;
}

/* Footer */
footer {
  background: var(--card);
  padding: 20px;
  text-align: center;
  border-top: 1px solid #d1d5db;
  margin-top: auto;
  box-shadow: inset 4px 4px 8px #b8bcc2, inset -4px -4px 8px #ffffff;
}
footer p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
footer nav {
  margin-top: 8px;
}
footer a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--accent2);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
footer a:hover {
  opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- MOBILE RESPONSIVE ---------------- */
@media (max-width: 768px) {
  header.hero {
    padding: 40px 15px;
  }
  header.hero h1 {
    font-size: 32px;
  }
  header.hero p {
    font-size: 16px;
  }

  h2.section-title {
    font-size: 20px;
  }

  .card {
    padding: 16px;
  }
  .card h3 {
    font-size: 16px;
  }
  .card p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 12px;
  }

  header.hero {
    padding: 30px 10px;
  }
  header.hero h1 {
    font-size: 26px;
  }
  header.hero p {
    font-size: 14px;
  }
  .cta {
    font-size: 14px;
  }

  h2.section-title {
    font-size: 18px;
  }

  .card {
    padding: 14px;
  }
  .card h3 {
    font-size: 15px;
  }
  .card p {
    font-size: 12px;
  }

  footer p,
  footer a {
    font-size: 12px;
  }
}
