:root {
  --bg-main: #0d1117;
  --bg-surface: #161b22;
  --bg-light: #1f2328;
  --bg-hover: #21262d;
  --text-main: #c9d1d9;
  --text-muted: #8b949e;
  --border-color: #30363d;
  --purple: #d2a8ff;
  --blue: #a5d6ff;
  --green: #7ee787;
  --glow-clr: #fff; /* placeholder color */
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono.ttf");
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
}

body,
h1,
h2,
button,
input,
textarea {
  font-family: "JetBrains Mono", "Consolas", monospace;
  color: var(--green);
}

header {
  background-color: var(--bg-surface);
  padding: 20px;
  position: sticky;
  top: 0;
}
header h1 {
  margin: 0;
  font-size: 24px;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
img {
  transition: transform 0.3s ease-in-out;
}
img:hover {
  transform: scale(1.05);
}
button {
  cursor: pointer;
  background: none;
  border: 2px solid var(--green);
  border-radius: 5px;
  padding: 15px 20px;
}
a {
  text-decoration: none;
}
.nav-link a {
  color: var(--purple);
  margin-left: 20px;
  font-size: 16px;
}

.nav-link a:hover {
  color: #cecece;
  transition: color 0.3s ease-in-out;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.logo {
  width: 60px;
  border-radius: 2px;
}
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

footer {
  background-color: var(--bg-surface);
  padding: 30px;
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

footer .social-icon {
  width: 30px;
}

.hamburger {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--green);
  margin: 5px 0;
  border-radius: 3px;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-link.active a {
  color: var(--green);
  text-decoration: underline;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  flex-wrap: wrap;
}
.hero-img {
  padding: 20px;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 100%;
}
.demo-reel {
  margin: 20px auto;
}

.demo-reel video {
  width: 100%;
  border-radius: 4px;
}

.cta-btn.github-btn {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.card-green,
.card-green button {
  color: var(--green);
  border: 2px solid var(--green);
}
.card-blue,
.card-blue button {
  color: var(--blue);
  border: 2px solid var(--blue);
}
.card-purple,
.card-purple button {
  color: var(--purple);
  border: 2px solid var(--purple);
}
.card-blue h2 {
  color: var(--blue);
}
.card-purple h2 {
  color: var(--purple);
}
#about .card-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

#about .card {
  background-color: var(--bg-surface);
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 300px;
}
.project-item:hover,
#about .card:hover:not(.active) {
  background-color: var(--bg-hover);
  cursor: pointer;
}

.card > h2 {
  margin: 0;
  padding: 10px 0;
}

.studies-card {
  border: 2px solid var(--green);
  display: flex;
  flex-direction: column;
}

.skills-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--green);
}
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.skill-item {
  background-color: var(--bg-light);
  padding: 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.skill-item > ul {
  list-style-type: disc;
}
.hobbies-card {
  border: 2px solid var(--green);
  display: flex;
  flex-direction: column;
}

.hobbies-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hobby-item {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hobby-item p {
  margin: 0;
  font-size: 16px;
}
.hobby-item iframe {
  width: 100%;
}

.hobby-item.g {
  grid-area: g;
}

.hobby-item.c {
  grid-area: c;
}

.hobby-item.y {
  grid-area: y;
}

.projects-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.project-item {
  background-color: var(--bg-surface);
  padding: 20px;
  border: 2px solid var(--purple);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-item.big {
  flex: 2 1 100%;
}

.project-item.small {
  flex: 1;
}

.hobby-item img,
.skill-item img {
  width: 50px;
}

.study-item img,
.project-img {
  width: 100%;
  border-radius: 4px;
}

.project-img-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.project-img-gallery-item {
  width: 270px;
  height: 270px;
  object-fit: cover;
  border-radius: 4px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.social-icon.contact-socials {
  width: 40px;
}
.socials-list {
  color: var(--blue);
  list-style-type: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: start;
  gap: 20px;
  padding: 0;
}
.socials {
  display: flex;
  align-items: start;
  flex-direction: column;
}
.social-item {
  background-color: var(--bg-light);
  padding: 15px;
  border: 2px solid var(--blue);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-item img {
  filter: brightness(0) saturate(100%) invert(89%) sepia(17%) saturate(4057%)
    hue-rotate(179deg) brightness(103%) contrast(103%);
}
.contact-social-link {
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form {
  /* border: 2px solid var(--blue); */
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.contact-form-container {
  flex: 1 0 300px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-light);
  color: var(--text-main);
  resize: vertical;
}
.contact-form button {
  width: 150px;
}

.card .card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s ease-in-out;
}
.card.active .card-content {
  max-height: 2000px;
  transition: max-height 0.7s ease-in-out;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--blue);
}

.hover-text {
  color: var(--blue);
  transition: height 0.3s ease-in-out;
}

@keyframes glow-linger {
  0% {
    box-shadow:
      0 0 10px var(--glow-clr),
      0 0 5px var(--glow-clr) inset;
  }
  50% {
    box-shadow:
      0 0 20px var(--glow-clr),
      0 0 15px var(--glow-clr) inset;
  }
  100% {
    box-shadow:
      0 0 10px var(--glow-clr),
      0 0 5px var(--glow-clr) inset;
  }
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 20px;
  }
  .hamburger {
    display: block;
  }
  nav {
    flex-wrap: wrap;
  }
  nav ul {
    flex-direction: column;
    display: flex;
    flex: 1 1 100%;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  nav ul.open {
    max-height: 200px;
  }
  nav ul li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-link {
    margin-left: 0;
    font-size: 18px;
  }
  .hero {
    flex-direction: row;
  }
  .hero-image-container {
    margin: 0 auto;
  }
  .projects-container {
    flex-direction: column;
  }
  footer ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .project-item.small {
    flex: 1 1 100%;
  }
}
