/* Timeline Poles and Banners */

.timeline {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #87ceeb; 
}
.timeline-pole {
    position: absolute;
    top: 38%;
    width: 100%;
    height: 100%;
    background-image: url(../img/sign_board.png);
    background-repeat: no-repeat;
    border-radius: 4px;
    z-index: 4;
}

.timeline-banner {
    position: absolute;
    top: 51px;
    left: 0;
    max-width: 210px;
    padding: 12px;
    color: white;
}

.timeline-banner-secondary {
    position: absolute;
    display: flex;
    top: 145px;
    left: 45%;
    transform: translateX(-50%);
    padding: 12px;
    color: white;
    align-items: center;
}


.banner-image img {
    background-color: rgba(238, 234, 234, 0.87);
    width: 100%;
    height: 30px;
    margin-left: 10px;
    border: 3px solid #ec2f34;
    border-radius: 5px;}

.banner-year {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}


.banner-description {
    font-size: 12px;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 5px;
}
/*
.pole1 {
    left: 3%;
}

.pole2 {
    left: 10%;
}

.pole3 {
    left: 17%;
}

.pole4 {
    left: 24%;
}

.pole5 {
    left: 31%;
}

.pole6 {
    left: 38%;
}

.pole7 {
    left: 45%;
}

.pole8 {
    left: 52%;
}

.pole9 {
    left: 59%;
}

.pole10 {
    left: 66%;
}

.pole11 {
    left: 71%;
}

.pole12 {
    left: 78%;
}

.pole13 {
    left: 85%;
}

.pole14 {
    left: 92%;
}
*/
.timeline-header h1 {
    position: absolute;
    top: 85px;
    font-size: 2rem;
    z-index: 10;
    color: white;
}

.timeline-header a {
    position: absolute;
    top: 55px;
    font-size: 15px;
    z-index: 10;
    color: #ec2f34 !important;
    text-decoration: none !important;
}

.timeline-header p {
    top: 125px;
    font-size: 12px;
    z-index: 10;
}

p.story-text.align-items-center.text-white {
    position: absolute;
    font-size: 16px;
}

.timeline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100vh;
    transition: transform 0.3s ease-out;
    will-change: transform;
}


/* Sky and Background */

.sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
}


/* Buildings */

.buildings {
    position: absolute;
    bottom: 25%;
    left: 0;
    width: 400%; 
    height: 40%;
    z-index: 1;
    background-image: url(../img/timeline_bg.png);
    background-repeat: repeat-x; 
   background-size: auto 100%;
}

.building {
    position: absolute;
    bottom: 0;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    filter: contrast(1.1) brightness(0.9);
}

/* Road */
.road {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400%; 
    height: 25%;
    background: linear-gradient(to bottom, #333 0%, #555 50%, #333 100%);
    z-index: 2;
}

.road:before {
      content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(90deg, #ffffff 0px, #ffffff 100px, /* wider white strip */ transparent 100px, transparent 330px /* bigger gap between strips */);
    transform: translateY(-50%);
}


/* Vehicles */
.vehicle {
    position: absolute;
    bottom: 10%;   
    /*transform: translateY(50%); */
    transition: transform 0.3s ease;
    z-index: 10;
}

.bike,
.car,
.jcb,
.truck,
.ev-scooter {
    background-repeat: no-repeat;
    background-size: contain;
}


.bike {
    position: relative;
    width: 225px;
    height: 180px;
    background-image: url('/wp-content/uploads/2025/12/bike_png-removebg-preview-e1766035027427.png');
}

.car {
    position: relative;
    width: 350px;
    height: 180px;
    background-image: url('/wp-content/uploads/2025/12/pngtree-cartoon-red-side-view-car-vehicle-png-image_16824945-e1766035548970.webp');
}

.jcb {
    position: relative;
    width: 500px;
    height: 300px;
    background-image: url('/wp-content/uploads/2025/12/Timeline-JCB.png');
}

.truck{
    position: relative;
    top: 185px;
    width: 530px;
    height: 580px;
    background-image: url('/wp-content/uploads/2025/12/Timeline-truck.png');
}
.ev-scooter{
    position: relative;
    top: 120px;
    width: 285px;
    height: 360px;
    background-image: url('/wp-content/uploads/2025/12/timeline-EV-e1766228005412.png');
}


/* Vehicle Positioning */

/*.vehicle1 {
    left: 5%;
}

.vehicle2 {
    left: 35%;
}

.vehicle3 {
    left: 65%;
}
.vehicle4{
    left: 75%;
}
*/

.vehicle1 { left: 16vw; }
.vehicle2 { left: 65vw; }
.vehicle3 { left: 110vw; }
.vehicle4 { left: 175vw; }
.vehicle5 { left:330vw; }


.timeline-up-arrow,
.timeline-down-arrow {
    position: absolute;
    top: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 14px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 1000;
}

.timeline-up-arrow:hover,
.timeline-down-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.timeline-up-arrow {
    left: 20px;
}

.timeline-down-arrow {
    right: 20px;
}

/* ============================================
   RESPONSIVE FIX FOR POLES TO STICK TO ROAD
   ============================================ */

/* Timeline Poles - ALWAYS stick to road top */
.timeline-pole {
    position: absolute;
    bottom: 25% !important; /* Force stick to road - matches road height */
    top: auto !important; /* Override any top positioning */
    width: 100%;
    max-width: 250px; /* Limit pole width for consistency */
    height: auto;
    min-height: 300px; /* Minimum height for pole */
    background-image: url(../img/sign_board.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom center;
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 4;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktops (1920px and above) */
@media (min-width: 1920px) {
    .timeline-pole {
        bottom: 25% !important;
        max-width: 280px;
        min-height: 350px;
    }
    
    .buildings {
        bottom: 25%;
    }
    
}

/* Standard Desktops (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .timeline-pole {
        bottom: 25% !important;
        max-width: 260px;
        min-height: 330px;
    }
    
    .buildings {
        bottom: 20%;
    }
}

/* Laptops (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .timeline-pole {
        bottom: 25% !important;
        max-width: 220px;
        min-height: 280px;
    }
    
    .buildings {
        bottom: 20%;
    }
    
}

/* Small Laptops / Large Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .timeline-pole {
        bottom: 25% !important;
        max-width: 180px;
        min-height: 240px;
    }
    
    .buildings {
        bottom: 20%;
    }
    
}

/* Tablets (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .timeline-pole {
        bottom: 25% !important;
        max-width: 150px;
        min-height: 200px;
    }
    
    .buildings {
        bottom: 20%;
    }
    

}

/* Mobile Landscape (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
    .timeline-pole {
        bottom: 25% !important;
        max-width: 130px;
        min-height: 180px;
    }
    
    .buildings {
        bottom: 20%;
    }
    

}

/* Mobile Portrait (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
    .timeline-pole {
        bottom: 25% !important;
        max-width: 110px;
        min-height: 160px;
    }
    
    .buildings {
        bottom: 20%;
    }
    
}

/* Small Mobile (320px - 359px) */
@media (max-width: 359px) {
    .timeline-pole {
        bottom: 25% !important;
        max-width: 90px;
        min-height: 140px;
    }
    
    .buildings {
        bottom: 20%;
    }
    
}