@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,300;0,400;0,800;1,100;1,300;1,400;1,800&display=swap");

* {
  font-family: inherit;
  text-decoration: none;
  margin: 0;
  padding: 0;
  -webkit-user-drag: none;
  -moz-window-dragging: none;
  -webkit-tap-highlight-color: transparent;
}
* img {
  max-width: 100%;
}
html,
body {
  color: var(--white-2);
  background-color: var(--gray-6);
  font-family: "JetBrains Mono", monospace;
  line-height: 2rem;
  background-color: var(--gray-5);
}
header {
  padding: 2rem 0 4rem 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  position:static;
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 0 1.5rem 0;
}
header .site-title {
  font-size: 3rem;
  font-weight: bolder;
  line-height: 110%;
  color: var(--white-1);
}
main {
  margin: 0 auto;
  max-width: 650px;
  padding: 0;
}

/* header */

.tag-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tag-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-2);
  opacity: 0.4;
  min-width: 70px;   /* keeps tags aligned across rows */
}

.tag {
  font-size: 0.75rem;
  color: var(--white-2);
  background: rgba(169, 171, 179, 0.08);
  border: 1px solid rgba(169, 171, 179, 0.15);
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
}

/* More breathing room between sections */
#bio        { margin: 1.5rem 0; }
#skills     { margin: 1.5rem 0; }
#experience { margin: 1.5rem 0; }

/* Space between tag rows */
.tag-group  { margin-bottom: 0.8rem; }

/* Taller experience entries */
.entry      { padding: 0.9rem 0; }

/* Slightly larger gap between social icons */
#social-wrapper { 
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
}

/* Section headings */
h2 {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-2);
  margin: 2rem 0 0.75rem;
  opacity: 0.5;
}

.entry-details {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.entry-details li {
  font-size: 0.8rem;
  color: var(--white-2);
  opacity: 0.7;
  padding-left: 0.8rem;
  border-left: 1px solid rgba(169, 171, 179, 0.2);
}

/* Experience entries */
.entry {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(169, 171, 179, 0.1);
}
.entry:last-child { border-bottom: none; }

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.entry-title {
  color: var(--white-1);
  font-weight: 400;
  font-size: 0.9rem;
}

.entry-date {
  font-size: 0.75rem;
  color: var(--white-2);
  opacity: 0.5;
}

.entry-sub {
  font-size: 0.78rem;
  color: var(--white-2);
  opacity: 0.6;
  margin-top: 0.1rem;
}

/* Tighten hr */
hr {
  margin: 1.25rem 0 !important;
}

/* Bio text */
#text-wrapper {
  font-size: 0.85rem;
  line-height: 1.6rem;
  opacity: 0.85;
}

#greeting {
  min-height: 6.6rem;
  display:block;
}

#bio {
  display: flex;
  justify-content: flex-start;
  align-items: top;
  text-align: justify;
}
#skills {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}
#programming-languages {
 border: dodgerblue 2px solid;
 border-radius: 15px;
  padding: 0 0.8rem;
  margin-bottom: 0.5rem;
  margin-top: 0.3rem;

}
#ml-stack {
  border:mediumseagreen 2px solid;
   border-radius: 15px;
  padding: 0 0.8rem;
  margin-bottom: 0.5rem;
}
#data-engineering{
  border:mediumpurple 2px solid;
   border-radius: 15px;
   padding: 0 0.8rem;
   margin-bottom: 0.5rem;
}
#project-management {
  border: palevioletred 2px solid;
  border-radius: 15px;
  padding: 0 0.8rem;
  margin-bottom: 0.5rem;
}
#img-wrapper img {
  border-radius: 50%;
  max-width: 120px;
  height: 120px;        /* add this */
  object-fit: cover;    /* add this — crops without stretching */
  object-position: top; /* adjust to center, top, or a % to reframe the face */
}
#bio-wrapper {
  margin-left: 1rem;
}
#text-wrapper {
  line-height: 1.2rem;
  font-weight: 300;
}
#text-wrapper a {
  color: cyan;
  border-bottom: 1px solid cyan;
}
@media (prefers-color-scheme: light) {
  #text-wrapper a {
    color: #1ebaba;
    border-bottom: 1px solid #1ebaba;
  }
}
[data-theme="light"] {
  #text-wrapper a {
    color: #1ebaba;
    border-bottom: 1px solid #1ebaba;
  }
}
[data-theme="dark"] {
  #text-wrapper a {
    color: cyan;
    border-bottom: 1px solid cyan;
  }
}
#social-wrapper {
  margin-top: 1rem;
}
#social-wrapper img {
  filter: invert() !important;
  width: 25px;
  height: 25px;
  margin: 0 0 0.3rem 0;
  transition: all 0.2s ease-in-out;
}
@media (prefers-color-scheme: light) {
  #social-wrapper img {
    filter: none !important;
  }
}
[data-theme="light"] {
  #social-wrapper img {
    filter: none !important;
  }
}
[data-theme="dark"] {
  #social-wrapper img {
    filter: invert() !important;
  }
}
#social-wrapper img:hover {
  transform: scale(1.2);
}

/* article section */

.articles {
  display: grid;
  row-gap: 2rem;
  margin: 4rem 0 3rem 0;
}
.articles .article {
  padding: 2rem;
  background: var(--gray-3);
  border-radius: 15px;
  transition: all 0.2s ease-in-out;
}
.articles .article .article-title,
.articles .article .article-title a {
  color: var(--white-2);
  font-weight: 100;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 130%;
}
.articles .article:hover {
  transform: scale(1.05);
}
.articles .article .date {
  display: block;
  font-size: 0.8rem;
}
.articles .article .categories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.articles .article .categories .category {
  margin: 0 0.5rem 0.3rem 0;
  display: block;
  color: var(--gray-4);
  background: var(--white-2);
  border-radius: 15px;
  font-size: 0.7rem;
  padding: 0 0.8rem;
  line-height: 1.3rem;
  cursor: pointer;
}
/* media query */

@media screen and (max-width: 750px) {
  body {
    padding: 1.5rem;
  }
  header {
    flex-direction: column;
    gap: 3rem;
  }
  header #dark-mode-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: flex-end;
  }
  header .site-title {
    font-size: 3rem;
  }
}

@media screen and (max-width: 550px) {
  header .site-title {
    font-size: 3rem;
  }
  .articles {
    row-gap: 1.2rem;
  }
}

@media screen and (max-width: 350px) {
  #img-wrapper img {
    max-width: 50px;
  }
  #bio {
    align-items: flex-start;
  }
  main,
  .articles {
    padding: 0;
    margin: 0;
  }
  main {
    padding-bottom: 1rem;
  }
  .articles {
    margin: 2rem 0 3rem 0;
    row-gap: 1.2rem;
  }
  header .site-title {
    font-size: 2.4rem;
  }
  .article {
    padding: 1.2rem;
  }
  .articles .article .article-title,
  .articles .article .article-title a {
    font-size: 1rem;
  }
}

footer a {
  color: var(--white-2);
  border-bottom: 1px solid rgba(169, 171, 179, 0.2);
  transition: border-color 0.2s;
}

footer a:visited {
  color: var(--white-2);  /* overrides the purple/blue visited default */
}

footer a:hover {
  color: var(--white-1);
  border-color: var(--white-1);
}

#meta-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--white-2);
  opacity: 0.55;
}

.meta-sep {
  opacity: 0.4;
}