/* --- global styles --- */

:root {
  --accent: #e00668;
  --secondary: #0ffcbe;
  --tag: rgba(15, 252, 190, 0.4);
  --shadow: rgba(53, 53, 53, 0.1);
  --light: #ecf0f1;
  --dark: #151e27;
  --smooth: all 0.5s ease-in-out;
  --border-line: 1px solid var(--shadow);
}

@font-face {
  font-family: 'Inter-Light';
  src: url('/assets/fonts/Inter-Light.ttf');
}

@font-face {
  font-family: 'Bitter-Light';
  src: url('/assets/fonts/Bitter-Light.ttf');
}

@font-face {
  font-family: 'Bitter-Regular';
  src: url('/assets/fonts/Bitter-Light.ttf');
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter-Regular', sans-serif;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  background-color: var(--light);
  font-size: 1.125 rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Bitter-Light', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding-left: 0;
}

/* --- Code for Firefox --- */
::-moz-selection {
  background: var(--secondary);
  color: var(--dark);
}

::selection {
  background: var(--secondary);
  color: var(--dark);
}

/* --- Body: Decorations --- */

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
  display: none;
}

.circle-one {
  background-color: var(--accent);
  width: 200px;
  height: 200px;
  top: -25px;
  right: 75px;
}

.line {
  position: absolute;
  opacity: 0.1;
  transform: rotate(-45deg);
  z-index: -1;
  display: none;
}

.line-one {
  background-color: var(--secondary);
  width: 200px;
  height: 3px;
  top: 115px;
  left: -50px;
}

/* --- Header --- */

header {
  background-color: var(--dark);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  position: relative;
}

nav {
  background-color: var(--dark);
  color: var(--light);
  width: 100%;
  text-align: center;
  position: absolute;
  top: -600%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  transition: var(--smooth);
}

.menu li {
  padding: 2rem 0;
}

.menu a {
  display: block;
  transition: var(--smooth);
}

.menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.menu a:hover {
  color: var(--secondary);
}

.menu a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--smooth);
}

.menu a:hover::after {
  width: 100%;
}

.menu li {
  padding: 0.8rem 1.5rem;
}

/* --- Main --- */

.container {
  padding: 0 2rem;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 4rem auto;
}

.container h1 {
  color: var(--accent);
}

.container ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}

.container p {
  margin: 0.75rem 0 0.5rem;
}

.hobbies {
  margin: 0.7rem 0;
  display: none;
}

.wrapper {
  background-color: white;
}

.wrapper h1,
.wrapper h2,
.wrapper h3 {
  margin: 1rem 0;
}

.wrapper h1 {
  color: var(--dark);
}

.wrapper section {
  padding: 0 2rem;
  margin-top: 3rem;
}

.column-one {
  padding-top: 3rem;
}

.search-container {
  padding: 0 2rem;
  margin-top: 3rem;
}

.search {
  border: none;
  border-bottom: var(--border-line);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  width: 100%;
  color: inherit;
  height: 2rem;
  padding-left: 0.5rem;
}

.search:focus {
  outline: 1px solid var(--accent);
}

.search-results {
  margin-bottom: 3rem;
}

.no-results ul {
  list-style-type: disc;
  font-size: 0.8rem;
  padding-left: 1.5rem;
}

.suggestions p {
  margin: 1rem 0;
}

.content {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.search-results .content,
.featured .content,
.other .content,
.quick .content {
  margin-top: 3rem;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* --- Main: about --- */

.about {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about:last-child {
  padding-bottom: 3rem;
}

.jobs li {
  margin: 1rem 0;
  max-width: 900px;
}

.jobs li a {
  display: inline-block;
  text-decoration: underline;
  color: var(--accent);
}

.jobs li a h3 {
  margin-bottom: 0.3rem;
}

.jobs span {
  font-size: 0.9rem;
}

.job-description {
  margin: 0.75rem 0 0;
}

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.tech-icon {
  display: inline-block;
  height: 2rem;
  width: 2rem;
}

.node {
  background: no-repeat center/cover url('/assets/icons/nodejs.svg');
}

.javascript {
  background: no-repeat center/cover url('/assets/icons/javascript.svg');
}

.mocha {
  background: no-repeat center/cover url('/assets/icons/mocha.svg');
}

.java {
  background: no-repeat center/cover url('/assets/icons/java.svg');
}

.spring {
  background: no-repeat center/cover url('/assets/icons/spring.svg');
}

.mongo {
  background: no-repeat center/cover url('/assets/icons/mongodb.svg');
}

.docker {
  background: no-repeat center/cover url('/assets/icons/docker.svg');
}

.mysql {
  background: no-repeat center/cover url('/assets/icons/mysql.svg');
}

.typescript {
  background: no-repeat center/cover url('/assets/icons/typescript.svg');
}

.sveltekit {
  background: no-repeat center/cover url('/assets/icons/sveltekit.svg');
}

.react {
  background: no-repeat center/cover url('/assets/icons/react.svg');
}

/* --- Main: Decorations --- */

.circle-two {
  background-color: var(--secondary);
  width: 100px;
  height: 100px;
  bottom: 150px;
  left: -20px;
}

.line-two {
  background-color: var(--accent);
  width: 150px;
  height: 3px;
  bottom: 150px;
  right: 100px;
}

/* --- Main: Tags --- */

.tags-wrapper {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tags {
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.5rem;
  row-gap: 0.5rem;
}

.tag {
  padding: 0.1rem 0.5rem;
  background-color: var(--tag);
}

/* --- Main: Button --- */

.btn-container {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

.btn {
  border: 1px solid transparent;
  background-color: var(--accent);
  color: var(--light);
  position: relative;
  display: inline-block;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  font-family: 'Inter-Regular', sans-serif;
}

.btn:hover {
  background-color: transparent;
  color: var(--accent);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  border: 1px solid var(--accent);
}

/* --- Cards --- */

.card-container {
  position: relative;
  flex-grow: 1;
  flex-basis: 0;
  display: grid;
  grid-template-rows: 1fr 8rem;
  box-shadow: -0.1rem 0.1rem 0.4rem 0.1rem var(--shadow);
  overflow: hidden;
  transition: var(--smooth);
}

.card-container:hover {
  transform: rotateY(180deg);
  box-shadow: none;
  box-shadow: 0.1rem 0.1rem 0.4rem 0.3rem var(--shadow);
}

.card-container h3 {
  margin-bottom: 0.05rem;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  overflow: hidden;
  opacity: 0;
  transition: var(--smooth);
  background-color: var(--light);
}

.card-container:hover .overlay {
  opacity: 1;
  bottom: 0;
  transform: rotateY(180deg);
}

.overlay p {
  position: absolute;
  top: 5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: var(--dark);
}

.overlay .arrow {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid transparent;
  background-color: var(--accent);
  color: var(--light);
}

.card-container:hover .card-content {
  opacity: 0;
}

.card-container:hover img {
  opacity: 0;
}

.arrow:hover {
  background-color: transparent;
  color: var(--accent);
  transition: all 0.3s ease-in-out;
  border: 1px solid var(--accent);
}

.card-container>div:first-child {
  aspect-ratio: 16/9;
  width: 100%;
}

.card-container .card-content {
  padding: 0 1.5rem;
  transition: var(--smooth);
  border-top: var(--border-line);
}

.card-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--smooth);
}

/* --- Cards: Decorations --- */

.overlay .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.overlay .circle-one {
  background-color: var(--accent);
  width: 100px;
  height: 100px;
  top: -50px;
  right: -50px;
}

.overlay .circle-two {
  background-color: var(--secondary);
  width: 100px;
  height: 100px;
  bottom: -40px;
  left: -20px;
}

.overlay .line {
  position: absolute;
  opacity: 0.1;
  transform: rotate(-45deg);
  z-index: -1;
}

.overlay .line-one {
  background-color: var(--secondary);
  width: 200px;
  height: 3px;
  top: 15%;
  left: -50px;
}

.overlay .line-two {
  background-color: var(--accent);
  width: 100px;
  height: 3px;
  bottom: 50%;
  right: 25px;
}

/* --- Footer --- */

footer {
  background-color: var(--dark);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  padding: 0.8rem 0.5rem 0.5rem;
}

footer span {
  color: var(--light);
  font-family: 'Inter-Light', sans-serif;
  display: none;
}

footer a {
  color: var(--light);
  text-decoration: none;
}

.icons {
  display: flex;
  gap: 1rem;
}

/* --- Media Queries --- */

@media (width >=400px) {
  .wrapper {
    margin-top: 8rem;
  }
}

@media (width >=410px) {
  footer span {
    display: block;
  }
}

@media (550px <=width <=1032px) {
  .content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (width >=700px) {
  .container {
    max-width: 1200px;
  }

  .hobbies {
    display: block;
  }

  .search-container {
    width: 680px;
  }
}

@media (width >=710px) {
  .container h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3rem;
  }

  h3 {
    font-size: 1.65rem;
  }

  h4 {
    font-size: 1.3rem;
  }

  .container p,
  .container .btn {
    font-size: 1.4rem;
  }

  .search-container {
    font-size: 1.1rem;
  }

  .container .tag {
    font-size: 1.25rem;
  }

  .overlay p {
    font-size: 1.5rem;
  }
}

@media (width >=800px) {

  .circle,
  .line {
    display: block;
  }
}

@media (width >=1032px) {
  .content {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (width >=1290px) {
  .wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }

  .column-one {
    grid-area: 1 / 1 / 2 / 4;
  }

  .column-two {
    grid-area: 1 / 4 / 2 / 5;
  }

  .about {
    border-left: var(--border-line);
  }

  .cv-title {
    margin: 0;
  }
}