:root {
    --muted: #4a4a4a;
    --yellow: #FFE071;
    --white: #f9f9f9;
}

p {
    letter-spacing: 0px;
    line-height: 1.05;
}

h1 {
    color: var(--white);
    /* font-size: 50px; */
    font-size: 3.2rem;
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    text-align: center;
}


.f-page-blob {
    position: absolute;
    z-index: -1;
    width: 400px;
    height: 400px;
    filter: blur(150px);
    background-color: var(--color);
    animation: blobOrbit 10s linear infinite, blobPulse 6s ease-in-out infinite;
}

.f-page-blob.blob-1 {
    top: 0;
    left: 0;
}

.f-page-blob.blob-2 {
    right: 0;
    bottom: 0;
    width: 200px;
    height: 200px;
    filter: blur(100px);
}

.features-section {
    position: relative;
    margin-block: 5rem;
}

.f-heading-cont {
    margin-top: 4rem;
    margin-bottom: 10rem;
}

@media (max-width: 1200px) {
    .f-heading-cont {
        margin-bottom: 0;
    }
}

.loading {
    background-color: #355a30;
    padding: 13px 20px;
    border-radius: 15px;
}

.loading p {
    text-align: center;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0px;
    font-weight: 400;
    color: #5d9d53;
}

.loading-bar {
    width: 100%;
    height: 6px;
    border-radius: 20px;
    background: #5d9d53;
    background: linear-gradient(90deg, #191919 17%, #5d9d53 17%);
}

.f-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    padding: 30px;
    margin-bottom: 15px;
    background-color: #212121;
    border: 1px solid #323232;
    border-radius: 30px;
    text-align: center;
    color: var(--muted);
    transition: 0.4s all ease;
}

.f-card.active {
    background: var(--white);
    border: none;
    color: var(--darkcolor);
}

.f-card:hover {
    transform: translateY(-7px);
    background: var(--white);
    color: var(--darkcolor);
    border: none;
}

.text-cont {
    text-align: start;
}

.text-cont p:first-child {
    font-size: 0.85rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.features-tabs {
    display: none;
}

@media (max-width: 1200px) {
    .features-tabs {
        position: relative;
        display: flex;
        gap: 8px;    
        overflow-x: auto; 
        overflow-y: hidden;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 12px; 
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .features-tabs::-webkit-scrollbar {
        display: none;
    }

    .features-tabs {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .tab {
        display: flex;
        flex: 0 0 auto; 
        align-items: center;
        height: 40px;
        gap: 6px;
        background-color: #dbffd5;
        padding: 5px 10px;
        border-radius: 8px;
        cursor: pointer;
    }

    .tab p {
        margin-bottom: 0;
        color: var(--darkcolor);
        font-weight: 500;
    }

    .tab img {
        max-height: 100%;
    }

    .tab.active {
        background-color: var(--color);
    }
}

@media (max-width: 576px) {
    .features-tabs {
        padding-bottom: 8px; 
    }
}

@media (max-width: 1200px) {
    .features-container {
        position: relative;
        top: 0;
        left: 0;
    }

    .features-container h2 {
        position: relative;
        top: 0;
        left: 0;
    } 

    .f-card {
        position: absolute;
        top: 0;
        left: 0;
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 20px;
        margin-bottom: 20px;
        display: none;
    }

    .f-card.active {
        display: grid;
        position: relative;
    }

    .f-card:first-of-type {
        position: relative;
        top: 0;
        left: 0;
        z-index: 2;
    }

    .f-card h4 {
        font-size: 1.2rem;
    }

    .img-cont {
        display: none;
    }

    .f-card:hover {
        transform: translateY(0);
    }
}

.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-inline: 0px;
}

@media (min-width: 1200px) {
    #timelines-wrapper {
        position: sticky;
        top: 120px;
        height: max-content;
    }
}

@media (max-width: 1200px) {
    .timeline-container {
        gap: 10px;
    }
}

.timeline-container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, #85e077 10%, #85e077 90%, rgba(0, 0, 0, 0) 100%);
}

.timestamp {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
}

@media (max-width: 992px) {
    .timestamp {
        grid-template-columns: 45px 1fr;
    }
}

.line {
    position: relative;
    grid-column: 1;
    align-self: center;
    width: 100%;
    height: 2px;
    background-color: var(--muted);
}

.line::before {
    content: "";
    position: absolute;
    top: -7px;
    left: -7px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--darkcolor);
    border: 3px solid var(--muted);
    transition: 0.2s all;
}

.line::after {
    content: attr(data);
    position: absolute;
    top: -20px;
    left: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.7rem;
    font-optical-sizing: auto;
    font-weight: 300;
    color: var(--muted);
}

@media (max-width: 992px) {
    .line::after {
        top: 5px;
    }
}

.timestamp.active .line {
    background-color: var(--color);
}

.timestamp.active .line::before {
    border: 3px solid var(--color);
}

.timestamp.active .line::after {
    color: var(--color);
}

.timestamp:hover .line::before {
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--yellow);
    border: 3px solid var(--darkcolor);
}

.t-card {
    grid-column: 2;
    position: relative;
    z-index: 2;
    padding: 30px;
    border-radius: 30px;
    border-left: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);;
    background: url('/legacyassets/img/lock.png') no-repeat 95% 85% / 60px;
    background-color: var(--darkcolor);
    overflow: hidden;
    color: var(--muted);
}

@media (max-width: 1200px) {
    .t-card {
        padding: 20px;
        border-radius: 20px;
    }
}

.t-card > *, p.reveal, li.reveal {
    letter-spacing: normal;
}

.t-card h3 {
    font-size: 1.4rem;
}

.t-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.t-card ol li {
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-optical-sizing: auto;
    font-weight: 300;
    line-height: 1.05;
}

@media (max-width: 1200px) {
    .t-card h3 {
        font-size: 1.1rem;
    }

    .t-card h4 {
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: normal;
    }
}

.t-card ol li strong {
    font-weight: 600;
}

.timestamp.active .t-card {
    background: #dbffd5;
    border: none;
    color: var(--darkcolor);
}

button.t-btn, a.t-btn {
    border: none;
    border-bottom: 1px solid var(--darkcolor);
    border-radius: 5px;
    outline: none;
    padding: 5px 15px;
    background-color: transparent;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    color: var(--darkcolor);
    text-decoration: none;
    transition: 0.3s all;
}

@media (max-width: 1200px) {
    button.t-btn, a.t-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

.t-btn.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.t-btn:hover {
    background-color: var(--darkcolor);
    border-color: white;
    color: white;
}

.t-btn.locked {
    border-color: var(--muted);
    color: var(--muted);
    cursor: not-allowed;
}

.t-btn.locked:hover {
    background-color: transparent;
    color: var(--muted);
}
  
.extra-content {
    overflow: hidden;
    height: 0;
    transition: height 0.8s ease;
}

.extra-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

@media (max-width: 1200px) and (min-width: 992px) {
    figure {
        height: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .extra-img {
        display: block;
        width: 65%;
        aspect-ratio: 6 / 4;
        margin-left: auto;
        margin-right: auto;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s all ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}
    
.footer-btn:hover {
    color: var(--color);
}

.blob.eigth {
    bottom: 0;
    left: 0;
}

.subheading {
    line-height: 2.6rem;
}

@media (max-width: 1200px) {
    .subheading {
        font-size: 1.7rem;
        line-height: 2.2rem;
    }
}

@media (max-width: 576px) {
    .subheading {
        font-size: 20px;
        line-height: 1.3;
    }
}
