@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

:root{
  --bg0:#070a2a;
  --bg1:#0b103a;
  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --shadow: 0 18px 60px rgba(0,0,0,.45);

  --pink:#ff5bbd;
  --peach:#ffb86b;
  --aqua:#24e0ff;
  --purple:#7b61ff;

  --r: 22px;
}

*{box-sizing:border-box}
html, body { min-height: 100%; }



body{
  margin:0;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(123,97,255,.35), transparent 60%),
    radial-gradient(900px 520px at 85% 22%, rgba(36,224,255,.22), transparent 60%),
    radial-gradient(900px 520px at 50% 92%, rgba(255,91,189,.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

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

.container{
  width:min(1120px,92vw);
  margin:0 auto;
  padding:28px 0 28px;
}

/* ---------- NAV ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(14px);
  background: rgba(7,10,42,.45);
  border-bottom: 1px solid var(--border);
}

.nav{
  width:min(1120px,92vw);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  font-weight:800;
}

.nav-links a{
  margin-left:16px;
  padding:9px 12px;
  border-radius:14px;
  color: var(--muted);
}

.nav-links a:hover{
  background: rgba(255,255,255,.08);
  color: var(--text);
  text-decoration:none;
}

/* ---------- CARDS ---------- */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:24px;
  overflow:hidden;
}

.card *{
  max-width:100%;
  word-wrap:break-word;
}

/* ---------- HERO ---------- */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:24px;
  align-items:center;
  margin-top:22px;
}

.hero-left{
  position:relative;
  z-index:1;
}

.hero-right{
  display:flex;
  justify-content:center;
  align-items:center;
}

/* ---------- BLOB + PHOTO ---------- */
.blob{
  width:360px;
  height:360px;
  border-radius: 42% 58% 60% 40% / 45% 35% 65% 55%;
  background:
    radial-gradient(circle at 30% 30%, var(--peach), rgba(255,184,107,0) 60%),
    radial-gradient(circle at 70% 60%, var(--pink), rgba(255,91,189,0) 65%),
    radial-gradient(circle at 55% 25%, rgba(255,255,255,.35), rgba(255,255,255,0) 55%);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.blob img{
  width:180px;
  height:180px;
  object-fit:cover;
  border-radius:50%;
  border:6px solid #ffffff;
  background: rgba(255,255,255,.15);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* ---------- TEXT ---------- */
.pill{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
}

h1{
  margin:12px 0 10px;
  font-size: clamp(34px, 4.2vw, 54px);
}

.lead{
  color: var(--muted);
  line-height:1.7;
  max-width:58ch;
}

/* ---------- BUTTONS ---------- */
.cta-row{
  display:flex;
  gap:12px;
  margin-top:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:14px;
  font-weight:700;
  border:none;
  background: linear-gradient(90deg, rgba(255,184,107,.95), rgba(255,91,189,.9));
  color:#111;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255,91,189,.35);
  text-decoration:none;
}

/* ---------- GRID SECTIONS ---------- */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
  margin-top:24px;
}

@media (max-width:920px){
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
}

/* ---------- LISTS ---------- */
.clean{
  margin:0;
  padding-left:18px;
  color: var(--muted);
}

.clean li{
  margin:8px 0;
}

/* ---------- FOOTER ---------- */
.footer{
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  text-align:center;
  background: rgba(7,10,42,.60);
}

/* ---------- CASE STUDY PAGE ---------- */
.case-hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items:center;
  margin-top: 22px;
}

.case-thumb{
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  overflow:hidden;
}

.case-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.case-text{
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}

.tags-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.tag{
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
}

.steps{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.step{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}

.step h3{
  margin: 0 0 8px;
  font-size: 15px;
}

/* =========================
   GALLERIES (consistent system)
   ========================= */

.shots{
  display: grid;
  gap: 16px;
  margin-top: 14px;
  align-items: start;
}

/* Base tile */
.shot{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}

/* Media defaults */
.shot img,
.shot video{
  width: 100%;
  height: 100%;
  display: block;
}

/* --- VARIANT A: Phone screens (fills the tile, no empty space) --- */
.shots--phone{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.shots--phone .shot{
  aspect-ratio: 9 / 19.5;
}

.shots--phone .shot img,
.shots--phone .shot video{
  object-fit: cover;
}

/* --- VARIANT B: Desktop / wide screens --- */
.shots--desktop{
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.shots--desktop .shot{
  aspect-ratio: 16 / 10;
}

.shots--desktop .shot img,
.shots--desktop .shot video{
  object-fit: cover;
}

/* --- VARIANT C: Terminal outputs (readable, minimal cropping) --- */
.shots--terminal{
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.shots--terminal .shot{
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.25); /* helps terminal images look crisp */
}

.shots--terminal .shot img{
  object-fit: contain; /* KEY: don’t crop text */
  padding: 10px;       /* prevents text from touching edges */
}

/* Mobile: keep it simple */
@media (max-width: 920px){
  .shots--phone,
  .shots--desktop,
  .shots--terminal{
    grid-template-columns: 1fr;
  }
}

/* ---------- CONSISTENT SECTION SPACING ---------- */
.section {
  margin-top: 18px;
}

.section:first-of-type {
  margin-top: 0;
}

/* If you want slightly more space between big blocks */
.case-stack > .card {
  margin-top: 18px;
}

/* ---------- CODE BLOCKS ---------- */
.codeblock{
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);

  /* scrolling behavior */
  max-height: 320px;        /* vertical scroll limit */
  overflow: auto;           /* enables BOTH directions */

  font-size: 13px;
  line-height: 1.6;
}

.codeblock code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre;        /* no wrapping */
}


/* Video inside gallery tiles */
.shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   PANDA OPS BLOG (light theme) — scoped to .panda-blog
   ========================================================= */

.panda-blog{
  background: #ffffff;
  color: rgba(0,0,0,.88);
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Light header */
.panda-blog .site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.panda-blog a{ color: inherit; text-decoration: none; }
.panda-blog a:hover{ text-decoration: underline; }

.panda-blog .container{
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 26px 0 30px;
}

.panda-brand{
  font-weight: 900;
  letter-spacing: .2px;
}

.panda-blog .nav-links a{
  color: rgba(0,0,0,.65);
  border-radius: 14px;
}
.panda-blog .nav-links a:hover{
  background: rgba(18,140,82,.08);
  color: rgba(0,0,0,.85);
  text-decoration: none;
}

/* Hero */
.panda-hero{
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(18,140,82,.10), transparent 60%),
    radial-gradient(800px 520px at 85% 15%, rgba(0,0,0,.06), transparent 60%),
    #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
}

.panda-kicker{
  margin: 0;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}

.panda-title{
  margin: 10px 0 10px;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
}

.panda-lead{
  margin: 0;
  color: rgba(0,0,0,.62);
  line-height: 1.7;
  max-width: 62ch;
}

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


.panda-btn:hover{
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.panda-btn{
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(18,140,82,.18);
  background: rgba(18,140,82,.07);
}

/* Chips */
.panda-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.panda-chip{
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(18,140,82,.18);
  background: rgba(18,140,82,.07);
}

/* Hero card */
.panda-hero-card{
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  padding: 16px;
}

.panda-hero-card-top{
  display: flex;
  gap: 12px;
  align-items: center;
}

.panda-face{
  width: 200px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(circle at 30% 35%, rgba(0,0,0,.85) 0 18%, transparent 19%),
    radial-gradient(circle at 70% 35%, rgba(0,0,0,.85) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 65%, rgba(0,0,0,.80) 0 10%, transparent 11%),
    #fff;
}

.panda-mini{
  margin: 0;
  font-size: 12px;
  color: rgba(0,0,0,.55);
}
.panda-mini-strong{
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: rgba(0,0,0,.86);
}

.panda-hero-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.panda-stat{
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(18,140,82,.06);
}

/* Sections */
.panda-section{
  margin-top: 20px;
}

.panda-h2{
  margin: 0 0 10px;
  font-size: 22px;
}

.panda-h3{
  margin: 0 0 8px;
  font-size: 15px;
}

.panda-text{
  margin: 0;
  color: rgba(0,0,0,.62);
  line-height: 1.75;
}

.panda-card{
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

.panda-grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panda-grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Posts layout */
.panda-layout{
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}

.panda-post{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
  margin-top: 14px;
}

.panda-post-featured{
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(18,140,82,.10), transparent 60%),
    #fff;
}

.panda-post-title{
  margin: 10px 0 8px;
  font-size: 20px;
}

.panda-post-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

.panda-badge{
  font-weight: 900;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(0,0,0,.78);
  background: rgba(18,140,82,.10);
  border: 1px solid rgba(18,140,82,.22);
}

.panda-badge-soft{
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.10);
}

.panda-post-actions{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.panda-divider{
  height: 1px;
  background: rgba(0,0,0,.10);
  margin: 14px 0;
}

.panda-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(0,0,0,.62);
}
.panda-list li{ margin: 8px 0; }

.panda-sticky{
  position: sticky;
  top: 88px;
}

/* Footer */
.panda-footer{
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,.10);
  color: rgba(0,0,0,.60);
  text-align: center;
}

/* Responsiveness */
@media (max-width: 920px){
  .panda-hero{ grid-template-columns: 1fr; }
  .panda-grid-3{ grid-template-columns: 1fr; }
  .panda-grid-2{ grid-template-columns: 1fr; }
  .panda-layout{ grid-template-columns: 1fr; }
  .panda-sticky{ position: static; }
}




/* =========================================================
   Small refinements + reusable components
   ========================================================= */

/* Headings */
.h2{ margin: 22px 0 10px; font-size: 22px; }
h3{ margin: 0 0 8px; }

/* Buttons: variants + sizes */
.btn.primary{
  background: linear-gradient(90deg, rgba(255,184,107,.95), rgba(255,91,189,.9));
  color:#111;
}
.btn.ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.ghost:hover{
  box-shadow: none;
  transform: translateY(-1px);
}
.btn.sm{
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

/* Subtle card hover */
.card{
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-2px);
}

/* Mini text block */
.mini{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.mini p{ margin: 6px 0; }

/* Page header on Projects */
.pagehead{
  margin-top: 22px;
}
.pagehead h1{
  margin: 0 0 10px;
}
.projects-grid{
  margin-top: 18px;
}

/* Tags list (Projects cards) */
.tags{
  list-style:none;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
}
.tags li{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.80);
}

/* Project thumbs */
.project-thumb{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  margin-bottom: 14px;
}

/* Inline links under projects/cards */
.project-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* File buttons row */
.file-list{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* =========================================================
   Carousel (used on index + project galleries)
   ========================================================= */

.carousel{
  position: relative;
  margin-top: 14px;
}

.car-track{
  display:flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 6px 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.car-track:focus{ outline: none; }

.car-track::-webkit-scrollbar{ height: 10px; }
.car-track::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}
.car-track::-webkit-scrollbar-track{
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.car-btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(7,10,42,.65);
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index: 2;
}
.car-btn:hover{ background: rgba(255,255,255,.10); }
.car-btn.prev{ left: 6px; }
.car-btn.next{ right: 6px; }

@media (max-width: 920px){
  .car-btn{ display:none; } /* swipe/scroll on mobile */
}

/* Card carousel items */
.project-card{
  min-width: 340px;
  max-width: 380px;
  scroll-snap-align: start;
}
@media (max-width: 920px){
  .project-card{ min-width: 82vw; }
}

/* Gallery carousel items */
.shots-track .shot-slide{
  min-width: 560px;
  scroll-snap-align: start;
}
@media (max-width: 920px){
  .shots-track .shot-slide{ min-width: 86vw; }
}

/* Terminal screenshots: keep text readable */
.terminal-track .terminal-slide img{
  object-fit: contain;
  background: rgba(0,0,0,.25);
  padding: 10px;
}

/* =========================================================
   Skills visual (dots bar)
   ========================================================= */

.skills{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}
.skill{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items:center;
  color: rgba(255,255,255,.86);
  font-weight: 700;
  font-size: 13px;
}
.dots{
  flex: 0 0 140px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  overflow:hidden;
}
.dots i{
  display:block;
  height: 100%;
  width: calc(var(--p) * 1%);
  background: linear-gradient(90deg, rgba(36,224,255,.7), rgba(255,91,189,.65));
}

/* =========================================================
   Contact form
   ========================================================= */

.contact-form label{
  display:block;
}
.contact-form span{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.80);
  margin-bottom: 6px;
}

.form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.form-grid .full{ grid-column: 1 / -1; }

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
}
.contact-form textarea{ resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(36,224,255,.35);
  box-shadow: 0 0 0 3px rgba(36,224,255,.12);
}

@media (max-width: 920px){
  .form-grid{ grid-template-columns: 1fr; }
}


/* ===== Grid card alignment fix v5 ===== */
/* .section spacing is great for page sections, but it breaks card alignment inside grids.
   These overrides keep grid cards perfectly aligned. */
.grid > .card.section,
.grid > article.card.section,
.grid > .section.card,
.grid > article.section.card {
  margin-top: 0 !important;
}

/* If a card is also the first-of-type, ensure it doesn't get special casing compared to siblings */
.grid > .card.section:first-of-type,
.grid > article.card.section:first-of-type {
  margin-top: 0 !important;
}
