@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: url(Nunito.ttf) format('truetype');
}

:root {
  --bg-color: #ffffff;
  --text-color: #666;
  --text-secondary: #777;
  --text-muted: #AAA;
  --text-muted-hover: #888;
  --border-color: #787676;
  --shadow-color: rgba(0,0,0,0.4);
  --highlight-orange: #ff9800;
  --highlight-orange-soft: #ffe0b2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --text-muted-hover: #aaa;
    --border-color: #888;
    --shadow-color: rgba(255,255,255,0.1);
    --highlight-orange: #ff9800;
    --highlight-orange-soft: #4d2c00;
  }
}

body, html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#home-hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  z-index: 1;
  margin: 0;
  padding: 0;
}

#scroll-down {
  background: none;
  border: none;
  margin-top: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  color: var(--highlight-orange);
  border-radius: 0;
  position: static;
  width: auto;
  height: auto;
}

#scroll-down svg {
  width: 32px;
  height: 32px;
  stroke: #787676; /* standard gray */
  transition: stroke 0.2s;
}

#scroll-down:hover {
  background: none;
}

#scroll-down:hover svg {
  stroke: var(--highlight-orange);
}

#projects {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: auto;
}

body {
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
}

h1 {
  text-align: center;
  font: 3em "Nunito", sans-serif;
  font-weight: bold;
  color: var(--text-color);
  margin-top: 64px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

h2 {
  text-align: center;
  font: 2em "Nunito", sans-serif;
  font-weight: bold;
  color: var(--text-color);
  margin-top: 80px;
  margin-bottom: 0px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

p.projects {
  text-align: center;
  font: 1em "Nunito", sans-serif;
  color: var(--text-secondary);
  margin-top: 5px;
  transition: color 0.3s ease;
}

#avatar {
  border: 3px solid var(--border-color);
  box-shadow: 0 1px 4px var(--shadow-color);
  border-radius: 100%;
  width: 300px;
  height: 300px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#links {
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  text-align: center;
}

a.link {
  font: 1em "Nunito", sans-serif;
  font-weight: bold;
  margin-right: 5px;
  margin-left: 5px;
  text-decoration: none;
  color: var(--border-color);
  transition: color 0.3s ease;
}

a.link:hover {
  color: var(--highlight-orange);
}

#footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  min-height: 48px;
  background: var(--bg-color);
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 5px 5px 5px 5px;
  z-index: 10;
}

a.footer {
  font: 0.75em "Nunito", sans-serif;
  color: var(--text-muted);
  font-weight: bold;
  text-decoration: none;
  margin-left: 10px;
  transition: color 0.3s ease;
  display: inline-block;
  vertical-align: middle;
  line-height: 28px;
}

a.footer:hover {
  color: var(--highlight-orange);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  margin-top: 32px;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.project-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: none;
  border-radius: 12px;
  padding: 0;
  width: 100%;
  min-height: 48px;
  gap: 0;
  flex-wrap: wrap;
}

.project-col {
  display: flex;
  align-items: flex-start;
  padding: 0 12px;
  min-width: 0;
}

.project-col-title {
  flex: 0 0 180px;
  justify-content: flex-end;
  text-align: right;
  padding-top: 0;
  margin-top: 0;
  vertical-align: top;
}

@media (max-width: 600px) {
  .project-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .project-col-title {
    flex: none;
    text-align: left;
    justify-content: flex-start;
  }
  
  .project-col {
    padding: 0 8px;
  }
}

.project-col-desc {
  flex: 1 1 0;
  justify-content: flex-start;
  text-align: left;
}

.project-title {
  font: 1.2em "Nunito", sans-serif;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.project-title:hover {
  color: var(--highlight-orange);
  text-decoration: none;
}

.project-desc {
  font: 1em "Nunito", sans-serif;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 0;
  font-weight: normal;
  text-align: left;
  vertical-align: top;
}

.project-desc a {
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.project-desc a:hover {
  color: var(--highlight-orange);
  text-decoration: none;
}

/* Legal page specific styles */
#disclaimer h1,
#legal h1 {
  font: 1.5em "Nunito", sans-serif;
  color: var(--text-color);
  margin-top: 20px;
  margin-left: 20px;
  text-align: left;
  text-transform: none;
}

#disclaimer h2,
#legal h2 {
  font: 1.2em "Nunito", sans-serif;
  color: var(--text-color);
  margin-top: 20px;
  margin-left: 30px;
  text-align: left;
  text-transform: none;
}

#disclaimer p,
#legal p {
  font: 0.8em "Nunito", sans-serif;
  color: var(--text-secondary);
  margin-bottom: 20px;
  margin-left: 30px;
  margin-right: 30px;
  text-align: left;
}

#disclaimer a,
#legal a {
  font: 1em "Nunito", sans-serif;
  color: var(--text-secondary);
  margin-left: 2px;
  text-decoration: none;
  transition: color 0.3s ease;
}

#disclaimer a:hover,
#legal a:hover {
  color: var(--highlight-orange);
}

#disclaimer {
  margin-bottom: 50px;
}

#disclaimer p.table,
#legal p.table {
  margin-top: 0px;
  margin-bottom: 0px;
} 