/* ============================== */
/*     BROWNMOREL PAGE STYLES     */
/* ============================== */

/* Project Container for Brown Morel */
.project-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
}

/* iPhone & Arrow Wrapper */
.iphone-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* iPhone Frame */
.iphone-frame {
  position: relative;
  width: 320px;
  max-width: 100%;
  border-radius: 38px;
  overflow: hidden;
  margin: 20px;
  z-index: 1;
}

/* A mask for the phone screen to make sure content stays in bounds */
.iphone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  z-index: 3;
  pointer-events: none;
}

.iphone-border {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* App Screen within the iPhone - Using fade transitions instead of slides */
.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 98%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.app-screen.next {
  opacity: 0;
  z-index: 0;
}

/* Brownmorel Feature Grid (description area to the right) */
.brownmorel-feature-grid {
  flex: 1 1 450px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.brownmorel-feature-grid h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}
.brownmorel-feature-grid p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

#screenTitle,
#screenText,
.hover-info-grid {
  transition: opacity 0.5s ease;
}

/* ARROW BUTTONS on left/right of the phone */
.arrow-btn {
  background: #333;
  color: #fff;
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 3;
}

.arrow-btn:hover {
  background: #926747;
}
