* {
    background-color: #F0F0F0;
    margin-left: 5rem;
    margin-right: 5rem;
}

html {
    scroll-behavior: smooth;
  }

h1 {
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;      /* Bold */
    font-style: italic;    /* Italic */
    font-size: 3vw;
    background-color: transparent;
}


h2, p {
    margin: 0;
}

h2{
    font-family: "Jost", sans-serif;
    font-weight: 500;
    background-color: transparent;
    margin-left: 0;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    margin-top: 0;
}

p{
    font-family: "Red Hat Display", sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

#main {
    display: flex;
    flex-direction: row;
}

div {
    margin: 0;
}

#left {
    background-color: transparent;
    width: 20%;
    height: 300px;
    display: flex;
    flex-direction: column;
    position: fixed;
    
}

#right {
    margin-left: 30%;
    /* background-color: blue; */
    width: 70%;
    height: auto;
}

img {
    width: 30px;
    height: 30px;
    margin: 0;
}

.contact {
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
    background-color: transparent;
}

a {
    color: black;
    text-decoration: none;
    margin-left: 0;
    display: inline-block; /* needed to allow transform */
    transition: transform 0.3s ease;
}

.contact {
    display: flex;
    align-items: center; /* This centers content vertically */
    gap: 10px; /* Optional: adds space between icon and link */
    margin-bottom: 10px; /* Optional: spacing between each contact */
}

.contact img {
    width: 24px;  /* Adjust as needed */
    height: 24px; /* Keep icon square */
}

.contact a {
    text-decoration: none; /* Removes underline */
    color: inherit;        /* Keeps same text color as surrounding text */
    font-family: 'DM Sans', sans-serif; /* Optional: match your fonts */
}

#left h2 {
    margin-bottom: 20px;
}

#navigation {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    margin-top: 0rem;
}

.nav {
    background-color: transparent;
    font-family: "Jost", sans-serif;
    font-size: 1.2rem;
}

.nav:hover {
    transform: translateX(10px); /* moves 10px to the right */
}

#about {
    margin-bottom: 3rem;
}

.role {
    font-weight: 700;
}

.date {
    font-size:  0.8rem;
    color: rgb(63, 58, 58);
}

ul {
    margin-left: 0;
    margin-top: 0.2rem;
    margin-right: 0;
}

li {
    margin-left: 0;
    font-family: "Red Hat Display", sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin-right: 0;
}

@media (max-width: 1300px) {
    body {
      margin: 0;
    }
  }

  @media (max-width: 1088px) {
    html {
      margin-left: 10vw;
      margin-right: 10vw;
    }
    #right {
       width: 60%;
       margin-left: 30%;
    }
  }

#experience {
    margin-bottom: 3rem;
}

#upper {
    /* background-color: red; */
    height: 20vw;
    display: flex;
    justify-content: space-between;
}

.project {
    background-color: rgb(17, 17, 17);
    height: 100%;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content:end;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project:hover {
    background-color: red;
    transform: scale(1.04);
}

.pname {
    background-color: black;
    color: white;
    font-family: "Red Hat Display", sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding-left: 1rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    padding-right: 1rem;
    position: absolute;
    width: calc(100% - 2rem);
    background-color: rgba(0, 0, 0, 0.637); /* semi-transparent black */
    backdrop-filter: blur(8px);          /* applies blur to what's behind */
    -webkit-backdrop-filter: blur(8px);  /* for Safari support */
    white-space: nowrap;       /* prevent line breaks */
    overflow: hidden;          /* hide overflowing text */
    text-overflow: ellipsis;   /* show ... */
}


#projects a {
    margin-top: 0.5rem;
    font-family: "Red Hat Display", sans-serif;
    font-optical-sizing: auto;
    /* line-height: 1.5; */
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-right: 0;
}

#projects, #blog, #learn{
    margin-bottom: 3rem;
}

h3 {
    font-family: "Jost", sans-serif;
    font-weight: 500;
    background-color: transparent;
    margin-left: 0;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    margin-top: 1rem;
}

#blog, #learn {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    font-family: "Red Hat Display", sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin-right: 0;
}

.more {
    margin-top: 0.5rem;
    font-family: "Red Hat Display", sans-serif;
    font-optical-sizing: auto;
    /* line-height: 1.5; */
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-right: 0;
}

.more a {
    display: inline-block; /* Needed for transform to work smoothly */
    transition: transform 0.3s ease;
  }
  
.more:hover {
    transform: translateX(20px);
    cursor: pointer;
  }

#blog a, #learn a {
    transition: transform 0.3s ease;
}

#blog a:hover, #learn a:hover {
    transform: translateX(10px);
}

#navigation img{
    transition: transform 0.3s ease;
}

#navigation img:hover {
    transform:scale(1.4);
    cursor: pointer;
}

.name{
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
    font-family: "Jost", sans-serif;
    font-weight: 500;
    background-color: transparent;
    margin-top: 0;
    letter-spacing: 0px;
    margin-top: 0.4rem;
}

.section {
    transition: transform 0.3s ease;
    margin-bottom: 2.5rem;
}
.section:hover {
    transform: translateX(10px);
    cursor: pointer;
}

.sec-inner {
    display: flex;
    flex-direction: row;
    background-color: orange;
}

.sec-image {
    height: auto;
    width: 0%;
    background-color: pink;
}

a.nav{
    margin: 0;
    width: 12rem;
}

#navigation {
    width: 10rem;
}

.title {
    /* background-color: red; */
    margin-left: 30%;
    margin-right: 0;
    text-align: left;
}

h1.title {
    font-size: 3rem;
}

#navigation-main {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    margin-top: 1rem;
}

.writeup {
    background-color: transparent;
    margin-bottom: 6rem;
}

.image {
    height: auto;
    width:50vw;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.MJX-TEX, .MJX-TEX * {
    margin: 0.012rem !important;
    padding: 0.012rem !important;
    /* letter-spacing: 5.15em !important; */
  }

  html mjx-assistive-mml {
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    display: block !important;
    position: absolute !important; /* keeps it out of flow */
    left: 0 !important;            /* ensures no offset */
    height: 0 !important;          /* collapse height too */
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

.MathJax {
    margin-left: 0;
    margin-right: 0;
    padding-right: 0rem;
    padding-left: 0rem;
    font-size: 150%; /* increase size to 1.5 times */
}

.MathJax_Display {
    letter-spacing: 0.15em; /* display math */
  }
  
  .MathJax {
    letter-spacing: 0.1em; /* inline math */
  }

.bold {
    font-weight: 700;
}

pre {
    /* background-color: rgb(155, 152, 152); */
    margin-left: 0;
    margin-right: 0;
    width: fit-content;
    padding: 1rem;
    padding-top: 0;
    border: 1px solid black; /* added border */
}

i, span {
    margin-left: 0;
    margin-right: 0;
}

.art-link {
    margin: 0;
    margin-bottom: px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.art-link {
    position: relative;
    display: inline-block;
    color: black;
    text-decoration: underline solid;
    transition: color 0.4s ease-out, background-color 0.4s ease-out;
  }
  
.art-link:hover {
    color: white;
    background-color: black;
  }

.downloads {
    margin-top: 2rem;
    font-family: "Jost", sans-serif
}

.downloads p {
    font-size: 1.2rem;
    font-weight: 700;
    
}

.downloads a {
    font-size: 1.2rem;
    font-family: "Jost", sans-serif;
}

.downloads a {
    font-weight: 400;
}

footer {
    margin: 0;
    width: auto;
    /* background-color: red; */
    height: 50px;
    font-family: "Jost", sans-serif;
}

/* .writeup p {
    font-family: "Source Serif 4", serif;
    font-weight: 400;
    font-size: 21px;
} */
