@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #0c1018;
  --surface: #141b27;
  --text: #edf2fa;
  --muted: #aab6c9;
  --accent: #83e5c0;
  --border: #293446;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 85% 0%, #183b354d, transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: "Tajawal", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  padding: 38px 0 28px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  display: inline-block;
  color: var(--accent);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -2px;
}

.site-header p {
  margin: 12px 0 20px;
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #ffffff04;
  font-size: 15px;
  transition: background 180ms, border-color 180ms;
}

.social-links a:hover {
  background: #83e5c010;
  border-color: var(--accent);
}

.hero {
  padding-block: 76px 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 16px;
  border: 1px solid #83e5c038;
  border-radius: 100px;
  background: #83e5c00a;
  color: var(--accent);
  font-size: 15px;
}

h1,
h2,
h3 {
  line-height: 1.45;
}

h1 {
  max-width: 780px;
  margin: 0 auto 20px;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
}

.hero > p:not(.eyebrow) {
  max-width: 610px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 19px;
}

.button,
button[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #10231c;
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: #a6f1d4;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(25px, 3vw, 32px);
}

.skills-section > p,
.suggest-section > p,
.how-it-works > p {
  margin-top: 0;
  color: var(--muted);
}

.skills-section {
  padding-block: 12px 56px;
}

.skill-tools {
  margin-block: 24px;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

input[type="search"],
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0b1019;
  color: var(--text);
}

input[type="search"] {
  min-height: 52px;
  padding: 12px 16px;
}

input::placeholder,
textarea::placeholder {
  color: #8b98ad;
  opacity: 1;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.filter-button {
  min-height: 44px;
  padding: 7px 17px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter-button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #10231c;
  font-weight: 700;
}

.result-count {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  position: relative;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #192231, var(--surface));
  transition: border-color 180ms, transform 180ms;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: #83e5c066;
}

.status {
  display: inline-block;
  padding: 2px 11px;
  border: 1px solid #eacb7833;
  border-radius: 100px;
  background: #eacb780a;
  color: #eacb78;
  font-size: 13px;
}

.skill-card h3 {
  margin: 18px 0 12px;
  font-size: 22px;
}

.skill-name {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.skill-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.how-it-works,
.suggest-section {
  margin-bottom: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-block: 28px;
  padding-inline-start: 25px;
}

.how-it-works li {
  padding-inline-start: 5px;
}

.how-it-works li::marker {
  color: var(--accent);
  font-weight: 800;
}

.how-it-works > p:last-child {
  margin-bottom: 0;
  font-size: 15px;
}

.suggest-section {
  background:
    radial-gradient(ellipse at top left, #83e5c00c, transparent 65%),
    var(--surface);
}

form {
  margin-top: 22px;
}

form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

textarea {
  min-height: 150px;
  padding: 15px;
  resize: vertical;
}

#privacy-note,
#form-status {
  color: var(--muted);
  font-size: 14px;
}

button:disabled {
  background: #283447;
  color: #b8c3d4;
  cursor: not-allowed;
}

.site-footer {
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.site-footer p {
  margin: 5px 0;
}

.site-footer p:last-child {
  color: var(--text);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-it-works ol {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 28px);
  }

  .site-header {
    padding-top: 28px;
  }

  .hero {
    padding-block: 48px;
  }

  .hero > p:not(.eyebrow) {
    font-size: 17px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .how-it-works,
  .suggest-section {
    padding: 22px;
  }

  .social-links a {
    padding-inline: 15px;
  }

  .filter-button {
    padding-inline: 13px;
    font-size: 15px;
  }

  button[type="submit"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .skill-card:hover {
    transform: none;
  }
}