.home {
  flex-direction: row;
  gap: 50px;
}

.home-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-detail h1 {
  font-family: monospace;
  font-size: var(--font-h1);
  line-height: 1;
}

.home-detail h2 {
  font-family: monospace;
  font-size: var(--font-h2);
  color: var(--color-accent);
}

.home-detail p {
  margin: 10px 0 20px;
  opacity: 0.85;
}

.home-detail .download-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-detail .social-icons a {
  display: inline-flex;
  padding: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  transition: 0.2s;
}

.home-detail .social-icons a:hover {
  background: #fff;
  box-shadow: 0 0 10px #fff;
  color: #333;
}

.home-image {
  order: var(--order-bottom);
}

.home-image .image-box {
  position: relative;
  width: 28vw;
  aspect-ratio: 1/1;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 16px #fff;
  overflow: hidden;
}

.home-image .image-box img {
  position: absolute;
  display: block;
  width: 100%;
  object-fit: cover;
}


/* 'Dowload CV' button modal popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay:target {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay:target ~ header {
  pointer-events: none;
}

.modal {
  width: 80%;
  max-width: 420px;
  padding: 28px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  box-shadow:
  0 0 10px rgba(255, 255, 255, 0.18),
  0 0 22px rgba(46, 160, 67, 0.22);
}

/* modal content */
.modal h3 {
  font-family: var(--font-family-h);
  font-size: 20px;
  margin-bottom: 12px;
}

.modal h3::after {
  content: "_";
  margin-left: 2px;
  color: var(--color-accent);
  animation: blink 1.5s infinite;
}

.modal p {
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 22px;
}

.modal .modal-close:hover {
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.28),
    0 0 30px rgba(46, 160, 67, 0.35);
}
/* end of modal popup */

/* Mobile Styles */
@media (max-width: 768px) {
  .home { flex-direction: column; }

  /* Mobile order: image on top */
  .home-detail { order: var(--order-bottom); }
  .home-image { order: var(--order-top); }

  /* home.html Detail */
  .home-detail h1 { font-size: 38px; }
  .home-detail h2 { font-size: 22px; }
  .home-detail p { margin: 14px 0 32px; }

  .home-detail .download-social {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .home-detail .social-icons { margin: 0; }
  .home-image .image-box { width: 60vw; aspect-ratio: 1/1; }

}
