/* KylieDev — V3 (clean hero, editable about, discord-style project cards, video carousel) */

:root{
  --bg:#070712;
  --bg2:#0b0b1a;
  --stroke:#ffffff14;
  --text:#f7f7ff;
  --muted:#c9c9da;
  --muted2:#a7a7c2;
  --brand:#7c3aed;
  --brand2:#a78bfa;
  --shadow: 0 24px 80px rgba(0,0,0,.55);
}

[data-theme="light"]{
  --bg:#f7f7ff;
  --bg2:#ffffff;
  --stroke:#00000012;
  --text:#0d0d16;
  --muted:#34344a;
  --muted2:#54546f;
  --shadow: 0 18px 60px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(124,58,237,.22), transparent 60%),
              radial-gradient(900px 520px at 70% 20%, rgba(167,139,250,.16), transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  min-height:100vh;
  overflow-x:hidden;
}

/* toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: rgba(18, 18, 30, 0.92);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(124,58,237,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(10px);
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* discord pill */
.discordPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.discordIcon {
  width: 16px;
  height: 16px;
  opacity: 0.95;
}

.alist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.alist li {
  display: contents;
}

.pillmini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon {
  font-size: 13px;
  opacity: 0.9;
}

.dnameRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  width:100%;
}

.pvideo {
  display: grid;
  gap: 10px;
}

.pvideo iframe,
.pvideo video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: #000;
  display: block;
}
#portfolioCarousel video,
#portfolioCarousel iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: #000;
}

.dtag{
  flex-shrink:0;
  margin-left:auto;   /* hard-pins it to the right */
}


.bg{position:fixed; inset:0; pointer-events:none; z-index:-1}
.grid{
  position:absolute; inset:-1px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:72px 72px;
  opacity:.08;
  mask-image: radial-gradient(closest-side at 50% 15%, #000 0%, transparent 78%);
}
.glow{position:absolute; width:700px; height:700px; border-radius:50%; filter:blur(90px); opacity:.6}
.glow-a{left:-160px; top:-180px; background:rgba(124,58,237,.55)}
.glow-b{right:-220px; top:40px; background:rgba(167,139,250,.35)}

.wrap{width:min(1100px, calc(100% - 44px)); margin:0 auto}

/* topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,5,14,.75) 0%, rgba(5,5,14,.35) 100%);
  border-bottom:1px solid var(--stroke);
}
[data-theme="light"] .topbar{
  background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.55) 100%);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none}
.brand__dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--brand2), var(--brand));
  box-shadow: 0 0 0 6px rgba(124,58,237,.15);
}
.brand__text{font-weight:900; letter-spacing:.2px}

.nav{display:flex; gap:16px}
.nav a{
  color:var(--muted); text-decoration:none; font-weight:700; font-size:14px;
  padding:8px 10px; border-radius:10px;
}
.nav a:hover{color:var(--text); background:rgba(255,255,255,.06)}

.actions{display:flex; align-items:center; gap:10px}
.pill{
  font-size:13px; font-weight:800; text-decoration:none;
  color:var(--text);
  padding:8px 12px;
  border:1px solid var(--stroke);
  border-radius:999px;
  background: rgba(255,255,255,.05);
}
.pill:hover{border-color:rgba(124,58,237,.35); background:rgba(124,58,237,.10)}

.iconbtn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color:var(--text);
  width:38px; height:38px;
  border-radius:12px;
  display:grid; place-items:center;
  cursor:pointer;
}
.iconbtn:hover{border-color:rgba(124,58,237,.35); background:rgba(124,58,237,.10)}

/* hero */
.hero{
  padding:46px 0 20px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:start;
}
.kicker{display:inline-block; color:var(--brand2); font-weight:800; margin:0 0 10px}
h1{margin:0 0 10px; font-size:54px; letter-spacing:-1.2px; line-height:1.0}
.lead{margin:0 0 18px; color:var(--muted); font-size:16px; line-height:1.65; font-weight:600}
.lead strong{color:var(--text); font-weight:850}

.hero__cta{display:flex; gap:12px; margin:18px 0 14px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color:var(--text);
  text-decoration:none;
  font-weight:850;
  font-size:14px;
}
.btn:hover{border-color:rgba(124,58,237,.40); background:rgba(124,58,237,.10)}
.btn.primary{
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(167,139,250,.85));
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(124,58,237,.18);
}
.btn.primary:hover{filter:brightness(1.03)}
.btn.small{padding:9px 12px; border-radius:12px; font-size:13px}

.chips{display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 10px}
.chip{
  font-size:12px; font-weight:800;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  color:var(--muted);
  background: rgba(255,255,255,.04);
}

.socials{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.slink{
  color:var(--muted);
  text-decoration:none;
  font-size:13px; font-weight:800;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
.slink:hover{color:var(--text); border-color:var(--stroke); background:rgba(255,255,255,.04)}

.hero__right{display:flex; flex-direction:column; gap:12px; align-items:flex-end}
.miniRow{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.miniPill{
  font-size:12px; font-weight:850;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.card{
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius:18px;
  padding:16px;
  box-shadow: var(--shadow);
}
[data-theme="light"] .card{background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.01))}
.heroNote{width:100%; max-width:460px; color:var(--muted); line-height:1.6; font-weight:650}
.heroNote strong{color:var(--text)}

/* sections */
.section{padding:34px 0}
.section__head{display:flex; flex-direction:column; gap:8px; margin-bottom:18px}
.section__head h2{margin:0; font-size:26px; letter-spacing:-.3px}
.section__head p{margin:0; color:var(--muted); line-height:1.65; max-width:84ch; font-weight:600}

.aboutGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.aboutCard h3{margin:0 0 10px; font-size:16px; letter-spacing:.1px}
.pillRow{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px}
.pillmini{
  font-size:11px; font-weight:900;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid var(--stroke);
  color:var(--muted2);
  background: rgba(255,255,255,.03);
}
.muted{color:var(--muted); margin:0; line-height:1.6; font-weight:600}
.alist{margin:0; padding-left:18px; color:var(--muted); line-height:1.7; font-weight:600}
.editable:focus{outline:2px solid rgba(124,58,237,.35); outline-offset:6px; border-radius:12px}
.contactMini{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}

/* projects (discord-like cards) */
.projectGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}
.dcard{
  border:1px solid var(--stroke);
  border-radius:18px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  text-decoration:none;
  color:inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  box-shadow: var(--shadow);
}
.dcard:hover{transform: translateY(-3px); border-color: rgba(124,58,237,.40); background: rgba(124,58,237,.08)}
.dcard__top{
  padding:16px;
  display:flex;
  gap:14px;
  align-items:center;
}
.dlogo{
  width:56px; height:56px;
  border-radius:16px;
  background: rgba(124,58,237,.18);
  border:1px solid var(--stroke);
  display:grid; place-items:center;
  overflow:hidden;
  flex: 0 0 auto;
}
.dlogo img{width:100%; height:100%; object-fit:cover}
.dmeta{display:flex; flex-direction:column; gap:6px; min-width:0}
.dnameRow{display:flex; align-items:center; justify-content:space-between; gap:10px}
.dname{font-weight:950; letter-spacing:.2px; font-size:16px}
.dtag{
  font-size:11px; font-weight:950;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  color: var(--brand2);
  background: rgba(124,58,237,.10);
  white-space:nowrap;
}
.ddesc{color:var(--muted); font-weight:650; font-size:13px; line-height:1.5; margin:0; max-width:70ch}
.dchips{display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 14px}
.dbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  border-top:1px solid var(--stroke);
  background: rgba(0,0,0,.20);
}
.dbarLeft{display:flex; gap:10px; align-items:center}
.dIcon{
  width:18px; height:18px; opacity:.9;
}
.dcount{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  font-weight:950;
  font-size:12px;
}
.dcount b{font-weight:1000}
.dactions{display:flex; gap:8px; align-items:center}
.dbtn{
  font-size:12px; font-weight:950;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}
.dbtn:hover{border-color: rgba(124,58,237,.40); background: rgba(124,58,237,.10)}

/* portfolio carousel */
.carousel{padding:0; overflow:hidden}
.carousel__top{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}
.carousel__title{font-weight:950}
.carousel__controls{display:flex; gap:8px}
.carousel__frame{padding:0}
.iframeWrap{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.25);
}
.iframeWrap iframe, .iframeWrap video{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
}
.carousel__bottom{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 14px;
  border-top:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}
.dots{display:flex; gap:6px; flex-wrap:wrap}
.dotBtn{
  width:10px; height:10px; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.12);
  cursor:pointer;
}
.dotBtn.active{background: rgba(124,58,237,.95); border-color: rgba(124,58,237,.55)}

.tiny{font-size:12px}
.codeInline{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  padding:2px 6px;
  border-radius:8px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--text);
}

/* footer */
.footer{
  padding:26px 0 44px;
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:14px;
  border-top:1px solid var(--stroke);
  margin-top: 24px;
}
.footer__right{display:flex; gap:12px; flex-wrap:wrap}
.footer__right a{color:var(--muted); text-decoration:none; font-weight:850; font-size:13px; padding:8px 10px; border-radius:12px}
.footer__right a:hover{color:var(--text); background: rgba(255,255,255,.05)}
.brand.mini .brand__text{font-weight:950}
.brand.mini{margin-bottom:8px}

/* responsive */
@media (max-width: 980px){
  .hero{grid-template-columns: 1fr}
  h1{font-size:44px}
  .hero__right{align-items:flex-start}
  .miniRow{justify-content:flex-start}
  .aboutGrid{grid-template-columns: 1fr}
  .projectGrid{grid-template-columns: 1fr}
}
@media (max-width: 560px){
  .nav{display:none}
  .wrap{width:min(1100px, calc(100% - 28px))}
  h1{font-size:38px}
}

/* NUCLEAR: force portfolio content visible */
#portfolioCarousel { position: relative !important; z-index: 50 !important; }
#portfolioCarousel * { opacity: 1 !important; visibility: visible !important; }

#portfolioCarousel .pmedia{
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 280px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #000 !important;
  z-index: 60 !important;
}

#portfolioCarousel video,
#portfolioCarousel iframe{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  z-index: 70 !important;
}
