body,
h1,
h2,
p {
  margin: 0;
}

* {
  box-sizing: border-box;
}

.page {
  font-family: Poppins, Arial, sans-serif;
  background-color: #0b4fade9;
}

/* HEADER */
.header {
  height: 200px;
  background-image: url(./images/Code.jpg);
  background-size: cover;
}

.overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.header_title {
  font-size: 80px;
  color: white;
}

.header_subtitle {
  font-size: 24px;
  color: white;
}

/* LAYOUT */
.content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1100px;
  margin: 60px auto 100px;
}

/* CARD */
.card {
  width: 480px;
  height: 440px;
  perspective: 1000px;
  cursor: pointer;
}

.card__description {
  font-size: 40px;
  line-height: 1.82;
  max-width: 100%;
  letter-spacing: 0.3px;
}

.card__inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.card.flipped .card__inner {
  transform: rotateY(180deg);
}

.card__front,
.card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}
.card.flipped .card__front {
  pointer-events: none;
}

.card.flipped .card__back {
  pointer-events: auto;
}

.card__back {
  z-index: 2;
}

.card__front {
  z-index: 1;
}

/* FRONT */
.card__front {
  position: relative;
  background: white;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title--front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  color: white;
  font-size: 50px;
  z-index: 2;

  gap: 12px;
}

/* DARK OVERLAY FOR READABILITY */
.card__front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

/* BACK */
.card__back {
  background: #d5d6db;
  color: #000000;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  pointer-events: auto;
}

.card__description {
  font-size: 16px;
  line-height: 1.5;
}

.card__list {
  width: 100%;
  height: 100%;
  list-style-type: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.card__list li {
  font-size: 16px;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: black;
  font-size: 14px;
  gap: 8px;
  transition: transform 0.2s ease;
}

.social-icon {
  width: 95px;
  height: 95px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-item:hover {
  transform: scale(1.15);
}

/* card 2 */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.skills-group {
  text-align: left;
}

.skills-group h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.skills-group ul {
  list-style-type: disc;
  padding-left: 20px;
}

.skills-group li {
  font-size: 16px;
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: black;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* footer */
.footer {
  text-align: center;
  padding: 30px;
}

.footer__text {
  color: white;
  font-size: 16px;
}
