@import url("https://cdn.jsdelivr.net/gh/devicons/devicon@master/devicon.css");
@import url("https://www.nerdfonts.com/assets/css/webfont.css");

/* Color Variables */
:root {
    --color-bg-main: #eaeaea;
    --color-bg-surface: #ffffff;
    --color-bg-accent: #506F86;
    --color-text-main: #222222;
    --color-text-inverse: #ffffff;
}

/* BigBlueTerminal Font Family */
@font-face {
    font-family: "BigBlueTermPlus";
    font-display: swap;
    src: url(fonts/BigBlueTerminal/BigBlueTermPlusNerdFont-Regular.ttf);
}

/* EnvyCodeR Font Family */
@font-face {
    font-family: "EnvyCodeR";
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    src: url(fonts/EnvyCodeR/EnvyCodeRNerdFont-Regular.ttf);
}
@font-face {
    font-family: "EnvyCodeR";
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    src: url(fonts/EnvyCodeR/EnvyCodeRNerdFont-Bold.ttf);
}
@font-face {
    font-family: "EnvyCodeR";
    font-style: italic;
    font-display: swap;
    src: url(fonts/EnvyCodeR/EnvyCodeRNerdFont-Italic.ttf);
}
@font-face {
    font-family: "EnvyCodeRMono";
    font-display: swap;
    src: url(fonts/EnvyCodeR/EnvyCodeRNerdFontMono-Regular.ttf);
}

/* Go Mono Font Family */
@font-face {
    font-family: "GoMono";
    font-display: swap;
    src: url(fonts/Go-Mono/GoMonoNerdFont-Regular.ttf);
}
@font-face {
    font-family: "GoMono";
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    src: url(fonts/Go-Mono/GoMonoNerdFont-Bold.ttf);
}
@font-face {
    font-family: "GoMono";
    font-weight: normal;
    font-style: italic;
    font-display: swap;
    src: url(fonts/Go-Mono/GoMonoNerdFont-Italic.ttf);
}
@font-face {
    font-family: "GoMono";
    font-weight: bold;
    font-style: italic;
    font-display: swap;
    src: url(fonts/Go-Mono/GoMonoNerdFont-BoldItalic.ttf);
}

/* OpenDyslexic Font Family */
@font-face {
    font-family: "OpenDyslexic";
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    src: url(fonts/OpenDyslexic/OpenDyslexicNerdFont-Bold.otf);
}
@font-face {
    font-family: "OpenDyslexic";
    font-weight: normal;
    font-style: italic;
    font-display: swap;
    src: url(fonts/OpenDyslexic/OpenDyslexicNerdFont-Italic.otf);
}

/* ProFont Font Family */
@font-face {
    font-family: "ProFontIIx";
    font-display: swap;
    src: url(fonts/ProFont/ProFontIIxNerdFont-Regular.ttf);
}
@font-face {
    font-family: "ProFontWindows";
    font-display: swap;
    src: url(fonts/ProFont/ProFontWindowsNerdFont-Regular.ttf);
}
body {
  background-color: var(--color-bg-main);
  font-family: 'Times New Roman', Times, serif;
  color: var(--color-text-main);
}

.page-wrapper {
  width: 80vw;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-bg-surface);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  border-radius: 12px;
  min-height: 100vh;
  padding: 7vh 2vw 4vw 2vw; /* Add top padding for menu space */
  position: relative;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  font-style: normal;
  font-size: 3vw;
}
a {
  font-family: 'Times New Roman', Times, serif;
  font-style: normal;
  font-size: 3vw;
}
p {
  font-family: 'Times New Roman', Times, serif;
  font-style: normal;
  font-size: 1.5vw;
}
img {
  max-width: 100vw;
  height: auto;
  margin-left: 2%;
  margin-right: 2%;
  margin-top: 2%;
  margin-bottom: 2%;
}
.profile-pic {
  float: left;
  margin-right: 3%;
  margin-top: 0%;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 5vh;
  background: var(--color-bg-surface);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 1000;
  display: flex;
  align-items: center;
  font-weight: bold;
  overflow: hidden;
}

.menu a {
  flex: 1;
  color: var(--color-text-main);
  text-align: center;
  padding: 1vh 1vw;
  text-decoration: none;
  font-size: 3vh;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu a:hover {
  background-color: var(--color-text-main);
  color: var(--color-text-inverse);
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.menu a.active {
  background-color: var(--color-bg-surface);
  color: var(--color-text-main);
}

.projects a{
  color: var(--color-text-inverse);
  background-color: var(--color-text-main);
  margin-top: 2vw;
  padding: 4vw;
  text-decoration: none;
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  position: relative;
  overflow: hidden;
  min-height: 150px;
}

.projects a.has-background-image {
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.projects a .project-image {
  display: none;
}

.projects a .project-title {
  font-size: 1.5em;
  font-weight: bold;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1vw;
  border-radius: 8px;
}

.projects a:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.projects a:hover .project-title {
  background-color: rgba(0, 0, 0, 0.6);
}

.projects a:active {
  transform: scale(0.98);
}

.project-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2.5rem 1.5rem;
  line-height: 1.7;
  background: var(--color-bg-surface);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(80,111,134,0.07);
  font-size: 1.15em;
}

.project-content img, .project-content .drawing {
  display: block;
  margin: 2em auto;
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(80,111,134,0.10);
}

.project-content .formula {
  display: block;
  margin: 2em auto;
  text-align: center;
  font-size: 1.2em;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 8px rgba(80,111,134,0.07);
}

.project-content ul, .project-content ol {
  margin-bottom: 1.2rem;
  padding-left: 2.2rem;
}

.project-content code {
  background-color: rgba(80,111,134,0.07);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-family: var(--font-secondary, monospace);
  font-size: 1em;
}

.project-content pre {
  background-color: rgba(80,111,134,0.04);
  padding: 1.2rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .project-content {
    padding: 1rem 0.2rem 1rem 0.2rem;
  }
  .project-content img, .project-content .drawing {
    max-width: 98%;
    margin: 1em auto;
  }
  .project-content .formula {
    font-size: 1em;
    padding: 0.7em;
  }
}

/* Daily Coffee Blockquote Styles */
.daily-coffee-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.daily-coffee-title {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-align: center;
  color: var(--color-bg-accent);
}

.daily-coffee-quote {
  font-size: 2em;
  font-style: italic;
  color: var(--color-text-main);
  background: var(--color-bg-surface);
  border-left: 8px solid var(--color-bg-accent);
  padding: 32px 40px;
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
  position: relative;
}
.daily-coffee-quote .quote-mark {
  font-size: 2.5em;
  color: var(--color-bg-accent);
  position: absolute;
}

.daily-coffee-quote .quote-mark.left {
  left: 20px;
  top: 10px;
}
.daily-coffee-quote .quote-mark.right {
  right: 20px;
  bottom: 10px;
}
