/* Minimal, fast, accessible styles */
:root {
  --bg: #0f1014;
  --card: #14161b;
  --text: #e8ecf1;
  --muted: #a9b2bd;
  --accent: #4fd1c5;
  --accent-2: #f8b400;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, #141821, transparent),
              radial-gradient(800px 600px at 90% 20%, #161a24, transparent),
              var(--bg);
  line-height: 1.6;
}

.wrap {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.hero {
  text-align: center;
  max-width: 900px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0));
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.06);
}

.name {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: .5px;
  margin: 0 0 .25rem 0;
}

.tag {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 .5rem 0;
}

.blurb {
  max-width: 640px;
  margin: 1rem auto 2rem;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.6;
}

.blurb strong {
  color: #fff;
  font-weight: 600;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin: 1rem 0 0;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.12);
}

@media (min-width: 640px) {
  .avatar { width: 180px; height: 180px; margin-bottom: 1.25rem; }
}

.btn {
  display: inline-block;
  padding: .7rem 1.1rem;
  border-radius: 14px;
  background: var(--accent);
  color: #0b0f12;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 4px 18px rgba(79,209,197,.35);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn.disabled {
  opacity: .45;
  pointer-events: none;   /* makes it non-clickable */
  cursor: not-allowed;
}

/* Inline SVG icons inside buttons */
.btn .icon {
  width: 18px;
  height: 18px;
  margin-right: .5rem;
  vertical-align: -3px;
  fill: currentColor;         /* inherit text color */
  transition: transform .15s ease, opacity .2s ease;
  opacity: .95;
}
.btn:hover .icon { transform: translateY(-1px); }

/* Optional: brand-tinted hover for LinkedIn & GitHub ghost buttons */
.btn.ghost[href*="linkedin.com"]:hover {
  border-color: #0077B5;
  color: #0077B5;
  box-shadow: 0 0 8px rgba(0,119,181,.35);
}
.btn.ghost[href*="github.com"]:hover {
  border-color: #9da3af;        /* subtle grey */
  color: #e5e7eb;               /* light grey text */
  box-shadow: 0 0 8px rgba(229,231,235,.25);
}

.links {
  margin-top: 2rem;
  background: var(--card);
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  max-width: 900px;
}
.links h2 { margin: .25rem 0 1rem; font-size: 1.1rem; color: #dbe3ea; }
.links ul { list-style: none; padding: 0; margin: 0; }
.links li + li { margin-top: .5rem; }
.links a { color: #d0e7ff; text-decoration: none; border-bottom: 1px dashed rgba(208,231,255,.35); }
.links a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

.foot {
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .95rem;
}
.foot a { color: var(--accent); text-decoration: none; }

/* --- Core Languages & Tools Row --- */
.languages {
  text-align: center;
  margin: 2rem auto;
}

.lang-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;           /* allows wrapping on smaller screens */
  overflow: hidden;          /* prevents scrollbars from appearing */
  padding: 0.5rem 0;
}

/* Base state — large white icons */
.lang-logos img,
.lang-logos svg {
  width: 81px !important;
  height: 81px !important;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.9;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 0 transparent);
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

/* Hover transform + glow pulse animation */
.lang-logos img:hover,
.lang-logos svg:hover {
  transform: scale(1.08) translateY(-3px);
  opacity: 1;
  animation: pulse-glow 1.6s ease-in-out infinite alternate;
}

/* --- Brand-color glows --- */
.lang-logos img[src*="lua"]:hover        { --glow: rgba(0,107,179,0.9); }
.lang-logos img[src*="python"]:hover     { --glow: rgba(255,213,79,0.9); }
.lang-logos img[src*="javascript"]:hover { --glow: rgba(247,223,30,0.9); }
.lang-logos img[src*="php"]:hover        { --glow: rgba(79,93,149,0.9); }
.lang-logos img[src*="mysql"]:hover      { --glow: rgba(0,117,143,0.9); }
.lang-logos img[src*="ansible"]:hover    { --glow: rgba(231,84,0,0.9); }

/* Glow animation for featured NEW badge */
.badge-glow {
  margin-left: 0.4rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--accent, #4fd1c5);
  text-shadow:
    0 0 6px hsl(172 90% 60% / 0.9),
    0 0 12px hsl(172 90% 60% / 0.7),
    0 0 24px hsl(172 90% 60% / 0.5);
  animation: glowPulse 2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes glowPulse {
  0%,100% {
    opacity: 1;
    text-shadow:
      0 0 6px hsl(172 90% 60% / 1),
      0 0 12px hsl(172 90% 60% / .8),
      0 0 24px hsl(172 90% 60% / .6);
  }
  50% {
    opacity: 0.7;
    text-shadow:
      0 0 2px hsl(172 90% 60% / .3),
      0 0 6px hsl(172 90% 60% / .2);
  }
}

/* Featured project link — bright */
.work-list > li.is-featured a {
  color: var(--accent, #4fd1c5);
  text-decoration: none;
  font-weight: 600;
}

/* Coming soon entries — greyed out & non-interactive */
.work-list > li.coming-soon .soon-text {
  color: var(--muted, #7c8592);
  font-style: italic;
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

/* SOON badge — static muted */
.badge-soon {
  margin-left: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, #7c8592);
  border: 1px solid var(--muted, #7c8592);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Layout spacing */
.work-list {
  list-style: none;
  padding: 0;
}
.work-list li {
  margin: 0.3rem 0;
}
