/* ========================================= */
/* TIMELINE & CONOCENOS SECTION STYLES */
/* ========================================= */

.section-badge-conocenos {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title-conocenos .highlight-text {
    color: var(--primary-color);
}

/* 
   VISUAL TIMELINE STYLES 
   -----------------------
*/

.visual-timeline-wrapper {
    position: relative;
    padding: 80px 0;
    overflow-x: auto;
    /* Allow horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    margin-bottom: 3rem;
    /* Mask for fade out edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.visual-timeline-wrapper::-webkit-scrollbar {
    display: none;
}

.timeline-nodes-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 1200px;
    /* Ensure content is wide enough */
    position: relative;
    padding: 0 60px;
    gap: 40px;
}

/* The dotted line track */
.timeline-track {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    /* Dashed line effect */
    background-image: linear-gradient(to right, rgba(168, 85, 247, 0.5) 50%, transparent 50%);
    background-position: top;
    background-size: 20px 2px;
    background-repeat: repeat-x;
    transform: translateY(-50%);
    z-index: 0;
}

/* Individual Nodes */
.timeline-node {
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-node:hover {
    transform: scale(1.1);
}

.node-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid rgba(168, 85, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Tesla';
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    line-height: 1.2;
}

.timeline-node:hover .node-circle {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.1);
}

.timeline-node.active .node-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
    transform: scale(1.05);
    font-weight: bold;
}

/* 
   MODAL STYLES 
   -----------------------
*/

.timeline-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.timeline-modal.active {
    opacity: 1;
    visibility: visible;
}

.timeline-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.timeline-modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 3rem;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 2;
    overflow: hidden;
}

/* Glow effect inside modal */
.timeline-modal-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.timeline-modal.active .timeline-modal-container {
    transform: scale(1) translateY(0);
}

.timeline-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-modal-body {
    text-align: center;
}

.timeline-modal-body .timeline-panel-year {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--primary-color);
    font-family: 'Tesla';
}

.timeline-modal-body .timeline-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.timeline-modal-body .timeline-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Mission Vision Values Cards override */
.mvv-grid {
    margin-top: 2rem;
}

.mvv-grid .mvv-card {
    /* Extending feature-card styles */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.mvv-grid .mvv-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.mvv-icon-wrapper {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.mvv-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Tesla';
}

.mvv-description {
    font-size: 1rem;
    color: #bbb;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-title {
        font-size: 1.3rem;
    }

    .timeline-container::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 1px;
    }
}