:root{
  --bg: #0b0d12;
  --panel: #0f1420;
  --text: #e7eaf0;
  --muted: #aab2c3;
  --line: rgba(255,255,255,.10);
  --accent: #7c5cff;
  --accent2:#2dd4bf;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(124,92,255,.18), transparent 60%),
              radial-gradient(1000px 500px at 80% 10%, rgba(45,212,191,.14), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .9; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px; top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 18px; top: 18px;
  width:auto; height:auto;
  padding:10px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11,13,18,.65);
  border-bottom: 1px solid var(--line);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.dot{
  width: 12px; height: 12px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(124,92,255,.18);
}

.nav{
  display:flex;
  gap: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15,20,32,.55);
}
.nav a{ color: var(--muted); font-weight: 600; }
.nav a:hover{ color: var(--text); }

.header-actions{
  display:flex; gap: 10px; align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;

  /* “half highlight” default */
  border: 1px solid rgba(124,92,255,.45);
  background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(45,212,191,.08));
  box-shadow: 0 8px 18px rgba(0,0,0,.18);

  transition: transform 150ms ease, border-color 150ms ease, background 200ms ease, box-shadow 200ms ease;
}

.btn:hover{
  /* “full highlight” on hover */
  border-color: rgba(45,212,191,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.30), rgba(45,212,191,.16));
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0px);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}

/* Secondary button: still looks like a button, just calmer */
.btn-ghost{
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);

  /* subtle tint so it reads “clickable” even when not hovered */
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(124,92,255,.06));
}

.btn-ghost:hover{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(45,212,191,.10));
}

/* Keyboard accessibility (nice to have) */
.btn:focus-visible{
  outline: 3px solid rgba(124,92,255,.45);
  outline-offset: 3px;
}

.btn-disabled{
  opacity: .6;
  cursor: default;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  box-shadow: none;
}


.hero{
  padding: 54px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 22px;
  align-items: start;
}
.eyebrow{
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .4px;
  margin: 0 0 10px;
}
h1{
  font-size: clamp(2rem, 2.4vw + 1.2rem, 3.2rem);
  line-height: 1.12;
  margin: 0 0 14px;
}
.lead{
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.cta-row{
  display:flex; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 18px;
}
.quick-facts{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding:0; margin: 0;
  list-style: none;
}
.quick-facts li{
  /* flatter + calmer = reads as info label */
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  color: rgba(170,178,195,.92);

  padding: 7px 10px;
  border-radius: 999px;

  font-weight: 700;
  font-size: .92rem;

  cursor: default;        /* “not clickable” signal */
  user-select: text;      /* you can select/copy it */
}

/* Ensure they don't “react” like buttons */
.quick-facts li:hover{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}


.hero-card{
  border: 1px solid var(--line);
  background: rgba(15,20,32,.55);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-title{ margin: 0 0 10px; font-size: 1.1rem; }

.section{
  padding: 46px 0;
}
.section-alt{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15,20,32,.25);
}

.section-head{
  margin-bottom: 18px;
}
.section-head h2{
  margin: 0 0 8px;
  font-size: 1.8rem;
}
.section-head p{
  margin: 0;
  color: var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2{
  grid-template-columns: repeat(2, 1fr);
}


.card{
  border: 1px solid var(--line);
  background: rgba(15,20,32,.55);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-top h3{ margin: 0 0 4px; }
.meta{ margin: 0 0 12px; color: var(--muted); font-weight: 600; }

/* Only project cards glow */
.project-card{
  /*isolation: isolate;   if the bloom layering behaves weirdly between cards, this might help?*/
  position: relative;
  /* IMPORTANT: do NOT overflow:hidden here or bloom gets clipped */
  --glowA: 124,92,255;
  --glowB: 45,212,191;
  --rimOpacity: .18;  /* subtle at rest */
  --glowOpacity: .06; /* subtle at rest */
}

/* neon rim */
.project-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(var(--glowA), var(--rimOpacity)),
    rgba(var(--glowB), calc(var(--rimOpacity) * .85)),
    rgba(255,255,255,.06)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
  z-index: 0;
}

/* bloom */
.project-card::after{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius: calc(var(--radius) + 18px);

  background:
    radial-gradient(60% 60% at 30% 20%,
      rgba(var(--glowA), var(--glowOpacity)),
      transparent 60%
    ),
    radial-gradient(60% 60% at 80% 30%,
      rgba(var(--glowB), calc(var(--glowOpacity) * .85)),
      transparent 65%
    );

  filter: blur(14px);
  opacity: .7;
  pointer-events: none;
  z-index: 0;
}

/* keep content above glow */
.project-card > *{
  position: relative;
  z-index: 2;
}

/* hover: stronger glow only (NO movement) */
.project-card:hover::before{ --rimOpacity: .45; }
.project-card:hover::after{ --glowOpacity: .14; opacity: 1; }



.card-media{
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  aspect-ratio: 16 / 9;
}

.card-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;          /* crops nicely instead of stretching */
  transform: scale(1.03);
  transition: transform 400ms ease;
}

/* subtle “interactive” feel on hover */
.project-card:hover .card-media img{
  transform: scale(1.08);
}

.card-media-placeholder{
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(170,178,195,.75);
  font-weight: 700;
  background:
    radial-gradient(800px 240px at 30% 10%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(600px 220px at 80% 20%, rgba(45,212,191,.14), transparent 55%),
    rgba(255,255,255,.02);
}


/* Clickable card stretch link (correct layering) */
.card-clickable{
  position: relative;
  isolation: isolate;     /* keeps z-index behavior contained */
  cursor: pointer;
}

.card-stretch{
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  z-index: 5;            /* on top of normal card content */
}

/* Keep action links above the stretched link so they still work */
.card-actions,
.card-actions a,
.card-actions .link,
.card-actions .link-disabled{
  position: relative;
  z-index: 6;
}

/* Cursor rules: only clickable things look clickable */
.card-actions a.link{ cursor: pointer; }
.card-actions .link-disabled{ cursor: default; }


/* Disabled links */
.link-disabled{
  opacity: .75;
  color: rgba(170,178,195,.55);
  border-bottom-color: rgba(255,255,255,.10);
  cursor: default;
  user-select: none;
}
.link-disabled:hover{
  border-bottom-color: rgba(255,255,255,.10);
  opacity: 1;
}

/* Color presets: set --glowA and --glowB per card */
.glow-purple { --glowA: 124,92,255; --glowB: 255,72,184; }  /* purple → pink */
.glow-cyan   { --glowA: 45,212,191; --glowB: 56,189,248; }  /* teal → sky */
.glow-green  { --glowA: 34,197,94;  --glowB: 16,185,129; }  /* green → emerald */
.glow-red    { --glowA: 239,68,68;  --glowB: 249,115,22; }  /* red → orange */
.glow-yellow { --glowA: 250,204,21; --glowB: 253,186,116; } /* yellow → warm */
.glow-silver { --glowA: 203,213,225;--glowB: 148,163,184; } /* silver → slate */


.bullets{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{ margin: 6px 0; }

.tags{
  display:flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.tag{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
}

.card-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.link{
  color: var(--text);
  font-weight: 800;
  border-bottom: 1px solid rgba(124,92,255,.45);
}
.link:hover{ border-bottom-color: rgba(45,212,191,.55); }

.two-col{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}
.panel{
  border: 1px solid var(--line);
  background: rgba(15,20,32,.55);
  border-radius: var(--radius);
  padding: 16px;
}

.contact{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}
.contact-card{ padding: 14px 16px; }
.contact-row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child{ border-bottom: 0; }
.label{ color: var(--muted); font-weight: 800; }

.site-footer{
  padding: 26px 0 40px;
}
.footer-row{
  display:flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.muted{ color: var(--muted); }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}

