/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0a0c0f;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Background Stars Canvas */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Centered Image Container */
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 80px 24px; /* Bottom padding gives natural clearance for contact bar */
  z-index: 2;
}

/* Emblem Image Display in Full */
#fullEmblem {
  max-width: min(86vw, calc(100vh - 130px), 860px);
  max-height: min(86vw, calc(100vh - 130px), 860px);
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 50px -10px rgba(212, 175, 55, 0.18);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   Coherent Minimalist Contact Ribbon in the Dark Space
   ========================================================================== */

.contact-bar {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14, 18, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 9px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6),
              0 0 25px -5px rgba(212, 175, 55, 0.12);
  animation: fadeInSoft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 240, 230, 0.82);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  user-select: text; /* Allows user to easily copy text */
}

.contact-icon {
  color: #d4af37; /* Warm antique gold */
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.contact-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.contact-link:hover .contact-icon {
  color: #f7e2a9;
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

.contact-divider {
  color: rgba(212, 175, 55, 0.45);
  font-size: 10px;
  line-height: 1;
  user-select: none;
}

@keyframes fadeInSoft {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 640px) {
  .image-container {
    padding: 16px 16px 90px 16px;
  }

  #fullEmblem {
    max-width: 92vw;
    max-height: calc(100vh - 140px);
    border-radius: 12px;
  }

  .contact-bar {
    bottom: 18px;
    padding: 8px 16px;
    gap: 12px;
    max-width: 92vw;
  }

  .contact-link {
    font-size: 12px;
    gap: 6px;
  }

  .contact-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 440px) {
  .contact-bar {
    flex-direction: column;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 20px;
  }

  .contact-divider {
    display: none;
  }
}
