/* Base */
:root{
  --bg:#040c15;
  /* --card:#111214; */
  --card: #110e02;
  --muted:#a1a1aa;
  --acc:#ffd400;
  --edge:#11ff47;

  --coal:#0a0a0a;           /* deep black */
  --gold:#ffd400;           /* primary gold */
  --gold-warm:#caa014;      /* warm gold */
  --gold-soft:#f3e58a;      /* soft highlight */
  
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:white;
  /* background:var(--bg); */
  overflow-x:hidden;
}

/* Splash */
.splash{
  position:fixed; inset:0; background:black;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:2rem;
  z-index:9999;
}
.splash .brand {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.eyes{
  display:flex; gap:min(7vw,80px); align-items:center; justify-content:center;
}
.eye{
  width:min(46vw,520px);
  height:min(28vw,320px);
  display:grid; place-items:center;
  filter: drop-shadow(0 0 10px rgba(255,212,0,.2));
  animation:flicker 1.2s ease-in-out infinite;
}
.eye img{
  width:100%; height:100%; object-fit:cover; border-radius:999px;
  box-shadow:0 0 0 2px rgba(17,255,71,0.35) inset;
}
.brand h1{margin:0; font-size:clamp(22px,3vw,36px); letter-spacing:.12em}
.brand p{margin:.25rem 0 0; color:var(--muted); font-weight:500; letter-spacing:.2em; font-size:.9rem}

#contact a { color: var(--acc); text-decoration: none; }
#contact a:hover { text-decoration: underline; }

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.about-wrapper p {
  line-height: 1.7;
  color: whitesmoke;
  font-size: large;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1;
  min-width: 250px;
}
.hero-text h1 {
  margin: 0 0 12px;
  line-height: 1.2;
}
.hero-text p {
  max-width: 60ch;
  margin: 0 auto 18px;
  color: var(--muted);
}


/* Center just the button row (single source of truth) */
.cta-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}
/* Make buttons bigger */
.cta-row .btn {
  font-size: 1.1rem;
  padding: 13px 20px;
  border-radius: 18px;
}
.cta-break { flex-basis: 100%; height: 0; }

/* .about-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--acc);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transform: scale(1.15) translateX(10px);
  object-position: center;
} */

@keyframes flicker {
  0% { filter:brightness(1) drop-shadow(0 0 6px rgba(255,212,0,.25)); transform:translateY(0) }
  30%{ filter:brightness(1.25) drop-shadow(0 0 16px rgba(255,212,0,.5)); transform:translateY(-1px) }
  60%{ filter:brightness(0.95) drop-shadow(0 0 10px rgba(255,212,0,.35)); transform:translateY(1px) }
  100% { filter:brightness(1.15) drop-shadow(0 0 14px rgba(255,212,0,.45)); transform:translateY(0) }
}

body.show-main .splash{
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .6s ease;
}

/* Header / hero */
.nav{max-width:1100px; margin:0 auto; padding:20px 16px; display:flex; justify-content:space-between; align-items:center}
.logo{font-weight:800; letter-spacing:.03em}
.logo span{color:var(--acc)}
.nav-links{list-style:none; display:flex; gap:20px; padding:0; margin:0}
.nav a{color:white; text-decoration:none; opacity:.85}
.nav a:hover{opacity:1}

.hero{max-width:1100px; margin:0 auto; padding:56px 16px 32px}
.hero h1{font-size:clamp(28px,5vw,48px); margin:0 0 12px; line-height:1.1}
.hero h1 span{color:var(--acc)}
.hero p{color:var(--muted); margin:0 0 18px}

/* Base buttons */
.btn{border:1px solid #2a2a2a; padding:10px 14px; border-radius:14px; text-decoration:none; color:white; display:inline-block}
.btn.primary{background: whitesmoke; color:#111; border-color:transparent; font-weight:700}
.btn.ghost{background: whitesmoke; border-color:#3a3a3a; color: black}
.btn.ghost:hover{background: var(--acc)}
.btn.small{padding:8px 12px; font-size:.9rem}
.btn.hehe{background: whitesmoke; border-color:#3a3a3a; color: black}
.btn.hehe:hover{background: var(--acc)}

/* Sections */
.section{max-width:1100px; margin:0 auto; padding:56px 16px}
.section h2{font-size:clamp(22px,3.6vw,32px); margin:0 0 12px}
.section-head{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.gh-user{display:flex; align-items:center; gap:8px}
.gh-user input{background:#0f1012; color:white; border:1px solid #2b2c2f; border-radius:10px; padding:8px 10px; width:200px}

/* Project grid */
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px}
.card{
  background:var(--card); border:1px solid #1a1b1f; border-radius:16px; padding:16px;
  display:flex; flex-direction:column; gap:10px; transition:transform .2s ease, border-color .2s ease;
}
.card:hover{transform:translateY(-2px); border-color:#2a2b30}
.card .name{ display:flex; align-items:center; gap:10px; font-weight:700; color:var(--acc); font-size: 1.2rem;}
.tag{font-size:.75rem; padding:3px 8px; border:1px solid #30323a; border-radius:999px; color:#cfcfd4}
.meta{display:flex; gap:10px; flex-wrap:wrap; color:#b2b2b8; font-size:.85rem}
.card p{color:#c9c9d2; margin:.25rem 0 .5rem; min-height:2.4em}

/* kill the dashed underline on card links */
.actions a { border: 0; text-decoration: none; }

.actions .btn {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: .2px;
  color: #111;
  background: linear-gradient(135deg, #f0dc59ff, #ccbd71ff, #caa014);
  border: 0;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(77, 27, 9, 1);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  overflow: hidden;
  isolation: isolate;
}

.actions .btn::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.28) 45%, transparent 60%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform .9s ease;
  pointer-events:none;
}

.actions .btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255,212,0,.4), inset 0 0 0 1px rgba(255,255,255,.15);
  filter: saturate(1.05);
}
.actions .btn:hover::after{ transform: translateX(130%) skewX(-18deg); }



/* Bigger, more prominent photo */
.about-photo-wrap {
  position: relative;
  display: inline-block;
  width: 220px;   /* larger */
  height: 220px;
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 6px 22px rgba(0,0,0,0.6);
  z-index: 2;
  position: relative;
}

/* Luxe gradient aura ring */
.about-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -8px; /* ring thickness */
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(
    from 0deg,
    #ffd400,
    #caa014,
    #ffd400,
    #f3e58a,
    #ffd400
  );
  -webkit-mask: 
    radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
          mask: 
    radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: pulse-ring 6s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255,212,0,0.45));
  z-index: 1;
}

/* Soft ambient outer glow */
.about-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,212,0,0.18), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

/* Subtle breathing motion */
@keyframes pulse-ring {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.9; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 1; }
}


/* Footer */
.site-footer{border-top:1px solid #18191c; color:#b8b8c8; text-align:center; padding:28px 12px}
@media (min-width: 900px) {
  .hero {
    margin-left: 305px;
  }
}
/* Logo glow */
.logo svg{
  transition: transform .25s ease, filter .25s ease;
  filter: drop-shadow(0 0 6px rgba(255,212,0,.28));
}
.logo:hover svg{
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 0 16px rgba(255,212,0,.55));
}

/* Contact */
.icon { display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; color: var(--acc); }
.icon svg { width: 18px; height: 18px; fill: var(--acc); }
.linkedin-icon svg { width: 18px; height: 18px; color: var(--acc); }
#contact p { display: flex; align-items: center; gap: 6px; margin: 8px 0; }
#contact a { color: white; text-decoration: none; }
#contact a:hover { color: var(--acc); text-decoration: underline; }

/* Optional: paper cards */
.paper-card .name { gap: 10px; }
.doc-icon { flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(255,212,0,.25)); }
#papers .card p { line-height: 1.65; }

.repo-link { color: var(--acc); text-decoration: none; font-weight: 600; }
.repo-link:hover { text-decoration: underline; filter: drop-shadow(0 0 6px rgba(255,212,0,.4)); }

/* Contact inline (under photo) */
.contact-inline { margin-top: 20px; text-align: left; font-size: 0.9rem; }
.contact-inline p { margin: 4px 0; display: flex; align-items: center; gap: 6px; }
.contact-inline a { color: white; text-decoration: none; font-weight: 500; }
.contact-inline a:hover { text-decoration: underline; color: var(--acc); }

/* Layout: sticky footer push */
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
main { flex: 1; }

/* Background base + subtle spot */
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: white;
  background-color: #120606;
  background-image: radial-gradient(circle at 80% 90%, rgba(195,178,28,0.1), transparent 70%);
  background-attachment: fixed;
  background-size: cover;
  overflow-x: hidden;
}
.site-header { position: relative; background: transparent; }

/* Full-viewport art layer behind everything */
.bg-aurum{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--coal);
  background-image:
    radial-gradient(1200px 900px at 12% 18%, rgba(255,212,0,0.12), transparent 60%),
    radial-gradient(900px 1200px at 85% 22%, rgba(255,212,0,0.08), transparent 60%),
    radial-gradient(1000px 800px at 50% 78%, rgba(255,212,0,0.06), transparent 60%),
    conic-gradient(from 210deg at 20% 70%, transparent 0 72%, rgba(243,229,138,0.18) 72.5% 74%, transparent 74.5% 100%),
    conic-gradient(from 40deg at 75% 35%, transparent 0 78%, rgba(202,160,20,0.18) 78.5% 80%, transparent 80.5% 100%),
    radial-gradient(circle at 15% 20%, rgba(255,212,0,0.06) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 65%, rgba(255,212,0,0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 28%, rgba(255,212,0,0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 82%, rgba(255,212,0,0.05) 0 1px, transparent 2px),
    radial-gradient(120% 100% at 50% 120%, rgba(0,0,0,0.6), transparent 60%);
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, normal, color-dodge, color-dodge, screen, screen, screen, screen, multiply;
  animation: aurum-drift 36s linear infinite;
}
.bg-aurum::after{
  content:"";
  position:absolute; inset:-10%;
  background-image:
    conic-gradient(from 320deg at 30% 30%, transparent 0 80%, rgba(255,212,0,0.10) 80.5% 82%, transparent 82.5% 100%),
    conic-gradient(from 120deg at 70% 75%, transparent 0 76%, rgba(255,212,0,0.12) 76.5% 78%, transparent 78.5% 100%);
  background-repeat:no-repeat;
  background-blend-mode: color-dodge;
  filter: blur(0.4px);
  opacity: .7;
  animation: aurum-parallax 48s linear infinite;
}
.bg-aurum::before{
  content:"";
  position:absolute; inset:0;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 4px);
  mix-blend-mode: soft-light;
  opacity:.25;
  animation: aurum-shimmer 14s linear infinite;
}
@keyframes aurum-drift { 0%{transform:translate3d(0,0,0)} 50%{transform:translate3d(0,-1.2%,0)} 100%{transform:translate3d(0,0,0)} }
@keyframes aurum-parallax { 0%{transform:rotate(0deg) scale(1.02)} 100%{transform:rotate(360deg) scale(1.02)} }
@keyframes aurum-shimmer { 0%{transform:translateX(0)} 100%{transform:translateX(2%)} }
@media (prefers-reduced-motion: reduce){ .bg-aurum, .bg-aurum::after, .bg-aurum::before{ animation: none; } }

/* CARD GOOFYS */
/* make card effects possible */
.card{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  will-change: transform, box-shadow;
}
/* lift + glow on hover */
.card:hover{
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(255,212,0,.22) inset;
  border-color: rgba(255,212,0,.45);
}
/* animated golden border ring */
.card::before{
  content:"";
  position:absolute; inset:-1px;
  background: conic-gradient(from 0deg,
              rgba(255,212,0,.0) 0deg,
              rgba(255,212,0,.45) 120deg,
              rgba(255,212,0,.0) 240deg,
              rgba(255,212,0,.45) 360deg);
  filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease, transform .8s linear;
  z-index: -1;
}
.card:hover::before{ opacity: .75; transform: rotate(25deg); }
/* sheen sweep */
.card::after{
  content:"";
  position:absolute; top:0; bottom:0; left:-120%;
  width:120%;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 45%, rgba(255,255,255,0) 60%);
  transform: skewX(-18deg);
  opacity:.0;
  transition: opacity .25s ease, left .9s ease;
  pointer-events:none;
}
.card:hover::after{ left:120%; opacity:.9; }
/* subtle content elevate */
.card .name{ transition: color .25s ease, transform .25s ease; }
.card:hover .name{ transform: translateY(-1px); color: var(--gold-soft); }
@media (prefers-reduced-motion: reduce){
  .card, .card::before, .card::after { transition: none !important; }
  .card:hover{ transform:none; }
}
.card {
  transition: transform 0.15s ease; /* small delay for smoothness */
  transform-style: preserve-3d;
}


/* HOME GOOFYS */
/* luxe hover for hero buttons */
.cta-row .btn{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 0 0 0 rgba(255,212,0,0);
}
.cta-row .btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,212,0,.35) inset;
}
/* sheen sweep */
.cta-row .btn::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.14) 45%, transparent 60%);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform .8s ease;
  pointer-events:none;
}
.cta-row .btn:hover::after{ transform: translateX(120%) skewX(-18deg); }
/* soft gold ripple from cursor (fallback center) */
.cta-row .btn::before{
  content:"";
  position:absolute; width:220px; height:220px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(255,212,0,.18), transparent 55%);
  left: var(--mx, 50%); top: var(--my, 50%);
  transform: translate(-50%,-50%) scale(0);
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0;
}
.cta-row .btn:hover::before{
  transform: translate(-50%,-50%) scale(1);
  opacity: 1;
}

/* LUX BUTTONS (avoid .ghost/.hehe overrides) */
.btn-lux{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-block;

  /* base look */
  background:
    radial-gradient(120% 180% at 50% 120%, rgba(255,212,0,.10) 0%, rgba(0,0,0,0) 60%)
    #0b0b0b;
  color: #fff;
  border: 1px solid rgba(255,212,0,.35);
  border-radius: 18px;

  padding: 13px 22px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .2px;

  box-shadow:
    0 0 0 0 rgba(255,212,0,0),
    inset 0 0 0 0 rgba(255,212,0,0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.btn-lux:hover{
  transform: translateY(-2px);
  border-color: rgba(255,212,0,.55);
  box-shadow:
    0 12px 28px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,212,0,.35);
  background:
    radial-gradient(140% 200% at 50% 120%, rgba(255,212,0,.16) 0%, rgba(0,0,0,0) 60%)
    #0b0b0b;
}

/* sheen sweep */
.btn-lux::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255,255,255,.18) 46%,
    transparent 60%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform .8s ease;
  pointer-events:none;
}
.btn-lux:hover::after{
  transform: translateX(130%) skewX(-18deg);
}

/* soft gold ripple from cursor */
.btn-lux::before{
  content:"";
  position:absolute; width:220px; height:220px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(255,212,0,.20), transparent 58%);
  left: var(--mx, 50%); top: var(--my, 50%);
  transform: translate(-50%,-50%) scale(0);
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0;
}
.btn-lux:hover::before{
  transform: translate(-50%,-50%) scale(1);
  opacity: 1;
}

/* make sure old ghost/hehe hovers don't override */
.cta-row .btn.ghost:hover,
.cta-row .btn.hehe:hover{
  background: inherit !important;
}

/* shimmer underline for hero headline */
.hero-text h1{
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.hero-text h1::after{
  content:"";
  position:absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(255,212,0,0) 0%,
    rgba(255,212,0,.7) 40%,
    rgba(255,212,0,.95) 60%,
    rgba(255,212,0,0) 100%);
  filter: drop-shadow(0 0 6px rgba(255,212,0,.35));
  transform: scaleX(.6);
  transform-origin: center;
  animation: gold-underline 3.2s ease-in-out infinite;
}
@keyframes gold-underline{
  0%,100%{ transform: scaleX(.6); opacity:.8 }
  50%{    transform: scaleX(1);   opacity:1 }
}

.about-photo-wrap {
  position: relative;
  display: inline-block;
  width: 220px;   /* bigger size */
  height: 220px;
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,212,0,0.4); /* soft gold border */
  box-shadow: 0 6px 22px rgba(0,0,0,0.55);
  position: relative;
  z-index: 2;
}

/* Luxe golden glow */
.about-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255,212,0,0.25) 0deg,
    rgba(255,212,0,0) 120deg,
    rgba(255,212,0,0.25) 240deg,
    rgba(255,212,0,0) 360deg
  );
  filter: blur(12px);
  opacity: 0.9;
  animation: pulse-glow 6s ease-in-out infinite;
  z-index: 1;
}

/* Soft vignette aura */
.about-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,212,0,0.15), transparent 70%);
  filter: blur(18px);
  opacity: 0.7;
  animation: pulse-aura 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes pulse-glow {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes pulse-aura {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.08); }
}


.contact-inline a{
  position: relative;
  text-decoration: none;
}
.contact-inline a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background: linear-gradient(90deg, rgba(255,212,0,0), rgba(255,212,0,.9));
  transition: right .35s ease;
}
.contact-inline a:hover::after{ right:0; }



.section-head {
  position: relative;
  z-index: 3;
  margin-bottom: 28px; /* extra breathing room from cards */
}

.section-head h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 600;
  margin: 0;
  
  /* keep it elegant: subtle gold tone */
  color: #f9f5df; /* soft gold */
  letter-spacing: 0.02em;
  text-transform: none; /* normal case, not all caps */
  
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

/* underline */
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, #ffd400, transparent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section-head h2:hover::after {
  width: 100%; /* expand smoothly on hover */
}


/* Cross-document View Transitions */
html { view-transition-name: root; }

/* tune the fade duration/ease */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .45s;
  animation-timing-function: cubic-bezier(.2,.6,.2,1);
}

/* keep the logo from morphing weirdly (it just cross-fades) */
.logo { view-transition-name: none; }


.bg-aurum { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
#bg-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: transparent; }

/* home page: lighter embers (translucent) */
body.home #bg-stars { opacity: .35; }




/* ===== Left-rail timeline (matches .timeline-left markup) ===== */

:root{
  --tl-rail-x: 28px;        /* rail position from left edge of the <ol> */
  --tl-rail-w: 2px;         /* rail thickness */
  --tl-gap: 40px;           /* vertical spacing between items (was 28) */
  --tl-conn: 26px;          /* connector length from rail to card */
  --tl-card-max: 640px;     /* slimmer cards (was wide); tweak to 600–720 */
}

/* container list */
.timeline-left{
  position: relative;
  list-style: none;
  margin: 0;
  /* leave space for rail + connector so card doesn’t overlap it */
  padding: 0 0 0 calc(var(--tl-rail-x) + var(--tl-conn) + 18px);
  display: flex;
  flex-direction: column;
  gap: var(--tl-gap);
}

/* the vertical gold rail */
.timeline-left::before{
  content:"";
  position:absolute;
  left: var(--tl-rail-x);
  top: 0; bottom: 0;
  width: var(--tl-rail-w);
  background: linear-gradient(180deg, rgba(255,212,0,.65), rgba(255,212,0,.10));
  filter: drop-shadow(0 0 6px rgba(255,212,0,.25));
  z-index: 0; /* sit behind everything */
}

/* each item */
.tl-item{ position: relative; }

/* the dot on the rail */
.tl-bullet{
  position:absolute;
  left: calc(var(--tl-rail-x) - 6px);
  top: 30px;                 /* aligns near the card title row */
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd400 0 55%, #caa014 70%, #7a5d00 100%);
  border: 2px solid rgba(255,212,0,.45);
  box-shadow: 0 0 12px rgba(255,212,0,.55);
  z-index: 1;
}

/* the card */
.tl-card{
  position: relative;
  width: min(100%, var(--tl-card-max));
  padding: 16px 16px 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
  z-index: 1; /* above the rail */
}

/* connector from rail to card */
.tl-card::before{
  content:"";
  position:absolute;
  top: 30px;                       /* same as .tl-bullet top for alignment */
  left: calc(-1 * var(--tl-conn));
  width: var(--tl-conn);
  height: 2px;
  background: linear-gradient(90deg, rgba(255,212,0,.55), rgba(255,212,0,0));
  filter: drop-shadow(0 0 4px rgba(255,212,0,.35));
}

/* JS adds .in to each .tl-card when it enters viewport */
.tl-card.in{ opacity:1; transform: translateY(0); }

/* bits inside the card */
.tl-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.tl-tag{
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.25px;
  border:1px solid rgba(255,212,0,.28); border-radius:999px; padding:4px 10px;
  background: rgba(255,212,0,.08); color:#f3e58a;
}
.tl-tag.tag-edu{ background: rgba(243,229,138,.10); border-color: rgba(243,229,138,.35); }
.tl-date{ color:#cfcfd4; font-size:.9rem; }
.tl-title{ margin:2px 0 4px; font-size:1.08rem; letter-spacing:.2px; }
.tl-sub{ margin:0 6px 8px 0; color:var(--muted); font-size:.95rem; }
.tl-bullets{ margin:0 0 8px 18px; padding:0; color:#e8e8ee; }
.tl-bullets li{ margin:4px 0; line-height:1.55; }
.inline-link{ color:var(--acc); text-decoration:none; font-weight:600; }
.inline-link:hover{ text-decoration:underline; filter: drop-shadow(0 0 6px rgba(255,212,0,.35)); }

/* filter buttons row (uses your .btn-lux) */
.timeline-filters{ display:flex; gap:10px; flex-wrap:wrap; }
.timeline-filters .btn-lux{ padding:8px 14px; font-size:.95rem; border-radius:14px; }
.timeline-filters .btn-lux.is-active{
  border-color: rgba(255,212,0,.65);
  box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,212,0,.35);
}

/* responsive */
@media (max-width: 900px){
  :root{
    --tl-rail-x: 18px;
    --tl-conn: 18px;
    --tl-card-max: 100%;
    --tl-gap: 32px;
  }
}
@media (max-width: 640px){
  :root{
    --tl-rail-x: 14px;
    --tl-conn: 14px;
    --tl-gap: 26px;
  }
  .tl-card{ padding: 14px 14px 12px; }
  .tl-card::before{ top: 28px; }
  .tl-bullet{ top: 28px; }
}
/* === Emojis on the tag chips === */
.tl-tag{
  display: inline-flex;         /* so the emoji and text align nicely */
  align-items: center;
  gap: 6px;                     /* space between emoji and text */
}

.tl-item[data-type="education"] .tl-tag::before{
  content: "🎓";
}

.tl-item[data-type="experience"] .tl-tag::before{
  content: "💼";
}


 














/* ===== Skills page (black + gold sections) ===== */

:root{
  --gold:#ffd400;
  --gold-warm:#caa014;
}

.category{
  margin: 36px 0 14px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: #f9f5df;
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}
.category::after{
  content:"";
  position:absolute; left:0; bottom:-4px;
  width: 140px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(255,212,0,.35));
}

/* =========================
   Skills page (black + gold)
   ========================= */

:root{
  /* card sizing */
  --skill-card-min: 160px;      /* width of the smallest column */
  --skill-gap: 14px;
  --skill-pad: 14px;
  --skill-radius: 14px;

  /* icon sizing */
  --skill-icon-box: 56px;       /* square tile that holds the icon */
  --skill-icon-size: 30px;      /* actual icon size inside the tile */
}

/* Sections */
.skill-section{ margin: 26px 0 6px; }
.category{
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9f5df;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.category::after{
  content:"";
  position:absolute; left:0; bottom:-4px;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--acc), transparent);
  border-radius: 2px;
}

/* Grid */
.skill-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--skill-card-min), 1fr));
  gap: var(--skill-gap);
}

/* Card */
.skill-box{
  padding: var(--skill-pad);
  border-radius: var(--skill-radius);
  text-align: center;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:flex-start;
  min-height: unset;
}
.skill-box:hover{
  transform: translateY(-3px);
  border-color: rgba(255,212,0,.45);
  box-shadow: 0 10px 18px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,212,0,.18);
}

/* Icon tile (consistent + centered) */
.skill-icon{
  width: var(--skill-icon-box);
  height: var(--skill-icon-box);
  margin: 0 auto 8px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(140% 200% at 50% 120%, rgba(255,212,0,.12), rgba(0,0,0,0) 60%)
    #0b0b0b;
  border: 1px solid rgba(255,212,0,.32);
  box-shadow: inset 0 0 0 1px rgba(255,212,0,.08), 0 6px 18px rgba(0,0,0,.35);
  line-height: 0; /* remove baseline wiggle */
}

/* Everything inside the icon tile is sized + centered */
.skill-icon > *{
  width: var(--skill-icon-size);
  height: var(--skill-icon-size);
  display:block;
  object-fit: contain;
}

/* Devicon font glyphs */
.skill-icon i[class^="devicon-"],
.skill-icon i[class*=" devicon-"]{
  font-size: var(--skill-icon-size);
  color: var(--gold);
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255,212,0,.35));
}

/* Simple Icons / images */
.skill-icon img.si{
  filter: drop-shadow(0 0 6px rgba(255,212,0,.25));
}

/* Recolor white/black SVG/PNG to your gold (use class="si si-gold") */
.si-gold{
  filter:
    grayscale(1)
    brightness(0)
    invert(86%)
    sepia(92%)
    saturate(700%)
    hue-rotate(1deg)
    contrast(104%);
}

/* Mask-tinted icons (e.g., your Pinecone mark):
   <span class="si-mask" style="--mask:url('/assets/pinecone-mark.png')"></span> */
.si-mask{
  width: var(--skill-icon-size);
  height: var(--skill-icon-size);
  background: var(--gold);
  -webkit-mask: var(--mask) no-repeat center / contain;
          mask: var(--mask) no-repeat center / contain;
  filter: drop-shadow(0 0 6px rgba(255,212,0,.25));
}

/* Titles + subtitles */
.skill-box h4{ margin: 6px 0 2px; font-size: .98rem; }
.skill-box p { margin: 0; color: var(--muted); font-size: .82rem; }

/* Badges for stacks without official logos */
.skill-icon.badge::before{
  content: attr(data-label);
  font-weight: 800;
  letter-spacing:.2px;
  color:#111;
  background: var(--gold);
  padding: 4px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(255,212,0,.45);
}

/* Slightly larger on very wide screens */
@media (min-width: 1200px){
  :root{
    --skill-card-min: 180px;
    --skill-icon-box: 60px;
    --skill-icon-size: 32px;
  }
}
/* ==== Center category titles + underline ==== */
.category{
  display: block;              /* stop being inline-block */
  text-align: center;          /* center the text */
  margin: 0 auto 16px;         /* center block + spacing */
}

.category::after{
  left: 50%;                   /* center the underline */
  transform: translateX(-50%);
  width: min(220px, 60%);      /* nice, responsive width */
background: linear-gradient(90deg, transparent, var(--acc), transparent);
}






/* Page layout */
.contact-section { padding-top: 24px; }
.contact-wrap{
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
}

/* Form card */
.contact-card{
  padding: 22px 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,212,0,.25);
  background: linear-gradient(180deg, rgba(255,212,0,.05), rgba(0,0,0,.12)) #0b0b0b;
  box-shadow: 0 10px 26px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,212,0,.06);
}

.contact-head h2{
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 32px);
  color: #f9f5df;
}
.contact-head .muted{ color: var(--muted); margin: 0 0 10px; }

/* Fields */
.form-row.two{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.form-field > span{
  font-size: .9rem;
  color: #d8d3b2;
}
.form-field input,
.form-field textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  background: #0e0e0e;
  color: #fff;
  border: 1px solid rgba(255,212,0,.28);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .06s ease;
}
.form-field textarea{ resize: vertical; }
.form-field input:focus,
.form-field textarea:focus{
  border-color: rgba(255,212,0,.6);
  box-shadow: 0 0 0 3px rgba(255,212,0,.18);
}

/* Actions / status */
.form-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.form-status{ color: #eae4c2; font-size: .92rem; }

/* Netlify reCAPTCHA wrapper spacing */
.form-field > div[data-netlify-recaptcha]{ transform: scale(.96); transform-origin: left; }

/* Decorative orb */
.contact-art{
  display: grid; place-items: center;
  min-height: 360px;
}
.orb{
  position: relative;
  width: clamp(260px, 40vw, 420px);
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.45));
}
.orb-core{
  position: absolute; inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 35%, rgba(255,212,0,.12), transparent 50%),
    radial-gradient(circle at 35% 65%, rgba(255,212,0,.18), transparent 60%),
    radial-gradient(closest-side, #0a0a0a, #080808);
  box-shadow: inset 0 0 60px rgba(255,212,0,.06);
  animation: slow-tilt 14s ease-in-out infinite alternate;
}
.orb-ring{
  position:absolute; inset: 0;
  border-radius: 50%;
  mask: radial-gradient(circle, transparent 44%, #000 46% 54%, transparent 56%);
  -webkit-mask: radial-gradient(circle, transparent 44%, #000 46% 54%, transparent 56%);
  background:
    conic-gradient(from 0deg,
      rgba(255,212,0,.0) 0deg,
      rgba(255,212,0,.28) 80deg,
      rgba(255,212,0,.0) 140deg,
      rgba(255,212,0,.35) 210deg,
      rgba(255,212,0,.0) 260deg);
}
.orb-ring.r1{ animation: spin 16s linear infinite; }
.orb-ring.r2{ animation: spin 22s linear infinite reverse; opacity:.85; }
.orb-ring.r3{ animation: spin 28s linear infinite; opacity:.7; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slow-tilt { 0%{ transform: rotateX(6deg) rotateY(0)} 100%{ transform: rotateX(-6deg) rotateY(4deg)} }

/* Utilities */
.hidden{ display:none !important; }

/* Responsive */
@media (max-width: 960px){
  .contact-wrap{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-art{ min-height: 260px; }
}





.no-tilt { transform: none !important; }
.no-tilt:hover { transform: none !important; }



