/* === Base Reset === */
html, body {
  height: 100dvh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', sans-serif;
  background: #fff;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* === Simulated Scroll Wrapper === */
.scroll-sim {
  overflow: hidden;
  height: 50dvh;
  position: relative;
  padding: 1rem;
}

/* === Animated Horizontal Track === */
.scroll-track {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* === Portfolio Items === */
.portfolio-item {
  flex: 0 0 auto;
  height: calc(50dvh - 2rem);
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 139, 0.05); /* 5% dark blue overlay */
  z-index: 1;
  pointer-events: none;
}

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

/* === Caption Overlay === */
.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4));
  color: #fff;
  z-index: 2; /* ensure it's above the overlay */
}

.portfolio-caption h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.portfolio-caption p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: #ddd;
}

/* === Hide hashtags on mobile (default) === */
.portfolio-caption .hashtags {
  display: none;
}

/* === Footer === */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: #222;
  color: #fff;
  text-align: center;
  z-index: 10;
}

/* === Contact Section === */
.contact-section {
  height: 50dvh;
  padding: 2rem 1rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form button {
  padding: 0.75rem;
  border: none;
  background: black;
  color: white;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

/* === Desktop Split: 66/34 === */
@media (min-width: 768px) {
  .scroll-sim {
    height: 66dvh;
  }

  .contact-section {
    height: 34dvh;
  }

  .portfolio-item {
    height: calc(66dvh - 2rem);
  }

  /* === Show hashtags again on desktop === */
  .portfolio-caption .hashtags {
    display: block;
  }

  .portfolio-caption {
    padding-bottom: 1em; /* Adjust if needed */
  }
}
