:root {
  --bg: #f5f7fa;         /* light neutral background for clean readability */
  --panel: #ffffff;       /* pure white panels for depth layering */
  --text: #1a1b20;        /* dark slate for crisp contrast on light bg */
  --muted: #6b7280;       /* soft gray for secondary text */
  --accent: #3b8288;      /* desaturated teal — professional, modern */
  --border: #e5e7eb;      /* light neutral border for minimalist separation */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; height: 100% }
body {display: flex; flex-direction: column; min-height: 100dvh;}
a { color: var(--accent); text-decoration: none; }

/*
Tag for what is displayed on page below header
*/
main {
  flex : 1 0 auto;
}

.container { width: min(1500px, 100vw); margin: 0 auto; padding: 1rem 0 0 0; }
.container h1 {margin: 0 0 1rem 0}

/* Header fallback + modern units */
.site-header {
  height: 10vh;           /* fallback for older iOS */
  width: 100vw;           /* fallback */

  height: 10svh;          /* modern */
  width: 100dvw;          /* modern */

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4%;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

/* Make the logo obey the header height */
.site-header img{
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;

  -webkit-clip-path: circle(45% at 50% 50%);
  clip-path: circle(45% at 50% 50%);
  object-fit: contain;
  flex: 0 0 auto;
}

.site-header h2 {
  margin-left: 5px;
  color: var(--accent);
}


.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.03em; background: linear-gradient(90deg, var(--accent), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.site-nav {margin-left: auto; display: flex;}
.site-nav a { margin-left: 1rem; padding: 0.5rem 0.75rem; border-radius: 999px; color: var(--text); }
.site-nav a.is-hovered{ background: var(--accent); color: var(--panel); }
.site-nav a.active{ background: var(--accent); color: var(--panel); box-shadow: 2px 3px 3px #60adb4; }
.site-nav a.active.is-hovered{ box-shadow: none;}

.menu-btn { display: none; font-size: 1.25rem; background: none; border: none; color: var(--text); }

.hero {   display: flex;               /* activates flex layout */
  justify-content: flex-start; /* controls horizontal spacing */
  align-items: start;         /* controls vertical alignment */
  gap: 1rem;
  height: 200px;
}
.profile {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: space-between;
  padding-top: 1%;
  min-width: 300px;
}
.profile b{
  color: var(--accent);
  font-size: 1.75rem;
}
.profile p {
  margin: 0;
  color: var(--muted);
}

.res-button {margin-left: auto; align-self: stretch; padding-inline: 1.5rem; border: 5px solid var(--accent); border-radius: 1rem; font-size: 25px; align-content: center}

.hero img {width: auto;
  height: 100%;
  /* spherical (circular) clipping with a chosen center */
  clip-path: circle(30% at 47% 25%);
}

.welcome-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--panel);
  border-left: 5px solid var(--accent);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 1.05rem;
  letter-spacing: 0.01rem;
}

.welcome-text p {
  margin-bottom: 1rem;
  color: var(--accent);
}

.welcome-text a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.accent {color: var(--accent)}

.social-section { display: flex; margin-top: 10px; gap: 1rem; width: 100%}
.social-button a { display: inline-block; background: transparent; color: #0b0c10; padding: 0.7rem 1rem; border-radius: 0.75rem; font-weight: 700; background: transparent; border: 3px solid var(--accent); color: var(--text); }
.linkedin.is-hovered { background: #0077b5; color: var(--panel); border: 3px solid #0077b5 }
.github.is-hovered { background: #6e5494; color: var(--panel); border: 3px solid #6e5494 }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; }
.meta { color: var(--muted); padding-left: 1.2rem; }
.inline-link { color: var(--accent); }

.site-footer { border-top: 1px solid var(--border); background: var(--panel); padding: 1rem 4%; color: var(--muted); margin-top: auto }


.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-header h1{
  /* Center the header text vertically with the back button */
  margin: 0;
}
/* Workspace: left scrollable menu + right viewer */
.workspace {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1rem;
}

/* Sidebar (scrollable) */
.sidebar {
  flex: 0 0 280px;           /* fixed width */
  max-width: 280px;
  border-right: 1px solid rgba(0,0,0,0.06);
  padding-right: 1rem;
  overflow-y: auto;
  height: calc(100vh - 220px); /* adjust if header/footer heights differ */
}

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

.sidebar .menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 4px;
}

.sidebar .menu-item small {
  display: block;
  color: rgba(0,0,0,0.6);
  font-size: 0.85em;
  margin-top: 0.25rem;
}

.sidebar .menu-item:hover,
.sidebar .menu-item:focus {
  background: rgba(0,0,0,0.03);
  outline: none;
}

.sidebar .menu-item.active {
  background: var(--accent, #f0f4ff);
  font-weight: 600;
}

/* Viewer (fills remaining space) */
.viewer {
  flex: 1 1 auto;
  min-height: 60vh;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.viewer iframe {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  border: 0;
  display: block;
}