@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap");

:root {
  --text-color: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.55);
  --background-color: #000;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--background-color);
  background-image: url("./pics/bg.jpg");
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  color: var(--text-color);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-color);
  transition: color 0.2s ease;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

h1, h2, h3 {
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

#wrapper {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: 2em 0 4em;
}

/* Header */

#header {
  text-align: center;
  padding: 5em 0 3em;
}

#header > p {
  margin: 0;
  font-size: 0.9em;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

#header .avatar {
  border-radius: 50%;
  display: inline-block;
  margin: 1.5em 0;
  padding: 4px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

#header .avatar img {
  border-radius: 50%;
  display: block;
  width: 12em;
}

#header h1 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 1.2em;
  letter-spacing: -0.02em;
}

/* Social icons */

.icons {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5em;
  flex-wrap: wrap;
}

.icons li {
  flex: 0 1 auto;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  padding: 0.7em 1.2em;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 1em;
}

.icon:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  color: #fff;
}

.icon i {
  font-size: 1.4em;
}

.icon span {
  font-size: 0.7em;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Section headings */

#main, #other-projects {
  margin-top: 3em;
}

#main h2, #other-projects h2 {
  font-size: 1.3em;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

/* Project cards */

.thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
  margin-top: 1em;
}

.thumbnail {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.thumbnail > a {
  flex: 1;
}

.thumbnail:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 30%;
}

.thumbnail img.app-icon {
  object-fit: contain;
  object-position: center;
  padding: 16px;
  background: linear-gradient(135deg, #5848e9, #14b8b8);
}

.thumbnail h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 1em 1.2em 0.4em;
}

.thumbnail p {
  font-size: 0.85em;
  line-height: 1.6;
  margin: 0 1.2em 1em;
  color: var(--text-muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0 1.2em 0.6em;
}

.badge {
  font-size: 0.65em;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  background: var(--glass-hover);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.thumbnail > p {
  border-top: 1px solid var(--glass-border);
  margin: 0;
  padding: 0.8em 1.2em;
  font-size: 0.8em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.thumbnail > p:hover {
  color: #fff;
}

/* Other projects */

#otherPages {
  padding-left: 1.2em;
  margin-top: 0.5em;
}

#otherPages li {
  padding: 0.25em 0;
}

#otherPages a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

#otherPages a:hover {
  color: #fff;
}

/* Footer */

#footer {
  text-align: center;
  padding: 2.5em 0;
  margin-top: 4em;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85em;
}

#footer p {
  margin: 0.3em 0;
}

#footer a {
  color: var(--text-muted);
}

#footer a:hover {
  color: #fff;
}

/* Mobile */

@media screen and (max-width: 736px) {
  #header {
    padding: 3em 0 2em;
  }

  #header .avatar img {
    width: 9em;
  }

  #header h1 {
    font-size: 1.6em;
  }

  .icons {
    gap: 0.4em;
  }

  .icon {
    padding: 0.6em 0.9em;
  }

  .thumbnails {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 400px) {
  .icon span {
    display: none;
  }

  .icon {
    padding: 0.6em;
    border-radius: 50%;
  }
}
