/* Hover + Pointer */
@media (hover: hover) and (pointer: fine) {
  /* ~~~~~ Nav ~~~~~ */
  .nav-link {
    transition: all 0.2s ease;
  }

  .nav-link:hover,
  .nav-link:active {
    border-bottom: 2px solid #000;
  }

  /* ~~~~~ Index ~~~~~ */
  .cta-btn:hover,
  .ctn-btn:active {
    background-color: #1a5ecc;
    border: 4px outset #1753b3;
  }

  /* ~~~~~ About ~~~~~ */
  .about-btn:hover,
  .about-btn:active {
    border-bottom: 2px solid #000;
  }

  .about-social-link:hover,
  .about-social-link:active {
    opacity: 64%;
  }

  /* ~~~ Artwork ~~~ */
  .artwork-link:hover .artwork-img {
    transform: scale(1.04);
    outline: 4px solid #2176ff;
    box-shadow: 0 0 32px 8px rgba(77, 145, 255, 0.96);
  }

  .artwork-link:focus-visible .artwork-img {
    transform: scale(1.04);
    outline: 4px solid #2176ff;
    box-shadow: 0 0 32px 8px rgba(77, 145, 255, 0.96);
  }
}

/* Tablet */
@media screen and (min-width: 768px) {
  /* ~~~~~ Projects ~~~~~ */
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }

  /* ~~~~~ Artwork ~~~~~ */
  .artwork-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  /* ~~~~~ About ~~~~~ */
  .width-container {
    max-width: 80%;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* Laptop */
@media screen and (min-width: 1200px) {
  .main-padding {
    padding: 24px 48px 48px 48px;
  }

  .site-grid {
    height: 100vh;
    overflow: hidden;

    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-rows: 1fr auto;
  }

  header {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 100vh;
    position: sticky;
    top: 0;
    align-self: start;
  }

  main {
    overflow-y: auto;
    min-height: 0;

    grid-column: 2;
    grid-row: 1;
    overflow-y: auto;
    min-height: 0;
  }

  .header-container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .navbar {
    font-size: 1.5rem;
    position: static;
    transform: none;
    transition: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    box-shadow: none;

    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-list {
    gap: 32px;
  }

  .hamburger {
    display: none;
  }

  footer {
    grid-column: 2;
    grid-row: 2;
  }

  /* ~~~~~ Footer ~~~~~ */
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0px;
  }

  .footer-top {
    gap: 0px;
  }

  .dev-by {
    text-align: right;
  }
}

@media screen and (min-width: 1400px) {
  /* ~~~~~ Artwork ~~~~~ */
  .artwork-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1800px) {
  .width-container {
    max-width: 48%;
  }
}
