/*--- functions/styles/contact.css ---*/

.contact-main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Contact Info Section === */
.contact-info {
  display: grid;
  gap: 1.5rem;
  text-align: left;
  background-color: var(--cc-primary);
  color: var(--cc-primary-text);
  padding: 3rem 2.75rem;
  border-radius: 20px;
  border: 1px solid rgba(234, 211, 205, 0.25);
  box-shadow: 0 24px 44px rgba(36, 27, 27, 0.45);
}

.contact-info a {
  color: var(--cc-accent);
  text-decoration: none;
}

.contact-info a:hover {
  color: #086f7f;
}

.contact-info h1,
.contact-info h2 {
  color: var(--cc-primary-text);
  margin: 0;
}

.contact-info p {
  color: rgba(234, 211, 205, 0.9);
}

/* === Contact Page Preview Carousel === */
.contact-preview {
  text-align: center;
  color: var(--cc-tertiary-text);
  margin-top: 3rem;
}

.preview-carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(16, 12, 12, 0.35);
}

/* Each slide layer */
.preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: 0;
}

/* Active slide fades in */
.preview-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  animation: fadeInPreview 1s ease;
}

/* === Full-Photo Scroll Animation (No bottom cropping) === */
.preview-image {
  position: absolute;
  top: -15%; /* allow more scroll travel room */
  left: 0;
  width: 100%;
  height: 160%; /* taller frame ensures full image shows */
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  transform: translateY(0);
  animation: scrollFullImage 18s linear infinite;
}

/* Disable animation when hidden */
.preview-slide:not(.active) .preview-image {
  animation: none;
  transform: translateY(0);
}

/* Smooth full vertical scroll */
@keyframes scrollFullImage {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-15%); } /* scroll stops exactly at bottom edge */
}

/* Fade-in effect for transitions */
@keyframes fadeInPreview {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Overlay link area */
.preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  cursor: pointer;
}



.contact-details p {
  margin-bottom: 0.35rem;
  color: var(--cc-primary-text);
}

.contact-preview h2 {
  color: var(--cc-secondary);
  margin-bottom: 1.5rem;
}

.contact-preview p {
  color: var(--cc-tertiary-text);
}

.preview-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(36, 27, 27, 0.05), rgba(36, 27, 27, 0.2));
  pointer-events: none;
}

.preview-carousel img {
  filter: saturate(1.05);
}
