/* === CONTACT SECTION === */
.contact-section {
  position: relative;
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;

  /* Dynamic gradient with soft luminance and depth */
  background: linear-gradient(
    135deg,
    #000000 0%,
    #111010 25%,
    #c8796c 50%,
    #2b1814 75%,
    #000000 100%
  );
  background-size: 300% 300%;
  animation: gradientFlow 18s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;

  /* Add gentle light reflection effect */
  position: relative;
  isolation: isolate;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.05),
    transparent 70%
  );
  mix-blend-mode: overlay;
  animation: glowPulse 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* Gradient shift animation */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Subtle glow pulsing */
@keyframes glowPulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}



/* === VIDEO BACKGROUND (ALWAYS PRESENT, INITIALLY COVERED) === */
.contact-video {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 50%;        /* only take right half */
  height: auto;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.contact-video video {
  height: 95vh;       /* show tall mobile-size video */
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

/* === CONTACT INFO PANEL (SLIDES TO REVEAL VIDEO) === */
.contact-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Full width initially */
  height: 100%;
  z-index: 2;
  padding: 4rem 3rem;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: width 1.5s ease;
  line-height: 2;
  letter-spacing: 0.05em;
}

.contact-info h2 {
  font-size: clamp(2.2rem, 2vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
}


.contact-info h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #fff;
  margin-top: 0.8rem;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 2rem;
  white-space: pre-line;
  color: #eeeeee;
}

.contact-info p::before {
  content: "・";
  margin-right: 0.5em;
  color: #f2c1c1;
}

/* === ANIMATION STATE === */
.contact-section.animate .contact-info {
  width: 50%; /* Slides to reveal the video */
}

.contact-block {
  margin-bottom: 2rem;
}

/* === PC (default) === */
.contact-block h3 {
  font-size: clamp(1.3rem, 1.6vw, 1.8rem);
  color: #c09f67;
  margin-bottom: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-block p {
  font-size: 1.05rem;
  margin: 0;
  color: #eeeeee;
  line-height: 1.9;
}

.contact-block .small-text {
  font-size: 0.95rem;
  color: #bbbbbb;
  margin-top: 0.5rem;
}


.contact-info a {
  color: #c09f67;
  text-decoration: underline;
}

.contact-info a:hover {
  color: #fff5d1;
  text-decoration: none;
}
