@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #070b14;
  --panel: rgba(18, 25, 40, 0.78);
  --text: #f7f9ff;
  --muted: #8f9bb3;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(78, 102, 255, 0.17),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(0, 213, 255, 0.13),
      transparent 28%
    ),
    var(--bg);
}

button,
a {
  font: inherit;
}

.dashboard {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 32px;
  isolation: isolate;
  overflow: hidden;
}

.background-glow {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.28;
  pointer-events: none;
}

.glow-one {
  top: -130px;
  left: -120px;
  background: #6c4cff;
}

.glow-two {
  right: -120px;
  bottom: -150px;
  background: #00d4ff;
}

.hero {
  max-width: 760px;
  text-align: center;
  animation: fadeUp 0.7s ease both;
}

.eyebrow,
.modal-label {
  margin-bottom: 12px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #8394bd;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #8e7cff, #44d9ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.subtitle {
  max-width: 580px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
}

.category-grid {
  width: min(1050px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
  animation: fadeUp 0.75s ease both;
}

.category-card:nth-child(2) {
  animation-delay: 0.08s;
}
.category-card:nth-child(3) {
  animation-delay: 0.16s;
}
.category-card:nth-child(4) {
  animation-delay: 0.24s;
}

.category-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -55px;
  bottom: -65px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.38;
  transition: transform 0.35s ease;
}

.category-card.social::before {
  background: #7257ff;
}
.category-card.freelance::before {
  background: #00c8a4;
}
.category-card.developer::before {
  background: #ff8a3d;
}
.category-card.others::before {
  background: #44d9ff;
}

.category-card:hover {
  transform: translateY(-9px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.33);
}

.category-card:hover::before {
  transform: scale(1.3);
}

.category-card:focus-visible,
.app-link:focus-visible,
.close-button:focus-visible {
  outline: 3px solid #7dcfff;
  outline-offset: 4px;
}

.card-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.card-icon svg {
  width: 32px;
  fill: currentColor;
}

.card-copy strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 7px;
}

.card-copy small {
  color: var(--muted);
  font-size: 0.92rem;
}

.arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-note {
  color: #68748d;
  font-size: 0.82rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  visibility: hidden;
  pointer-events: none;
}

.modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.74);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 720px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(12, 18, 30, 0.94);
  box-shadow: var(--shadow);
  transform: translateY(26px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.28s ease;
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: clamp(1.65rem, 5vw, 2.4rem);
}

.close-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.close-button:hover {
  transform: rotate(6deg);
  background: rgba(255, 255, 255, 0.12);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.app-link {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 18px 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  animation: appPop 0.45s ease both;
}

.app-link:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.23);
  background: rgba(255, 255, 255, 0.085);
}

.app-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.app-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.app-username {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.modal-open {
  overflow: hidden;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard {
    justify-content: flex-start;
    padding: 55px 18px 32px;
    gap: 30px;
  }

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

  .category-card {
    min-height: 160px;
  }

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

  .modal-panel {
    padding: 22px;
    border-radius: 25px;
  }
}

@media (max-width: 410px) {
  .app-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .app-link {
    min-height: 132px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
