@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* --- color tokens --- */
  --bg:            #0A1120;
  --bg-raised:     #101a30;
  --bg-panel:      #0d1526;
  --line:          #22304d;
  --line-soft:     #182238;
  --text:          #E7ECF6;
  --text-muted:    #97A2BC;
  --text-faint:    #647089;
  --amber:         #D6A75C;
  --amber-soft:    #6b5730;
  --teal:          #6FA9AC;
  --teal-soft:     #22343a;
  --red-dim:       #b06a5c;
  --otline:        #fff224bd;
  --radius-s:      3px;
  --radius-m:      6px;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --maxw: 1120px;
}

/* ---------- reset ---------- */

*,*::before,*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  max-width:100%;
  overflow-x:hidden;   /* fallback for browsers without overflow:clip (Safari < 16) */
  overflow-x:clip;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  margin:15px;
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-align:justify;
}

/* =====================================================
   WELCOME SCREEN — COMPLETE ANIMATION
   ===================================================== */

#welcome {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #0A1120;
    color: #E7ECF6;

    animation: welcomeBackground .8s ease both;
}

/* Welcome content */

.welcome-content {
    text-align: center;

    animation: welcomeEnter 1s cubic-bezier(.16,1,.3,1) both;
}

/* Glowing symbol */

.welcome-symbol {
    display: block;
    color: var(--amber);
    font-size: 38px;
    margin-bottom: 15px;

    animation: symbolGlow 2s ease-in-out infinite;
}

/* Typing text */

.welcome-content h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    letter-spacing: 3px;

    width: 10ch;
    margin: 0 auto 5px;

    overflow: hidden;
    white-space: nowrap;

    border-right: 2px solid var(--amber);

    animation:
        typing 1s steps(10, end) 0.5s both,
        cursorBlink .7s step-end infinite;
}

/* Subtitle */

.welcome-content p {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin: 0 auto;
}

/* Loading bar */

.welcome-loader {
    width: 100px;
    height: 2px;
    background: var(--line);
    margin: 28px auto 0;
    overflow: hidden;
    position: relative;
}

.welcome-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--amber);

    transform: translateX(-100%);
    animation: loaderProgress 2.5s ease-in-out forwards;
}


/* =====================================================
   KEYFRAMES
   ===================================================== */

/* Background entrance */

@keyframes welcomeBackground {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Content entrance */

@keyframes welcomeEnter {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Symbol glow */

@keyframes symbolGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
        text-shadow: 0 0 20px var(--amber);
    }
}

/* Typewriter */

@keyframes typing {
    from { width: 0; }
    to { width: 11ch; }
}

/* Blinking cursor */

@keyframes cursorBlink {
    50% { border-color: transparent; }
}

/* Loading progress */

@keyframes loaderProgress {
    to { transform: translateX(0); }
}

/* Exit */

#welcome.hide {
    animation: welcomeExit .7s ease forwards;
    pointer-events: none;
}

@keyframes welcomeExit {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Already shown this session: never paint it again */
.welcome-seen #welcome {
    display: none;
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    #welcome,
    .welcome-content,
    .welcome-symbol,
    .welcome-loader::after,
    .welcome-content h2 {
        animation: none;
    }

    .welcome-content h2 {
        width: auto;
        border-right: none;
    }
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

ul{
  list-style:none;
  margin:0;
  padding:0;
}

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  line-height:1.22;
  margin:0 0 .5em;
  color:#fff;
}

p{
  margin:0 0 1em;
  color:var(--text-muted);
  max-width:68ch;
}

.mono{
  font-family:var(--mono);
}

/* subtle grid/starfield texture applied to page background */

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background-image:
    radial-gradient(1px 1px at 8% 22%, rgba(231,236,246,.35) 0, transparent 60%),
    radial-gradient(1px 1px at 22% 68%, rgba(231,236,246,.25) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 14%, rgba(231,236,246,.3) 0, transparent 60%),
    radial-gradient(1px 1px at 52% 76%, rgba(231,236,246,.2) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 34%, rgba(231,236,246,.3) 0, transparent 60%),
    radial-gradient(1px 1px at 79% 58%, rgba(231,236,246,.22) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 12%, rgba(231,236,246,.3) 0, transparent 60%),
    radial-gradient(1px 1px at 95% 82%, rgba(231,236,246,.2) 0, transparent 60%);
  background-repeat:no-repeat;
  background-size:100% 100%;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:linear-gradient(
    180deg,
    rgba(10,17,32,0) 0%,
    rgba(10,17,32,.4) 60%,
    var(--bg) 100%
  );
}

::selection{
  background:var(--amber);
  color:#1a1305;
}

:focus-visible{
  outline:2px solid var(--amber);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

/* ---------- layout helpers ---------- */

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}

.section{
  padding:72px 0;
  border-bottom:1px solid var(--line-soft);
}

.section:last-of-type{
  border-bottom:none;
}

.section-head{
  margin-bottom:40px;
  max-width:64ch;
}

.section-head .kicker{
  display:block;
  font-family:var(--mono);
  font-size:.78rem;
  letter-spacing:.02em;
  color:var(--teal);
  margin-bottom:10px;
}

.section-head h2{
  font-size:clamp(1.5rem,3vw,2.1rem);
}

.section-head .lede{
  font-size:1.02rem;
}

.grid{
  display:grid;
  gap:24px;
}

.grid-2{
  grid-template-columns:repeat(2,1fr);
}

.grid-3{
  grid-template-columns:repeat(3,1fr);
}

@media(max-width:900px){
  .grid-3{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:640px){
  .grid-2,.grid-3{
    grid-template-columns:1fr;
  }
}

/* ---------- header / nav ---------- */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(10,17,32,.86);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}

.nav{
  max-width:var(--maxw);
  margin:0 auto;
  padding:8px 10px 16px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.brand{
  font-family:var(--serif);
  font-weight:600;
  font-size:1.08rem;
  color:#fff;
  display:flex;
  align-items:baseline;
  gap:8px;
  white-space:nowrap;
  transition:0.5s;
  position:relative;
}

.brand:hover{
  color:gold;
  scale:1.05;
}

.brand::before{
  content:"";
  position:absolute;
  bottom:-5px;
  left:0;
  width:100%;
  height:1px;
  background:blue;
  transition:2s ease-in-out;
}

.brand.clicked::before{
  width:1000%;
  left:-100%;
}

.brand .brand-mark{
  color:var(--amber);
  font-family:var(--mono);
  font-size:.85rem;
}

.nav-links{
  display:flex;
  flex-wrap:wrap;
  gap:2px 4px;
  align-items:center;
  overflow:auto;
  transition: 0.5s ease-in-out;
}

.nav-links a{
  font-size:.86rem;
  color:var(--text-muted);
  padding:8px 10px;
  border-radius:var(--radius-s);
  transition:color .15s ease, background .15s ease, border-left .5s;
  cursor:pointer;
}

.nav-links a:hover{
  color:var(--text);
  background:var(--bg-raised);
}

.nav-links a.active{
  color:var(--amber);
}

.nav-toggle{
  display: none;
  position:relative;
  border:1px solid transparent;
  border-radius:8px;
  background:#111;
  color:white;
  padding: 6px 12px;
  overflow:hidden;
  isolation:isolate;
  z-index: 99;
  font-size: 0.9rem;
  font-family: var(--serif);
  cursor: pointer;
}

.nav-toggle::before{
  content:"";
  position:absolute;
  inset:-50%;
  background:conic-gradient(
    red 0deg,
    yellow 90deg,
    blue 180deg,
    green 270deg
  );
  animation:round 2s linear infinite;
  z-index:-2;
}

.nav-toggle::after{
  content:"";
  position:absolute;
  inset:2px;
  background:#111;
  border-radius:7px;
  z-index:-1;
}

@keyframes round{
  to{
    transform:rotate(360deg);
  }
}

.nav-toggle:hover::after{
  transform:scale(1.03);
}

@media(max-width:980px){
  .nav-toggle{
    display:block;
  }
  

  .nav-links{
    display:flex;
    position:absolute;
    top:-1000%;
    left:0;
    right:0;
    background:var(--bg-panel);
    flex-direction:column;
    align-items:stretch;
    padding:8px;
    gap:0;
    max-height:calc(100vh - 100px);
    max-height:calc(100dvh - 100px);
    overflow-y:auto;
    transition: 0.5s top ease-in-out;
    z-index: 88;
  }

  .nav-links.open{
    top: 100%;
  }

  .nav-links li{
    padding: 5px 0px;
  }
  
  .nav-links a{
    padding:8px 14px;
    border-radius:0;
  }

}

/* ---------- Moving Words ---------- */

.moving-words {
  position: relative;
  display: block;
  width: 100%;
  height: 30px;
  overflow: hidden;
  background: #0d1528;
  white-space: nowrap;
  z-index: 10;
}

.moving-words::after{
  content:"";
  position:absolute;
  inset:0px;
  background:#fff041a6;
  width: 1%;
  height: 2px;
  border-radius:1px;
  left: -99%;
  z-index:-1;
  animation: hovertxt infinite;
  animation-delay: 1s;
  animation-duration: 8s;
}

@keyframes hovertxt{
  to{
    width: 500%;
    left: 500%;
  }
}

.moving-words .words-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  height: 30px;
  position: relative;
  animation: marquee 35s linear infinite;
  will-change: transform;
}

.moving-words .words-group {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  flex-wrap: nowrap;
}

.moving-words .words-group p {
  all: unset;
  display: block;
  flex: 0 0 auto;
  width: max-content;
  box-sizing: content-box;
  padding-right: 30px;
  line-height: 30px;
  font-size: 13px;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--marquee-distance)));
  }
}


/* ---------- buttons ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--sans);
  font-weight:600;
  font-size:.92rem;
  padding:12px 20px;
  border-radius:var(--radius-s);
  border:1px solid transparent;
  cursor:pointer;
  transition:background-color .5s ease, border-color .5s ease, color .5s ease, transform .5s ease;
}

.btn-primary{
  background:var(--amber);
  color:#1a1305;
}

.btn-primary:hover{
  background:#e6ba76;
}

.btn-outline{
  border-color:var(--line);
  color:var(--text);
}

.btn-outline:hover{
  border-color:var(--amber);
  color:var(--amber);
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}

.btn-sm{
  padding:8px 14px;
  font-size:.82rem;
}

.btn:active{
  transform:scale(0.9);
}

/* ---------- hero ---------- */

.hero{
  padding:96px 0 80px;
}

.hero .kicker{
  font-family:var(--mono);
  color:var(--teal);
  font-size:.85rem;
  margin-bottom:18px;
  display:block;
}

.hero h1{
  font-size:clamp(2.1rem,5vw,3.4rem);
  max-width:16ch;
  margin-bottom:.3em;
}

.hero h1 .accent{
  color:var(--amber);
}

.hero .role-line{
  font-family:var(--mono);
  font-size:1rem;
  color:var(--text-muted);
  margin-bottom:26px;
}

.hero p.lede{
  font-size:1.08rem;
  max-width:56ch;
  color:var(--text-muted);
}

/* ---------- cards ---------- */

.card{
  background:var(--bg-panel);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card:hover{
  border-color: var(--otline);
}

.card h3{
  font-size:1.15rem;
  margin-bottom:4px;
}

.card .card-meta{
  font-family:var(--mono);
  font-size:.76rem;
  color:var(--text-faint);
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
}

.card .tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
}

.tag{
  font-family:var(--mono);
  font-size:.72rem;
  color:var(--teal);
  border:1px solid var(--teal-soft);
  background:rgba(111,169,172,.08);
  padding:3px 8px;
  border-radius:2px;
}

.card .card-link{
  margin-top:auto;
  padding-top:10px;
  color:var(--amber);
  font-size:.88rem;
  font-weight:600;
}

.card .card-link:hover{
  text-decoration:underline;
}

/* status badges: completed / learning / goal */

.status{
  font-family:var(--mono);
  font-size:.7rem;
  padding:3px 8px;
  border-radius:2px;
  border:1px solid;
  display:inline-block;
}

.status-done{
  color:var(--teal);
  border-color:var(--teal-soft);
  background:rgba(111,169,172,.08);
}

.status-learning{
  color:var(--amber);
  border-color:var(--amber-soft);
  background:rgba(214,167,92,.08);
}

.status-goal{
  color:var(--text-muted);
  border-color:var(--line);
  background:transparent;
}

/* ---------- timeline ---------- */

.timeline{
  position:relative;
  padding-left:28px;
  border-left:1px solid var(--line);
  margin-top:20px;
}

.timeline-item{
  position:relative;
  padding-bottom:36px;
}

.timeline-item:last-child{
  padding-bottom:0;
}

.timeline-item::before{
  content:"";
  position:absolute;
  left:-33px;
  top:4px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--bg);
  border:2px solid var(--amber);
}

.timeline-item h4{
  font-size:1.02rem;
  margin-bottom:4px;
}

.timeline-item .tl-tag{
  font-family:var(--mono);
  font-size:.74rem;
  color:var(--text-faint);
}

/* ---------- notebook / notes ---------- */

.note-card{
  border:1px solid var(--line);
  border-left:3px solid var(--teal);
  background:var(--bg-panel);
  padding:22px 24px;
  border-radius:0 var(--radius-m) var(--radius-m) 0;
}

.note-card h3{
  font-size:1.05rem;
}

.note-card .note-cat{
  font-family:var(--mono);
  font-size:.72rem;
  color:var(--teal);
  margin-bottom:8px;
  display:block;
}

/* ---------- placeholder blocks ---------- */

.placeholder{
  border:1px dashed var(--line);
  border-radius:var(--radius-m);
  padding:28px;
  text-align:center;
  color:var(--text-faint);
  font-size:.9rem;
  background:rgba(255,255,255,.01);
}

.placeholder .ph-icon{
  font-family:var(--mono);
  color:var(--red-dim);
  display:block;
  margin-bottom:8px;
  font-size:.78rem;
  letter-spacing:.03em;
}

/* ---------- table-like key/value (used in project docs) ---------- */

.kv{
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  overflow:hidden;
}

.kv-row{
  display:grid;
  grid-template-columns:180px 1fr;
  border-bottom:1px solid var(--line-soft);
}

.kv-row:last-child{
  border-bottom:none;
}

.kv-row dt{
  padding:12px 16px;
  font-family:var(--mono);
  font-size:.8rem;
  color:var(--text-faint);
  background:var(--bg-panel);
}

.kv-row dd{
  padding:12px 16px;
  margin:0;
  color:var(--text);
}

@media(max-width:640px){
  .kv-row{
    grid-template-columns:1fr;
  }

  .kv-row dt{
    border-bottom:1px solid var(--line-soft);
  }
}

/* ---------- doc / project detail sections ---------- */

.doc-section h3{
  font-size:1.2rem;
  border-bottom:1px solid var(--line-soft);
  padding-bottom:10px;
  margin-bottom:14px;
}

.doc-section h4{
  font-size:1rem;
  color:var(--amber);
  margin-bottom:6px;
}

.doc-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}

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

/* process flow (question -> setup -> method -> observation -> result -> learned) */

.flow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 26px;
}

.flow span{
  font-family:var(--mono);
  font-size:.76rem;
  color:var(--text-muted);
  border:1px solid var(--line);
  padding:6px 12px;
  border-radius:20px;
}

.flow span.current{
  color:var(--amber);
  border-color:var(--amber-soft);
}

/* breadcrumb */

.crumb{
  font-family:var(--mono);
  font-size:.8rem;
  color:var(--text-faint);
  margin-bottom:18px;
}

.crumb a{
  color:var(--teal);
}

.crumb a:hover{
  text-decoration:underline;
}

/* code block */

pre{
  background:#080d1a;
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  padding:18px;
  overflow-x:auto;
  font-family:var(--mono);
  font-size:.83rem;
  color:#c8d3ea;
}

code{
  font-family:var(--mono);
  font-size:.9em;
  color:var(--teal);
}

/* page hero (secondary pages, smaller than home) */

.page-hero{
  padding:56px 0 40px;
  border-bottom:1px solid var(--line-soft);
}

.page-hero .kicker{
  font-family:var(--mono);
  color:var(--teal);
  font-size:.82rem;
  display:block;
  margin-bottom:12px;
}

.page-hero h1{
  font-size:clamp(1.7rem,4vw,2.4rem);
  max-width:900px;
}

.page-hero p{
  font-size:1rem;
  margin-top:12px;
}

/* footer */

.site-footer{
  border-top:1px solid var(--line-soft);
  padding:44px 0;
  margin-top:20px;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:24px;
}

.footer-grid p{
  font-size:.86rem;
  margin:0;
}

.footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.footer-links a{
  font-size:.86rem;
  color:var(--text-muted);
}

.footer-links a:hover{
  color:var(--amber);
}

.footer-note{
  font-family:var(--mono);
  font-size:.74rem;
  color:var(--text-faint);
  margin-top:18px;
}

/* misc utility */

.text-center{
  text-align:center;
}

.mt-0{
  margin-top:0;
}

.divider{
  height:1px;
  background:var(--line-soft);
  border:none;
  margin:40px 0;
}

.two-col{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:48px;
  align-items:start;
}

@media(max-width:860px){
  .two-col{
    grid-template-columns:1fr;
  }
}

canvas#starfield{
  position:fixed;
  inset:0;
  z-index:-3;
  width:100%;
  height:100%;
}

/* =========================================
   PROFILE PHOTO
   ========================================= */

.profile-area{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:300px;
  text-align:center;
  transition:0.5s ease;
}

.profile-photo-frame{
  width:270px;
  height:270px;
  padding:5px;
  border:1px solid var(--amber);
  border-radius:50%;
  position:relative;
  transition:0.5s ease;
  background:rgba(255,255,255,0.02);
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.02),
    0 0 35px rgba(255,180,70,0.12);
}

.profile-photo{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 10%;
  border-radius:50%;
  cursor:pointer;
  transition:0.75s ease;
}

.profile-photo-frame:hover{
  transform:scale(1.1);
}

.profile-photo:hover{
  transform:scale(1.05);
}

/* Outer orbital ring */

.profile-photo-frame::before{
  content:"";
  position:absolute;
  inset:-14px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:50%;
  pointer-events:none;
}

/* Orbiting amber dot */

.profile-photo-frame::after{
  content:"";
  position:absolute;
  width:8px;
  height:8px;
  right:-100px;
  top:-247px;
  border-radius:50%;
  background:var(--amber);
  box-shadow:0 0 12px var(--amber);
  transform-origin:-105px 107px;
  animation:orbit 2.5s linear infinite;
  z-index:99;
}

/* Orbital animation */

@keyframes orbit{
  from{
    transform:rotate(0deg);
  }

  to{
    transform:rotate(360deg);
  }
}

.profile-caption{
  margin-top:28px;
  max-width:250px;
  font-size:0.82rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--text-faint);
}

/* =========================================
   HERO LAYOUT
   ========================================= */

.hero-content{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:70px;
  align-items:center;
}

.hero-text{
  min-width:0;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width:768px){

  .hero-content{
    grid-template-columns:1fr;
    gap:45px;
  }

  .profile-area{
    order:-1;
  }

  .profile-photo-frame{
    width:200px;
    height:200px;
  }

  .profile-caption{
    margin-top:24px;
  }

  .nav-links a:hover{
    border-right : 1px solid yellow;
    padding-left: 30px;
    transition: 0.2s ease-in-out;
  }

}

/* =========================================================
   CELESTIAL GALLERY — PROJECT PAGE
   ========================================================= */

/* ---------- Project Hero ---------- */

.page-hero .crumb{
  margin-bottom:18px;
  font-size:0.82rem;
  color:var(--text-faint);
}

.page-hero .crumb a{
  color:var(--text-muted);
  text-decoration:none;
}

.page-hero .crumb a:hover{
  color:var(--amber);
}

.page-hero > p{
  max-width:760px;
  margin-top:18px;
}

.page-hero .tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

/* ---------- Main Project Container ---------- */

.section.wrap{
  max-width:1000px;
}

/* ---------- Main Project Screenshot ---------- */

.section > .placeholder:first-child{
  width:100%;
  margin-bottom:55px !important;
  padding:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.09);
  border-radius:14px;
  background:rgba(255,255,255,0.025);
  box-shadow:
    0 15px 45px rgba(0,0,0,0.18),
    0 0 30px rgba(255,180,70,0.05);
}

.appcg-screen{
  display:block;
  width:100%;
  height:auto;
  max-height:620px;
  object-fit:contain;
  object-position:center;
  border-radius:8px;
}

/* ---------- Project Sections ---------- */

.doc-section{
  margin-bottom:52px;
}

.doc-section:last-child{
  margin-bottom:0;
}

.doc-section p{
  max-width:820px;
  line-height:1.8;
  color:var(--text-muted);
}

/* ---------- Technologies ---------- */

.doc-section .kv{
  margin-top:20px;
  overflow:hidden;
}

.doc-section .kv-row{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:28px;
  align-items:start;
  padding:18px 0;
  border-bottom:1px solid rgba(255,255,255,0.07);
}

.doc-section .kv-row:first-child{
  border-top:1px solid rgba(255,255,255,0.07);
}

.doc-section .kv-row dt{
  color:var(--text);
  font-weight:600;
}

.doc-section .kv-row dd{
  margin:0;
  color:var(--text-muted);
  line-height:1.7;
}

/* ---------- Screenshots Gallery ---------- */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(1,minmax(0,1fr));
  gap:20px;
  margin-top:22px;
  align-items:start;
}

.gallery-slot{
  position:relative;
  aspect-ratio:4/3;
  border:1px solid rgba(255,255,255,0.09);
  border-radius:12px;
  background:rgba(255,255,255,0.025);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-faint);
  font-family:var(--mono);
  font-size:.74rem;
  text-align:center;
  padding:10px;
}

.gallery-slot img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  object-fit:cover;
  object-position:center;
  border-radius:10px;
  transition:transform 0.35s ease;
}

.gallery-slot:hover img{
  transform:scale(1.015);
}

/* ---------- What I Learned ---------- */

.doc-section ul{
  max-width:820px;
  margin-top:18px !important;
}

.doc-section li{
  margin-bottom:12px;
  line-height:1.7;
}

.doc-section li:last-child{
  margin-bottom:0;
}

/* ---------- Future Improvements ---------- */

.doc-section .placeholder{
  display:flex;
  align-items:flex-start;
  gap:16px;
  max-width:820px;
  margin-top:20px;
  padding:22px 24px;
  border:1px dashed rgba(255,255,255,0.16);
  border-radius:12px;
  background:rgba(255,255,255,0.018);
  color:var(--text-muted);
  line-height:1.7;
}

.doc-section .ph-icon{
  flex:0 0 auto;
  margin-top:2px;
  font-family:monospace;
  font-size:0.72rem;
  letter-spacing:0.05em;
  color:var(--amber);
  white-space:nowrap;
}


/* Skills Page */

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

.skill-number {
  font-family: var(--mono);
  color: var(--amber);
  font-size: .78rem;
}

.skill-card h4,
.skill-grid .card h4 {
  color: var(--teal);
  font-family: var(--mono);
  font-size: .8rem;
  margin: 12px 0 8px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tags span {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--teal);
  background: rgba(111,169,172,.08);
  border: 1px solid var(--teal-soft);
  padding: 5px 9px;
  border-radius: 3px;
}

.skill-footer-note {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.skill-footer-note .btn-row {
  justify-content: center;
}

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



/* =========================================================
   ADDITIONAL RESPONSIVE DESIGN
   Desktop | Laptop | Tablet
   ========================================================= */


/* ---------------------------------------------------------
   1. LARGE DESKTOP SCREENS
   1440px and above
   --------------------------------------------------------- */

@media screen and (min-width: 1440px){

  :root{
    --maxw: 1200px;
  }

  .wrap{
    max-width:1200px;
  }

  .hero{
    padding-top:115px;
    padding-bottom:100px;
  }

  .hero-content{
    grid-template-columns:minmax(0,1fr) 320px;
    gap:90px;
  }

  .profile-area{
    min-width:0;
    position: absolute;
    top: 30%;
    left: 0%;
    transform: translateX(-50%, -50%);
  }

  .profile-photo-frame{
    width:290px;
    height:290px;
  }

  .section{
    padding-top:90px;
    padding-bottom:90px;
  }

  .section-head{
    margin-bottom:48px;
  }

  .grid{
    gap:30px;
  }

  .card{
    padding:30px;
  }
}


/* ---------------------------------------------------------
   2. STANDARD DESKTOP
   1201px – 1439px
   --------------------------------------------------------- */

@media screen and (min-width: 1201px) and (max-width:1439px){

  .wrap{
    max-width:1120px;
  }

  .hero-content{
    grid-template-columns:minmax(0,1fr) 300px;
    gap:65px;
  }

  .section{
    padding-top:78px;
    padding-bottom:78px;
  }

  .grid{
    gap:24px;
  }

  .profile-area{
    min-width:0;
    position: absolute;
    top: 30%;
    left: 70%;
    transform: translateX(-50%, -50%);
  }
}


/* ---------------------------------------------------------
   3. LAPTOP SCREENS
   981px – 1200px
   --------------------------------------------------------- */

@media screen and (min-width:981px) and (max-width:1200px){

  .wrap{
    max-width:100%;
    padding-left:32px;
    padding-right:32px;
  }

  .nav{
    padding-left:24px;
    padding-right:24px;
  }

  .nav-links{
    gap:2px;
  }

  .nav-links a{
    padding:8px 7px;
    font-size:.82rem;
  }

  .hero{
    padding-top:80px;
    padding-bottom:70px;
  }

  .hero-content{
    grid-template-columns:minmax(0,1fr) 270px;
    gap:45px;
  }

  .hero h1{
    font-size:clamp(2rem,4.5vw,3rem);
  }

  .profile-area{
    min-width:0;
    position: absolute;
    top: 30%;
    left: 70%;
    transform: translateX(-50%, -50%);
  }


  .profile-photo-frame{
    width:250px;
    height:250px;
  }

  .section{
    padding-top:65px;
    padding-bottom:65px;
  }

  .grid{
    gap:20px;
  }

  .card{
    padding:22px;
  }

  .two-col{
    gap:32px;
  }

  .gallery-grid{
    gap:16px;
  }
}


/* ---------------------------------------------------------
   4. TABLET LANDSCAPE
   769px – 980px
   --------------------------------------------------------- */

@media screen and (min-width:769px) and (max-width:980px){

  .wrap{
    max-width:100%;
    padding-left:28px;
    padding-right:28px;
  }
  
  .nav{
    padding-left:24px;
    padding-right:24px;
  }

  .hero{
    padding-top:65px;
    padding-bottom:60px;
  }

  .hero-content{
    grid-template-columns:minmax(0,1fr) 240px;
    gap:30px;
  }

  .hero h1{
    font-size:clamp(2rem,4vw,2.7rem);
  }

  .hero p.lede{
    font-size:1rem;
  }

  .profile-area{
    min-width:0;
    min-width:0;
    position: absolute;
    top: 30%;
    left: 66%;
    transform: translateX(-50%, -50%);
  }

  .profile-photo-frame{
    width:220px;
    height:220px;
  }

  .profile-caption{
    max-width:220px;
    font-size:.75rem;
  }

  .section{
    padding-top:60px;
    padding-bottom:60px;
  }

  .section-head{
    margin-bottom:30px;
  }

  .grid-2,
  .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .card{
    padding:22px;
  }

  .two-col{
    grid-template-columns:1fr 1fr;
    gap:24px;
  }

  .doc-grid{
    gap:20px;
  }

  .gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }
}
/* ---------------------------------------------------------
   5. TABLET PORTRAIT
   601px – 768px
   --------------------------------------------------------- */

@media screen and (min-width:601px) and (max-width:768px){

  .wrap{
    padding-left:24px;
    padding-right:24px;
  }

  .hero{
    padding-top:55px;
    padding-bottom:55px;
  }

  .hero-content{
    grid-template-columns:1fr;
    gap:40px;
    text-align:center;
  }

  .hero-text{
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  .hero h1{
    max-width:20ch;
    font-size:2.5rem;
  }

  .hero p.lede{
    max-width:60ch;
  }

  .profile-area{
    order:-1;
    min-width:0;
  }

  .profile-photo-frame{
    width:210px;
    height:210px;
  }

  .btn-row{
    justify-content:center;
  }

  .section{
    padding-top:55px;
    padding-bottom:55px;
  }

  .grid-2,
  .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .two-col,
  .doc-grid{
    grid-template-columns:1fr;
    gap:28px;
  }

  .gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .section-head h2{
    font-size:1.8rem;
  }
}


/* ---------------------------------------------------------
   6. TABLET AND SMALL SCREEN SAFETY
   Prevent content from expanding beyond the viewport
   --------------------------------------------------------- */

@media screen and (max-width:980px){

  .wrap,
  .section,
  .hero,
  .page-hero,
  .site-footer{
    min-width:0;
  }

  .hero-content,
  .two-col,
  .doc-grid,
  .grid,
  .gallery-grid{
    min-width:0;
  }

  .card,
  .note-card,
  .doc-section,
  .section-head{
    min-width:0;
  }

  .kv-row dd,
  .kv-row dt{
    overflow-wrap:anywhere;
  }

  pre{
    max-width:100%;
  }

  .appcg-screen{
    max-width:100%;
  }

  .footer-grid{
    align-items:flex-start;
  }
}


/* ---------------------------------------------------------
   7. LANDSCAPE TABLET ADJUSTMENT
   --------------------------------------------------------- */

@media screen and (min-width:769px)
and (max-width:1100px)
and (orientation:landscape){

  .hero{
    padding-top:55px;
    padding-bottom:55px;
  }

  .hero-content{
    gap:35px;
  }

  .profile-photo-frame{
    width:210px;
    height:210px;
  }

  .section{
    padding-top:55px;
    padding-bottom:55px;
  }
}


/* ---------------------------------------------------------
   8. RESPONSIVE TYPOGRAPHY
   --------------------------------------------------------- */

@media screen and (min-width:601px) and (max-width:1200px){

  .section-head h2{
    font-size:clamp(1.5rem,2.5vw,2rem);
  }

  .page-hero h1{
    font-size:clamp(1.8rem,3.5vw,2.4rem);
  }

  .doc-section h3{
    font-size:1.15rem;
  }

  p{
    line-height:1.75;
  }
}


/* =========================================================
   9. RESPONSIVE CORRECTIONS
   ========================================================= */

/* Small phones (<= 600px): */
@media screen and (max-width:600px){
  .profile-area{
    min-width:0;
  }
}