/* =========================
   Reset / Base
========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* =========================
   Sticky Footer Fix (SAFE)
   Does NOT affect styling
========================== */

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


:root{
  --bg: #0b0f14;
  --panel: #101826;
  --panel-2: #0f1724;
  --border: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.06);

  --text: #eef2ff;
  --muted: rgba(238,242,255,0.70);
  --dim: rgba(238,242,255,0.45);

  --primary: #55f7d4;   /* teal */
  --secondary: #ff4fb7; /* pink */
  --accent: #ffb44b;    /* amber */

  --shadow: 0 16px 50px rgba(0,0,0,0.55);
  --radius: 18px;
  --max: 1120px;
  --navH: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body{
  font-family: 'Inter', sans-serif;
  background: radial-gradient(1200px 700px at 25% -10%, rgba(85,247,212,0.10), transparent 55%),
              radial-gradient(900px 600px at 110% 10%, rgba(255,79,183,0.08), transparent 55%),
              radial-gradient(900px 600px at 60% 120%, rgba(255,180,75,0.06), transparent 55%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; }

.container{ width: min(var(--max), 92vw); margin: 0 auto; }
.section{ padding: 70px 0; }

.muted{ color: var(--muted); }

/* =========================
   Top Nav
========================== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--navH);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(11,15,20,0.72);
  border-bottom: 1px solid var(--border-2);
}

.topbar-inner{
  width: min(var(--max), 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 220px;
}

.brand h1{
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand p{
  color: var(--dim);
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
}

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

.nav a{
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.nav a.active{
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.nav-cta{
  margin-left: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(85,247,212,0.35);
  background: rgba(85,247,212,0.10);
  color: var(--text);
}

/* Mobile menu button */
.menu-btn{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  position: relative;
}
.menu-btn span{
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: rgba(238,242,255,0.85);
  transform: translateX(-50%);
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.menu-btn span:nth-child(1){ top: 16px; }
.menu-btn span:nth-child(2){ top: 21px; }
.menu-btn span:nth-child(3){ top: 26px; }
.menu-btn.active span:nth-child(1){ top: 21px; transform: translateX(-50%) rotate(45deg); }
.menu-btn.active span:nth-child(2){ opacity: 0; }
.menu-btn.active span:nth-child(3){ top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* Mobile drawer */
.drawer{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 998;
}
.drawer.active{ display: block; }
.drawer-panel{
  position: absolute;
  top: var(--navH);
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), 92vw);
  border: 1px solid var(--border);
  background: rgba(16,24,38,0.92);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.drawer-panel a{
  display: block;
  padding: 16px 16px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.drawer-panel a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.drawer-panel a:last-child{ border-bottom: none; }

/* =========================
   Hero
========================== */
.hero{
  min-height: calc(100vh - var(--navH));
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-2);
}

.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.02);
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,15,20,0.70) 0%,
    rgba(11,15,20,0.72) 40%,
    rgba(11,15,20,0.92) 100%);
}

.hero-inner{
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero-card{
  border: 1px solid var(--border);
  background: rgba(16,24,38,0.55);
  backdrop-filter: blur(16px);
  border-radius: calc(var(--radius) + 6px);
  padding: 44px;
  box-shadow: var(--shadow);
}

.hero-title{
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.0;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.hero-title span{
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle{
  color: rgba(238,242,255,0.84);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 54ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}
.btn.primary{
  border-color: rgba(85,247,212,0.55);
  background: linear-gradient(135deg, rgba(85,247,212,0.18), rgba(255,79,183,0.10));
}
.btn.primary:hover{
  background: linear-gradient(135deg, rgba(85,247,212,0.24), rgba(255,79,183,0.14));
  border-color: rgba(85,247,212,0.75);
}

/* =========================
   Section Header
========================== */
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.section-head h2{
  font-family: 'Orbitron', monospace;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}
.section-rule{
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(85,247,212,0.35), rgba(255,255,255,0.06), transparent);
  border-radius: 999px;
  margin-left: 16px;
}

/* =========================
   Cards / Layout helpers
========================== */
.card{
  border: 1px solid var(--border);
  background: rgba(16,24,38,0.62);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.card-pad{ padding: 22px; }

.stack{
  display: flex;
  flex-direction: column;
  gap: 28px; /* bigger separation between posts */
}

.center-row{
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* =========================
   Stat pills (MATCHES YOUR SCREENSHOT)
========================== */
.about-stats{
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.stat{
  width: 180px;
  padding: 18px 22px;
  border-radius: 18px;
  text-align: center;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.stat-number{
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label{
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(238,242,255,0.55);
}

/* =========================
   Snapshots
========================== */
.snap-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.snapshot-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.snapshot h3{
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.snapshot-link{
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(85,247,212,0.28);
  background: rgba(85,247,212,0.06);
  color: rgba(85,247,212,0.95);
  font-weight: 700;
}
.snapshot-link:hover{
  background: rgba(85,247,212,0.10);
  border-color: rgba(85,247,212,0.45);
}

.chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(238,242,255,0.82);
  white-space: nowrap;
}
.chip-teal{
  border-color: rgba(85,247,212,0.28);
  background: rgba(85,247,212,0.08);
}
.chip-pink{
  border-color: rgba(255,79,183,0.28);
  background: rgba(255,79,183,0.08);
}

/* =========================
   Project card
========================== */
.project-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.project h3{
  font-family: 'Orbitron', monospace;
  font-size: 1.25rem;
  color: rgba(85,247,212,0.95);
  letter-spacing: 0.04em;
}
.project-status{
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255,180,75,0.95);
  border: 1px solid rgba(255,180,75,0.55);
  background: rgba(255,180,75,0.12);
  white-space: nowrap;
}
.project p{
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0;
}
.project-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: rgba(85,247,212,0.95);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(85,247,212,0.28);
  background: rgba(85,247,212,0.06);
}

/* =========================
   Devlog list cards
========================== */
.devlog-entry{
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  position: relative;
}
.devlog-entry:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(16,24,38,0.72);
}

.devlog-header{
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.devlog-entry h4{
  font-size: 1.18rem;
  font-weight: 800;
  color: rgba(238,242,255,0.95);
  line-height: 1.25;
}
.devlog-entry time{
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(238,242,255,0.80);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  white-space: nowrap;
}
.hint{
  display: inline-flex;
  font-size: 0.78rem;
  color: rgba(85,247,212,0.9);
  border: 1px solid rgba(85,247,212,0.30);
  background: rgba(85,247,212,0.08);
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  margin-bottom: 8px;
}
.devlog-entry:hover .hint{
  opacity: 1;
  transform: translateY(0);
}
.devlog-entry p{
  color: var(--muted);
  line-height: 1.9;
  margin: 12px 0;
}

.image-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.image-gallery img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}
.image-gallery img:hover{
  transform: translateY(-2px);
  border-color: rgba(85,247,212,0.40);
  filter: brightness(1.03);
}

/* =========================
   About
========================== */
/* =========================
   About intro – readability pass
========================== */

.about-intro {
  text-align: center;
  padding: 32px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(16,24,38,0.55);

  /* NEW */
  max-width: 860px;
  margin: 0 auto 28px auto;
}

.about-intro h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.75rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-intro p {
  color: var(--muted);
  line-height: 1.9;

  /* NEW */
  font-size: 1.02rem;
  max-width: 68ch;
  margin: 0 auto 16px auto;
}

/* Remove extra space on last paragraph */
.about-intro p:last-child {
  margin-bottom: 0;
}

.about-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.about-card{
  border: 1px solid var(--border);
  background: rgba(16,24,38,0.62);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.about-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(16,24,38,0.72);
}
.card-icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(85,247,212,0.18), rgba(255,79,183,0.12));
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(238,242,255,0.92);
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.about-card h4{
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.about-card p{
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.95rem;
}
.about-footer{
  border: 1px solid var(--border);
  background: rgba(16,24,38,0.55);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin-top: 16px;
}
.about-footer p{
  color: var(--muted);
  line-height: 1.9;
}

/* =========================
   Footer
========================== */
.site-footer{
  border-top: 1px solid var(--border-2);
  padding: 26px 0;
  color: var(--dim);
  font-size: 0.9rem;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.social-links{
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-links a{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(238,242,255,0.82);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.social-links a:hover{
  transform: translateY(-1px);
  border-color: rgba(85,247,212,0.45);
  background: rgba(85,247,212,0.08);
  color: rgba(238,242,255,0.95);
}

/* =========================
   Lightbox
========================== */
.lightbox{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 24px;
  cursor: pointer;
}
.lightbox.active{ display: flex; }
.lightbox img{
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}

/* =========================
   Devlog Modal
========================== */
.devlog-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(14px);
  padding: 24px;
  overflow-y: auto;
}
.devlog-modal.active{
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.devlog-modal-content{
  width: min(920px, 96vw);
  margin-top: 40px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  background: rgba(16,24,38,0.92);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.modal-top{
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-close{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(238,242,255,0.9);
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}
.modal-close:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(85,247,212,0.40);
}

#devlog-modal-body{
  padding: 22px;
}
#devlog-modal-body h4{
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: rgba(238,242,255,0.95);
}
#devlog-modal-body time{
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(238,242,255,0.82);
}
#devlog-modal-body p{
  color: var(--muted);
  line-height: 2.0;
  margin: 14px 0;
  font-size: 1.02rem;
}
#devlog-modal-body strong{
  color: rgba(255,180,75,0.95);
  font-weight: 900;
}

/* =========================
   Responsive
========================== */
@media (max-width: 1000px){
  .snap-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .brand p{ display: none; }
  .hero-card{ padding: 30px; }
  .devlog-header{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px){
  .nav{ display: none; }
  .menu-btn{ display: inline-block; }
  .section{ padding: 56px 0; }
  .hero-inner{ padding: 64px 0; }
  .hero-card{ padding: 24px; }
  .image-gallery img{ height: 180px; }
  .devlog-modal{ padding: 16px; }
  #devlog-modal-body{ padding: 18px; }
  #devlog-modal-body h4{ font-size: 1.35rem; }
}

@media (max-width: 480px){
  .hero-actions .btn{ width: 100%; }
  .stat{ width: 160px; }
}

/* =========================
   Fix skinny top nav
========================== */

.topbar {
  min-height: 72px; /* restores proper height */
}

.topbar-inner {
  height: 72px;
  padding: 0 0; /* ensures padding isn't collapsing it */
}

.nav a,
.nav-cta {
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  padding: 8px 0;
}

/* =========================
   Fix background clipping on tall pages
========================== */

html {
  background: var(--bg);
}

body {
  background:
    radial-gradient(1200px 700px at 25% -10%, rgba(85,247,212,0.10), transparent 55%),
    radial-gradient(900px 600px at 110% 10%, rgba(255,79,183,0.08), transparent 55%),
    radial-gradient(900px 600px at 60% 120%, rgba(255,180,75,0.06), transparent 55%),
    var(--bg);

  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

