@font-face {
  font-family: 'QuarionBookDemo';
  src: url('./fonts/Quarion-BookDEMO.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'QuarionBookDemo', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #222121;
}

h1 {
  color: #e8e8e8;
  font-size: 3em;
  margin-top: 20px;
}

p {
  color: #e8e8e8;
  font-size: 1.4em;
  margin: 10px 20px;
}

.navbar {
  background-color: #222121;
  padding: 8px;
  text-align: center;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.1em;
}

.navbar a:hover {
  text-decoration: underline;
  color: #f4f4f4;
  transform: scale(1.4);
  transition: transform 0.2s ease-in-out;
}

/* intro section (used on other pages if needed) */
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  gap: 30px;
}

.text {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}

/* all images */
.image img {
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* scrolling text */
.scrolling-text {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 70px;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  margin: 5px auto;
}

.scrolling-text span {
  display: inline-block;
  white-space: nowrap;
  font-size: calc(2.5em + 0.5vw);
  color: rgba(255, 255, 255, 0.032);
  animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* ------------------ HOME ------------------ */

/* Make the hero intro NOT behave like 2 columns */
.home .intro.hero{
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Hero container */
.home .image-1{
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Hero image */
.home .image-1{
  position: relative;
  height: 84vh;      /* or 100vh */
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.home .image-1 img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* Hero text overlay (small + thin) */
/* Hero wrapper */
.home .image-1{
  position: relative;
  width: 100%;
  margin-top: 18px; /* space under nav */
}

/* Hero image */
.home .image-1 img{
  width: 100%;
  height: 80vh;         /* keep this */
  object-fit: cover;
  object-position: center bottom; /* 👈 keeps bottom (legs), cuts top */
  display: block;
  border-radius: 0;
}


/* Text on top of the image */
.home .hero-text{
  position: absolute;
  left: 950px;
  bottom: 267px;
  max-width: 420px;

  color: #e8e8e8;
  font-size: 1.05em;
  font-weight: 300;
  line-height: 1.55;

  letter-spacing: 0.08em;
  word-spacing: 0.25em;

  background: rgba(0,0,0,0); /* transparent */
  padding: 0;
}



@media (max-width: 700px){
  .home .hero-text{
    left: 16px;
    right: 16px;
    bottom: 20px;
    max-width: none;
    font-size: 1em;
  }
}

/* HOME catalogue wrapper below scrolling text */
.catalogue{
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px;
  overflow: hidden; /* hides extra images off-screen */
}

/* The moving “track” */
.home .home-gallery{
  display: flex;
  gap: 12px;
  will-change: transform;
  transition: transform 0.08s linear;
}

/* Each image wrapper */
.home .home-gallery .image{
  flex: 0 0 auto;
}

/* Catalogue image sizing */
.home .home-gallery img{
  width: 420px;      /* adjust if you want bigger/smaller cards */
  height: 600px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* optional: alignment */
.home .image-5,
.home .image-6,
.home .image-10,
.home .image-9 { align-self: center; }

/* ------------------ PORTFOLIO: 2 PER ROW GRID ------------------ */

.portfolio .portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: none;
  margin: 12px;
  padding: 12px;
}

.portfolio .portfolio-gallery img {
  width: 100%;
  height: 930px;      /* adjust if you want shorter rows */
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

@media (max-width: 900px) {
  .portfolio .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio .portfolio-gallery {
    grid-template-columns: 1fr;
  }
}

/* ------------------ LIGHTBOX (click to enlarge) ------------------ */

.home-gallery img,
.portfolio .portfolio-gallery img {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: min(95vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 34px;
  line-height: 1;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ------------------ HOME CONTACT SECTION ------------------ */

.home-contact{
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-contact h2{
  color: #e8e8e8;
  letter-spacing: 0.15em;
  font-size: 1.6em;
  margin: 0 0 16px;
}

.home-contact p,
.home-contact a{
  color: #e8e8e8;
  font-size: 1.1em;
  text-decoration: none;
}

.home-contact a:hover{
  text-decoration: underline;
}
