:root{
  --navy:#173a53;
  --navy-2:#0f2e45;
  --text:#1f2937;
  --muted:#6b7280;
  --rule:#d7dde4;
  --bg:#f4f6f9;
  --card:#ffffff;
}

*{ box-sizing:border-box; }

html, body{
  height:100%;
}

body{
  margin:0;
  min-height: 100vh;

  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* solid fallback */
  background-color: #070b10;

  /* pinned gradient so it doesn't "shift/end" while scrolling */
  background-image: radial-gradient(
    1200px 800px at 30% 10%,
    #1b2633 0%,
    #0e141b 45%,
    #070b10 100%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;

  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* main layout wrapper */
.page{
  max-width: 1150px;
  margin: 24px auto;
  padding: 0 14px;

  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;

  /* IMPORTANT: prevents the sidebar/main from matching heights */
  align-items: start;
}

.page > .sidebar,
.page > .main{
  border-radius: 18px;
}

/* tablet */
@media (max-width: 920px){
  .page{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* phone */
@media (max-width: 520px){
  .page{
    margin: 14px auto;
    padding: 0 10px;
  }
}

/* SIDEBAR */
.sidebar{
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #eaf2f8;
  padding: 26px 22px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
  position: relative;
  overflow:hidden;
}

.photo-wrap{
  display:flex;
  justify-content:center;
  padding: 6px 0 22px;
}

.photo{
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.95);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.side-block{
  margin-top: 18px;
  padding-top: 18px;
}

.side-title{
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  position: relative;
  padding-bottom: 10px;
}

.side-title::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: rgba(255,255,255,0.25);
}

.contact-list{
  list-style:none;
  padding:0;
  margin: 0;
  display:flex;
  flex-direction:column;
  gap: 12px;
  font-size: 14px;
}

.contact-list li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  line-height: 1.35;
}

.icon{
  width: 20px;
  opacity: 0.95;
  flex: 0 0 auto;
}

.edu-item{ margin-bottom: 16px; }
.edu-years{
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  opacity: 0.95;
}
.edu-school{
  margin-top: 6px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}
.edu-detail{
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.92;
}

/* cleaner GCSE layout */
.edu-qual{
  opacity: 0.9;
  font-weight: 600;
}

.edu-list{
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  opacity: 0.92;
}

.edu-list li{
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.edu-subject{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edu-grade{
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
}


.bullet-list{
  margin: 0;
  padding-left: 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  font-size: 14px;
}
.bullet-list li{ line-height: 1.35; }

/* MAIN */
.main{
  background: var(--card);
  padding: 30px 30px 26px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.10);
}

.header{
  padding-bottom: 18px;
}
/* ===== HEADER + NAV ===== */

.header-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}
.header-top .top-nav{
  flex-shrink: 0;
}

/* Navigation container */
.top-nav{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Navigation buttons */
.nav-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 38px;
  padding: 0 16px;

  border-radius: 999px;
  border: 1px solid var(--rule);
  background: #ffffff;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #18384f;
  text-decoration: none;

  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.06);
  transition: 
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.nav-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.12);
  background: #f9fafb;
}

.nav-btn.active{
  background: #18384f;
  color: #ffffff;
  border-color: #18384f;
}

/* Mobile header stacking */
@media (max-width: 620px){
  .header-top{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .top-nav{
    justify-content: flex-start;
  }
}


.name-row{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.name{
  margin: 0;
  font-size: 44px;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.name-strong{
  font-weight: 900;
}

.name-light{
  font-weight: 500;
  margin-left: 10px;
  color: #2b516c;
}

.role{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
}

.accent-line{
  width: 62px;
  height: 3px;
  background: #2b516c;
  border-radius: 999px;
  margin-top: 16px;
}

/* SECTIONS */
.block{
  margin-top: 18px;
  padding-top: 10px;
}

.block-title-row{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 12px;
}

.block-title{
  margin:0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #18384f;
}

.block-rule{
  height: 1px;
  background: var(--rule);
  flex: 1;
}

.text{
  margin: 0;
  color: #4b5563;
  line-height: 1.75;
  font-size: 14px;
}

/* TIMELINE */
.timeline{
  position: relative;
  padding-left: 34px; /* more room for dot + line */
  margin-top: 6px;
}

.timeline::before{
  content:"";
  position:absolute;
  left: 10px; /* move line left */
  top: 4px;
  bottom: 6px;
  width: 2px;
  background: #dbe2ea;
  border-radius: 999px;
}

.job{
  position: relative;
  display:flex;
  gap: 16px;
  padding: 14px 0;
}

.job-marker{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #18384f;
  position: absolute;

  /* move dot further left */
  left: -2px;

  /* align dot with company name */
  top: 20px;

  box-shadow: 0 0 0 4px rgba(24,56,79,0.10);
}


.job-content{
  width: 100%;
  margin-left: 22px;
}


.job-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.job-company{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1f2f3a;
}

.job-title{
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.job-dates{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
}

.job-bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: #4b5563;
  line-height: 1.7;
  font-size: 14px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}

/* REFERENCES */
.refs{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 720px){
  .refs{ grid-template-columns: 1fr; }
  .name{ font-size: 38px; }
}

.ref-card{
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

.ref-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ref-name{
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.ref-role{
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.ref-meta{
  margin-top: 10px;
  color: #4b5563;
  font-size: 13px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.ref-label{
  color: #1f2f3a;
  font-weight: 700;
  margin-right: 6px;
}

.footer{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
}
/* ===== PORTFOLIO ===== */

.project-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 720px){
  .project-grid{
    grid-template-columns: 1fr;
  }
}

.project-card{
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
}

.project-title{
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #1f2f3a;
}

.project-desc{
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.project-tags{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag{
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #18384f;
  background: #f9fafb;
}
/* slightly softer link style for sidebar info links */
.muted-link{
  text-decoration: none;
  opacity: 0.95;
}

.muted-link:hover{
  text-decoration: underline;
  opacity: 1;
}
/* ===== OFF-CANVAS SIDEBAR (hamburger) ===== */

/* hamburger button (hidden on desktop by default) */
.menu-btn{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
  cursor: pointer;
  padding: 0;
}

.menu-btn:hover{
  transform: translateY(-1px);
}

/* 3-line icon */
.menu-icon{
  display: block;
  width: 18px;
  height: 2px;
  background: #18384f;
  border-radius: 999px;
  position: relative;
  margin: 0 auto;
}

.menu-icon::before,
.menu-icon::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #18384f;
  border-radius: 999px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.menu-icon::before{ top: -6px; }
.menu-icon::after{ top: 6px; }

/* backdrop behind sidebar */
.backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Mobile/tablet behavior: sidebar becomes off-canvas */
@media (max-width: 920px){
  .menu-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .page{
    grid-template-columns: 1fr;
  }

  .sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 340px;
    max-width: 86vw;
    z-index: 1000;

    transform: translateX(-110%);
    transition: transform 0.28s ease;
    border-radius: 0;

    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: 24px;
  }

  body.sidebar-open .sidebar{
    transform: translateX(0);
  }

  body.sidebar-open .backdrop{
    display: block;
    opacity: 1;
  }

  body.sidebar-open{
    overflow: hidden;
  }
}



/* optional: turn hamburger into X when open */
@media (max-width: 920px){
  body.sidebar-open .menu-icon{
    background: transparent;
  }
  body.sidebar-open .menu-icon::before{
    top: 0;
    transform: rotate(45deg);
  }
  body.sidebar-open .menu-icon::after{
    top: 0;
    transform: rotate(-45deg);
  }
}

/* make project cards clickable without changing style */
.project-link{
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-link:hover{
  text-decoration: none;
}

.project-cta{
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #18384f;
  opacity: 0.85;
}
.project-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
/* ===== PROJECT CARD POLISH ===== */

.project-card{
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.project-link:hover,
.project-link:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.14);
  border-color: #b7c6d6;
}

/* subtle arrow indicator */
.project-card::after{
  content: "→";
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #18384f;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.project-link:hover::after,
.project-link:focus-visible::after{
  opacity: 0.85;
  transform: translateX(0);
}

/* improve keyboard accessibility */
.project-link:focus-visible{
  outline: 2px solid #18384f;
  outline-offset: 4px;
}
/* Prevent grid items from stretching to the tallest item in the row */
.refs,
.project-grid{
  align-items: start;
}

.refs > *,
.project-grid > *{
  height: auto;
}
.job{
  align-items: flex-start;
}
/* ===== SCREENSHOT GALLERY ===== */
.shot-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 820px){
  .shot-grid{ grid-template-columns: 1fr; }
}

.shot{
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
}

.shot img{
  display: block;
  width: 100%;
  height: auto;
}

.shot-caption{
  padding: 10px 12px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}
/* ===== PROJECT SCREENSHOTS (image + text) ===== */
.shots{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.shot-row{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;

  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
  padding: 14px;
}

.shot-media{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #ffffff;
}

.shot-media img{
  display: block;
  width: 100%;
  height: auto;
}

.shot-title{
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #18384f;
}

.shot-text{
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.75;
  font-size: 14px;
}

@media (max-width: 820px){
  .shot-row{
    grid-template-columns: 1fr;
  }
}
/* ===== PORTFOLIO CARD META (replaces tag pills) ===== */
.project-meta{
  margin: 12px 0 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.project-meta strong{
  color: #1f2f3a;
  font-weight: 800;
}

.dot-sep{
  display: inline-block;
  margin: 0 8px;
  opacity: 0.6;
}
