/* =========
   Base
========= */


*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 20% 0%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(800px 500px at 80% 10%, rgba(255,255,255,0.06), transparent 55%),
    var(--bg);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: 0.9; }

main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* =========
   Nav
========= */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(11,15,23,0.85), rgba(11,15,23,0.55));
  border-bottom: 1px solid var(--faint);
}

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

.brand{
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.links{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a{
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
}

.links a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.links .cta{
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--faint);
  color: var(--text);
}

/* =========
   Sections
========= */
.section{
  padding: 88px 0;
}

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

.section-head h2{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

/* =========
   Hero
========= */
.hero{
  padding: 78px 0 44px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: stretch;
}

.kicker{
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sub{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 60ch;
  font-size: 16px;
}

.sub_no_margin {
  margin: 0 0 3px;
  color: var(--muted);
  max-width: 60ch;
  font-size: 16px;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--faint);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
}

.btn.primary{
  background: rgba(255,255,255,0.14);
}

.social{
  display: flex;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  flex-wrap: wrap;
}

.social a{
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.social a:hover{
  border-color: var(--faint);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

/* Right hero card */
.card{
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.04));
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.avatar{
  /* height: 140px; */
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--faint);
  background:
    radial-gradient(300px 160px at 30% 30%, rgba(255,255,255,0.12), transparent 60%),
    rgba(255,255,255,0.06);
  margin-bottom: 14px;
}

.stats{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stats strong{
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.stats span{
  color: var(--muted);
  font-size: 13px;
}

/* =========
   Projects grid
========= */
.grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card{
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.03));
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  transition: transform 140ms ease, background 140ms ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover{
  transform: translateY(-3px);
  background: linear-gradient(180deg, var(--panel-2), rgba(255,255,255,0.04));
}

.thumb{
  height: 140px;
  border-radius: 16px;
  border: 1px solid var(--faint);
  background:
    radial-gradient(340px 180px at 70% 20%, rgba(255,255,255,0.12), transparent 60%),
    rgba(255,255,255,0.06);
  margin-bottom: 12px;
}

.thumb_dim{
  height: 140px;
  border-radius: 16px;
  border: 1px solid var(--faint);
  background:
    radial-gradient(340px 180px at 70% 20%, rgba(255,255,255,0.12), transparent 60%),
    rgba(255,255,255,0.06);
  margin-bottom: 12px;
  filter: brightness(80%);
}

.project-card h3{
  margin: 8px 0 6px;
  letter-spacing: -0.02em;
}

.project-card p{
  margin: 0 0 12px;
  color: var(--muted);
}

.tags, .chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.tags span, .chips span{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--faint);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 12px;
}

.card-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text);

  margin-top: auto;
}

.card-actions a{
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}
.card-actions a:hover{
  border-color: var(--faint);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

/* =========
   Split section (About)
========= */
.split{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.split h2{ margin-top: 0; }

.split p, .split li{
  color: var(--muted);
}

.split ul{
  margin: 12px 0 0;
  padding-left: 18px;
}

#about li {
  font-weight: bold;
  color: var(--blue)

}

#about .card li {
  color: var(--text);
  font-weight: lighter;
}

#about .card li strong {
  color: var(--text);
  font-weight: bold;
}

/* =========
   Timeline
========= */
.timeline{
  display: grid;
  gap: 14px;
}

.role{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--faint);
  background: rgba(255,255,255,0.05);
}

.role h3{
  margin: 0 0 6px;
}

.meta{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.role ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.link {
  font-weight: bold;
  color: var(--blue)
}

/* =========
   Skills
========= */
.skills{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-group{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--faint);
  background: rgba(255,255,255,0.05);
  /* background: rgba(0, 123, 200, 0.905); */
}

.skill-group h3{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.chips span {
  background: rgb(69, 77, 158);
}

/* =========
   Contact
========= */
.contact-card{
  text-align: center;
  padding: 26px;
}

.contact-card p{
  color: var(--muted);
  max-width: 62ch;
  margin: 8px auto 0;
}

#contact .hero-actions {
  justify-content: center;
}

#more_info {
  margin-top: 1em;
}

.btn-link{
  background: var(--panel);
  border-radius: 10px;
  border: 1px solid var(--faint);
  padding: 12px;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}
.btn-link:hover{ opacity: 0.85; }


/* =========
   Modals (theme-matched)
========= */

.modal{
  z-index: 200;                 /* above sticky header */
  display: none;
  position: fixed;
  inset: 0;                     /* top/right/bottom/left:0 */
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  padding: 18px;                /* breathing room on small screens */
}

.modal.is-open{
  display: flex;
}

.modal-content{
  width: min(920px, 96vw);
  height: min(640px, 86vh);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  overflow: hidden;             /* keep iframe + header corners clean */
  display: flex;
  flex-direction: column;
}

.modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,15,23,0.55);
}

.modal-title{
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.90);
}

.modal-close{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.90);
  border-radius: 12px;
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.modal-close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

.modal-body{
  flex: 1;
}

.modal-body iframe{
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

@media (max-width: 620px){
  .modal-content{
    height: min(620px, 88vh);
  }
}


/* =========
   Footer
========= */
.footer{
  border-top: 1px solid var(--faint);
  padding: 24px 20px;
  color: var(--muted);
  text-align: center;
}

/* =========
   Responsive
========= */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split{ grid-template-columns: 1fr; }
  .skills{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .links{ gap: 6px; }
  .links a{ padding: 8px 8px; }
  .grid{ grid-template-columns: 1fr; }
  .skills{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
}
