
:root {
  --mainColor: #15202b;
  --secondaryColor: #192734;

  --borderColor: #164d56;

  --mainText: #fff;
  --secondaryText: #eeeeee;

  --themeDotBorder: #fff;

  --previewBg: rgb(25, 39, 52, 0.8);
  --previewShadow: #111921;

  --buttonColor: #17a2b8;
}

html,
body {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}
*,
*::after,
*::before {
  box-sizing: border-box;
}
body {
  background-color: var(--secondaryColor);
}
body * {
  transition: 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  color: var(--mainText);
  font-family: "Russo One", sans-serif;
  font-weight: 500;
}

p,
li,
span,
label,
input,
textarea {
  color: var(--secondaryText);
  font-family: "Roboto Mono", monospace;
}

a {
  text-decoration: none;
  color: #17a2b8;
}

ul {
  list-style: none;
}

h1 {
  font-size: 56px;
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 28px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 20px;
}
h6 {
  font-size: 16px;
}

.s1 {
  background-color: var(--mainColor);
  border-bottom: 1px solid var(--borderColor);
  padding: 2rem;
}

.s2 {
  background-color: var(--secondaryColor);
  border-bottom: 1px solid var(--borderColor);
  padding: 2rem;
}

.main-container {
  width: 80vw;
  margin: 0 auto;
}

.greeting-wrapper {
  display: grid;
  text-align: center;
  align-content: center;
  min-height: 10em;
}
.intro-wrapper {
  background-color: var(--secondaryColor);
  border: 1px solid var(--borderColor);
  border-radius: 5px 5px 0 0;

  -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "nav-wrapper nav-wrapper"
    "left-column right-column";
}

.nav-wrapper {
  border-radius: 5px 5px 0 0;
  grid-area: nav-wrapper;
  border-bottom: 1px solid var(--borderColor);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--mainColor);
}

#navigation a {
  color: var(--mainText);
}

#navigation {
  margin: 0;
  padding: 10px;
}

#navigation li {
  display: inline-block;
  margin-right: 5px;
  margin-left: 5px;
}

.dots-wrapper {
  display: flex;
  padding: 10px;
}

#dot-1 {
  background-color: #fc6058;
}

#dot-2 {
  background-color: #fec02f;
}

#dot-3 {
  background-color: #2aca3e;
}

.browser-dot {
  background-color: black;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  margin: 5px;

  -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
}

.left-column {
  grid-area: left-column;
  padding-top: 50px;
  padding-bottom: 50px;
}

#profile_pic {
  display: block;
  margin: 0 auto;
  border-radius: 99999px;
  height: 200px;
  width: 200px;
  object-fit: cover;
  border: 2px solid var(--borderColor);
}

#theme-options-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

.theme-dot {
  height: 1rem;
  width: 1rem;
  background-color: black;
  border-radius: 50%;

  margin: 5px;
  border: 2px solid var(--themeDotBorder);

  -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);

  cursor: pointer;
}

.theme-dot:hover {
  border-width: 5px;
}

#light-mode {
  background-color: #fff;
}

#blue-mode {
  background-color: #192734;
}

#green-mode {
  background-color: #78866b;
}

#purple-mode {
  background-color: #7e4c74;
}

#settings-note {
  font-size: 0.5rem;
  font-style: italic;
  text-align: center;
  position: absolute;
  bottom: -2rem;
}

.right-column {
  grid-area: right-column;
  display: grid;
  align-content: center;

  padding-top: 50px;
  padding-bottom: 50px;
}

#preview-shadow {
  background-color: var(--previewShadow);
  max-width: 300px;
  height: 180px;
  padding-left: 30px;
  padding-top: 30px;
}

#preview {
  width: 300px;
  border: 1.5px solid #17a2b8;
  background-color: var(--previewBg);
  padding: 15px;
  position: relative;
}

.corner {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #17a2b8;
  background-color: #fff;
  position: absolute;
}

#corner-tl {
  top: -5px;
  left: -5px;
}

#corner-tr {
  top: -5px;
  right: -5px;
}

#corner-br {
  bottom: -5px;
  right: -5px;
}

#corner-bl {
  bottom: -5px;
  left: -5px;
}

.about-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding-bottom: 50px;
  padding-top: 50px;
  gap: 100px;
}

#skills {
  display: flex;
  justify-content: space-evenly;
  background-color: var(--previewShadow);
}

.social-links {
  display: grid;
   
  align-content: center;
  text-align: center;
}

#social_img {
  width: 100%;
}

.post-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
  padding-bottom: 50px;
}

.post {
  border: 1px solid var(--borderColor);
  -webkit-box-shadow: -2px 7px 21px -9px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -2px 7px 21px -9px rgba(0, 0, 0, 0.75);
  box-shadow: -2px 7px 21px -9px rgba(0, 0, 0, 0.75);
  transition: all 0.2s ease-in-out 0.2s;
  position: relative;
  z-index: 10;
}

.post:hover {
  border: 2px solid var(--borderColor);
  z-index: 30;
}

.thumbnail {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-preview {
  background-color: #fff;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-items: flex-start;
  position: relative;
}

.post-links {
  display: flex;
flex-wrap: wrap;
  align-items: baseline;
}
.post-links > * {
  background-color: var(--previewBg);
  padding: 0.5rem;
  border-radius: 1rem;
}

.post-links > *:not(:last-child) {
  margin-right: 1rem;
  margin-bottom: 1rem;

}

.post-title {
  color: black;
  margin: 0;
  position: absolute;
  top: -1.5rem;
  background-color: #2aca3e;
  padding: 0rem 2rem;
  transform: rotate(-10deg);
}

.post-intro {
  color: #4b5156;
  font-size: 14px;
}

#contact-form {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--borderColor);
  padding: 15px;
  border-radius: 5px;
  background-color: var(--mainColor);
  margin-bottom: 50px;
}

#contact-form label {
  line-height: 2.7em;
}

#contact-form textarea {
  min-height: 100px;
  font-size: 14px;
}

.input-field {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: var(--secondaryColor);
  border-radius: 5px;
  border: 1px solid var(--borderColor);
  font-size: 14px;
}

#submit-btn {
  margin-top: 10px;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #fff;
  background-color: var(--buttonColor);
  border: none;
}

.space-x-2 > *:not(:last-child) {
  margin-right: 1rem;
}

.space-y-2 > *:not(:last-child) {
  margin-bottom: 1rem;
}

.infinity-path {
  --size: 15;
  --speed: 0.65;
  height: calc(var(--size) * 1px);
  position: relative;
  width: calc(var(--size) * 1px);
  --primary: #fff;
}
.infinity-path > div {
  height: calc(var(--size) * 1px);
  width: calc(var(--size) * 1px);
  border-radius: 100%;
  border: calc(var(--size) / 4 * 1px) solid rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 0;
  left: 0;
  animation-duration: calc(var(--speed) * 1s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: infinity-spin;
  transform: translate(calc(var(--translate) * 1%), 0)
    translate(calc(var(--translate-2) * 1px), 0);
}
.infinity-path > div:before {
  content: "";
  height: calc(var(--size) / 4 * 1px);
  width: calc(var(--size) / 4 * 1px);
  border-radius: 100%;
  background: var(--primary);
  position: absolute;
  top: 50%;
  animation: infinity-vanish calc(var(--speed) * 2s) infinite reverse steps(1);
  transform: translate(
    calc(var(--translate-2) * 2px),
    calc(var(--translate) * 1%)
  );
}

.infinity-path > div:nth-of-type(1) {
  --translate: -50;
  --translate-2: calc(var(--size) / 8);
}
.infinity-path > div:nth-of-type(1):before {
  right: 0;
}

.infinity-path > div:nth-of-type(2) {
  --translate: 50;
  --translate-2: calc(var(--size) / 8 * -1);
  animation-delay: calc(var(--speed) * 1s);
  animation-direction: reverse;
}

.infinity-path > div:nth-of-type(2):before {
  left: 0;
  transform: translate(calc(var(--size) / 4 * -1px), -50%);
  animation-direction: normal;
}

@keyframes infinity-vanish {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes infinity-spin {
  from {
    transform: translate(calc(var(--translate) * 1%), 0)
      translate(calc(var(--translate-2) * 1px), 0) rotate(0deg);
  }
  to {
    transform: translate(calc(var(--translate) * 1%), 0)
      translate(calc(var(--translate-2) * 1px), 0) rotate(360deg);
  }
}

@media screen and (max-width: 1200px) {
  .main-container {
    width: 95%;
  }
}

@media screen and (max-width: 800px) {
  .main-container {
    width: 90vw;
  }

  .intro-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav-wrapper"
      "left-column"
      "right-column";
  }

  .right-column {
    justify-content: center;
  }
}

@media screen and (max-width: 400px) {
  .post-links {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #preview-shadow {
    max-width: 80vw;
    height: 180px;
    padding-left: 10px;
    padding-top: 10px;
  }
  .s1 , .s2{
    padding: 0rem;
  }
  #skills {
    flex-direction: column;
  }
  #navigation {
    
    padding: 5px;
  }
  
  #preview {
    max-width: 80vw;
  }
  .about-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80vw, 1fr));
    padding-bottom: 50px;
    padding-top: 50px;
    gap: 100px;
  }
  
}

