/* VARIABLES */
/* --------- */
:root {
  --primary-bg: #000d1e;
  --secondary-bg: #1a2535;
  --primary-color: #e6e9ed;
  --secondary-color: #4ea1d2; /* rgb(78, 161, 210) */
  --shadow-color: rgba(78, 161, 210, 0.5);
}

/* GLOBAL STYLES */
/* ------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif, sans-serif;
  background-color: var(--primary-bg);
  padding-bottom: 4rem;
}

/* CONTAINER */
/* --------- */
.container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CARD */
/* ---- */
.card {
  width: 25rem;
  min-height: 35rem;
  max-height: 90vh;
  margin: 0 auto;
  border-radius: 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 2.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px var(--secondary-color);
  background-color: var(--secondary-bg);
  /* transition: transform 0.4s ease, box-shadow 0.4s ease; */
  transition: all 0.4s ease;
  transform-origin: right bottom 2cm;
  will-change: transform, box-shadow;
}

.card:hover {
  /* transform: perspective(800px) rotateX(-5deg) rotateY(5deg) scale(1.02); */
  transform: perspective(1000px) rotateX(-10deg) rotateY(10deg) scale(1.05);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.card-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.4rem;
  color: var(--primary-color);
  border-radius: 15%;
  border: 1px solid var(--primary-color);
  font-weight: 600;
  box-shadow: 0 5px 20px var(--secondary-color);
  position: absolute;
  top: 8rem;
  left: 2rem;
  z-index: 1;
}

.card-img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease;
}

.card:hover .card-img {
  filter: brightness(1.5);
}

.card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1rem 2rem 1.5rem;
}

.card-title {
  color: var(--primary-color);
  font-size: 2.4rem;
  font-weight: 700;
  border-bottom: 2px solid var(--secondary-color);
  line-height: 2;
}

.card-text {
  color: var(--primary-color);
  font-size: 1.8rem;
  line-height: 1.5;
}

.cta-btn {
  display: inline-block;
  max-width: max-content;
  font-size: 1.2rem;
  padding: 0.8rem 1.4rem 0.8rem 0;
  text-decoration: none;
  border-radius: 4px;
  color: var(--secondary-color);
  font-weight: 500;
  text-transform: uppercase;
}

.card-tag,
.card-title,
.card-text {
  cursor: default;
}

.card-title,
.card-text,
.cta-btn {
  /* transition: transform 0.3s ease, filter 0.3s ease; */
  transition: all 0.3s ease;
  will-change: transform, filter;
}

.card-title:hover,
.card-text:hover,
.cta-btn:hover {
  transform: scale(1.05);
  filter: brightness(2);
}

/* FOOTER */
/* ------ */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  background-color: var(--secondary-bg);
  width: 100%;
  padding: 0.8rem 1.6rem;
}

.footer-text {
  display: flex;
  font-size: 2.08rem;
  padding: 0 0.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-text span:nth-child(1) {
  color: var(--primary-color);
  margin-right: 0.8rem;
}

.footer-text span:nth-child(2) {
  color: var(--secondary-color);
}

.github-link,
.arrow-up {
  color: var(--primary-color);
  font-size: 2.4rem;
  text-decoration: none;
  transition: transform 0.5s ease;
}

.github-link {
  margin: 0 2rem;
}

.arrow-up {
  position: absolute;
  right: 2rem;
}

.github-link:hover,
.arrow-up:hover {
  color: var(--secondary-color);
  transform: scale(1.3);
}
