/* ==========================================================
   RESET & BASE
   ========================================================== */

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

html {
  font-size: 100%;               /* 16px base — respects user prefs */
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";              /* System font stack — fast, native */
  font-size: 1rem;                 /* 16px */
  line-height: 1.65;
  color: #24292f;                  /* Near-black — easy on the eyes */
  background-color: #ffffff;
}

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

.container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;             /* 20px gutter on small screens */
  overflow: visible;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/*h2 {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #57606a;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #d8dee4;
}
*/
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #57606a;
}

p, li {
  font-size: 0.95rem;
}

a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

blockquote {
  margin: 1.5em 0;
  padding-left: 2.5em;
  position: relative;
  font-style: italic;
  color: #555;
}
blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: 3.5em;
  color: #ccc;
  font-family: Georgia, serif;
}

/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  padding: 2.5rem 0 1.5rem;
}

.header-grid {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
}

.profile-picture img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.header-info .title {
  margin-top: 0.1rem;
}

/* ---------- Contact row ---------- */

.contact-list {
  list-style: none;
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #57606a;
}

.contact-list span.unselectable {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


/*Icons*/

svg.icon, i.icon {
  flex-shrink: 0;
  color: #57606a;
  width: 1.5em;
  height: 1.5em;
  font-size: 1em;
  vertical-align: middle;
  fill: #57606a;
  color: #57606a;
}

svg.icon-inline, i.icon-inline {
  flex-shrink: 0;
  color: #57606a;
  width: 1em;
  height: 1em;
  font-size: 1em;
  vertical-align: middle;
  fill: #57606a;
  color: #57606a;
}

img.icon {
  width: 16;
  height: 16;
  vertical-align: baseline;
}


/* ==========================================================
   MAIN CONTENT — SECTIONS
   ========================================================== */
.tabs {
  position: sticky;
  top: 0px;
  z-index: 100;
  background: #ffffff;

  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #d8dee4;
}
.tabs.stuck {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.tab {
  background: none;
  border: none;
  cursor: pointer;

  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #57606a;

  padding: 0.5rem 1rem;
  position: relative;
  margin-bottom: -1px;
}
.tab:hover {
  color: #24292f;
}
.tab.active {
  color: #24292f;
  border-bottom: 2px solid #0969da;
  background: #e1ecf9;
}

.tab-panel {
  display: none;
  margin-top: 1.5rem;
}
.tab-panel.active {
  display: block;
}

/* top-level list */
.tab-panel > ul {
  padding-left: 0;
  list-style: none;
}

.tab-panel > ul > li {
  border-left: 2px solid #0969da; /* accent bars */
  padding-left: 0.75rem;
  padding-top: 0rem;
  padding-bottom: 0rem;
  margin-bottom: 1.5rem;
}

/* nested lists */
.tab-panel > ul ul {
  padding-left: 1.5rem;
  margin-top: 0rem;
}

.tab-panel > ul ul li {
  border-left: none;
  border-bottom: none;
  padding-left: 0;
  margin-bottom: 0.1rem;
}

.tab-panel > ul > li > ul {
  list-style: disc;
}
.tab-panel > ul > li > ul ul {
  list-style: circle;
}
.tab-panel > ul > li > ul ul ul {
  list-style: square;
}

.tab-panel li:has(> details:first-child) {
  list-style: none;
  margin-left: -1rem;
}
.tab-panel li > details > ul {
  margin-left: 1rem;
}


/* ==========================================================
   CAROUSEL
   ========================================================== */

.carousel {
 position: relative;
 width: 100%;
 max-width: 600px;
 margin: 0.6rem auto;
}

.carousel-track {
 overflow: hidden;
 border-radius: 12px;
 height: 360px;
}

.carousel-inner {
 display: flex;
 height: 100%;
 transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  font: 500 1.25rem/1.4 system-ui, sans-serif;
  color: #1a1a1a;
  background: #ebebef;
  position: relative;
}

.carousel-btn {
 position: absolute;
 top: 50%;
 translate: 0 -50%;
 width: 36px;
 height: 36px;
 border: none;
 border-radius: 50%;
 background: rgba(40, 40, 40, 0.45);
 backdrop-filter: blur(8px);
 -webkit-backdrop-filter: blur(8px);
 color: #fff;
 font-size: 1.4rem;
 cursor: pointer;
 transition: background 0.2s, scale 0.2s;
 z-index: 1;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
 background: rgba(40, 40, 40, 0.6);
 scale: 1.1;
}

.carousel-btn:active {
 scale: 0.95;
}

.carousel-btn.left { left: 12px; }
.carousel-btn.right { right: 12px; }

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  z-index: 2; /* Ensures it sits above the bleeding image */
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid #d8dee4;
  font-size: 0.8rem;
  color: #8b949e;
  font-style: italic;
}

/* ==========================================================
   RESPONSIVE — phones (≤ 600px)
   ========================================================== */

@media (max-width: 600px) {
  .header-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-list {
    justify-content: center;
  }

  h1 {
    font-size: 1.5rem;
  }
}