/* Base styles */
body {
  background-color: #fff;
  padding:50px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  color:#595959;
  font-weight:400;
}

h1, h2, h3, h4, h5, h6 {
  margin:0 0 20px;
}

h1 { font-size:28px; font-weight:500; color:#0288D1; }
h2 { color:#393939; font-weight:500; }
h3,h4,h5,h6 { color:#494949; font-weight:500; }

a { color:#39c; text-decoration:none; }
a:hover { color:#069; }

.wrapper { width:860px; margin:0 auto; }

img { max-width:100%; }

/* Header: name + photo on left */
header {
  width:270px;
  float:left;
  position:fixed;
  -webkit-font-smoothing:subpixel-antialiased;
}

header h1.name {
  margin-bottom:5px; /* closer to photo */
}

header img.profile-pic {
  display:block;
  margin-top:0; /* remove space between name and photo */
  width:250px; /* slightly larger */
  border-radius:0; /* square */
}

/* Section: intro text on right */
section {
  width:500px;
  float:right;
  padding-bottom:50px;
  margin-left:300px;
}

/* Footer */
footer {
  width:270px;
  float:left;
  position:fixed;
  bottom:50px;
}

/* Dark mode for full page */
html.dark, html.dark body {
  background-color: #1E1E1E;
  color: #ccc;
}

html.dark a { color: #4FC3F7; }
html.dark a:hover { color: #81D4FA; }

/* Dark mode toggle button - minimal, transparent */
#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  color: #fff; /* light emoji for light mode */
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: color 0.3s, filter 0.3s;
  filter: invert(0%);
}

html.dark #theme-toggle {
  color: #000; /* black emoji in dark mode */
  filter: invert(0%);
}

/* Mobile layout */
@media screen and (max-width: 960px) {
  div.wrapper { width:auto; margin:0; }

  header {
    position: static;
    width: 100%;
    float: none;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5; /* horizontal bar */
    text-align: left; /* left-align name and photo */
  }

  header img.profile-pic {
    margin: 10px 0 0 0; /* top margin only, aligned left */
  }

  section {
    width: 100%;
    float: none;
    margin-left: 0;
    padding-top: 20px;
  }

  footer {
    width: 100%;
    position: static;
    margin-top: 20px;
    text-align: center;
  }
}

/* Mobile smaller */
@media screen and (max-width: 480px) {
  body { padding:15px; }
}
