:root {
    --indigo-900: #1e1b4b;
    --indigo-800: #312e81;
    --indigo-700: #4338ca;
    --indigo-600: #4f46e5;
    --indigo-500: #6366f1;
    --indigo-400: #818cf8;
    --indigo-300: #a5b4fc;
    --indigo-200: #c7d2fe;
    --indigo-100: #e0e7ff;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--gray-900);
    color: var(--gray-300);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--indigo-900) 0%, var(--gray-900) 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(129, 140, 248, 0.1) 0%, transparent 20%);
}

.card {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(76, 85, 99, 0.3);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    border-color: var(--indigo-500);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}

.skill-badge {
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid var(--indigo-500);
    color: var(--indigo-300);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(76, 85, 99, 0.3);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--indigo-600);
    transform: translateY(-3px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--gray-800);
    margin: 5% auto;
    padding: 0;
    border-radius: 0.75rem;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gray-700);
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    background: linear-gradient(to right, var(--indigo-800), var(--gray-900));
    border-bottom: 1px solid var(--gray-700);
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    background-color: var(--gray-800);
    border-top: 1px solid var(--gray-700);
    text-align: right;
}

.close-modal {
    color: var(--gray-400);
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--indigo-300);
    text-decoration: none;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--indigo-500), var(--indigo-800));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--indigo-500);
    border: 4px solid var(--indigo-900);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(76, 85, 99, 0.3);
    border-radius: 10px;
    padding: 25px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--indigo-400);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(31, 41, 55, 0.8);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(31, 41, 55, 0.8) transparent transparent;
}

.timeline-date {
    position: absolute;
    top: 22px;
    font-weight: 700;
    font-size: 18px;
    background: var(--indigo-600);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -120px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -120px;
}

.timeline-icon {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--indigo-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -60px;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--indigo-300);
}

.timeline-description {
    line-height: 1.6;
    color: var(--gray-300);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.timeline-tag {
    background: rgba(79, 70, 229, 0.15);
    color: var(--indigo-300);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--indigo-500);
}

/* Responsividade */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }

    .timeline-item:nth-child(even) {
        padding-left: 70px;
    }

    .timeline-item::after {
        left: 21px !important;
    }

    .timeline-date,
    .timeline-icon {
        left: 10px !important;
        right: auto !important;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 10px !important;
        right: auto !important;
        top: -15px;
    }

    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent rgba(31, 41, 55, 0.8) transparent transparent !important;
    }
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}