body {
    font-family: "Sofia Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.navbar {
    background-color: #291B3B;
    padding-block: 2rem;
}

.navbar .container-xxl {
    gap: 1rem;
    justify-content: center;
}

.navbar-brand {
    margin-right: 0;
}

.navbar-brand img {
    max-width: 100%;
    width: 300px;
}

.navbar-nav {
    flex-direction: row;
    font-family: "Sofia Sans Condensed", sans-serif;
    text-transform: uppercase;
}

.navbar-expand-lg .navbar-nav .nav-link {
    color: #FFF;
    font-size: 1.2rem;
    padding: 0 1rem;
}

.navbar-expand-lg .navbar-nav .nav-link:hover {
    color: #BAC61E;
}

.navbar-expand-lg .navbar-nav .nav-link.active {
    background-color: #BAC61E;
    color: #291B3B;
}

.main {
    background-color: #F7F8DF;
}

/* Hero video styling */
.hero {
    padding: 0;
    margin: 0;
    position: relative;
}

.hero-video {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.unmute-button {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.unmute-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.unmute-button:active {
    transform: scale(0.95);
}

.unmute-button.hidden {
    display: none;
}

.intro {
    color: #291B3B;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-size: 1.75rem;
    line-height: 1.5;
    padding-block: 2rem;
}

.intro h1 {
    margin-bottom: 1.5rem;
}

.footer {
    background-color: #291B3B;
    padding-block: 3rem 4rem;
}

/* Social links styling */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #BAC61E;
    text-decoration: none;
    font-size: 2rem;
}

.social-link:hover {
    color: #E53D75;
}

@media (min-width: 768px) {
    .navbar .container-xxl {
        gap: 0;
        justify-content: space-between;
    }
    
    .hero-video {
        height: auto;
        max-width: 1920px;
        margin: 0 auto;
        display: block;
    }

    .intro {
        padding-block: 3rem;
    }
}

@media (min-width: 992px) {
    .intro {
        padding-block: 4rem;
    }
}

/* Timeline Styles - CodePen Inspired */

.timeline {
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 700px;
    position: relative;
}

.timeline-year-group {
    position: relative;
    margin-bottom: 60px;
}

.timeline-year-title {
    /* background-color: #F7F8DF;
    padding: 20px; */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #965bd3;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 500;
    font-size: 72px;
    z-index: 10;
    text-align: center;
    line-height: 1;
}

.timeline-year-subtitle {
    /* background-color: #F7F8DF;
    padding: 20px; */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    color: #965bd3;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-size: 18px;
    font-weight: 800;
    z-index: 10;
    text-align: center;
    width: 400px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-year-content {
    padding-top: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline__content {
    position: relative;
    /* width: calc(50% - 40px); */
}

@media (min-width: 768px) {
    .timeline__content {
        width: calc(50% - 40px);
    }
}

.timeline__content-title {
    font-weight: normal;
    font-size: 24px;
    margin: 0 0 15px 0;
    transition: .4s;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: "Sofia Sans", sans-serif;
    color: #291B3B;
}

.timeline__content-desc {
    margin: 0;
    font-size: 22px;
    box-sizing: border-box;
    color: #000;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: normal;
    line-height: 25px;
}

.timeline:before {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    content: "";
    background: rgba(41, 27, 59, 0.2);
}

@media only screen and (max-width: 767px) {
    .timeline:before {
        left: 40px;
    }
}

.timeline-item {
    padding: 40px 0;
    /* opacity: 0.8;
    filter: blur(2px); */
    transition: all 0.6s ease;
    box-sizing: border-box;
    display: flex;
    position: relative;
    transform: translateY(-50px);
}

.timeline-item:nth-child(odd) .timeline__content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline__content {
    margin-left: auto;
}

/* Timeline circles positioned on the main timeline axis */
.timeline-item::after {
    content: '';
    position: absolute;
    right: calc(50% - 10px);
    top: 60px;
    width: 20px;
    height: 20px;
    background: #291B3B;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

/* Remove content title styles since we removed the subtitles */
.timeline__content-title {
    display: none;
}

.timeline-item:before {
    content: attr(data-text);
    letter-spacing: 3px;
    width: 100%;
    position: absolute;
    color: rgba(41, 27, 59, 0.5);
    font-size: 13px;
    font-family: "Sofia Sans", sans-serif;
    border-left: 2px solid rgba(41, 27, 59, 0.5);
    top: 70%;
    margin-top: -5px;
    padding-left: 15px;
    opacity: 0;
    right: calc(-100% - 56px);
}

.timeline-item:nth-child(odd):before {
    right: calc(-100% - 56px);
    border-left: 2px solid rgba(41, 27, 59, 0.5);
    border-right: none;
    padding-left: 15px;
    padding-right: 0;
}

.timeline-item:nth-child(even):before {
    right: auto;
    left: calc(-100% - 56px);
    border-left: none;
    border-right: 2px solid rgba(41, 27, 59, 0.5);
    padding-left: 0;
    padding-right: 15px;
    text-align: right;
}

.timeline-item--active {
    /* opacity: 1; */
    transform: translateY(0);
    /* filter: blur(0px); */
}

.timeline-item--active::after {
    background: #BAC61E;
}

.timeline-item--active:before {
    top: 50%;
    transition: 0.3s all 0.2s;
    opacity: 1;
}

.timeline-item--active .timeline__content-title {
    margin: 0 0 15px 0;
}

@media only screen and (max-width: 767px) {
    .timeline-year-title {
        position: relative;
        left: auto;
        transform: none;
        display: block;
        margin-bottom: 10px;
        font-size: 48px;
        text-align: center;
    }
    
    .timeline-year-subtitle {
        position: relative;
        left: auto;
        transform: none;
        top: auto;
        width: 100%;
        margin-bottom: 20px;
        font-size: 16px;
        text-align: center;
    }
    
    .timeline-year-content {
        padding-top: 40px;
    }
    
    .timeline-item {
        align-self: baseline !important;
        width: 100%;
        padding: 0 30px 150px 80px;
    }
    
    .timeline-item:before {
        left: 10px !important;
        padding: 0 !important;
        top: 50px;
        text-align: center !important;
        width: 60px;
        border: none !important;
    }
    
    .timeline-item::after {
        left: 30px;
        transform: none;
    }
    
    .timeline-item:last-child {
        padding-bottom: 40px;
    }
}

.timeline__img {
    display: block;
    margin-bottom: 20px;
    max-width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.timeline-container {
    width: 100%;
    position: relative;
    padding: 80px 0;
    transition: 0.3s ease 0s;
    background-image: url('images/timeline/Fondo_2_Vertical.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

@media (min-width: 768px) {
    .timeline-container {
        background-image: url('images/timeline/Fondo_2.jpg');
    }
}

/* .timeline-container::before {
    background-color: #F7F8DF;
    bottom: 0;
    display: block;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
} */

.timeline {
    position: relative;
    z-index: 2;
}

/* Dynamic background image class */
.timeline-container.dynamic-bg {
    background-image: var(--timeline-bg-image) !important;
}
