/* Portfolio personality layer: professional dark base with richer accents. */

:root {
  --accent-purple: #a78bfa;
  --accent-violet: #7c3aed;
  --accent-cyan: #22d3ee;
  --accent-teal: #2dd4bf;
  --accent-amber: #f59e0b;
  --accent-orange: #fb923c;
  --accent-rose: #fb7185;
  --surface: rgba(17, 20, 42, 0.82);
  --surface-soft: rgba(24, 28, 58, 0.68);
  --border-soft: rgba(178, 184, 255, 0.2);
  --text-soft: #cbd5e1;
}

html {
  scroll-behavior: smooth;
}

.bg-mesh {
  background:
    radial-gradient(900px 480px at 14% 12%, rgba(124, 58, 237, 0.26), transparent 62%),
    radial-gradient(720px 420px at 84% 18%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(680px 420px at 18% 92%, rgba(245, 158, 11, 0.13), transparent 64%),
    radial-gradient(620px 380px at 96% 82%, rgba(251, 113, 133, 0.11), transparent 66%),
    linear-gradient(165deg, #05050b, #090a18 45%, #070817 100%) !important;
}

.bg-mesh::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 18%, black, transparent 72%);
}

.glass,
.panel {
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(22, 25, 54, 0.84), rgba(10, 13, 30, 0.78)) !important;
  box-shadow:
    0 18px 48px rgba(3, 7, 18, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.glass {
  position: sticky;
  top: 0.75rem;
  z-index: 40;
}

.panel,
.project-card,
.tool-card {
  position: relative;
  overflow: hidden;
}

.panel::before,
.project-card::before,
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), rgba(167, 139, 250, 0.5), transparent);
  opacity: 0.75;
}

.soft-border {
  border-color: var(--border-soft) !important;
}

.chip {
  border-color: rgba(167, 139, 250, 0.3) !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(34, 211, 238, 0.09)) !important;
  color: #ede9fe;
}

.project-card,
.tool-card,
.skill-card,
.passion-link,
.private-card {
  border: 1px solid rgba(178, 184, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(24, 28, 58, 0.9), rgba(12, 15, 34, 0.9)) !important;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.project-card:hover,
.tool-card:hover,
.skill-card:hover,
.passion-link:hover,
.private-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 18px 42px rgba(3, 7, 18, 0.45), 0 0 28px rgba(124, 58, 237, 0.14);
}

.hero-card {
  background:
    radial-gradient(520px 280px at 12% 8%, rgba(167, 139, 250, 0.2), transparent 70%),
    radial-gradient(420px 240px at 86% 24%, rgba(34, 211, 238, 0.15), transparent 68%),
    linear-gradient(145deg, rgba(28, 31, 68, 0.92), rgba(10, 13, 31, 0.92)) !important;
}

.portrait-card {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(520px 280px at 18% 12%, rgba(245, 158, 11, 0.15), transparent 68%),
    linear-gradient(180deg, rgba(22, 25, 54, 0.86), rgba(10, 13, 30, 0.86)) !important;
}

.gradient-title {
  background: linear-gradient(90deg, #ffffff, #c4b5fd 38%, #67e8f9 68%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  padding: 0.32rem 0.72rem;
  color: #a5f3fc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-action {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: linear-gradient(90deg, var(--accent-violet), #2563eb, var(--accent-cyan)) !important;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.2), 0 0 26px rgba(124, 58, 237, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.24), 0 0 34px rgba(34, 211, 238, 0.18);
  text-decoration: none;
}

.secondary-action,
.glass a[href="/contact"],
.glass a[href="/login"],
.glass a[href="/logout"] {
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.secondary-action:hover,
.glass a[href="/contact"]:hover,
.glass a[href="/login"]:hover,
.glass a[href="/logout"]:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.34) !important;
  background: rgba(34, 211, 238, 0.12) !important;
  text-decoration: none;
}

.nav-link,
header nav a {
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.42rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

header nav a:hover::after,
header nav a.font-semibold::after {
  transform: scaleX(1);
}

.field,
input,
textarea,
select {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(34, 211, 238, 0.48) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1) !important;
}

.color-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-rose));
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.accent-line {
  height: 3px;
  width: 4.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan), var(--accent-amber));
}

@media (max-width: 640px) {
  .glass {
    top: 0.35rem;
  }

}
