@font-face {
  font-family: 'Roboto Mono';
  src: url("../fonts/RobotoMono-Regular.ttf") format('truetype');
}
@font-face {
  font-family: NotoColorEmojiLimited;
  src: url("../fonts/NotoColorEmoji.ttf") format('truetype');
}

:root {
  --bg-color: #FBFBFB;
  --text-color: #4D4D4D;
  --secondary-text-color: #696969;
  --heading-color: #2E2E2E;
  --link-color: #1E1E1E;
  --link-hover-color: #000000;
}

body.dark-mode {
  --bg-color: #1E1E1E;
  --text-color: #CCCCCC;
  --secondary-text-color: #969696;
  --heading-color: #FBFBFB;
  --link-color: #FBFBFB;
  --link-hover-color: #FFFFFF;
}

* {
  font-family: 'Roboto Mono', NotoColorEmojiLimited, monospace;
  transition: color 0.5s ease, background-color 0.5s ease;
}

body {
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  user-select: none;
}

.container {
  max-width: 750px;
  text-align: left;
  position: absolute;
  top: 30%;
  left: 15%;
  transform: translate(-10%, -10%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1 {
  margin: 0;
  font-size: 3em;
  font-weight: bold;
  color: var(--heading-color);
}

.tagline {
  font-size: 1.2em;
  color: var(--secondary-text-color);
  margin: 0.5em 0 1.5em 0;
}

.about {
  margin-bottom: 2em;
}

.projects h2 {
  font-size: 1.5em;
  color: var(--heading-color);
  margin-bottom: 1em;
}

.project {
  margin-bottom: 1.5em;
}

.project h3 {
  font-size: 1.3em;
  margin: 0 0 0.5em 0;
  color: var(--heading-color);
}

.project-cta {
  margin-top: 1em;
  font-size: 0.9em;
}

.visit-link {
  color: var(--secondary-text-color);
  text-decoration: none;
  margin-right: 0;
  transition: color 0.3s ease;
}

.visit-link:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
  font-weight: normal;
}

p {
  font-size: 1.5em;
  color: var(--secondary-text-color);
  line-height: 1.6;
}

a {
  margin-right: 15px;
  text-decoration: none;
  color: var(--link-color);
}

a:hover {
  font-weight: bold;
  text-decoration: underline;
  color: var(--link-hover-color);
}

.toggle-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px 15px;
  background: none;
  color: gray;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
}

/* LinkedIn link styling */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1em;
  background-color: transparent;
  border: 1px solid var(--link-color);
  border-radius: 4px;
  text-decoration: none;
  color: var(--link-color);
  font-size: 0.9em;
  transition: all 0.3s ease;
  margin-right: 0;
}

.linkedin-link:hover {
  background-color: var(--link-color);
  color: var(--bg-color);
  text-decoration: none;
  font-weight: normal;
  transform: translateY(-1px);
}

.linkedin-icon {
  font-weight: bold;
  font-size: 0.8em;
  width: 1.5em;
  height: 1.5em;
  background-color: var(--link-color);
  color: var(--bg-color);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.linkedin-link:hover .linkedin-icon {
  background-color: var(--bg-color);
  color: var(--link-color);
}

.linkedin-text {
  font-weight: 500;
}

/* Page break */
.page-break {
  height: 100vh;
  position: relative;
  top: 100vh;
}

/* Personal projects section */
.personal-projects {
  min-height: 100vh;
  background-color: var(--bg-color);
  padding: 2rem 0;
  display: flex;
  align-items: center;
  position: relative;
  top: 100vh;
}

.personal-projects .container {
  position: static;
  transform: none;
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.personal-projects h2 {
  font-size: 1.2em;
  color: var(--secondary-text-color);
  margin-bottom: 2em;
  font-weight: normal;
}

.personal-projects p {
  font-size: 1.2em;
  margin-bottom: 2em;
}

.personal-projects .project {
  margin-bottom: 2.5em;
  opacity: 0.8;
}

.personal-projects .project h3 {
  font-size: 1.1em;
  margin: 0 0 0.5em 0;
}

.personal-projects .project h3 a {
  color: var(--text-color);
  text-decoration: none;
}

.personal-projects .project h3 a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.personal-projects .project p {
  font-size: 0.9em;
  margin: 0;
  line-height: 1.4;
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    left: 50%;
    transform: translate(-50%, -50%);
    top: 40%;
    width: 90%;
    max-width: none;
  }
  
  .page-break {
    height: 50vh;
  }
  
  .personal-projects {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .personal-projects .container {
    padding: 0 1rem;
  }
}