:root {
    --primary: #0d1117;
    --secondary: #161b22;
    --accent: #0d6efd;
    --accent-dark: #0b5ed7;
    --text-light: #f8f9fa;
    --text-muted: #8b949e;
    --border: #30363d;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    min-height: 100vh;
    scroll-behavior: smooth;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    width: 0%;
    transition: width 0.1s ease;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 60px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.6);
}

.container {
    position: relative;
    z-index: 1;
}

.paper-container {
    background: var(--secondary);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(255, 255, 255, 0.1) inset;
    margin-top: 30px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.paper-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%);
    pointer-events: none;
}

.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background: rgba(13, 17, 23, 0.5);
}

.section-title {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.professional-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0a0e14 100%);
    color: white;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.professional-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(13, 110, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
}

.main-profile-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.avatar-container {
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
    animation: avatarMorph 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transform: rotate(45deg);
    animation: avatarShine 3s ease-in-out infinite;
}

@keyframes avatarMorph {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
        border-radius: 30%;
    }
    70% {
        opacity: 1;
        transform: scale(1.1) rotate(10deg);
        border-radius: 45%;
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
        border-radius: 50%;
    }
}

@keyframes avatarShine {
    0%, 100% {
        transform: rotate(45deg) translateX(-100%);
    }
    50% {
        transform: rotate(45deg) translateX(100%);
    }
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.title {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    font-weight: 300;
}

.badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat {
    text-align: center;
    padding: 1rem 0.5rem;
    transition: transform 0.2s ease;
}

.stat:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 1.3;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(13, 110, 253, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-btn i {
    font-size: 1rem;
}

.card {
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text-light);
}

.research-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
    border-color: var(--accent-dark);
}

.about-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15);
    border-color: var(--accent-dark);
}

.expertise-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
    border-color: var(--accent-dark);
}

.research-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.paradigm-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.research-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.research-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.research-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.research-links {
    margin-bottom: 1.5rem;
}

.research-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-metadata {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.metadata-label {
    color: var(--text-muted);
    font-weight: 500;
}

.metadata-value {
    color: var(--text-light);
    font-family: monospace;
}

.about-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.profile-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.metrics-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
    border-color: var(--accent);
}

.metric-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expertise-header {
    text-align: center;
    margin-bottom: 2rem;
}

.expertise-icon-main {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.expertise-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.expertise-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.expertise-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(13, 110, 253, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background: rgba(13, 110, 253, 0.08);
    transform: translateX(5px);
}

.expertise-item-icon {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.expertise-item-content {
    flex: 1;
}

.expertise-item-title {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.expertise-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.publication-dois {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doi-item {
    padding: 1rem;
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.contact-actions {
    text-align: center;
}

.contact-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.contact-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.contact-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    color: white;
}

.citation-tabs-container {
    margin-top: 1rem;
}

.nav-tabs {
    border-bottom: 1px solid var(--border);
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    border-bottom-color: var(--accent);
    border-radius: 10px 10px 0 0;
}

.nav-tabs .nav-link:hover {
    color: var(--text-light);
    border-color: var(--border);
}

.citation-format {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid var(--accent);
    color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    border-radius: 8px;
}

.citation-text {
    color: white;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.copy-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--accent-dark);
}

.btn-outline-primary {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-group {
    gap: 0.5rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--accent) !important;
}

.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-light {
    color: var(--text-light) !important;
}

.highlight-primary {
    color: var(--accent);
    font-weight: 600;
}

.highlight-accent {
    color: var(--text-light);
    font-weight: 500;
    background: linear-gradient(135deg, transparent 0%, rgba(13, 110, 253, 0.1) 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.highlight-muted {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 500;
}

.highlight-primary:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Vertical Progress Navigation */
.vertical-progress-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 70vh;
    min-height: 400px;
}

.progress-track {
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: visible;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    border-radius: 2px;
    transition: height 0.15s ease;
    z-index: 1;
}

.progress-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--secondary);
    z-index: 2;
    box-sizing: border-box;
}

.progress-marker.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.progress-marker.filled {
    background: var(--accent);
    border-color: var(--accent);
}

.progress-marker:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
}

.progress-marker::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    pointer-events: none;
    z-index: 1000;
}

.progress-marker:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay:nth-child(1) { transition-delay: 0.1s; }
.stagger-delay:nth-child(2) { transition-delay: 0.2s; }
.stagger-delay:nth-child(3) { transition-delay: 0.3s; }
.stagger-delay:nth-child(4) { transition-delay: 0.4s; }

@media (max-width: 1024px), (max-height: 600px) {
    .vertical-progress-nav {
        display: none;
    }
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .stat-number {
        margin-bottom: 0;
        min-width: 120px;
    }

    .stat-label {
        text-align: right;
        flex: 1;
        margin-left: 1rem;
    }
}

@media (max-width: 992px) {
    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .professional-header {
        padding: 2rem 0;
    }

    .main-profile-row {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .stats-row {
        padding: 1.25rem;
        gap: 0.6rem;
    }

    .stat {
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 1.2rem;
        min-width: 110px;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .navigation {
        gap: 0.25rem;
    }

    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
        flex: 1;
    }

    .nav-btn span {
        display: none;
    }

    .nav-btn i {
        font-size: 1.1rem;
    }

    .vertical-progress-nav {
        right: 15px;
        height: 60vh;
        min-height: 300px;
        max-height: 500px;
    }

    .progress-track {
        width: 3px;
    }

    .progress-marker {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .progress-marker::after {
        right: 18px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .scroll-to-top {
        right: 30px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-buttons-container {
        gap: 0.6rem;
    }

    .contact-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    #contact .btn-group {
        gap: 0.5rem;
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    #contact .lead {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1rem;
    }

    .badges {
        justify-content: center;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .stats-row {
        padding: 1rem;
    }

    .stat {
        padding: 0.7rem;
    }

    .stat-number {
        font-size: 1.1rem;
        min-width: 100px;
    }

    .contact-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }

    #contact .section-title {
        font-size: 1.5rem;
    }
}

@media (max-height: 400px) {
    .vertical-progress-nav {
        display: none !important;
    }
}

.content-section, .professional-header {
    scroll-margin-top: 80px;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1.5rem 0;
    opacity: 0.3;
}

hr:last-of-type {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .vertical-progress-nav {
        display: none !important;
    }
}

.paradigms-evolution-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.evolution-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.evolution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
    border-color: var(--accent-dark);
}

.evolution-header {
    text-align: center;
    margin-bottom: 2rem;
}

.evolution-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.evolution-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.evolution-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.paradigm-timeline {
    border-left: 3px solid var(--accent);
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 2rem;
    margin-left: 0.5rem;
}

.paradigm-timeline::before {
    content: '';
    position: absolute;
    left: -1.5px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    z-index: 1;
}

.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0.3;
    transform: translateX(-15px);
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -2.35rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--secondary);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item.active .timeline-marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
    transform: scale(1.2);
}

.timeline-content h5 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.timeline-content p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

@keyframes timelineReveal {
    0% {
        opacity: 0.3;
        transform: translateX(-15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item.active {
    animation: timelineReveal 0.6s ease-out forwards;
}

@media (max-width: 991px) {
    .paradigms-evolution-section .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .evolution-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .paradigms-evolution-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .evolution-card {
        padding: 1.5rem;
    }

    .paradigm-timeline {
        padding-left: 1.5rem;
        margin-left: 0.25rem;
    }

    .timeline-marker {
        left: -2.1rem;
        width: 14px;
        height: 14px;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
    }
}