:root{
  --mainColor: #00ab80;
  --bgColor: #242424;
}

html { font-size: clamp(10px, 1vw + 5px, 18px); }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index:1000;
  user-select: none;
}

/*thin line at top*/
#top-line {
  width: 100vw;
  height: .75vh;
  font: 0;
  background-color: var(--mainColor);
  position: fixed;
}

#nav-container {
  display: flex;
  align-items:center;
  background-color: var(--bgColor);
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  color: black;
  vertical-align: top;
}

/*my name lol*/
#logo {
  font-size: 3em;
  padding: 0.25em;
  padding-left: 0.5em;
  color: white;
  position: static;
}

/* ========== Default styles: wide screens ========== */
a{
  text-decoration: none;
  color: var(--mainColor);
}
#navbar {
  display: flex;
  background-color: var(--mainColor);
  width: 30em;
  margin-left: auto;
  list-style-type: none;
  justify-content: space-evenly;
  position: fixed;
  top: 0;
  right: 0;
  font-size: 2em;
  transform: skewX(30deg) translateX(0.65em); /* default skew */
  height: 2em;
  align-items: center;
}

#navbar li {
  transform: skewX(-30deg) translateX(-0.2em);
  display: block;
}

#navbar li a {
  color: black;
}

#navbar li a:hover {
  color: white;
}

body {
  background-color: var(--bgColor);
  width: 100vw;
  height: 200vh;
  overflow-x: hidden;
  overflow-wrap:break-word;
  color: #ffffff ;
  padding-top: 5em;
  font-family: 'Cascadia Code', sans-serif;
}

.main{
  gap: 1.25em;
  flex-wrap: wrap;
  padding: 1em 10em 3em;
}

.main .textbox {
  margin: auto;
}

.home {
  margin-right: auto;
}


.home {
  width: 78%;
}
.textbox {
  width: 100%;
  padding: 2em;
  font-size: 1.5em;
  margin-right: 1.25em;
}

.description{
  font-style: italic;
  font-size: 1em;
  color:#949494;
  padding-bottom: 0.5em;
}

.author{
  font-size: 0.7em;
  color:#949494;
}

.subtitle{
  font-size: 1.5em;
}

.text:not(.cent)::before{
  content: "\a> ";
  white-space: pre;
}


.subtitle::before{
  content: "\a\a";
  white-space: pre;
}

.it{
  font-style: italic;
  display: inline-block;
}

.cent{
  text-align: center;
  
}

.recents {
  position: fixed;
  top: 9em; /* same as body padding-top */
  left: 70%; /* gap between boxes */
  width: 30%;
  padding-left: 2.5em;
  border-left: solid; color: var(--mainColor);
  padding-right: 10em;
}

.title {
  font-size: 2em;
  padding-bottom: 0.2em;
  color: var(--mainColor);
}

.recent-blog {
  color: white;
  padding: 2em;
  padding-left: 0;
  border-bottom: 1px solid;
}

#last-blog {
  border-bottom: none;
}
.project-link a{
  color: var(--mainColor);
}

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

#mobileMenu {
  visibility: hidden;
}

img {
  display: block;
  margin: auto;
  padding-top: 2em;
  max-width: min(900px, 90%);
  height: auto;
  max-height: 70vh;
  height: auto;
  display: block;
  margin: 1rem auto;
  object-fit: contain;
}

.caption {
   text-align: center;
   font-style: italic;
   padding-top: 0.5em;
   color:#949494;
   font-size: 0.8em;
}

.desc {
   text-align: left;
   font-style: italic;
   padding-bottom: 1em;
   color:#949494;
   font-size: 0.8em;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact {
  width: min(90%, 50rem);
  text-align: left;
  align-items: flex-start;
}

.contact .textbox {
  padding-top: 3em !important;
  padding: 0;
  margin: 0;
}

.contact-rows {
  border-top: 1px solid #00ab8073;
  width: 100%;
  margin: 0 auto;
}

.contact-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 1.4em 1em;
  background: transparent;
  text-decoration: none;
  color: var(--mainColor);
  border-bottom: 1px solid #00ab8073;
}

.contact-row:hover {
  background-color: rgb(41, 48, 47);
}

.row-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.row-title {
  font-size: 2em;
  color: var(--mainColor);
}

.row-caption {
  font-size: 1.5em;
  color: rgb(179, 179, 179);
  margin-top: 0.2em;
}

.contact-row .icon {
  width: 5em;
  height: 5em;
  flex-shrink: 0;
  margin-right: 1em;
  fill: currentColor; 
  color: var(--mainColor); 
}
.contact-row .icon.linkedin {
  transform: scale(1.2);
  transform-origin: center;
}

.contact-row .icon.email {
  transform: scale(0.9);
  transform-origin: center;
}

.contact-row .icon.resume {
  transform: scale(0.9);
  transform-origin: center;
}

.contact-row:hover .icon {
  color: white;                   /* light up on hover */
}

.textbox dl {
  margin: 1.25em 0;                 /* space from surrounding text */
  padding: 0 0 0 1em;               /* indent the list a bit */
  border-left: 3px solid var(--mainColor);
}

.textbox dt {
  margin-top: 1em;                  /* space above each title */
  font-weight: 700;
  color: var(--mainColor);
  font-size: 1em;                    /* inherits .textbox size; keep titles same scale */
  line-height: 1.4;
}

.textbox dd {
  margin: 0.25em 0 0.75em 0.75em;   /* small gap under title + slight indent */
  color: rgb(200, 200, 200);
  font-size: 0.9em;                  /* a touch smaller than body text */
  line-height: 1.6;
}

/* Optional: compact the very first dt slightly */
.textbox dl :first-child {
  margin-top: 0.5em;
}

/*stylings for putting blocks of code*/
/* Container */
.code-block {
  margin: 1.25em 0;
  border: 1px solid #00ab8073;         /* faint mint border */
  border-radius: 10px;
  background: #1b1b1b;                  /* dark card */
  overflow: hidden;
}

/* Header */
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5em .75em;
  background: #141414;
  border-bottom: 1px solid #00ab8073;
}

.code-lang {
  font-weight: 700;
  color: var(--mainColor);
  letter-spacing: .02em;
}


/* Code body */
.code-body {
  margin: 0;
  padding: 0.2em 2em;
  overflow-x: visible;                        /* scroll if long */
  white-space: pre-wrap;                     /* preserve formatting */
  word-break: break-word;
}

.code-body code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em;
  line-height: 1.55;
  color: #e8e8e8;
}

/* Optional: soft vertical rhythm inside .textbox */
.textbox .code-block { margin-left: 0; margin-right: 0; }

/* Inline code in paragraphs */
code.inline {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  color: var(--mainColor);
  background: #1b1b1b;
  border: 1px solid #00ab8073;
  border-radius: 6px;
  padding: .05em .35em;
}

/* Tight variant if you want two blocks closer together */
.code-block.tight { margin: .75em 0; }

.mask {
  color: var(--mainColor);      /* tints the █ characters */
  font-family: 'Cascadia Code', monospace;
  letter-spacing: 0.02em;
}

/* ========== Override styles for small screens ========== */

@media screen and (max-width: 75em) {
  #navbar {
      width: 3em;
      height: 1.5em;
  }

  #navbar ul {
    width: 6%;
    transform: skewX(30deg) translateX(10%);
  }

  #navbar li {
    display: none;
  }

  #menuBtn{
    margin-top: 0.1em;
  } 
  .ln1, .ln2, .ln3 {
    width: 70%;
    height: 8%;
    background-color: #FFF;
    margin: 10% 0;
    transition: 0.4s;
  }

  .change .ln1 {
    transform: translate(0, 220%) rotate(-45deg);
  }

  .change .ln2 {
    opacity: 0;
  }

  .change .ln3 {
    transform: translate(0, -200%) rotate(45deg);
  }

  .animatedico {
    transform: skewX(-30deg) translateY(13%);
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 2em;
    height: 2em;
    padding: 0;
    object-fit: contain;
    align-items: center;
    justify-content: center;
  }

  .main {
    padding: 0.3em;
    margin: auto;
  }

  .home {
    width: 100%;
  }
  .main .textbox{
    width: 100%;
  }
  .textbox {
    width: 100%;
    margin-right: 0;
  }

  .recents {
    position: static;
    width: 100%;
    left: auto;
    top: auto;
    padding-inline-start: 3em;
    padding-right: 3em;
  }

  .title {
    width: 100%;
  }

  #mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 20em;
    background-color: var(--mainColor);
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility:visible;
  }

  #mobileMenu ul li a {
   color: var(--bgColor);
    text-decoration: none;
  }
  #mobileMenu ul {
    list-style: none;
    text-align: left;
    margin-top: 3.5em;
  }

  #mobileMenu li {
    padding: 0.5em;
    font-size: 2em;
  }

  #mobileMenu li a:hover {
  color: white;
}

  #mobileMenu.open {
    transform: translateX(0);
  }
}



