@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600;700&family=Righteous&display=swap");

@font-face {
  font-family: "Mona Sans";
  src: url("assets/fonts/Mona-Sans.woff2") format("woff2 supports variations"),
    url("assets/fonts/Mona-Sans.woff2") format("woff2-variations");
  font-weight: 300, 700;
  font-stretch: 100%;
}

:root {
  color-scheme: dark;

  --primary: rgb(151, 136, 166);
  --black: #0d1117;
  --gray: #30363d;
  --light: white;

  --h1-size: 1.5rem;
  --p-size: 1.1rem;

  --blur: blur(20px);
  --shadow: 0 0 30px black;

  --radius: 1rem;

  --inner-radius: 0.4rem;
}

.add-shadow {
  box-shadow: var(--shadow);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
  font-family: "Comfortaa";
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url(assets/img/crtiica-1000.png);
  background-size: 20px;
  background-repeat: repeat;
  color: var(--light);
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 120px;
  padding: 120px 50px 0px 50px;
  background-color: var(--black);
  box-shadow: var(--shadow);
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2 {
  font-size: 1.5em;
}

p {
  font-size: 0.9rem;
  font-family: "Mona Sans", "Comfortaa";
  font-weight: 300;
  line-height: 150%;
}

strong {
  font-family: "Mona Sans";
  font-weight: 600;
}

/* --- Header Section --- */
.header {
  border-bottom: 2px solid var(--gray);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9;
}

.logo {
  font-size: 2rem;
  font-family: Righteous;
  font-weight: bold;
  color: var(--light);
  user-select: none;
  cursor: pointer;
}

.logo span {
  color: var(--primary);
  font-family: Righteous;
  padding-left: 1px;
}

nav {
  display: flex;
  align-items: center;
}

.navlist {
  display: flex;
}

.navlist a {
  position: relative;
  font-size: 1.1rem;
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  margin-left: 40px;
  width: fit-content;
}

/* --- Hamburger Manu Icon --- */

.hamMenu {
  position: relative;
  display: none;

  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.hamButton {
  width: 25px;
  height: 3px;
  background: var(--light);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
  z-index: 1;
}

.hamButton::before,
.hamButton::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--light);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

.hamButton::before {
  transform: translateY(-10px);
}

.hamButton::after {
  transform: translateY(10px);
}

.hamMenu.active .hamButton {
  transform: translateX(-50px);
  background: transparent;
}

.hamMenu.active .hamButton:before {
  transform: rotate(45deg) translate(35px, -35px);
}

.hamMenu.active .hamButton:after {
  transform: rotate(-45deg) translate(35px, 35px);
}

/* --- Sliding Underline ---  */
.navlist a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 5px;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.5s;
}
.navlist a:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* --- Footer Section ---  */

footer {
  border-top: 2px solid var(--gray);
  box-shadow: var(--shadow);
  background: var(--black);
  font-weight: bold;
  text-align: center;
  width: 100%;
  padding: 20px;
  user-select: none;
}

footer .logo-bottom {
  font-size: 1.2rem;
  font-family: Righteous;
  color: var(--light);
  cursor: pointer;
}

footer .logo-bottom span {
  color: var(--primary);
  font-family: Righteous;
  padding-left: 1px;
}
footer p {
  font-size: 0.9rem;
  font-family: "Comfortaa";
  font-weight: 700;
}

/* --- intro and AboutMe --- */

#aboutme {
  scroll-margin-top: 150px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  width: 320px;
}

.wrapper {
  width: 100%;
  height: auto;
  border: 2px solid var(--gray);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
}

.content-padding {
  display: flex;
  padding: 20px 25px 15px 25px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.avatar {
  margin: 20px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: 0 0 20px black;
}

/* --- Buttons --- */
.divbutton {
  width: 100%;
  height: 45px;
  background: var(--gray);
  border: 2px solid var(--gray);
  outline: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--light);
  font-weight: 700;
  transition: 0.5s;
  padding-top: 3px;
}

.divbutton:hover {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--light);
}

/* --- icones --- */

.icontray {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  margin-top: -2px;
}

.icontray .divbutton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  font-size: 1rem;
  height: 50px;
  flex: 1;
}

.icontray > .iconlink {
  align-items: center;
  position: relative;
  width: 100%;
}

.iconsvg.small {
  width: 20px;
  margin: 0px;
}

/* --- Specific Button Radius --- */

.iconlink .left {
  border-bottom-left-radius: var(--radius);
}

.iconlink .right {
  border-bottom-right-radius: var(--radius);
}

/* --- Inverted Border Radius --- */

.icontray a.left::after,
.icontray a.right::after {
  --border-radius: 1rem;

  content: "";
  position: absolute;
  background-color: var(--black);
  width: var(--border-radius);
  height: var(--border-radius);
  border-radius: 100%;
  transition: 0.5s;
  pointer-events: none;
}

.icontray a.left::before,
.icontray a.right::before {
  --border-radius: 1rem;

  content: "";
  position: absolute;
  width: var(--border-radius);
  height: var(--border-radius);
  transition: 0.5s;
  pointer-events: none;
}

.icontray a.left::before {
  top: -15px;
  left: 0px;
  background-color: var(--gray);
}

.icontray a.left::after {
  top: -16px;
  left: 2px;
  border-radius: 0 0 0 100vw;
}

.icontray a.right::before {
  top: -15px;
  right: 0px;
  background-color: var(--gray);
}

.icontray a.right::after {
  top: -16px;
  right: 2px;
  border-radius: 0 0 100vw 0;
}

.icontray a.right:hover::before,
.icontray a.left:hover::before {
  background-color: var(--primary);
  transition: 0.5s;
}

/* --- Universal Text Bubble --- */
.textbubble {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 660px;
  height: auto;
  padding: 20px;
  margin: 20px;
  border: 2px solid var(--gray);
  border-radius: var(--radius);
}

.textbubble h3 {
  text-align: center;
  /* padding: 0 0 10px 0; */
}

/* ---- Timeline ----- */

.preamble {
  margin: 60px 20px 20px 20px;
}

.timeline {
  position: relative;
  margin: 0 0 55px 0;
  padding-bottom: 60px;
  max-width: 700px;
}
.timeline ul li {
  margin-bottom: 20px;
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.point {
  min-width: 20px;
  height: 20px;
  background-color: var(--black);
  border-radius: 100%;
  z-index: 2;
  border: 2px var(--gray) solid;
  position: relative;
}
.point.point-centar {
}

.point.point-right {
  right: 9px;
}

.point.point-left {
  left: 11px;
}

.timeline ul li .content {
  width: 50%;
  padding: 20px;
  margin: -60px 0;
}

.timeline ul li .content .textbubble {
  margin: 0;
}

.timeline ul li:nth-child(odd) {
  flex-direction: row-reverse;
}
.timeline ul li:first-child {
  flex-direction: column;
  margin-bottom: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 2px;
  left: 50%;
  background-color: var(--gray);
}

/* --- End of Timeline --- */
/*
/*
/*
/*
/*
/*
/* --- MyTechStack --- */

.chapter {
  display: flex;
  justify-content: center;
  padding: 30px;
}

#techstack {
  scroll-margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border-top: 2px solid var(--gray);
  margin-bottom: 60px;
}

.tab-wrapper {
  display: grid;
  gap: 1rem;
  grid-template-columns: 180px 180px 180px;
  justify-content: center;
  transition: all 0.4s ease;
}

.tabs {
  display: grid;
  grid-template-rows: 150px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: var(--gray);
  border-radius: var(--radius);
  transition: all 0.4s ease;
}

.tabs:hover {
  background: var(--primary);
  color: var(--light);
  transition: 0.4s;
}

#techstack .textbubble {
  display: flex;
  align-items: center;

  max-width: 572px;
  width: 100%;
  padding-top: 5px;
}

#techstack .textbubble ul li {
  font-family: "Mona Sans", "Comfortaa";
  line-height: 150%;
  font-size: 0.9rem;
  font-weight: 300;
}

/* --- MyTechStack View Transition Animations --- */

@view-transition-group {
  transition: all 0.3s ease;
}

.popup-tab {
  @view-transition-name: "fade-in" , "fade-out";
  display: none;
  align-content: space-between;
  min-height: 150px;
  color: var(--light);
  padding: 20px;

  border: 2px solid var(--gray);
  border-radius: var(--radius);
  cursor: pointer;
}

.popup-tab[open] {
  display: grid;
}

#b1,
#b2,
#b3 {
  grid-area: 1 / 4 / 1 / 1;
}

#b4,
#b5,
#b6 {
  grid-area: 2 / 4 / 2 / 1;
}

#b7,
#b8,
#b9 {
  grid-area: 3 / 4 / 3 / 1;
}

#b10,
#b11,
#b12 {
  grid-area: 4 / 4 / 4 / 1;
}

/* --- End of MyTechStack --- */
/*
/*
/*
/*
/*
/* 
/* --- MyProjects --- */

#projects {
  scroll-margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border-top: 2px solid;
  border-bottom: 2px solid;
  border-color: var(--gray);
  padding-bottom: 40px;
}

#projects .textbubble {
  margin: 0 20px 40px 20px;
  padding: 30px;
  gap: 20px;
  width: 100%;
}

#projects .textbubble img {
  border-radius: var(--inner-radius);
}

#projects .textbubble a {
  font-family: "Mona Sans", "Comfortaa";
  color: var(--primary);
  text-decoration: underline;
  text-underline-position: under;
}

.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 340px;
  gap: 1rem;
}

.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--inner-radius);
  color: var(--light);
  flex: 0.5;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 2000px var(--gray);
  transition: all 0.7s ease-in, box-shadow 0.3s;
}

.panel:hover {
  box-shadow: inset 0 0 0 1000px var(--primary);
  transition: 0.4s linear;
}

.panel h3 {
  font-size: 1.6rem;
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  opacity: 0;
}

.panel.active {
  flex: 6;
  filter: none;
  /* aspect-ratio: 3 / 2; */
  box-shadow: none;
  transition: all 0.7s ease-in;
}

.panel.active h3,
.panel.active p {
  opacity: 1;
  transition: opacity 0.3s ease-in o.4s;
}

/* --- Contact --- */

#contact {
  scroll-margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 700px;
}

.contact-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 10px;
}

.contact-form {
  width: 374px;
  border: 2px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px;
}

div.contact-form form h2 {
  padding: 10px;
}

.contact-form form label {
  display: flex;
  align-items: flex-start;
  padding: 0px 0px 5px 15px;
}

.contact-inputs input {
  scroll-margin-top: 150px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  width: auto;
}

.contact-inputs input,
.contact-inputs textarea {
  height: 30px;
  width: 90%;
  background-color: var(--gray);
  color: var(--light);
  border: none;
  outline: none;
  border-radius: var(--inner-radius);
  padding: 0 10px 0 10px;
  margin: 0 15px 15px 15px;
}

.contact-inputs textarea {
  max-width: 90%;
  height: 200px;
  padding: 10px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 150px;
  background: var(--gray);
  border: 2px solid var(--gray);
  outline: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--light);
  font-weight: 700;
  transition: 0.5s;
  border-radius: var(--radius);
}

.contact-button:hover {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--light);
}

.iconsvg {
  width: 50px;
  margin: 10px;
}

.iconsvg.send {
  width: 35px;
  margin: 10px;
}

/* ---- Responsivenes ---- */

@media (max-width: 1080px) {
  main {
    padding: 120px 15px 0px 15px;
  }

  /* ContactMe Section */
  .contact-wrapper {
    flex-direction: column;
    width: auto;
    gap: 0;
  }

  .contact-form {
    border-radius: 0;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border-bottom: none;
  }

  .contact-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0px;
  }

  .contact-link {
    width: 100%;
    position: relative;
  }

  .contact-button {
    border-radius: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    padding: 5px;
  }

  .contact-button.left {
    border-bottom-left-radius: var(--radius);
  }

  .contact-button.right {
    border-bottom-right-radius: var(--radius);
  }

  /* --- Inverted Border Radius --- */

  .contact-button.left::after,
  .contact-button.right::after {
    --border-radius: 1rem;

    content: "";
    position: absolute;
    background-color: var(--black);
    width: var(--border-radius);
    height: var(--border-radius);
    border-radius: 100%;
    transition: 0.5s;
    pointer-events: none;
  }

  .contact-button.left::before,
  .contact-button.right::before {
    --border-radius: 1rem;

    content: "";
    position: absolute;
    background-color: var(--gray);
    width: var(--border-radius);
    height: var(--border-radius);
    transition: 0.5s;
    pointer-events: none;
  }

  .contact-button.left::before {
    top: -14px;
    left: 0px;
  }

  .contact-button.left::after {
    top: -16px;
    left: 2px;
    border-radius: 0 0 0 100vw;
  }

  .contact-button.right::before {
    top: -14px;
    right: 0px;
  }

  .contact-button.right::after {
    top: -16px;
    right: 2px;
    border-radius: 0 0 100vw 0;
  }

  .contact-button.right:hover::before,
  .contact-button.left:hover::before {
    background-color: var(--primary);
    transition: 0.5s;
  }

  .iconsvg,
  .iconsvg.send {
    width: 30px;
    margin: 5px;
  }
  .iconsvg.send {
    padding: 2px;
  }
}

/* ---- Responsivenes ---- */

@media (max-width: 880px) {
  /* Timeline Responsivenes */
  .timeline {
    max-width: 360px;
    padding: 0;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline ul {
    display: flex;
    flex-direction: column;
  }

  .point.point-left,
  .point.point-right,
  .point.point-centar {
    display: flex;

    left: 0;
  }

  .timeline ul li,
  .timeline ul li:first-child {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
  }
  .timeline ul li:first-child {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 10px;
  }

  .timeline ul li .content {
    width: 95%;
    padding: 0 20px 0 11px;
    margin: 0;
  }

  /* MyTackStack Responsivenes*/

  #techstack {
    min-height: 1050px;
  }

  .tab-wrapper {
    grid-template-columns: 180px 180px;
  }

  /* --- MyTechStack Grid Animation Order --- */

  #b1,
  #b2 {
    grid-area: 1 / 3 / 1 / 1;
  }

  #b3 {
    grid-area: 2 / 3 / 2 / 1;
  }

  #b4 {
    grid-area: 2 / 3 / 2 / 1;
  }

  #b5,
  #b6 {
    grid-area: 3 / 3 / 3 / 1;
  }

  #b7,
  #b8 {
    grid-area: 4 / 3 / 4 / 1;
  }

  #b9 {
    grid-area: 5 / 3 / 5 / 1;
  }

  #b10 {
    grid-area: 5 / 3 / 5 / 1;
  }
  #b11,
  #b12 {
    grid-area: 6 / 3 / 6 / 1;
  }

  /*  MyProjects Slider  */
  #projects {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container {
    flex-direction: column;
    width: 100%;
    height: calc(100vw - 40vw);
  }

  /* --- END of MyTackStack Responsivenes*/
  /*
/*
/*
/*
/*
/* Main and Header */

  .nav {
    flex-direction: column;
    gap: 2rem;
  }

  .navlist {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .hamMenu {
    display: flex;

    z-index: 2;
  }

  .nav {
    position: absolute;
    top: -100vh;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;

    align-items: center;
    text-align: center;
    background-color: transparent;
    color: var(--light);

    transition: all 0.15s ease-in-out;
  }

  .header {
    padding: 20px;
  }

  header.active {
    backdrop-filter: none; /* this is necessary for the overlay menu to work */
  }

  .nav.active {
    top: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    background: transparent;
    color: var(--light);
    backdrop-filter: blur(20px) grayscale(40%);
    box-shadow: var(--shadow);
    z-index: 1;
  }

  .nav.active a {
    display: flex;
    align-items: flex-start;
    margin: 30px;
  }
}

@media (max-width: 410px) {
  /* --- AboutMe --- */

  /* ---- Timeline ----- */

  .timeline {
    width: 100%;
  }

  /* --- MyTackStack --- */

  #techstack {
    min-height: 1050px;
  }

  .tab-wrapper {
    grid-template-columns: 140px 140px;
  }

  .tabs {
    grid-template-rows: 110px;
  }

  /* ContactMe Section */

  .contact-wrapper {
    width: 100%;
  }
  .contact-form {
    width: 100%;
  }
}
