:root {
  --gap: 10px;
}

html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: #fff;
  background: #000; /* fallback while video loads */
  overflow-x: hidden;
}

#preload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-family: sans-serif;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Full-viewport background video */
#background-video {
  position: fixed;
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* behind all content */
  background: #000; /* in case video takes a moment */
  pointer-events: none; /* don't block clicks */
}

/* Main content wrapper so we can center items nicely */
.page {
  min-height: 100dvh; /* mobile-safe viewport */
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Your existing container, centered */
.background {
  display: grid;
  place-items: center;
  gap: 24px;
}

.circle { overflow: visible !important; }
.speech-bubble { z-index: 9999; }
.circle img { border-radius: 50%; display: block; }


.circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  transition: transform 0.3s ease;
  backdrop-filter: blur(0.5px);
}

/* Speech bubble */
.speech-bubble {
    position: absolute;
    top: -90px;
    left: 60%;
    transform: translateX(-50%);
    max-width: 260px;

    background: rgba(20, 20, 20, 0.85);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;

    font-family: "Georgia", serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);

    pointer-events: none;
    /* prevents hover conflicts */
    animation: floatBubble 4s ease-in-out infinite;
}

/* Bubble tail */
.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 30%;

    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(20, 20, 20, 0.85);
}

/* Subtle float animation */
@keyframes floatBubble {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}

.circle:hover {
  transform: scale(1.08);
}

/* Make sure only the foreground image inside the circle scales correctly */
.circle > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Social icons row */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap);
  margin-top: 18px;
}

.icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.icon:hover {
  transform: translateY(-2px) scale(1.06);
}

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

/* MAL signature */
.mal {
  display: block;
  margin: 18px auto 0;
  max-width: min(92vw, 560px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .circle {
    width: 170px;
    height: 170px;
  }

  .icon {
    width: 44px;
    height: 44px;
  }

  .social-icons {
    margin-top: -20px;
  }
}
