/* ========================================
   TIMELINE SECTION - ESTILOS ESPECÍFICOS
   ======================================== */

.timeline {
    background-color: var(--color-dark-blue);
    position: relative;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

[data-theme="light"] .timeline {
    background-color: var(--color-light-card);
}

.timeline::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.timeline::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.05) 0%, transparent 70%);
    z-index: 0;
}

[data-theme="light"] .timeline::before,
[data-theme="light"] .timeline::after {
    background: radial-gradient(circle, rgba(57, 166, 163, 0.05) 0%, transparent 70%);
}

.timeline-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-intro p {
    font-size: 1.2rem;
    color: var(--color-light-gray);
    line-height: 1.8;
}

/* ========================================
   TIMELINE CONTAINER E LINHA PRINCIPAL
   ======================================== */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
            to bottom,
            transparent 0%,
            var(--color-cyan) 10%,
            var(--color-cyan) 90%,
            transparent 100%
    );
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.5);
}

.timeline-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.5);
}

/* ========================================
   TIMELINE ITEMS
   ======================================== */
.timeline-item {
    position: relative;
    margin: 60px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    padding-right: 50%;
    text-align: right;
}

.timeline-item.right {
    padding-left: 50%;
    text-align: left;
}

/* ========================================
   TIMELINE MARKERS
   ======================================== */
.timeline-marker {
    position: absolute;
    top: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    font-size: 1.5rem;
    z-index: 2;
    box-shadow:
            0 0 20px rgba(102, 252, 241, 0.4),
            0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-item.left .timeline-marker {
    right: calc(50% - 30px);
}

.timeline-item.right .timeline-marker {
    left: calc(50% - 30px);
}

.timeline-marker:hover {
    transform: scale(1.1);
    box-shadow:
            0 0 30px rgba(102, 252, 241, 0.6),
            0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ========================================
   TIMELINE CONTENT CARDS
   ======================================== */
.timeline-content {
    position: relative;
    z-index: 1;
}

.timeline-card {
    background-color: var(--color-dark);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 252, 241, 0.1);
}

[data-theme="light"] .timeline-card {
    background-color: var(--color-light-bg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-light-border);
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 252, 241, 0.3);
}

[data-theme="light"] .timeline-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Conectores das timeline cards */
.timeline-item.left .timeline-card::after {
    content: '';
    position: absolute;
    top: 45px;
    right: -15px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-left-color: var(--color-dark);
    border-right: 0;
}

.timeline-item.right .timeline-card::after {
    content: '';
    position: absolute;
    top: 45px;
    left: -15px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-right-color: var(--color-dark);
    border-left: 0;
}

[data-theme="light"] .timeline-item.left .timeline-card::after {
    border-left-color: var(--color-light-bg);
}

[data-theme="light"] .timeline-item.right .timeline-card::after {
    border-right-color: var(--color-light-bg);
}

/* ========================================
   TIMELINE CARD CONTENT
   ======================================== */
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-year {
    background: var(--gradient-tech);
    color: var(--color-dark);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.3);
}

.timeline-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-cyan);
    margin: 0;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.timeline-role {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-description {
    color: var(--color-light-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ========================================
   TIMELINE SKILLS
   ======================================== */
.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.skill-tag {
    background-color: rgba(102, 252, 241, 0.1);
    color: var(--color-cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(102, 252, 241, 0.2);
    transition: all 0.3s ease;
}

[data-theme="light"] .skill-tag {
    background-color: rgba(57, 166, 163, 0.1);
    color: var(--color-cyan);
    border: 1px solid rgba(57, 166, 163, 0.2);
}

.skill-tag:hover {
    background-color: var(--color-cyan);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 252, 241, 0.3);
}

/* ========================================
   TIMELINE DECORATION
   ======================================== */
.timeline-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

/* ========================================
   TIMELINE SUMMARY
   ======================================== */
.timeline-summary {
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.summary-item {
    padding: 30px 20px;
    background-color: var(--color-dark);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 252, 241, 0.2);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .summary-item {
    background-color: var(--color-light-bg);
    border: 2px solid rgba(57, 166, 163, 0.2);
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-tech);
}

.summary-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .summary-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.summary-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-cyan);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(102, 252, 241, 0.4);
}

.summary-label {
    font-size: 1.1rem;
    color: var(--color-light-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   RESPONSIVE - MOBILE TIMELINE
   ======================================== */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
        transform: none;
    }

    .timeline-line::before,
    .timeline-line::after {
        left: -4px;
    }

    .timeline-item {
        margin: 40px 0;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 0 !important;
        right: auto !important;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline-card::after {
        display: none;
    }

    .timeline-card {
        padding: 25px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

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

    .timeline-role {
        font-size: 1.1rem;
    }

    .summary-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .summary-item {
        padding: 25px 15px;
    }

    .summary-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .timeline {
        padding: 60px 0;
    }

    .timeline-intro p {
        font-size: 1rem;
    }

    .timeline-card {
        padding: 20px;
    }

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

    .timeline-role {
        font-size: 1rem;
    }

    .timeline-description {
        font-size: 0.95rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}