/* =============================================================
   CSS Document 2026 for Robert Juliat, designed by Mr Atif BUX 
   RWD v1.126
   ============================================================= */

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
  height: 100vh;
  height: 100svh;
  position: relative;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .15) 60%, transparent 100%);
}
.hero-overlay {
  position: absolute;
  bottom: 120px;
  left: 8vw;
  max-width: 720px;
  color: #ffffff;
  z-index: 2;
}
.hero-overlay h1 {
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}
.hero-overlay p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}
/* ================================
   SCROLL INDICATOR (HERO)
   ================================ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  transition: opacity 0.4s ease, visibility 0.4s;
  cursor: pointer;
  text-decoration: none;
}
.scroll-indicator span {
  display: block;
  color: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-weight: 600;
}
.scroll-arrow {
  width: 22px;
  height: 22px;
  border-left: 3px solid #da4f84;
  border-bottom: 3px solid #da4f84;
  transform: rotate(-45deg);
  margin: 0 auto;
  animation: arrowBounce 2s infinite;
}
@keyframes arrowBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  40% {
    transform: translateY(-12px) rotate(-45deg);
  }
  60% {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ================================
   YEAR NAVIGATION (STICKY)
   ================================ */

.timeline-nav {
  position: sticky;
  top: 64px;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}
.timeline-nav ul {
  display: flex;
  gap: 40px;
  padding: 20px 60px;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.timeline-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #999;
  padding-bottom: 10px;
  position: relative;
}
.timeline-nav a.active {
  color: #da4f84;
}
.timeline-nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #da4f84;
}

/* ================================
   TIMELINE STRUCTURE (DESKTOP)
   ================================ */

.timeline-wrapper {
  position: relative;
  height: 900vh;
}
.timeline-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center; /* Centering the slide vertically */
  overflow: hidden;
}
.timeline-track {
  display: flex;
  will-change: transform;
  transition: transform .18s cubic-bezier(.22,.61,.36,1);
  transform: translateZ(0); /* GPU acceleration */
}
.timeline-slide {
  flex: 0 0 100vw;
  width: 100vw;
  min-height: 70vh; /* viewport correction */
  display: grid;
  grid-template-columns:minmax(420px,1fr) minmax(520px,1.2fr);
  grid-template-areas:
    "year image"
    "text image";
  gap: 40px 80px;
  align-content: center; 
  padding: 80px 8vw 80px; 
  opacity: .35;
  transform: scale(.94);
  transition: opacity .6s ease, transform .7s cubic-bezier(.22,.61,.36,1);
  scroll-margin-top: 130px;
}
.timeline-slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity .6s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}
.timeline-year {
  grid-area: year;
  font-size: 160px;
  font-weight: 700;
  color: #da4f84;
  line-height: .9;
}
.timeline-text {
  grid-area: text;
  align-self: start;
}
.timeline-image {
  grid-area: image;
  display: flex;
  justify-content:flex-end;
  align-items:center;
}
.timeline-text h3 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}
.timeline-text p {
  max-width: 420px;
  line-height: 1.7;
  color: #555;
}
.timeline-image img {
  width: 100%;
/*  max-width: 720px;*/
  height:auto;
  /* aspect-ratio:3/2;  ->  keeps the image proportion stable */
  /* object-fit:cover;  ->  prevents distortion */
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .12);
  transition: transform .8s ease;
}
.timeline-slide:not(.active) .timeline-image img{
  transform:scale(.96);
  filter:brightness(.92);
}

.timeline-slide.active .timeline-image img{
  transform:scale(1.04);
  filter:brightness(1);
}
.timeline-slide.active .timeline-image img {
  transform: scale(1.04);
}

.history-closing{
  padding:120px 8vw;
  background:#f7f7f7;
}

.history-closing-inner{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:80px;
}

.history-closing-text h2{
  font-size:38px;
  font-weight:700;
  letter-spacing:1px;
  margin-bottom:20px;
}

.history-closing-text p{
  font-size:28px;
  color:#666;
}

.history-closing-logo img{
  max-width:220px;
  height:auto;
}

/* ===================================================
   MOBILE, TABLET & REDUCED DESKTOP WINDOWS (RWD)
   =================================================== */

@media(max-width: 1100px) {
  .hero-overlay {
    bottom: 180px;
  }
  .scroll-indicator {
    bottom: 80px;
  }
  .timeline-wrapper {
    height: auto;
  }
  .timeline-sticky {
    position: relative;
    height: auto;
    display: block;
    top: auto;
  }
  .timeline-track {
    display: block;
    transform: none !important;
    padding: 0 20px;
  }
  .timeline-slide {
    display: flex;
    flex-direction: column;
    padding: 40px 0 120px !important;
    opacity: 1;
    transform: none;
    border-bottom: 1px solid #f5f5f5;
    box-sizing: border-box;
  }
  .timeline-year {
    order: 1;
    font-size: clamp(70px, 18vw, 110px);
    margin: 40px auto 20px auto; /* center horizontally */
    text-align: center; /* center text */
    width: 100%;
  }
  .timeline-image {
    order: 2;
    margin-bottom: 35px;
    justify-content: center;
    width: 100%;
  }
  /* DOUBLE BRACKET TEXT AREA */
  .timeline-text {
    order: 3;
    display: block !important;
    background: #fcfcfc !important;
    padding: 30px !important;
    border-radius: 12px !important;
    /* LEFT & RIGHT */
    border-left: 6px solid #da4f84 !important;
    border-right: 6px solid #da4f84 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: left;
    grid-area: auto !important;
  }
  .timeline-text p {
    max-width: none !important;
    width: 100% !important;
    font-size: 17px;
  }
  .timeline-slide:first-child {
    padding-top: 180px !important;
  }
  .timeline-image img {
    max-width: none;
    width: 100%;
  }
  .history-closing-inner{
  flex-direction:column;
  text-align:center;
  gap:40px;
}

.history-closing-logo img{
  max-width:180px;
}
}
@media(max-width: 768px) {
  .hero-overlay h1 {
    font-size: 42px;
  }
  .scroll-indicator span {
    display: none;
  }
  .scroll-indicator {
    bottom: 100px;
  }
}