/* =========================================
   UreTech Timeline — Cable Scroll v305
   ========================================= */

/* Wrapper — height set dynamically by JS */
.ure-tl {
    position: relative;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: #F5F2EE;
    overflow: visible;
}

/* Kill Elementor spacing on parent containers */
.elementor-widget-uretech_timeline,
.elementor-widget-uretech_timeline > .elementor-widget-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* Sticky viewport */
.ure-tl__sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* JS overrides to window.innerHeight */
    overflow: hidden;
}

/* Canvas */
.ure-tl__canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Progress bar */
.ure-tl__progress {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: rgba(234,136,222,0.1);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}
.ure-tl.is-active .ure-tl__progress { opacity: 1; }

.ure-tl__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #EA88DE, #C1BFE6);
    border-radius: 0 2px 2px 0;
    transition: width 0.05s linear;
}

/* Year watermark — size & position set by JS via measure() */
.ure-tl__watermark {
    position: absolute;
    bottom: 40px; right: 40px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 80px;
    line-height: 1;
    color: rgba(234,136,222,0.10);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.ure-tl.is-active .ure-tl__watermark { opacity: 1; }

/* Track */
.ure-tl__track {
    position: absolute;
    top: 0; left: 0;
    display: flex;
    height: 100%;
    will-change: transform;
    z-index: 3;
}

/* Panels */
.ure-tl__panel {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px 32px;
    box-sizing: border-box;
}

/* Intro panel */
.ure-tl__panel--intro {
    flex-direction: column;
    text-align: center;
}

.ure-tl__chip {
    display: inline-block;
    background: rgba(234,136,222,0.12);
    border: 1px solid rgba(234,136,222,0.35);
    color: #B066A7;
    padding: 8px 22px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 28px;
}

.ure-tl__intro-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    color: #1A1730;
    margin: 0 0 16px;
}
.ure-tl__intro-title em {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    color: #EA88DE;
}

.ure-tl__intro-desc {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(26,23,48,0.6);
    max-width: 480px;
    margin: 0 auto;
}

/* Milestone cards */
.ure-tl__card {
    position: absolute;
    left: 50%;
    max-width: 360px;
    width: calc(100% - 80px);
    padding: 32px 28px;
    background: rgba(255,255,255,0.8);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(234,136,222,0.15);
    border-radius: 24px;
    z-index: 5;
    opacity: 0;
    box-shadow: 0 8px 40px rgba(176,102,167,0.08), 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.7s cubic-bezier(.16,1,.3,1);
    box-sizing: border-box;
}

.ure-tl__card--top {
    top: 12%;
    transform: translateX(-50%) translateY(30px);
}
.ure-tl__card--top.is-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ure-tl__card--bottom {
    bottom: 12%;
    transform: translateX(-50%) translateY(-30px);
}
.ure-tl__card--bottom.is-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ure-tl__card-year {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1;
    background: linear-gradient(135deg, #EA88DE, #C1BFE6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.ure-tl__card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(17px, 1.5vw, 22px);
    color: #1A1730 !important;
    margin: 0 0 8px;
}

.ure-tl__card-desc {
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.6;
    color: rgba(26,23,48,0.6) !important;
    margin: 0;
}

/* Outro panel */
.ure-tl__panel--outro {
    flex-direction: column;
    text-align: center;
}

.ure-tl__outro-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(30px, 4.5vw, 52px);
    line-height: 1.08;
    color: #1A1730;
    margin: 0 0 16px;
}
.ure-tl__outro-title em {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    color: #EA88DE;
}

.ure-tl__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #EA88DE, #B066A7);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 100px;
    text-decoration: none !important;
    box-shadow: 0 4px 24px rgba(234,136,222,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ure-tl__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(234,136,222,0.45);
}

/* =========================================
   Responsive
   ========================================= */

/* Tablet */
@media (max-width: 1024px) {
    .ure-tl__panel { padding: 32px 24px; }
    .ure-tl__card { max-width: 320px; padding: 28px 24px; width: calc(100% - 48px); }
    .ure-tl__card--top { top: 14%; }
    .ure-tl__card--bottom { bottom: 14%; }
}

/* Mobile */
@media (max-width: 768px) {
    .ure-tl__panel { padding: 16px 12px; }
    .ure-tl__card { max-width: 260px; padding: 22px 18px; width: calc(100% - 24px); }
    .ure-tl__card--top { top: 15%; }
    .ure-tl__card--bottom { bottom: 15%; }
    .ure-tl__card-year { margin-bottom: 6px; }
    .ure-tl__intro-title { margin-bottom: 10px; }
    .ure-tl__intro-desc { font-size: 14px; max-width: 300px; }
    .ure-tl__chip { padding: 6px 16px; font-size: 10px; margin-bottom: 16px; }
    .ure-tl__outro-title { margin-bottom: 10px; }
    .ure-tl__cta-btn { padding: 14px 28px; font-size: 14px; margin-top: 16px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .ure-tl__panel { padding: 10px 8px; }
    .ure-tl__card { max-width: 230px; padding: 18px 14px; width: calc(100% - 16px); }
    .ure-tl__card--top { top: 12%; }
    .ure-tl__card--bottom { bottom: 12%; }
}
