:root {
  --bg: #07060d;
  --panel: rgba(18, 12, 30, 0.72);
  --panel2: rgba(10, 9, 18, 0.65);
  --text: #e8e7ff;
  --muted: #a7a4c7;

  --purple: #8b5cf6;
  --purple2: #22c55e;
  --green: #22c55e;

  --border: rgba(139, 92, 246, .22);
  --border2: rgba(34, 197, 94, .22);

  --shadow: 0 16px 50px rgba(0, 0, 0, .45);
  --radius: 18px;
  --maxw: 1050px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(139, 92, 246, .25), transparent 60%),
    radial-gradient(1000px 600px at 85% 25%, rgba(34, 197, 94, .18), transparent 55%),
    radial-gradient(900px 600px at 60% 90%, rgba(139, 92, 246, .12), transparent 60%),
    var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 18px 60px;
}

/* --- Top Bar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(10, 9, 18, .55);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 14px;
  z-index: 10;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .6px;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .9), rgba(34, 197, 94, .85));
  box-shadow: 0 10px 30px rgba(139, 92, 246, .22);
  border: 1px solid rgba(255, 255, 255, .12);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  transform: scale(1.04);
  box-shadow: 0 0 10px rgba(139, 92, 246, .35),
    0 0 14px rgba(34, 197, 94, .25);
}

/* --- Brand Arrow Animation --- */
.brand-name {
  position: relative;
  cursor: pointer;
}

.brand-name .shot {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  width: 26px;
  height: 2px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.brand-name .shot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 2px;
  background: rgba(34, 197, 94, .95);
  box-shadow: 0 0 10px rgba(34, 197, 94, .35),
    0 0 16px rgba(139, 92, 246, .25);
}

.brand-name .shot::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  width: 0;
  height: 0;
  border-left: 10px solid rgba(34, 197, 94, .95);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, .35));
}

.brand-name .shot-trail {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  height: 2px;
  width: 120px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
      rgba(34, 197, 94, .35),
      rgba(139, 92, 246, .25),
      transparent);
  opacity: 0;
  pointer-events: none;
}

.brand-name:hover .shot {
  opacity: 1;
  animation: arrowShoot 1.05s cubic-bezier(.22, .61, .36, 1) forwards;
}

.brand-name:hover .shot-trail {
  opacity: 1;
  animation: trailShoot 1.05s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes arrowShoot {
  0% { transform: translate(0, -50%); }
  100% { transform: translate(85vw, -50%); }
}

@keyframes trailShoot {
  0% { transform: translate(0, -50%); opacity: .6; }
  100% { transform: translate(80vw, -50%); opacity: 0; }
}

/* --- Hero --- */
.hero { padding: 44px 6px 22px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .12);
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.grad {
  background: linear-gradient(90deg, rgba(139, 92, 246, 1), rgba(34, 197, 94, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* --- Buttons & List Items --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}

/* Specialized alignment for buttons inside .list (Tooling section) */
.list .btn {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 14px;
}

.list .btn > div:first-child {
  flex: 1;
}

.btn:hover {
  background: rgba(255, 255, 255, .06);
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(139, 92, 246, .55),
    0 0 18px rgba(34, 197, 94, .35);
}

.btn:active { transform: scale(0.98); }

.btn.primary {
  border-color: rgba(34, 197, 94, .35);
  background: linear-gradient(135deg, rgba(34, 197, 94, .18), rgba(139, 92, 246, .12));
  box-shadow: 0 16px 45px rgba(34, 197, 94, .12);
}

.btn.primary:hover {
  box-shadow: 0 0 16px rgba(34, 197, 94, .45),
    0 0 22px rgba(139, 92, 246, .35);
}

/* --- Sections & Cards --- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.card {
  grid-column: span 12;
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .07);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Glow and Lift effect for Featured Projects */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
              0 0 25px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Fade-in reveal effect for descriptions */
.card .meta, .card .pillrow {
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.card:hover .meta, .card:hover .pillrow {
  opacity: 1;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(700px 220px at 20% 0%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(700px 220px at 80% 0%, rgba(34, 197, 94, .12), transparent 60%);
  pointer-events: none;
}

.card > * { position: relative; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .2px;
}

.section-title a {
  color: var(--muted);
  font-size: 13px;
}

.section-title a:hover { color: var(--text); }

.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  font-size: 12px;
  color: rgba(232, 231, 255, .92);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(10, 9, 18, .45);
  padding: 7px 10px;
  border-radius: 999px;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.item {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(10, 9, 18, .45);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.item strong {
  display: block;
  margin-bottom: 2px;
}

.item .meta {
  color: var(--muted);
  font-size: 13px;
}

.tag {
  font-size: 12px;
  color: rgba(34, 197, 94, .95);
  border: 1px solid rgba(34, 197, 94, .25);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .07);
  white-space: nowrap;
  height: fit-content;
}

.twoCol { grid-column: span 12; }

@media (min-width: 900px) {
  .twoCol { grid-column: span 6; }
  .card.span8 { grid-column: span 8; }
  .card.span4 { grid-column: span 4; }
}

footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 18px 10px;
}

.small {
  font-size: 12px;
  color: var(--muted);
}
