@import url("https://fonts.cdnfonts.com/css/jetbrains-mono-2");
@import url("https://fonts.googleapis.com/css2?family=Grandstander:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --font-family: "Google Sans Code", monospace;
  --line-height: 1.2rem;
  --border-thickness: 2px;
  --text-color: #000;
  --text-color-alt: #666;
  --background-color: #fff;
  --background-color-alt: #eee;
  --blog-image-opacity: 1;
  --see-image-opacity: 1;

  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  background: var(--background-color);
  color: var(--text-color);
}

h1,
h2,
h3 {
  margin: calc(var(--line-height) * 2) 0 var(--line-height);
  line-height: calc(var(--line-height) * 1.5);
}

h1 {
  font-size: 2rem;
  margin-top: calc(var(--line-height) * 3);
}

h2 {
  font-size: 1.5rem;
  text-transform: lowercase;
}

h2 a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: none;
}

h2 a:hover {
  text-decoration: underline;
}

.projects h2 a,
.blogs h2 a {
  display: inline-block;
  width: 100%;
}

ul,
ol {
  list-style-position: inside;
  margin: var(--line-height) 0;
  padding-left: 2ch;
}

li {
  margin-bottom: calc(var(--line-height) / 2);
}

a {
  color: var(--text-color);
  text-decoration: underline;
  border-bottom: var(--border-thickness) solid transparent;
  transition: border-color 0.3s ease;
}

a:hover {
  /* border-bottom-color: var(--text-color); */
  text-decoration: underline;
}

p {
  margin-bottom: var(--line-height);
}

section {
  margin: calc(var(--line-height) * 2) 0;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--line-height) 0;
  background: var(--background-color);
  border-top: var(--border-thickness) solid var(--text-color);
  text-align: center;
  z-index: 10;
}

footer a {
  margin: 0 1ch;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  body {
    padding: var(--line-height) 1ch;
  }

  /* .dark-mode-toggle {
        right: 1ch;
    } */
}

/* Ensure smooth transitions for dark mode */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Add scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-color-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--text-color-alt);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-color);
}

/* Adjust spacing for blog entries */
.blog-entry {
  margin-bottom: calc(var(--line-height) * 2);
}

.blog-entry .desc {
  color: var(--text-color-alt);
  margin-top: calc(var(--line-height) / 2);
}

.project-entry {
  margin-bottom: 2rem;
}

.project-entry a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.project-entry a:hover {
  text-decoration: underline;
}

.project-entry .desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* If you're using dark mode, include these as well */
@media (prefers-color-scheme: dark) {
  .project-entry .desc {
    color: #999;
  }
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  padding-bottom: calc(var(--line-height) * 4);
  position: relative;
  z-index: 2;
}

.project-entry,
.blog-entry {
  max-width: 100%;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

section:last-child {
  margin-bottom: calc(var(--line-height) * 3);
}

.project-entry:last-child,
.blog-entry:last-child {
  margin-bottom: calc(var(--line-height) * 2);
}

.bubble {
  position: fixed;
  font-family: "Grandstander", cursive;
  background-color: var(--background-color);
  padding: 15px 25px;
  border-radius: 25px;
  max-width: 200px;
  text-align: center;
  border: var(--border-thickness) solid var(--text-color);
  z-index: 3;
  font-size: 0.9rem;
  line-height: 1.3;
}

.bubble-left {
  left: calc(25% - 100px);
  top: 30%;
}

.bubble-right {
  right: calc(25% - 100px);
  top: 40%;
}

@media screen and (max-width: 1200px) {
  .bubble {
    display: none;
  }
}

i {
  font-size: 3rem;
  margin: 0.5rem;
}
img {
  width: 3rem;
  height: 3rem;
  display: inline;
  margin: 0.5rem;
}

.pfp {
  display: block;
  margin: 1rem auto 0.5rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #444;
}
.title-name {
  text-align: center;
  font-size: 2rem;
  margin-top: 0.5rem;
}
.inspired {
  text-align: center;
  margin: 0.5rem 0;
}
