:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #000000;
  --muted: #666666;
  --accent: #000000;
  --accent-strong: #000000;
  --max-width: 800px;
}


body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 32px;

  background: var(--surface);
  transition: box-shadow 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}


.brand-name {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.brand-software {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

section + section {
  margin-top: 96px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}


.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.about-layout fade-in fade-delay-2 {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 64px;
}


#about-section {
  margin-top: 40px;
  max-width: 65ch;
}

#about {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}

.about-photo img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-text {
  max-width: 65ch;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 200px;
    display: flex;
    align-items: flex-start;
  }
}


.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 20px 20px;
}

.software {
  color: var(--muted);
  margin-bottom: 24px;
}


a, button:hover {
  color: var(--accent);
}


#location {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: px;
  text-align: center;
}

#projects {
  margin-top: 80px;
}

#projects h2,
#experience h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--accent-Strong);
}


.project {
  padding: 8px 0;
  transition: transform 0.2s ease;
  margin-bottom: 24px;
}

.project:hover {
  transform: translateX(4px);
}

.project-title {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 4px;
}

.project-year,
.role-company,
.role-period {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}


.project-year {
  color: var(--muted);
  margin-bottom: 6px;
}

.project-desc {
  max-width: 65ch;
}

.project-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.project-link::after {
  content: '↗';
  margin-left: 6px;
  font-size: 0.8rem;
}

.project-link:hover {
  text-decoration: underline;
}


#experience {
  margin-top: 80px;
}

.role {
  margin-bottom: 32px;
}

.role-title {
  font-weight: 600;
}

.role-company {
  color: var(--muted);
}

.role-period {
  color: var(--muted);
  margin-bottom: 8px;
}

.role-summary {
  max-width: 65ch;
}

#theme-toggle {
  margin-left: 24px;

  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: none;
  border: 0px solid var(--muted);
  color: var(--text);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  cursor: pointer;

  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(15deg) scale(1.05);
}

#theme-toggle:focus {
  outline: none;
}

.material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
  user-select: none;
}

#theme-toggle span {
  transition: transform 0.25s ease;
}

#theme-toggle:hover span {
  transform: rotate(20deg);
}

.about-photo img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}


.site-footer {
  margin-top: 160px;
  padding: 32px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .site-footer .contact-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 0.85rem;
  color: var(--muted);
}

.footer-note {
  font-style: italic;
}

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.2s; }
.fade-delay-3 { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.contact-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-Strong);
}

.contact-intro {
  max-width: 50ch;
  margin: 32px 0 48px;
  color: var(--muted);
}

.contact-block {
  margin-bottom: 32px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-block a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}



.contact-block a:hover {
  text-decoration: underline;
}
